times
Extension function to multiply a scalar by a SparseMatrix.
Return
A new SparseMatrix with all elements multiplied by the scalar.
Parameters
matrix
The SparseMatrix to multiply.
Multiplies this sparse matrix with another matrix and returns the resulting matrix.
Return
The resulting matrix after multiplication.
Parameters
other
The matrix to multiply with this sparse matrix.
Throws
If the number of columns in this matrix does not match the number of rows in the other matrix.