You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by me...@apache.org on 2014/07/13 01:55:49 UTC

git commit: SPARK-2462. Make Vector.apply public.

Repository: spark
Updated Branches:
  refs/heads/master 1a7d7cc85 -> 4c8be64e7


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 <sa...@cloudera.com>

Closes #1389 from sryza/sandy-spark-2462 and squashes the following commits:

2e5e201 [Sandy Ryza] SPARK-2462.  Make Vector.apply public.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/4c8be64e
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/4c8be64e
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/4c8be64e

Branch: refs/heads/master
Commit: 4c8be64e768fe71643b37f1e82f619c8aeac6eff
Parents: 1a7d7cc
Author: Sandy Ryza <sa...@cloudera.com>
Authored: Sat Jul 12 16:55:15 2014 -0700
Committer: Xiangrui Meng <me...@databricks.com>
Committed: Sat Jul 12 16:55:15 2014 -0700

----------------------------------------------------------------------
 mllib/src/main/scala/org/apache/spark/mllib/linalg/Vectors.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/4c8be64e/mllib/src/main/scala/org/apache/spark/mllib/linalg/Vectors.scala
----------------------------------------------------------------------
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 c818a0b..77b3e8c 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)
 }
 
 /**