1

Can anyone tell me how to multiply corresponding elements of two matrices in ojAlgo? Looking for block function for c[i][j] = a[i][j] * b[i][j]

apete
  • 1,250
  • 1
  • 10
  • 16
Sree
  • 117
  • 1
  • 11
  • Also can anyone with enough points create this tag "ojAlgo" for this high performance math library ? – Sree Jan 15 '17 at 19:09

1 Answers1

1

There are several ways to do that. Here's one alternative:

matrixA.operateOnMatching(MULTIPLY, matrixB).supplyTo(matrixC);

Where MULTIPLY comes from a static import (org.ojalgo.function.constant.PrimitiveMath).

apete
  • 1,250
  • 1
  • 10
  • 16