objectToNumVector
|
The objectToNumVector function converts the object {object} into a
NumVector returning the new Vector. The {object} may be a List, Vector,
Matrix, Structure, Dictionary, or a Directory. If the object is already a
NumVector, it is returned unchanged. If it is any other type of Vector
(e.g., Vector), it is converted into a number vector. Elements that cannot be
converted to a number (a real) are converted to zero. One-dimensional matrices
are converted into a number vector. Two-dimensional matrices are converted into
an object vector whose elements are number vectors. Each of these vectors contains
one row of the matrix. Three-dimensional matrices are converted into an object
vector that contains a set of object vectors. There are as many of these object
vectors as the planes in the matrix (first dimension). Each of these object vectors
contains the same elements as described above for two-dimensional matrices.
The keys of structures, dictionaries, and directories are not converted. Usage The objectToNumVector function is used to convert a Vector, List, Matrix,
Structure, or Dictionary object to a NumVector object.
(objectToNumVector obj) A NumVector object
Expression:
Arguments
Name
Type
Description Argument: obj Vector List Matrix Structure
Dictionary Directory
A Vector, List, Matrix, Structure, Dictionary or Directory Object
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.
Vector | NumVector | List | Matrix |
Structure | Dictionary | Directory | Integer |
Real | Number | Complex |
Here are also a number of links to functions having arguments with any of these data types.
Analytic Information Server (AIS)AIS Component Systems
|