public final class ArraySubVector extends AArrayVector
| Constructor and Description |
|---|
ArraySubVector(AArrayVector source,
int offset,
int length)
Constructs a vector directly referencing a sub-vector of an existing
array-based Vector
|
ArraySubVector(ArraySubVector source) |
ArraySubVector(int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(AArrayVector v) |
void |
addAt(int i,
double v)
Adds a value to a specific element of the vector
This function does not perform bounds checking
|
void |
addMultiple(AArrayVector v,
double factor) |
ArraySubVector |
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() |
int |
hashCode()
Vector hashcode, designed to match hashcode of Java double array
|
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) |
double |
unsafeGet(int i) |
void |
unsafeSet(int i,
double value) |
static ArraySubVector |
wrap(double[] values) |
static ArraySubVector |
wrap(double[] data,
int offset,
int length) |
abs, add, add, add, add, add, add, add, addMultiple, addMultipleToArray, addProduct, addProduct, addProductToArray, addProductToArray, addToArray, applyOp, clamp, copyTo, copyTo, copyTo, copyTo, divide, divide, divideTo, dotProduct, dotProduct, elementSum, exp, fill, fillRange, getElements, getStride, isPackedArray, join, join, join, log, magnitude, magnitudeSquared, multiply, multiply, multiply, multiplyTo, nonZeroCount, pow, reciprocal, scaleAdd, set, set, setElements, setRange, signum, slice, sqrt, square, subVector, toDoubleBuffer, validateadd, asDoubleArray, broadcast, broadcastLike, broadcastLike, clone, ensureMutable, getStride, getStridesadd, add, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addProduct, addToArray, addWeighted, angle, applyOp, asElementList, asVector, clampMax, clampMin, compareTo, copyTo, copyTo, copyTo, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, dotProduct, dotProduct, elementCount, elementIterator, elementSquaredSum, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, get, get, getLongShape, getShape, getShape, getSlices, getTranspose, getTransposeCopy, getTransposeView, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isFullyMutable, isMutable, isSameShape, isSameShape, isUnitLengthVector, isZero, iterator, logistic, maxAbsElement, multiply, negate, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, projectToPlane, reshape, scale, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, setElements, setValues, slice, sliceCount, sub, sub, sub, subMultiple, tanh, toDoubleArray, toList, toNormal, toString, toVector, zeroCountbroadcastCloneLike, get, getSliceViews, isBoolean, scale, set, set, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waitgetShapeadd, applyOp, asElementList, asVector, broadcastCloneLike, copyTo, dimensionality, divide, divide, elementCount, elementIterator, elementSquaredSum, epsilonEquals, epsilonEquals, equals, get, get, get, getLongShape, getShape, getSlices, getSliceViews, getTranspose, getTransposeCopy, getTransposeView, innerProduct, isBoolean, isElementConstrained, isFullyMutable, isMutable, isSameShape, isZero, multiply, negate, outerProduct, reshape, scale, set, set, set, set, set, setElements, slice, sliceCount, sub, sub, toArray, toDoubleArray, toVectorpublic ArraySubVector(int length)
public ArraySubVector(ArraySubVector source)
public ArraySubVector(AArrayVector source, int offset, int length)
source - offset - length - public static ArraySubVector wrap(double[] values)
public static ArraySubVector wrap(double[] data, int offset, int length)
public int length()
public double get(int i)
INDArraypublic void set(int i,
double value)
public double unsafeGet(int i)
unsafeGet in class AArrayVectorpublic void unsafeSet(int i,
double value)
unsafeSet in class AArrayVectorpublic void add(AArrayVector v)
add in class AArrayVectorpublic void addMultiple(AArrayVector v, double factor)
addMultiple in class AArrayVectorpublic void addAt(int i,
double v)
AVectoraddAt in class AArrayVectorpublic int hashCode()
public double[] getArray()
getArray in interface IStridedArraygetArray in class AStridedVectorpublic int getArrayOffset()
getArrayOffset in interface IStridedArraygetArrayOffset in class AStridedVectorpublic boolean isView()
AVectorisView in interface INDArrayisView in class AArrayVectorpublic ArraySubVector exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorCopyright © 2013. All Rights Reserved.