3

When using Breeze do I have to import some implicit conversions to make prefix scalar multiplication work?

val v = DenseVector(1.0, 2.0, 3.0)
val r = 2.0 * v

The above doesn't work, where as:

val r = v * 2.0

Does work.

4

1 回答 1

3

Breeze 目前没有为 Double 等定义任何隐式转换。我应该添加它们,但还没有。

于 2014-11-04T08:44:40.797 回答