dimension
|
The dimension function returns the dimension of a Vector, Brick, Dictionary, or other AIS collection object.
Usage The dimension function returns the dimension of a Vector, Brick, Dictionary, or other AIS collection object.
For instance the following Lisp code shows how to examine the dimension of several objects.
vars:(w x y)
(setq w 22.45)
(writeln "dimension of w = " (dimension w))
(setq x (new Structure: A: 1.0 B: 2.0 C: 3.0 D: 4.0))
(writeln "dimension of x = " (dimension x))
(setq y (new Matrix: Number: 2 2 2 1.0 1.1 2.0 2.1))
(writeln "dimension of y = " (dimension y))
(setq rank (dimension collection)) rank
Expression:
Arguments
Name
Type
Description Argument: collection
BitVector Brick ByteVector CpxVector Dictionary Directory FltVector IntVector LongVector
Matrix NumMatrix NumVector ObjVector Pair ShortVector String Structure Symbol Vector
The collection object whose dimension is to be returned. Argument: rank Integer
Returns the rank dimension of the collection specified.
Returns:
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments.
BitVector | Brick | ByteVector | CpxVector |
Dictionary | Directory | FltVector | IntVector |
Matrix | NumMatrix | NumVector | ObjVector |
Pair | ShortVector | String | Structure |
Symbol | Vector |
Here are also a number of links to functions having arguments with any of these data types.
Analytic Information Server (AIS)AIS Component Systems
|