public class IndexVector extends AConstrainedVector
| Modifier and Type | Method and Description |
|---|---|
AVector |
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
|
void |
getElements(double[] data,
int offset)
Gets all elements of the array, copying them into a double array
|
int |
length() |
static IndexVector |
of(int... values) |
IndexVector |
ofDoubles(double... values) |
void |
set(int i,
double value) |
double |
unsafeGet(int i) |
void |
unsafeSet(int i,
double value) |
void |
validate()
Validates the internal data structure of the INDArray.
|
static IndexVector |
wrap(Index a) |
isElementConstrained, isFullyMutableabs, 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, elementCount, elementIterator, elementSquaredSum, elementSum, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, equalsArray, fill, fillRange, get, get, get, getLongShape, getShape, getShape, getShapeClone, getSlices, getTranspose, getTransposeCopy, getTransposeView, hashCode, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isMutable, isSameShape, isSameShape, isUnitLengthVector, isView, isZero, iterator, join, join, log, logistic, magnitude, magnitudeSquared, maxAbsElement, multiply, multiply, multiply, multiply, multiplyTo, mutable, negate, 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, sliceCount, square, sub, sub, sub, subArray, subMultiple, subVector, tanh, toDoubleArray, toDoubleBuffer, toList, toNormal, toString, toVector, zeroCountbroadcastCloneLike, ensureMutable, exp, get, getSlices, getSliceViews, isBoolean, reciprocal, scale, set, set, sqrt, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waitbroadcastCloneLike, ensureMutable, exp, get, getSlices, getSliceViews, isBoolean, reciprocal, scale, set, set, sqrt, toArraypublic static IndexVector of(int... values)
public IndexVector ofDoubles(double... values)
public static IndexVector wrap(Index a)
public int length()
public double get(int i)
INDArraypublic void set(int i,
double value)
public void getElements(double[] data,
int offset)
INDArraygetElements in interface INDArraygetElements in class AVectorpublic AVector exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorpublic void validate()
INDArrayCopyright © 2013. All Rights Reserved.