简体   繁体   English

Scala 微风错误:找不到参数的隐式值

[英]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.

相关问题 使用Scala和Breeze实现梯度下降-错误:找不到参数op的隐式值: - Implementing gradient descent with Scala and Breeze - error : could not find implicit value for parameter op: 斯卡拉<console> :24: 错误: 找不到微风.storage.DefaultArrayValue [Any] 类型的证据参数的隐式值 - Scala <console>:24: error: could not find implicit value for evidence parameter of type breeze.storage.DefaultArrayValue[Any] Scala错误无法找到参数的隐式值 - Scala error Could not find implicit value for parameter Scala编译错误-找不到类型为证据的隐式值 - Scala compile error - could not find implicit value for evidence parameter of type 在Scala中找不到参数的隐式值 - Could not find implicit value for parameter in scala Vector上的Breeze argmax:找不到隐式值 - Breeze argmax on Vector: could not find implicit value Scala类型参数化,Shapeless-找不到参数Generic的隐式值 - Scala type parameterization, Shapeless - could not find implicit value for parameter Generic 加特林scala扩展失败,找不到证据参数的隐式值 - Gatling scala extension fails with, could not find implicit value for evidence parameter Scala,类型找不到参数n的隐式值 - Scala, Type could not find implicit value for parameter n 使用Scala的生成器习惯用法时,运行时“找不到参数的隐式值”错误 - Runtime “could not find implicit value for parameter” error when using Scala's builder idiom
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM