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

Online Help

All Products    Maple    MapleSim


ArrayTools

  

SuggestedSubtype

  

suggest rtable subtype for an operation on two rtables

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

SuggestedSubtype(X,Y,ndims)

Parameters

X, Y

-

Array, hardware float, or general expression

ndims

-

(optional) number of dimensions of result

Description

• 

SuggestedSubtype(X,Y) accepts two rtables, X and Y, and suggests a subtype to use for a result involving an operation between X and Y.

• 

The number of dimensions of the result of the operation can be passed as optional third argument ndims. If omitted, the number of dimensions is assumed to be the sum of the number of dimensions of X and Y.

• 

If X or Y is a Vector or Matrix, and the number of dimensions of the result is 1 or 2, the suggested subtype will be a Vector or Matrix.

• 

If neither X nor Y is a Vector or Matrix, or the number of dimensions of the result is 0 or more than 2, the suggested subtype will be Array.

• 

This function is part of the ArrayTools package, so it can be used in the short form SuggestedSubtype(..) only after executing the command with(ArrayTools). However, it can always be accessed through the long form of the command by using ArrayTools[SuggestedSubtype](..).

Examples

withArrayTools:

M1Matrix1,2,3,4

M11234

(1)

SuggestedSubtypeM1,x

Matrix

(2)

V1Vectorcolumn5,6

V156

(3)

SuggestedSubtypeM1,V1

Array

(4)

SuggestedSubtypeM1,V1,1

Vectorcolumn

(5)

SuggestedSubtypeM1,V1,2

Matrix

(6)

Compatibility

• 

The ArrayTools[SuggestedSubtype] command was introduced in Maple 2021.

• 

For more information on Maple 2021 changes, see Updates in Maple 2021.

See Also

ArrayTools

ArrayTools[SuggestedDatatype]

ArrayTools[SuggestedOrder]