hadamardProduct method

Matrix hadamardProduct(
  1. Matrix matrixB
)

Multiply two matrices

  • matrixB The matrix to multiply
  • Returns The new matrix

Implementation

Matrix hadamardProduct(Matrix matrixB) {
  return _performOperation(matrixB, (a, b) {
    if (a.isNaN || b.isNaN) {
      return 0.5;
    } else {
      return a * b;
    }
  });
}