rtable_set_indfn
set or append to indexing functions of an rtable
Calling Sequence
Parameters
Description
Examples
Compatibility
rtable_set_indfn(A, f)
rtable_set_indfn(A, f, inplace, append)
rtable_set_indfn(A)
rtable_set_indfn(A, f1, f2, ...)
A
-
rtable
f
indexing function
inplace
(optional) truefalse, default is false
append
The rtable_set_indfn(A, f) command creates an alias of A with the given indexing functions. If inplace=true is specified, then the original rtable, A, is modified in-place.
The stored data of A remains unchanged and is not validated to ensure consistency with the new indexing function. For example, you are not prevented from applying a symmetric indexing function on a matrix that is not symmetric.
Executing rtable_set_indfn(A), without any arguments following the rtable will return an rtable with no indexing functions.
The option, append=true can be used to add an additional indexing-function to the rtable, adding to the list of existing indexing functions already present. The internal order of the additional indexing function may be rearranged, so it is not guaranteed that the appended indexing functions will appear at the end.
This command is particularly useful for adding a Units indexing function, which applies a Unit to an rtable without modifying the underlying data. In particular, this command can be used to put a unit back on a result rtable after removing the units from the input rtables for the purpose of fast hardware computations.
M≔Array⁡1..3,i↦i2
M≔149
M3
9
R≔rtable_set_indfn⁡M,Unit⁡s
R≔s4⁢s9⁢s
R3
9⁢s
The rtable_set_indfn command was introduced in Maple 2024.
For more information on Maple 2024 changes, see Updates in Maple 2024.
See Also
ArrayTools:-Alias
indexfcn,Units
indexing functions
rtable_indfns
rtable_split_unit
Units:-Simple
Units:-Unit
Download Help Document