Matrix - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


type/Matrix

check for a Matrix (rtable-based)

 

Calling Sequence

Parameters

Description

Supertypes

Examples

Calling Sequence

type(expr, Matrix)

type(expr, 'Matrix'(R))

Parameters

expr

-

any expression

R

-

Matrix shape, any Matrix option, the name square, a type, or an expression sequence of these

Description

• 

A Maple Matrix is an rtable with subtype option Matrix.

• 

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), or if the entries of expr have type R in case R is a Maple type.

  

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.

Supertypes

• 

type/rtable

Examples

AMatrix3,3,1,2,3,1,1,1,5,7,9

A123111579

(1)

typeA,Matrix

true

(2)

Check the contents of the Matrix.

typeA,Matrixnumeric

true

(3)

Check the shape or options of the Matrix.

typeA,Matrixsquare

true

(4)

MatrixOptionsA

shape=,datatype=anything,storage=rectangular,order=Fortran_order

(5)

typeA,Matrixdatatype=anything,order=Fortran_order,square

true

(6)

typeA,Matrixdatatype=integer

false

(7)

See Also

Formats/ByType/Matrix

Matrix

MatrixOptions

rtable

type

type/rtable

type/structure