public final class IndexedArrayVector extends ASizedVector
Modifier and Type | Field and Description |
---|---|
protected int[] |
indexes |
length
Modifier and Type | Method and Description |
---|---|
IndexedArrayVector |
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.
|
void |
set(int i,
double value)
Set a specified element in a vector
|
AVector |
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 IndexedArrayVector |
wrap(double[] data,
int[] indexes) |
elementCount, getShape, getShape, getShapeClone, length, sliceCount
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, asDoubleArray, asElementList, asVector, broadcast, broadcastLike, broadcastLike, clamp, clampMax, clampMin, clone, compareTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divide, divideTo, dotProduct, dotProduct, dotProduct, dotProduct, elementIterator, elementMax, elementMin, elementSquaredSum, elementSum, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, equalsArray, fill, fillRange, get, get, get, get, getElements, getLongShape, getSlices, getTranspose, getTransposeCopy, getTransposeView, hashCode, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isFullyMutable, isMutable, isSameShape, isSameShape, isUnitLengthVector, isZero, iterator, join, join, log, logistic, magnitude, magnitudeSquared, maxAbsElement, maxAbsElementIndex, maxElement, maxElementIndex, minElement, minElementIndex, multiply, multiply, multiply, multiply, multiplyTo, mutable, negate, nonSparseIndexes, nonZeroCount, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, pow, projectToPlane, reshape, rotateView, rotateView, scale, scaleAdd, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, set, set, setElements, setElements, setRange, setValues, signum, slice, slice, sparse, sparseClone, square, sub, sub, sub, subArray, subMultiple, tanh, toDoubleArray, toDoubleBuffer, toList, toNormal, toString, toVector, unsafeGet, unsafeGetInteger, unsafeSet, unsafeSetInteger, zeroCount
broadcastCloneLike, density, ensureMutable, exp, getSlices, getSliceViews, isBoolean, reciprocal, scale, set, set, sqrt, toArray
finalize, getClass, notify, notifyAll, wait, wait, wait
broadcastCloneLike, ensureMutable, exp, getSlices, getSliceViews, isBoolean, reciprocal, scale, set, set, sqrt, toArray
public static IndexedArrayVector wrap(double[] data, int[] indexes)
public double get(int i)
INDArray
public void set(int i, double value)
IVector
public AVector subVector(int offset, int length)
AVector
public IndexedArrayVector exactClone()
AVector
exactClone
in interface INDArray
exactClone
in class AVector
public boolean isView()
AVector
public void validate()
INDArray
Copyright © 2014. All Rights Reserved.