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 5110a6f commit ad534f2Copy full SHA for ad534f2
mllib/src/main/scala/org/apache/spark/mllib/linalg/Vectors.scala
@@ -268,7 +268,7 @@ object Vectors {
268
* @param p norm.
269
* @return norm in L^p^ space.
270
*/
271
- private[spark] def norm(vector: Vector, p: Double): Double = {
+ def norm(vector: Vector, p: Double): Double = {
272
require(p >= 1.0)
273
val values = vector match {
274
case dv: DenseVector => dv.values
0 commit comments