vertical
Converts a vector (parameter set) or (horizontal 1D) matrix (nested parameter set) to a vertical 1D-matrix.
In other words: Moves all parameter elements of parameter set one deeper, so every parameter element is embedded in its own parameter set.
The matrices may contain contents of all data types and not just numerals.
Indirect parameter passing is disabled
1
No. | Type | Description |
---|---|---|
1 input |
parameter set matrix |
Matrix Vector or matrix to change to a vertical matrix |
Type | Description |
---|---|
matrix | Vertical matrix |
echo( vertical ( {1,2,abc } ) ); // returns { {1},{2},{abc} }
echo( vertical( {{1},{2},{abc}} ) ); // Same (is already a vertical matrix)
echo( vertical( {{1,2,abc}} ) ); // Same (horizontal to vertical matrix)
echo( vertical( { } ) ); // returns { } (empty set)
{{1},{2},{'abc'}}
{{1},{2},{'abc'}}
{{1},{2},{'abc'}}
{}