public final class GrowableVector extends ArrayVector
| 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) |
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) |
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, copyTo, copyTo, copyTo, copyTo, divide, divide, divideTo, elementSum, fillRange, getElements, join, join, join, magnitude, magnitudeSquared, multiply, multiply, multiplyTo, scaleAdd, set, set, set, setElements, slice, square, subVectoradd, add, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addProduct, addWeighted, angle, applyOp, asElementList, asVector, broadcast, clamp, clampMax, clampMin, compareTo, copyTo, copyTo, countZeros, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, dotProduct, dotProduct, elementCount, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, fill, get, getLongShape, getShape, getSlices, hashCode, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isFullyMutable, isMutable, isUnitLengthVector, isZeroVector, iterator, maxAbsElement, multiply, negate, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, projectToPlane, reshape, scale, scaleAdd, scaleToMagnitude, set, set, set, set, set, setValues, signum, sliceCount, sub, sub, sub, subMultiple, toArray, toList, toStringget, get, scale, set, set, setElementspublic GrowableVector(AVector v)
public GrowableVector()
public static GrowableVector ofInitialCapacity(int capacity)
public double[] getArray()
getArray in class ArrayVectorpublic int getArrayOffset()
getArrayOffset in class ArrayVectorpublic int length()
public int currentCapacity()
public void ensureCapacity(int capacity)
public double get(int i)
public void set(int i,
double value)
public boolean isView()
AVectorisView in interface INDArrayisView in class ArrayVectorpublic void append(double v)
public void append(AVector v)
public AVector build()
public GrowableVector clone()
AVectorpublic void clear()
public GrowableVector exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorpublic void validate()
INDArrayvalidate in interface INDArrayvalidate in class ArrayVectorCopyright © 2013. All Rights Reserved.