Skip to content

Commit

Permalink
made norm method public
Browse files Browse the repository at this point in the history
  • Loading branch information
ganonp committed Dec 20, 2014
1 parent 5110a6f commit ad534f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ object Vectors {
* @param p norm.
* @return norm in L^p^ space.
*/
private[spark] def norm(vector: Vector, p: Double): Double = {
def norm(vector: Vector, p: Double): Double = {
require(p >= 1.0)
val values = vector match {
case dv: DenseVector => dv.values
Expand Down

0 comments on commit ad534f2

Please sign in to comment.