subtract method

Matrix subtract(
  1. Matrix matrixB
)

Subtract two matrices

  • matrixB The matrix to subtract
  • Returns The new matrix

Implementation

Matrix subtract(Matrix matrixB) {
  return _performOperation(matrixB, (a, b) => a - b);
}