Previous Up Next

2.42.32  Dimension of a matrix : dim

dim takes as argument a matrix A.
dim returns the list of the number of rows and columns of the matrix A.
Input :

dim([[1,2,3],[3,4,5]])

Output :

[2,3]

Previous Up Next