linalg(deprecated)
indexfunc
determine the indexing function of an array
Calling Sequence
Parameters
Description
Examples
indexfunc(A)
A
-
array
Important: The linalg package has been deprecated. Use the superseding packages, LinearAlgebra and VectorCalculus, instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
The procedure call indexfunc(A) returns the indexing function for the array A.
This could be one of the standard indexing functions such as identity, symmetric, or diagonal, or the name of a user-defined indexing function.
If there is no indexing function specified for the array A, then indexfunc will return NULL.
The command with(linalg,indexfunc) allows the use of the abbreviated form of this command.
with⁡linalg:
A≔array⁡1..2,1..2,1,0,0,1
A≔1001
indexfunc⁡A
B≔array⁡1..2,1..2,1,0,0,1,symmetric
B≔1001
indexfunc⁡B
symmetric
See Also
indexfcn
LinearAlgebra
Download Help Document