public final class StridedVector extends AStridedVector
| Modifier and Type | Method and Description |
|---|---|
void |
add(AStridedVector v) |
void |
add(AVector v)
Adds another vector to this one
|
void |
addAt(int i,
double value)
Adds a value to a specific element of the vector
This function does not perform bounds checking
|
double |
dotProduct(AVector v) |
StridedVector |
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
|
double[] |
getArray() |
int |
getArrayOffset() |
void |
getElements(double[] dest,
int destOffset)
Gets all elements of the array, copying them into a double array
|
int |
getStride() |
boolean |
isFullyMutable()
Returns true if this vector is fully mutable, i.e.
|
boolean |
isMutable()
Returns true if this vector is mutable.
|
boolean |
isView()
Returns true if this vector is of a view type that references other vectors / data.
|
int |
length() |
void |
set(AVector v)
Sets the vector to equal the value of another vector
|
void |
set(int i,
double value) |
AVector |
subVector(int start,
int length)
Obtains a sub-vector that refers to this vector.
|
double |
unsafeGet(int i) |
void |
unsafeSet(int i,
double value) |
void |
validate()
Validates the internal data structure of the INDArray.
|
static StridedVector |
wrap(double[] data,
int offset,
int length,
int stride) |
static StridedVector |
wrapStrided(double[] data,
int offset,
int length,
int stride) |
add, asDoubleArray, broadcast, broadcastLike, broadcastLike, clone, dotProduct, ensureMutable, getStride, getStrides, isPackedArray, iteratorabs, add, add, add, add, add, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultipleToArray, addProduct, addProduct, addProduct, addProductToArray, addProductToArray, addToArray, addToArray, addWeighted, angle, applyOp, applyOp, asElementList, asVector, clamp, clampMax, clampMin, compareTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divide, divideTo, dotProduct, dotProduct, elementCount, elementIterator, elementSquaredSum, elementSum, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, equalsArray, fill, fillRange, get, get, get, getLongShape, getShape, getShape, getSlices, getTranspose, getTransposeCopy, getTransposeView, hashCode, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isSameShape, isSameShape, isUnitLengthVector, isZero, join, log, logistic, magnitude, magnitudeSquared, maxAbsElement, multiply, multiply, multiply, multiply, multiplyTo, mutable, negate, nonZeroCount, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, pow, projectToPlane, reshape, scale, scaleAdd, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, set, setElements, setElements, setRange, setValues, signum, slice, slice, sliceCount, square, sub, sub, sub, subMultiple, tanh, toDoubleArray, toDoubleBuffer, toList, toNormal, toString, toVector, zeroCountbroadcastCloneLike, exp, get, getSliceViews, isBoolean, reciprocal, scale, set, set, sqrt, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waitgetShapeabs, add, add, applyOp, applyOp, asElementList, asVector, broadcastCloneLike, clamp, copyTo, dimensionality, divide, divide, elementCount, elementIterator, elementSquaredSum, elementSum, epsilonEquals, epsilonEquals, equals, exp, fill, get, get, get, getLongShape, getShape, getSlices, getSliceViews, getTranspose, getTransposeCopy, getTransposeView, innerProduct, isBoolean, isElementConstrained, isSameShape, isZero, log, multiply, multiply, negate, nonZeroCount, outerProduct, pow, reciprocal, reshape, scale, scaleAdd, set, set, set, set, set, setElements, setElements, signum, slice, slice, sliceCount, sqrt, square, sub, sub, toArray, toDoubleArray, toDoubleBuffer, toVectorpublic static StridedVector wrapStrided(double[] data, int offset, int length, int stride)
public static StridedVector wrap(double[] data, int offset, int length, int stride)
public int length()
public boolean isView()
AVectorpublic boolean isFullyMutable()
AVectorisFullyMutable in interface INDArrayisFullyMutable in class AVectorpublic boolean isMutable()
AVectorpublic double dotProduct(AVector v)
dotProduct in class AVectorpublic void set(AVector v)
AVectorpublic void add(AVector v)
AVectorpublic void add(AStridedVector v)
public int getStride()
getStride in class AStridedVectorpublic double[] getArray()
getArray in interface IStridedArraygetArray in class AStridedVectorpublic int getArrayOffset()
getArrayOffset in interface IStridedArraygetArrayOffset in class AStridedVectorpublic AVector subVector(int start, int length)
AVectorpublic double get(int i)
INDArraypublic void set(int i,
double value)
public void addAt(int i,
double value)
AVectorpublic void getElements(double[] dest,
int destOffset)
INDArraygetElements in interface INDArraygetElements in class AVectorpublic StridedVector exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorpublic void validate()
INDArrayCopyright © 2013. All Rights Reserved.