$m
$m : integer
The number of rows, regardless of whether or not some are empty.
A sparse matrix implementation based on an associative array of associative arrays.
A SparseMatrix is mostly a wrapper around an array of arrays, but it keeps track of some extra information such as the true matrix dimensions, and the number of non-zero entries. It also provides a convenience method for partitioning the matrix rows into two new sparse matrices.
partition(array $a_indices, array $b_indices) : array
Given two sets of row indices, returns two new sparse matrices consisting of the corresponding rows.
array | $a_indices | row indices for first new sparse matrix |
array | $b_indices | row indices for second new sparse matrix |
array with two entries corresponding to the first and second new matrices