public final class GrowableVector extends AArrayVector
| Constructor and Description |
|---|
GrowableVector() |
GrowableVector(AVector v) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(AVector v) |
void |
append(double v) |
AVector |
build()
Function to build a fixed-size vector containing a copy of data
once the GrowableVector is constructed
|
void |
clear() |
GrowableVector |
clone()
Clones the vector, creating a new copy of all data.
|
int |
currentCapacity() |
void |
ensureCapacity(int capacity) |
GrowableVector |
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()
Gets the current underlying array of the GrowableVector.
|
int |
getArrayOffset() |
boolean |
isView()
Returns true if this vector is of a view type that references other vectors / data.
|
int |
length() |
static GrowableVector |
ofInitialCapacity(int capacity)
Returns a new, empty GrowableVector with the specified initial capacity
|
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.
|
abs, add, add, add, add, add, add, add, add, addAt, addMultiple, 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, toDoubleBufferadd, asDoubleArray, broadcast, broadcastLike, broadcastLike, 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, hashCode, 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 GrowableVector(AVector v)
public GrowableVector()
public static GrowableVector ofInitialCapacity(int capacity)
public double[] getArray()
getArray in interface IStridedArraygetArray in class AStridedVectorpublic int getArrayOffset()
getArrayOffset in interface IStridedArraygetArrayOffset in class AStridedVectorpublic int length()
public int currentCapacity()
public void ensureCapacity(int capacity)
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 boolean isView()
AVectorisView in interface INDArrayisView in class AArrayVectorpublic void append(double v)
public void append(AVector v)
public AVector build()
public GrowableVector clone()
AVectorclone in interface INDArrayclone in class AStridedVectorpublic void clear()
public GrowableVector exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorpublic void validate()
INDArrayvalidate in interface INDArrayvalidate in class AArrayVectorCopyright © 2013. All Rights Reserved.