resize
|
The resize function changes a Vector object {vector} size to the
specified size {size}. If the Vector is enlarged the new spaces are filled
with #void. If the Vector is downsized, the trailing values are dropped.
The resize function changes a Structure object {struct} size to
the specified size {size}. If the Structure is expanded, the new spaces are
filled with #void. If the object is downsized, the trailing values are dropped.
The resize function changes a Dictionary object {dict} size to
the specified size {size}. If the Dictionary is expanded, the new spaces are
filled with #void. If the object is downsized, the trailing values are dropped.
The resize function changes a Directory object {dir} size to
the specified size {size}. If the Directory is expanded, the new spaces are
filled with #void. If the object is downsized, the trailing values are dropped.
The resize function changes a Matrix object {matrix} size to the
specified size {size}. If the Matrix is enlarged the new spaces are filled
with #void. If the Matrix is downsized, the trailing values are dropped.
The resize function changes a NumMatrix object {matrix} size to the
specified size {size}. If the NumMatrix is enlarged the new spaces are filled
with #void. If the NumMatrix is downsized, the trailing values are dropped.
Usage The resize function can be used to downsize or enlarge a dictionary, directory
structure, vector or matrix in one step. It is more time efficient if the target size is known from the start, than
expanding or contracting the dictionary, directory
structure, vector or matrix one binding at a time.Structure
Dictionary
Directory
Matrix
NumMatrix
(resize vector size) Returns the updated vector. (resize struct size) Returns the updated structure (resize dict size) Returns the updated dictionary (resize dir size) Returns the updated directory (resize matrix size) Returns the updated matrix. (resize matrix rank dimensions) Returns the updated matrix. (resize nummatrix size) Returns the updated matrix. (resize nummatrix rank dimensions) Returns the updated nummatrix.
Expression:
Arguments
Name
Type
Description Argument: vector Vector FltVector IntVector NumVector ObjVector BitVector ShortVector
The Vector to be resized Argument: size Integer
The target size (i.e. the number of bindings).
Returns:
Expression:
Arguments
Name
Type
Description Argument: struct Structure
The Structure to be resized Argument: size Integer
The target size (i.e. the number of bindings).
Returns:
Expression:
Arguments
Name
Type
Description Argument: dict Dictionary
The Dictionary to be resized Argument: size Integer
The target size (i.e. the number of bindings).
Returns:
Expression:
Arguments
Name
Type
Description Argument: dir Directory
The Directory to be resized Argument: size Integer
The target size (i.e. the number of bindings).
Returns:
Expression:
Arguments
Name
Type
Description Argument: matrix Matrix
The Matrix to be resized Argument: size Integer
The target size (the Matrix is assumed to be of rank one) .
Returns:
Expression:
Arguments
Name
Type
Description Argument: matrix Matrix
The Matrix to be resized Argument: rank Integer
The target rank. Argument: dimensions Integer
The target dimension list.
Returns:
Expression:
Arguments
Name
Type
Description Argument: nummatrix NumMatrix
The NumMatrix to be resized Argument: size Integer
The target size (the NumMatrix is assumed to be of rank one) .
Returns:
Expression:
Arguments
Name
Type
Description Argument: nummatrix NumMatrix
The NumMatrix to be resized Argument: rank Integer
The target rank. Argument: dimensions Integer
The target dimension list.
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.
Structure | Dictionary | Directory | Vector |
Integer | NumMatrix | Matrix | ShortVector |
FltVector | IntVector | NumVector | ObjVector |
BitVector |
Here are also a number of links to functions having arguments with any of these data types.
Analytic Information Server (AIS)AIS Component Systems
|