ArrayTools
SuggestedOrder
suggest rtable order for an operation on two rtables
Calling Sequence
Parameters
Description
Examples
Compatibility
SuggestedOrder(X,Y)
X, Y
-
Array, hardware float, or general expression
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](..).
with⁡ArrayTools:
AF1≔Array⁡1,2,3,order=Fortran_order
AF1≔123
AC1≔Array⁡1,2,3,order=C_order
AC1≔123
AC2≔Array⁡1,2,3,4,order=C_order
AC2≔1234
SuggestedOrder⁡AF1,AC1
Fortran_order
SuggestedOrder⁡AF1,AC2
C_order
SuggestedOrder⁡42,AC1
SuggestedOrder⁡x,y
The ArrayTools[SuggestedOrder] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
See Also
ArrayTools[SuggestedDatatype]
ArrayTools[SuggestedSubtype]
Download Help Document