[英]Scala breeze error: could not find implicit value for parameter
I'm using the breeze package on scala. I simply want do to a matrix product: A*At.我在 scala 上使用 breeze package。我只是想做一个矩阵乘积:A*At。 However I get this error:
但是我收到此错误:
could not find implicit value for parameter op: breeze.linalg.operators.OpMulMatrix.Impl2[breeze.linalg.Matrix[Double],breeze.linalg.Transpose[breeze.linalg.Matrix[Double]],That]
I'm quite sure the problem is in the input matrix's format since it comes from a function I wrote, but I don't know how I could solve it.我很确定问题出在输入矩阵的格式上,因为它来自我写的 function,但我不知道如何解决它。
Thanks in advance提前致谢
In general, it's better if you can give a bit more context (eg a code snippet), but unfortunately I guess that doesn't work for Matrix (as opposed to DenseMatrix or CSCMatrix).一般来说,如果您能提供更多上下文(例如代码片段)会更好,但不幸的是,我猜这对 Matrix 不起作用(与 DenseMatrix 或 CSCMatrix 相对)。 I recommend picking one of those types and using it instead.
我建议选择其中一种类型并使用它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.