public interface Vector extends ImmutableVector, Serializable
Modifier and Type | Method and Description |
---|---|
void |
add(Vector that)
Adds the Vector that to this one in place: this += that.
|
void |
multAdd(double factor,
ImmutableVector that)
this += factor * that.
|
Vector |
newInstance()
Create a new instance of the current type.
|
void |
normalize()
Normalizes the Vector according to the L2 norm.
|
void |
scale(double factor)
Scales this Vector: this *= factor.
|
void |
set(int i,
double v)
Set dimension i of the Vector to value v.
|
void set(int i, double v)
i
- the indexv
- valuevoid add(Vector that)
that
- void multAdd(double factor, ImmutableVector that)
factor
- that
- void scale(double factor)
factor
- the scaling factor.void normalize()
Vector newInstance()
Copyright © 2017 The Apache Software Foundation. All rights reserved.