|
resize
|
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.
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.
(resize nummatrix size) Returns the updated matrix.
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. 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 nummatrix The NumMatrix to be resized NumMatrix size The target size (the NumMatrix is assumed to be of rank one) . Integer
Returns:
Examples
Argument Types
Structure
Dictionary
Directory
Vector
Integer
NumMatrix
Matrix
ShortVector
FltVector
IntVector
NumVector
ObjVector
BitVector
How do I contact the AIS team?