minus

operator fun Matrix.minus(other: Matrix): Matrix(source)


operator fun SparseMatrix.minus(other: Matrix): Matrix(source)

Extension function to subtract a Matrix from a SparseMatrix.

Return

A new Matrix that is the difference of the two matrices.

Parameters

other

The Matrix to subtract.

Throws

If the dimensions of the matrices don't match.


operator fun Matrix.minus(other: SparseMatrix): Matrix(source)

Extension function to subtract a SparseMatrix from a Matrix.

Return

A new Matrix that is the difference of the two matrices.

Parameters

other

The SparseMatrix to subtract.

Throws

If the dimensions of the matrices don't match.