File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
main/scala/org/apache/spark/mllib/recommendation
test/scala/org/apache/spark/mllib/recommendation Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -237,9 +237,8 @@ class ALS private (
237237 }
238238
239239 /**
240- * Adding x * x.t to a matrix, the same as BLAS's DSPR.
240+ * Adds alpha * x * x.t to a matrix in-place. This is the same as BLAS's DSPR.
241241 *
242- * @param x a vector of length n
243242 * @param L the lower triangular part of the matrix packed in an array (row major)
244243 */
245244 private def dspr (alpha : Double , x : DoubleMatrix , L : DoubleMatrix ) = {
Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ import scala.util.Random
2323
2424import org .scalatest .FunSuite
2525
26- import org .jblas ._
26+ import org .jblas .DoubleMatrix
2727
28- import org .apache .spark .SparkContext ._
2928import org .apache .spark .mllib .util .LocalSparkContext
29+ import org .apache .spark .SparkContext ._
3030
3131object ALSSuite {
3232
You can’t perform that action at this time.
0 commit comments