You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ma...@apache.org on 2014/01/22 23:01:49 UTC
[06/50] git commit: cleanup documentation
cleanup documentation
Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/3369c2d4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/3369c2d4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/3369c2d4
Branch: refs/heads/master
Commit: 3369c2d48795d831acd841b8ecb67b5a84083883
Parents: bdb5037
Author: Reza Zadeh <ri...@gmail.com>
Authored: Fri Dec 27 00:41:46 2013 -0500
Committer: Reza Zadeh <ri...@gmail.com>
Committed: Fri Dec 27 00:41:46 2013 -0500
----------------------------------------------------------------------
.../src/main/scala/org/apache/spark/mllib/linalg/sparsesvd.scala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/3369c2d4/mllib/src/main/scala/org/apache/spark/mllib/linalg/sparsesvd.scala
----------------------------------------------------------------------
diff --git a/mllib/src/main/scala/org/apache/spark/mllib/linalg/sparsesvd.scala b/mllib/src/main/scala/org/apache/spark/mllib/linalg/sparsesvd.scala
index a799aa3..1c9f67e 100644
--- a/mllib/src/main/scala/org/apache/spark/mllib/linalg/sparsesvd.scala
+++ b/mllib/src/main/scala/org/apache/spark/mllib/linalg/sparsesvd.scala
@@ -29,7 +29,7 @@ import org.jblas.{DoubleMatrix, Singular, MatrixFunctions}
* Given an m x n matrix A, this will compute matrices U, S, V such that
* A = U * S * V'
*
- * There is no restriction on m, but we require n doubles to be held in memory.
+ * There is no restriction on m, but we require n^2 doubles to fit in memory.
* Further, n should be less than m.
*
* This is computed by first computing A'A = V S^2 V',
@@ -81,7 +81,7 @@ object SVD {
}.reduceByKey(_+_)
- // Constructi jblas A^T A locally
+ // Construct jblas A^T A locally
val ata = DoubleMatrix.zeros(n, n)
for(entry <- emits.toArray) {
ata.put(entry._1._1-1, entry._1._2-1, entry._2)