add method

Matrix add(
  1. Matrix matrixB
)

Add two matrices

  • matrixB The matrix to add
  • Returns The new matrix

Implementation

Matrix add(Matrix matrixB) {
  return _performOperation(matrixB, (a, b) => a + b);
}