diff options
author | Sandy Ryza <sandy@cloudera.com> | 2014-07-12 16:55:15 -0700 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2014-07-12 16:55:15 -0700 |
commit | 4c8be64e768fe71643b37f1e82f619c8aeac6eff (patch) | |
tree | 358b0241bedd5032b1bac50af0df7bc8c9c81266 /mllib/src | |
parent | 1a7d7cc85fb24de21f1cde67d04467171b82e845 (diff) | |
download | spark-4c8be64e768fe71643b37f1e82f619c8aeac6eff.tar.gz spark-4c8be64e768fe71643b37f1e82f619c8aeac6eff.tar.bz2 spark-4c8be64e768fe71643b37f1e82f619c8aeac6eff.zip |
SPARK-2462. Make Vector.apply public.
Apologies if there's an already-discussed reason I missed for why this doesn't make sense.
Author: Sandy Ryza <sandy@cloudera.com>
Closes #1389 from sryza/sandy-spark-2462 and squashes the following commits:
2e5e201 [Sandy Ryza] SPARK-2462. Make Vector.apply public.
Diffstat (limited to 'mllib/src')
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/mllib/linalg/Vectors.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/mllib/linalg/Vectors.scala b/mllib/src/main/scala/org/apache/spark/mllib/linalg/Vectors.scala index c818a0b9c3..77b3e8c714 100644 --- a/mllib/src/main/scala/org/apache/spark/mllib/linalg/Vectors.scala +++ b/mllib/src/main/scala/org/apache/spark/mllib/linalg/Vectors.scala @@ -62,7 +62,7 @@ trait Vector extends Serializable { * Gets the value of the ith element. * @param i index */ - private[mllib] def apply(i: Int): Double = toBreeze(i) + def apply(i: Int): Double = toBreeze(i) } /** |