Hi,
I'm trying to port some Scalala code that created a Vector with a range of double values:
Vector.range(0, 40)
In Breeze that seems to be:
DenseVector(0.0 to 40.0 by 1.0)
But the vector that is created doesn't work with :* or :+
<console>:15: error: could not find implicit value for parameter op: breeze.linalg.operators.BinaryOp[breeze.linalg.DenseVector[scala.collection.immutable.NumericRange[Double]],Double,breeze.linalg.operators.OpMulScalar,That]
DenseVector(0.0 to 40.0 by 1.0) :* 2.0
(I know I could put the "2.0" after "by" in this case)
What is the correct way to create a vector(1.0, 2.0, 3.0, ...) and then be able to do math on it?
Thanks,
Allan
--
You received this message because you are subscribed to the Google Groups "Scala Breeze" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-breeze...@googlegroups.com.
To post to this group, send email to scala-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/scala-breeze/-/sNerGPOAT40J.
For more options, visit https://groups.google.com/groups/opt_out.