Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我如何在 ojAlgo 中将两个矩阵的对应元素相乘?寻找块功能c[i][j] = a[i][j] * b[i][j]
c[i][j] = a[i][j] * b[i][j]
有几种方法可以做到这一点。这是另一种选择:
matrixA.operateOnMatching(MULTIPLY, matrixB).supplyTo(matrixC);
其中 MULTIPLY 来自静态导入 (org.ojalgo.function.constant.PrimitiveMath)。