Github user mbittmann commented on a diff in the pull request:
https://github.com/apache/spark/pull/4433#discussion_r24282208
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/linalg/EigenValueDecomposition.scala
---
@@ -79,6 +79,10 @@ private[mllib] object EigenValueDecomposition {
// Mode 1: A*x = lambda*x, A symmetric
iparam(6) = 1
+ require(ncv * n.toLong <= Integer.MAX_VALUE, "Product of 2*k*n must be
smaller than " +
--- End diff --
Okay, I think i figured out what you are saying. Take a look. The check on
k may be overkill, since by definition it must be less than n. Therefore k*n is
always greater than k*k. There could always be that weird scenario though.
Thanks for the help.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]