Gets the (i, j)-th element.
Returns an iterator of column vectors.
Returns an iterator of column vectors. This operation could be expensive, depending on the underlying storage.
Get a deep copy of the matrix.
Find the number of values stored explicitly.
Find the number of values stored explicitly. These values can be zero as well.
Number of columns.
Find the number of non-zero active values.
Number of rows.
Transpose the Matrix.
Transpose the Matrix. Returns a new Matrix instance sharing the same underlying data.
Flag that keeps track whether the matrix is transposed or not.
Flag that keeps track whether the matrix is transposed or not. False by default.
Convenience method for Matrix-Vector multiplication.
Convenience method for Matrix-DenseVector multiplication.
Convenience method for Matrix-DenseVector multiplication. For binary compatibility.
Convenience method for Matrix-DenseMatrix multiplication.
Returns an iterator of row vectors.
Returns an iterator of row vectors. This operation could be expensive, depending on the underlying storage.
Converts to a dense array in column major.
A human readable representation of the matrix with maximum lines and width
A human readable representation of the matrix
A human readable representation of the matrix
Trait for a local matrix.