matrixGetLength1
matrixGetLength1 is a function used in some numerical computing libraries to obtain the size of the first dimension of a matrix or array. It is commonly applied to two-dimensional matrices to determine the number of rows, but the function is defined for higher-dimensional arrays as well.
In typical implementations, matrixGetLength1 returns the extent of the first axis. For a rank-2 matrix, this
The return value is an integer representing the size of the first dimension. Access is typically O(1)
Examples help illustrate its use. For a matrix A with shape (3, 4), matrixGetLength1(A) yields 3. For
See also: matrixGetLength2 for the second dimension, size or Dimensions for general shape queries.