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

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : rtable_set_indfn

rtable_set_indfn

set or append to indexing functions of an rtable

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

rtable_set_indfn(A, f)

rtable_set_indfn(A, f, inplace, append)

rtable_set_indfn(A)

rtable_set_indfn(A, f1, f2, ...)

Parameters

A

-

rtable

f

-

indexing function

inplace

-

(optional) truefalse, default is false

append

-

(optional) truefalse, default is false

Description

• 

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.

Examples

 

MArray1..3,ii2

M149

(1)

M3

9

(2)

Rrtable_set_indfnM,Units

Rs4s9s

(3)

R3

9s

(4)

Compatibility

• 

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

rtable_indfns

rtable_split_unit

Units:-Simple

Units:-Unit