【问题标题】:Elementwise multiplication two matrices or PrimitiveDenseStores in ojAlgoojAlgo中的元素乘法两个矩阵或PrimitiveDenseStores
【发布时间】:2017-01-15 19:06:47
【问题描述】:

谁能告诉我如何在 ojAlgo 中将两个矩阵的对应元素相乘? 为c[i][j] = a[i][j] * b[i][j]寻找块函数

【问题讨论】:

  • 任何有足够积分的人都可以为这个高性能数学库创建这个标签“ojAlgo”吗?

标签: java matrix ojalgo


【解决方案1】:

有几种方法可以做到这一点。这是另一种选择:

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

MULTIPLY 来自静态导入​​ (org.ojalgo.function.constant.PrimitiveMath)。

【讨论】:

  • 这里不应该SUBTRACTMULTIPLY 吗?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-01-06
  • 1970-01-01
  • 2013-12-27
  • 2015-01-08
  • 2014-11-13
相关资源
最近更新 更多