mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
28 lines
400 B
Plaintext
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
|