Array1 | List2 | → | Array3 |
Symbol1 | List2 | → |
This operation re-dimensions an input vector or matrix according to the size specified by the list. If the list has a single real value, the result will be a vector with that many values. If the list has two real values, the result will be a matrix with that many rows and columns.
The input vector or matrix can come from the stack or from a symbol. If the input is a symbol, then the value of that symbol most be a vector or matrix. The result will be push onto the stack or stored into the symbol if the input was a symbol.
The input vector or matrix is used to supply values for the output re-dimensioned array. If the input array does not have a value at a location in the output, then a zero appears there. So, if you shrink an array in a dimension, those values are lost on the output. If you grow an array in a dimension, the new values are set to zero.