matrixGetLength0
matrixGetLength0 is a utility function used in matrix and tensor libraries to retrieve the size of the zero-th dimension of a given matrix or array. In 0-based indexing, this length corresponds to the number of rows in a two-dimensional matrix and to the size of the first axis in higher-dimensional tensors.
The function takes a single parameter, the matrix or tensor, and returns an integer representing the extent
Examples help illustrate its use. For a 3-by-4 matrix A, matrixGetLength0(A) yields 3. For a tensor with
Implementation notes: in many languages, matrixGetLength0 is a thin wrapper around existing properties such as shape[0],