|
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. When to use The objectToNumVector function is used to convert a Vector, List, Matrix,
Structure, or Dictionary object to a NumVector object.
(objectToNumVector obj) A NumVector object
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Example_NumVector_objectToNumVector_001
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types obj A Vector, List, Matrix, Structure, Dictionary or Directory Object Vector List Matrix Structure
Dictionary Directory
Returns:
Examples
Argument Types
Vector
NumVector
List
Matrix
Structure
Dictionary
Directory
Integer
Real
Number
Complex
How do I contact the AIS team?