convert/matrix
convert an array, a list of lists, or a Matrix to a matrix
Calling Sequence
Parameters
Description
Examples
convert(A, matrix)
A
-
two-dimensional array, list of lists, or rtable-based Matrix
The convert(A, matrix) calling sequence converts any of the following objects into a matrix:
* two-dimensional array
* list of lists
* rtable-based Matrix
Note: The command matrix has been superseded by Matrix.
A≔array⁡0..1,−1..0,1,2,3,4
A≔array⁡0..1,−1..0,0,−1=1,0,0=2,1,−1=3,1,0=4
convert⁡A,matrix
1234
M≔Matrix⁡3,3,1,1,1,1,2,3,7,8,9
M≔111123789
type⁡M,matrix
false
type⁡M,Matrix
true
M1≔convert⁡M,matrix
M1≔111123789
type⁡M1,matrix
type⁡M1,Matrix
See Also
array(deprecated)
convert
convert/array
convert/Matrix
Matrix
matrix(deprecated)
type/matrix
type/Matrix
Download Help Document