return the bounds of each dimension of an rtable - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Rtables, Arrays, Matrices, and Vectors : Operations : rtable_dims

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)]).

Thread Safety

• 

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

• 

For more information on thread safety, see index/threadsafe.

Examples

M:=Matrix1,2,3,4,5,6

M:=123456

(1)

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

rtable_dimsM

1..2,1..3

(2)

rtable_num_dimsM

2

(3)

See Also

Array, Matrix, op, rtable, Vector


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam