We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f38ef65 commit 7afac23Copy full SHA for 7afac23
mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala
@@ -131,7 +131,7 @@ class RowMatrix(
131
throw new IllegalArgumentException(s"Argument with more than 65535 cols: $cols")
132
}
133
if (cols > 10000) {
134
- val mem = cols * cols * 8
+ val mem = (math.pow(cols, 2) * 8).formatted("%,.0f")
135
logWarning(s"$cols columns will require at least $mem bytes of memory!")
136
137
0 commit comments