type/Matrix - check for a Matrix (rtable-based)
|
Calling Sequence
|
|
type(expr, Matrix)
type(expr, 'Matrix'(R))
|
|
Parameters
|
|
expr
|
-
|
any expression
|
R
|
-
|
Matrix shape, any Matrix option, the name square, or an expression sequence of these
|
|
|
|
|
Description
|
|
•
|
The type(expr, Matrix) function returns true if expr is a Maple Matrix.
|
•
|
The type(expr, 'Matrix'(R)) function returns true if expr is a Maple Matrix with the shapes or options given in R (see Matrix for permissible shapes and options).
|
|
If R includes the name 'square', the Matrix dimensions are checked for equality.
|
|
Note: It is essential to quote the word Matrix in this form of the calling sequence in order to avoid confusion with the Matrix(..) constructor function.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
Check the contents of the Matrix.
>
|
|
| (3) |
Check the shape or options of the Matrix.
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
|
|
Download Help Document
Was this information helpful?