hadamardProduct method
Multiply two matrices
matrixBThe 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;
}
});
}