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

Online Help

All Products    Maple    MapleSim


ArrayTools

  

SuggestedOrder

  

suggest rtable order for an operation on two rtables

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

SuggestedOrder(X,Y)

Parameters

X, Y

-

Array, hardware float, or general expression

Description

• 

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

• 

If only one of X or Y is an rtable (Vector, Matrix, or Array), its storage order is returned.

• 

If both X and Y are rtables, the storage order of the one with the higher number of dimensions is returned.

  

If both have the same number of dimensions, the storage order of X is returned.

• 

If neither X nor Y are rtables, the suggested storage order is Fortran_order.

• 

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

Examples

withArrayTools:

AF1Array1,2,3,order=Fortran_order

AF1123

(1)

AC1Array1,2,3,order=C_order

AC1123

(2)

AC2Array1,2,3,4,order=C_order

AC21234

(3)

SuggestedOrderAF1,AC1

Fortran_order

(4)

SuggestedOrderAF1,AC2

C_order

(5)

SuggestedOrder42,AC1

C_order

(6)

SuggestedOrderx,y

Fortran_order

(7)

Compatibility

• 

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

• 

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

See Also

ArrayTools

ArrayTools[SuggestedDatatype]

ArrayTools[SuggestedSubtype]