Skip to content

Commit ad534f2

Browse files
committed
made norm method public
1 parent 5110a6f commit ad534f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mllib/src/main/scala/org/apache/spark/mllib/linalg/Vectors.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ object Vectors {
268268
* @param p norm.
269269
* @return norm in L^p^ space.
270270
*/
271-
private[spark] def norm(vector: Vector, p: Double): Double = {
271+
def norm(vector: Vector, p: Double): Double = {
272272
require(p >= 1.0)
273273
val values = vector match {
274274
case dv: DenseVector => dv.values

0 commit comments

Comments
 (0)