public final class IndexedSubVector extends AVector
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
indexes |
protected int |
length |
| Modifier and Type | Method and Description |
|---|---|
IndexedSubVector |
exactClone()
Returns an exact clone of this vector, i.e.
|
double |
get(int i)
Returns the double value at the specified position in a 1D vector
|
boolean |
isView()
Returns true if this vector is of a view type that 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.
|
void |
validate()
Validates the internal data structure of the INDArray.
|
static IndexedSubVector |
wrap(AVector source,
int[] indexes) |
abs, add, add, add, add, add, add, addAt, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultipleToArray, addProduct, addProduct, addProduct, addProductToArray, addProductToArray, addToArray, addToArray, addWeighted, angle, applyOp, applyOp, asElementList, asVector, broadcast, clamp, clampMax, clampMin, clone, compareTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, countZeros, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divideTo, dotProduct, dotProduct, elementCount, elementSquaredSum, elementSum, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, fill, fillRange, get, getElements, getLongShape, getShape, getShape, getSlices, getTranspose, getTransposeView, hashCode, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isFullyMutable, isMutable, isUnitLengthVector, isZeroVector, iterator, join, log, magnitude, magnitudeSquared, maxAbsElement, multiply, multiply, multiply, multiply, multiplyTo, negate, nonZeroCount, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, pow, projectToPlane, reshape, scale, scaleAdd, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, set, set, setElements, setElements, setValues, signum, slice, slice, sliceCount, square, sub, sub, sub, subMultiple, toArray, toDoubleBuffer, toList, toString, toVectorepsilonEquals, epsilonEquals, exp, get, get, getSliceViews, reciprocal, scale, set, set, sqrtfinalize, getClass, notify, notifyAll, wait, wait, waitepsilonEquals, epsilonEquals, exp, get, get, getSliceViews, reciprocal, scale, set, set, sqrtpublic static IndexedSubVector wrap(AVector source, int[] indexes)
public double get(int i)
INDArraypublic void set(int i,
double value)
public IndexedSubVector subVector(int offset, int length)
AVectorpublic IndexedSubVector exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorpublic boolean isView()
AVectorpublic int length()
public void validate()
INDArrayCopyright © 2013. All Rights Reserved.