public final class StridedArrayVector extends AVector
| Modifier and Type | Method and Description |
|---|---|
void |
addAt(int i,
double value) |
void |
copyTo(double[] dest,
int destOffset)
Copies a the contents of a vector to a double array at the specified offset
|
double |
dotProduct(AVector v) |
StridedArrayVector |
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 |
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.
|
void |
validate()
Validates the internal data structure of the INDArray.
|
static AVector |
wrap(double[] data,
int offset,
int length,
int stride) |
static StridedArrayVector |
wrapStrided(double[] data,
int offset,
int length,
int stride) |
abs, add, 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, broadcast, clamp, clampMax, clampMin, clone, compareTo, copyTo, copyTo, copyTo, copyTo, copyTo, countZeros, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divideTo, dotProduct, elementCount, elementSquaredSum, elementSum, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, fill, fillRange, get, getElements, getLongShape, getShape, getShape, getSlices, hashCode, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isUnitLengthVector, isZeroVector, iterator, join, magnitude, magnitudeSquared, maxAbsElement, multiply, multiply, multiply, multiply, multiplyTo, negate, nonZeroCount, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, projectToPlane, reshape, scale, scaleAdd, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, set, setElements, setValues, signum, slice, slice, sliceCount, square, sub, sub, sub, subMultiple, toArray, toDoubleBuffer, toList, toStringget, get, getSliceViews, scale, set, set, setElements, toVectorfinalize, getClass, notify, notifyAll, wait, wait, waitget, get, getSliceViews, scale, set, set, setElements, toVectorpublic static StridedArrayVector wrapStrided(double[] data, int offset, int length, int stride)
public static AVector 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 AVector subVector(int start, int length)
AVectorpublic double get(int i)
INDArraypublic void set(int i,
double value)
public void copyTo(double[] dest,
int destOffset)
AVectorpublic StridedArrayVector exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorpublic void validate()
INDArrayCopyright © 2013. All Rights Reserved.