public final class IndexedArrayVector extends AVector
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
indexes |
protected int |
length |
| Modifier and Type | Method and Description |
|---|---|
double |
get(int i) |
boolean |
isReference()
Returns true if this vector is of a type that references other vectors / data.
|
int |
length() |
void |
set(int i,
double value) |
IndexedArrayVector |
subVector(int offset,
int length)
Obtains a sub-vector that refers to this vector.
|
static IndexedArrayVector |
wrap(double[] data,
int[] indexes) |
absolute, add, add, addMultiple, addMultiple, addMultiple, addMultipleToArray, addProduct, addProduct, addProduct, addToArray, addWeighted, angle, asList, asVector, clamp, clampMax, clampMin, clone, compareTo, copy, copyTo, copyTo, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divideTo, dotProduct, dotProduct, elementSum, epsilonEquals, epsilonEquals, equals, fill, fillRange, get, hashCode, interpolate, interpolate, isFullyMutable, isMutable, isUnitLengthVector, isZeroVector, iterator, join, magnitude, magnitudeSquared, maxAbsElement, multiply, multiply, multiply, multiplyTo, negate, normalise, normaliseMaxAbsElement, projectToPlane, reshape, scale, scale, scaleAdd, scaleToMagnitude, set, set, set, set, setValues, sub, subMultiple, toArray, toList, toStringpublic static IndexedArrayVector wrap(double[] data, int[] indexes)
public double get(int i)
public void set(int i,
double value)
public IndexedArrayVector subVector(int offset, int length)
AVectorpublic boolean isReference()
AVectorisReference in class AVectorCopyright © 2013. All Rights Reserved.