scalanlp / breeze

Breeze is a numerical processing library for Scala.
www.scalanlp.org
Apache License 2.0
3.44k stars 691 forks source link

Misleading docs? #815

Closed LLCampos closed 3 years ago

LLCampos commented 3 years ago

Here it is written that "Elementwise multiplication" is done through a :* b. But this doesn't seem to work?

import breeze.linalg._

val v1 = DenseVector(1.0, 2.0, 3.0)

 v1 :* 2

Scala 2.13.6, breeze 1.2

darrenjw commented 3 years ago

The operator has been renamed to avoid surprising precedence. So

v1 *:* 2.0

should do what you want. The docs do need updating accordingly.

dlwh commented 3 years ago

fixed the docs!