public class VectorView extends AbstractVector
Modifier and Type | Class and Description |
---|---|
class |
VectorView.AllIterator |
class |
VectorView.NonZeroIterator |
AbstractVector.LocalElement
Vector.Element
lengthSquared
Constructor and Description |
---|
VectorView() |
VectorView(Vector vector,
int offset,
int cardinality) |
Modifier and Type | Method and Description |
---|---|
Vector |
clone() |
double |
getDistanceSquared(Vector v) |
double |
getLengthSquared() |
int |
getNumNondefaultElements() |
double |
getQuick(int index) |
boolean |
isDense() |
boolean |
isSequentialAccess() |
Iterator<Vector.Element> |
iterateNonZero() |
Iterator<Vector.Element> |
iterator() |
VectorView |
like() |
void |
setQuick(int index,
double value) |
Vector |
viewPart(int offset,
int length) |
aggregate, aggregate, asFormatString, assign, assign, assign, assign, assign, assign, cross, divide, dot, dotSelf, equals, get, 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 VectorView()
public VectorView(Vector vector, int offset, int cardinality)
public Vector clone()
clone
in interface Vector
clone
in class AbstractVector
public boolean isDense()
public boolean isSequentialAccess()
public VectorView like()
public double getQuick(int index)
public void setQuick(int index, double value)
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 double getLengthSquared()
getLengthSquared
in interface Vector
getLengthSquared
in class AbstractVector
public double getDistanceSquared(Vector v)
getDistanceSquared
in interface Vector
getDistanceSquared
in class AbstractVector