public class VectorWithNorm
extends Object
implements scala.Serializable
Constructor and Description |
---|
VectorWithNorm(double[] array) |
VectorWithNorm(Vector vector) |
VectorWithNorm(Vector vector,
double norm) |
Modifier and Type | Method and Description |
---|---|
double |
norm() |
VectorWithNorm |
toDense()
Converts the vector to a dense vector.
|
Vector |
vector() |
public VectorWithNorm(Vector vector, double norm)
public VectorWithNorm(Vector vector)
public VectorWithNorm(double[] array)
public Vector vector()
public double norm()
public VectorWithNorm toDense()