scalanlp / breeze

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

No implicit arguments of type: Zero[DenseVector[Double]] #848

Closed redakhoufache closed 1 year ago

redakhoufache commented 1 year ago

Since I have upgraded Breeze library from version 1.0 to version 2.1.0 I cannot create a DenseMatrix[DenseVector[Double]] I got the following error:

No implicit arguments of type: Zero[DenseVector[Double]] Here is an example of a code

`import breeze.linalg.{DenseMatrix, DenseVector} import breeze.math.Ring.ringFromField

object Example {

def main(args: Array[String]) { val list = Array(DenseVector(0.12), DenseVector(0.0), DenseVector(0.0),DenseVector(0.12)) val mat = DenseMatrix(list).reshape(2,2) } } ` The code works fine with breeze 1.0! Does anyone know how to solve this? Thank you!