public final class IndexedSubVector 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 references other vectors / data.
|
int |
length() |
void |
set(int i,
double value) |
IndexedSubVector |
subVector(int offset,
int length)
Obtains a sub-vector that refers to this vector.
|
static IndexedSubVector |
wrap(AVector source,
int[] indexes) |
add, addMultiple, angle, approxEquals, approxEquals, clone, compareTo, copy, copyTo, copyTo, distance, distanceSquared, dotProduct, equals, fill, hashCode, isMutable, isUnitLengthVector, isZeroVector, join, magnitude, magnitudeSquared, manhattanDistance, multiply, negate, normalise, set, setValues, subtract, subtractMultiple, toList, toStringpublic static IndexedSubVector wrap(AVector source, int[] indexes)
public IndexedSubVector subVector(int offset, int length)
AVectorpublic boolean isReference()
AVectorisReference in class AVectorCopyright © 2012. All Rights Reserved.