public class DenseVector extends AbstractVector
AbstractVector.LocalElement
Vector.Element
lengthSquared
Constructor and Description |
---|
DenseVector() |
DenseVector(DenseVector values,
boolean shallowCopy) |
DenseVector(double[] values) |
DenseVector(double[] values,
boolean shallowCopy) |
DenseVector(int cardinality) |
DenseVector(Vector vector) |
Modifier and Type | Method and Description |
---|---|
void |
addAll(Vector v) |
Vector |
assign(DenseVector vector) |
Vector |
assign(double value) |
Vector |
assign(Vector other,
DoubleDoubleFunction function) |
DenseVector |
clone() |
double |
dotSelf() |
boolean |
equals(Object o) |
double |
getLengthSquared() |
int |
getNumNondefaultElements() |
double |
getQuick(int index) |
boolean |
isDense() |
boolean |
isSequentialAccess() |
Iterator<Vector.Element> |
iterateNonZero() |
Iterator<Vector.Element> |
iterator() |
DenseVector |
like() |
void |
setQuick(int index,
double value) |
Vector |
viewPart(int offset,
int length) |
aggregate, aggregate, asFormatString, assign, assign, assign, assign, cross, divide, dot, get, getDistanceSquared, getElement, hashCode, logNormalize, logNormalize, logNormalize, maxValue, maxValueIndex, minus, minValue, minValueIndex, norm, normalize, normalize, plus, plus, set, size, times, times, toString, toString, zSum
finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public DenseVector()
public DenseVector(double[] values)
public DenseVector(double[] values, boolean shallowCopy)
public DenseVector(DenseVector values, boolean shallowCopy)
public DenseVector(int cardinality)
public DenseVector(Vector vector)
public DenseVector clone()
clone
in interface Vector
clone
in class AbstractVector
public boolean isDense()
public boolean isSequentialAccess()
public double dotSelf()
dotSelf
in class AbstractVector
public double getQuick(int index)
public DenseVector like()
public void setQuick(int index, double value)
public Vector assign(double value)
assign
in interface Vector
assign
in class AbstractVector
public Vector assign(Vector other, DoubleDoubleFunction function)
assign
in interface Vector
assign
in class AbstractVector
public Vector assign(DenseVector vector)
public int getNumNondefaultElements()
public Vector viewPart(int offset, int length)
viewPart
in interface Vector
viewPart
in class AbstractVector
public Iterator<Vector.Element> iterateNonZero()
public Iterator<Vector.Element> iterator()
public boolean equals(Object o)
equals
in class AbstractVector
public double getLengthSquared()
getLengthSquared
in interface Vector
getLengthSquared
in class AbstractVector
public void addAll(Vector v)