Files
calc/help/matdim
2017-05-21 15:38:36 -07:00

28 lines
400 B
Plaintext

NAME
matdim - matrix dimension
SYNOPSIS
matdim(m)
TYPES
m matrix
return 1, 2, 3, or 4
DESCRIPTION
Returns the number of indices required to specify elements of the matrix.
EXAMPLE
> mat A[3]; mat B[2,3]; mat C[1, 2:3, 4]; mat D[2, 3, 4, 5]
> print matdim(A), matdim(B), matdim(C), matdim(D)
1 2 3 4
LIMITS
none
LIBRARY
none
SEE ALSO
XXX - fill in