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.

The Sockmonster
  • 189
  • 1
  • 8

1 Answers1

3

Breeze doesn't define any implicit conversions for Double etc. right now. I should add them, but there's nothing yet.

dlwh
  • 2,257
  • 11
  • 23