diff --git a/nd4s/src/main/scala/org/nd4s/Implicits.scala b/nd4s/src/main/scala/org/nd4s/Implicits.scala index 76e75b95d..204b4bbc1 100644 --- a/nd4s/src/main/scala/org/nd4s/Implicits.scala +++ b/nd4s/src/main/scala/org/nd4s/Implicits.scala @@ -48,7 +48,7 @@ object Implicits { Nd4j.create(underlying, shape, ord.value, offset) def asNDArray(shape: Int*): INDArray = - Nd4j.create(underlying, shape.toArray) + Nd4j.create(underlying, shape.toArray: _*) def toNDArray: INDArray = Nd4j.create(underlying) } @@ -64,7 +64,7 @@ object Implicits { Nd4j.create(underlying, shape, offset, ord.value) def asNDArray(shape: Int*): INDArray = - Nd4j.create(underlying, shape.toArray) + Nd4j.create(underlying, shape.toArray: _*) def toNDArray: INDArray = Nd4j.create(underlying) } @@ -80,7 +80,7 @@ object Implicits { Nd4j.create(underlying.map(_.toFloat), shape, ord.value, offset) def asNDArray(shape: Int*): INDArray = - Nd4j.create(underlying.map(_.toFloat), shape.toArray) + Nd4j.create(underlying.map(_.toFloat), shape.toArray: _*) def toNDArray: INDArray = Nd4j.create(underlying.map(_.toFloat).toArray) } diff --git a/nd4s/src/main/scala/org/nd4s/OperatableNDArray.scala b/nd4s/src/main/scala/org/nd4s/OperatableNDArray.scala index 8ea927062..82a227e02 100644 --- a/nd4s/src/main/scala/org/nd4s/OperatableNDArray.scala +++ b/nd4s/src/main/scala/org/nd4s/OperatableNDArray.scala @@ -25,7 +25,7 @@ trait OperatableNDArray[A <: INDArray] { val underlying: A // to keep compatibility with Predef.any2stringadd syntax. - def +(that: String): String = underlying.toString + that + def +(that: String): String = underlying.toString() + that // --- INDArray operators def +(that: INDArray)(implicit ev: NDArrayEvidence[A, _]): A =