Closed LLCampos closed 3 years ago
Here it is written that "Elementwise multiplication" is done through a :* b. But this doesn't seem to work?
a :* b
import breeze.linalg._ val v1 = DenseVector(1.0, 2.0, 3.0) v1 :* 2
Scala 2.13.6, breeze 1.2
The operator has been renamed to avoid surprising precedence. So
v1 *:* 2.0
should do what you want. The docs do need updating accordingly.
fixed the docs!
Here it is written that "Elementwise multiplication" is done through
a :* b
. But this doesn't seem to work?Scala 2.13.6, breeze 1.2