vertical
Converts a vector (set) or (horizontal 1D) matrix (nested set) to a vertical 1D-matrix.
In other words: Moves all parameter elements of set one deeper, so every parameter element is embedded in its own 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 |
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'}}
{}