Table of Contents
This is an old revision of the document!
Len
You can use the # operator to get the number of rows and columns of a matrix
Example
Input
- Example.Quanty
A = Matrix.New({{1,2},{3,4},{5,6}}) print("number of rows in A = ",#A) print("number of cols in A = ",#A[1])
Result
number of rows in A = 3 number of cols in A = 2