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 (
237
237
}
238
238
239
239
/**
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.
241
241
*
242
- * @param x a vector of length n
243
242
* @param L the lower triangular part of the matrix packed in an array (row major)
244
243
*/
245
244
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
23
23
24
24
import org .scalatest .FunSuite
25
25
26
- import org .jblas ._
26
+ import org .jblas .DoubleMatrix
27
27
28
- import org .apache .spark .SparkContext ._
29
28
import org .apache .spark .mllib .util .LocalSparkContext
29
+ import org .apache .spark .SparkContext ._
30
30
31
31
object ALSSuite {
32
32
You can’t perform that action at this time.
0 commit comments