determine the dimension of a Matrix or a Vector
determine the row dimension of a Matrix
determine the column dimension of a Matrix
Matrix or Vector
The Dimension(A) function, where A is a Vector, returns a non-negative integer that represents the number of elements in A. If A is a Matrix, two non-negative integers representing the row dimension and the column dimension of A, respectively, are returned.
Dimensions(A) is an alternate form for Dimension(A).
The RowDimension(A) function, where A is a Matrix, returns a non-negative integer that represents the number of rows in A.
The ColumnDimension(A) function, where A is a Matrix, returns a non-negative integer that represents the number of columns in A.
This function is part of the LinearAlgebra package, and so it can be used in the form Dimension(..) only after executing the command with(LinearAlgebra). However, it can always be accessed through the long form of the command by using LinearAlgebra[Dimension](..).
V ≔ x,y,z,w
A ≔ IdentityMatrix⁡3,5
rowdim ≔ RowDimension⁡A
coldim ≔ ColumnDimension⁡A
m,n ≔ Dimension⁡A
Download Help Document
What kind of issue would you like to report? (Optional)