rtable_dims - Maple Programming Help

rtable_dims

return the bounds of each dimension of an rtable

rtable_num_dims

return the number of dimensions of an rtable

 Calling Sequence rtable_dims(A) rtable_num_dims(A)

Parameters

 A - rtable object

Description

 • The rtable_dims(A) function, where A is an Array, Matrix, or Vector, returns a sequence of integer ranges representing the bounds of each dimension of rtable A.
 For a 0-dimensional rtable, NULL is returned. In the case that A is an Array, this is equivalent to op(2, A).
 For Matrices and Vectors, this function is similar to LinearAlgebra[Dimension].
 • The rtable_num_dims(A) function, where A is an Array, Matrix, or Vector, returns the number of dimensions of rtable A.
 This is equivalent to nops([rtable_dims(A)]).

 • The rtable_num_dims command is thread-safe as of Maple 15.

Examples

 > $M≔\mathrm{Matrix}\left(\left[\left[1,2,3\right],\left[4,5,6\right]\right]\right)$
 ${M}{≔}\left[\begin{array}{ccc}{1}& {2}& {3}\\ {4}& {5}& {6}\end{array}\right]$ (1)

For a Matrix, the rtable_dims command returns the row bounds and then the column bounds.

 > $\mathrm{rtable_dims}\left(M\right)$
 ${1}{..}{2}{,}{1}{..}{3}$ (2)
 > $\mathrm{rtable_num_dims}\left(M\right)$
 ${2}$ (3)