public abstract class AbstractVector extends Object implements Vector
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractVector.LocalElement |
Vector.Element| Modifier and Type | Field and Description |
|---|---|
protected double |
lengthSquared |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractVector(int size) |
finalize, getClass, notify, notifyAll, wait, wait, waitgetNumNondefaultElements, getQuick, isDense, isSequentialAccess, iterateNonZero, iterator, like, setQuickforEach, spliteratorpublic double aggregate(DoubleDoubleFunction aggregator, DoubleFunction map)
public double aggregate(Vector other, DoubleDoubleFunction aggregator, DoubleDoubleFunction combiner)
public Vector clone()
public double dotSelf()
public Vector.Element getElement(int index)
getElement in interface Vectorpublic Vector logNormalize()
logNormalize in interface Vectorpublic Vector logNormalize(double power)
logNormalize in interface Vectorpublic Vector logNormalize(double power, double normLength)
public double getLengthSquared()
getLengthSquared in interface Vectorpublic double getDistanceSquared(Vector v)
getDistanceSquared in interface Vectorpublic int maxValueIndex()
maxValueIndex in interface Vectorpublic int minValueIndex()
minValueIndex in interface Vectorpublic Vector assign(DoubleDoubleFunction f, double y)
public Vector assign(DoubleFunction function)
public Vector assign(Vector other, DoubleDoubleFunction function)
public String asFormatString()
asFormatString in interface Vector