public interface ImmutableVector
Modifier and Type | Method and Description |
---|---|
double |
dot(Vector that)
Computes the inner product with another Vector.
|
double |
get(int i)
Access the value of the Vector at dimension i.
|
Tuple<Integer,Double> |
min()
Computes the min of all entries in the Vector.
|
double |
norm2()
Computes the L2 norm of this Vector.
|
double |
norm2Sqr()
Computes the square of the L2 norm of this Vector.
|
int |
size()
The size (dimensionality) of the Vector.
|
double |
sum()
Computes the computeSum of all entries in the Vector.
|
double get(int i)
i
- indexint size()
double dot(Vector that)
that
- double sum()
double norm2()
double norm2Sqr()
Copyright © 2017 The Apache Software Foundation. All rights reserved.