From 2784fc597b63ddac78954359d78e3d7a6478eba6 Mon Sep 17 00:00:00 2001 From: Tor Myklebust Date: Fri, 18 Apr 2014 10:15:20 -0400 Subject: [PATCH] Mention that this is probably fixed as of jblas 1.2.4; repunctuate. --- .../scala/org/apache/spark/mllib/recommendation/ALS.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mllib/src/main/scala/org/apache/spark/mllib/recommendation/ALS.scala b/mllib/src/main/scala/org/apache/spark/mllib/recommendation/ALS.scala index 87a2d44ed23f6..eb1190507dd25 100644 --- a/mllib/src/main/scala/org/apache/spark/mllib/recommendation/ALS.scala +++ b/mllib/src/main/scala/org/apache/spark/mllib/recommendation/ALS.scala @@ -304,9 +304,11 @@ class ALS private ( /** * Wrap a double array in a DoubleMatrix without creating garbage. + * This is a temporary fix for jblas 1.2.3; it should be safe to move back to the + * DoubleMatrix(double[]) constructor come jblas 1.2.4. */ private def wrapDoubleArray(v: Array[Double]): DoubleMatrix = { - new DoubleMatrix(v.length, 1, v:_*) + new DoubleMatrix(v.length, 1, v: _*) } /**