public final class GrowableVector extends AVector
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 mutable 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
|
boolean |
isView()
Returns true if this vector is of a view type that references other vectors / data.
|
int |
length()
Returns the length of a vector, in terms of the number of elements.
|
static GrowableVector |
ofInitialCapacity(int capacity)
Returns a new, empty GrowableVector with the specified initial capacity
|
void |
set(int i,
double value)
Set a specified element in a vector
|
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, addAt, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultipleToArray, addProduct, addProduct, addProduct, addProductToArray, addProductToArray, addToArray, addToArray, addWeighted, angle, applyOp, applyOp, asDoubleArray, asElementList, asVector, broadcast, broadcastLike, broadcastLike, clamp, clampMax, clampMin, compareTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divide, divideTo, dotProduct, dotProduct, dotProduct, dotProduct, elementCount, elementIterator, elementMax, elementMin, elementSquaredSum, elementSum, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, equalsArray, fill, fillRange, get, get, get, get, getElements, getLongShape, getShape, getShape, getShapeClone, getSlices, getTranspose, getTransposeCopy, getTransposeView, hashCode, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isFullyMutable, isMutable, isSameShape, isSameShape, isUnitLengthVector, isZero, iterator, join, join, log, logistic, magnitude, magnitudeSquared, maxAbsElement, maxAbsElementIndex, maxElement, maxElementIndex, minElement, minElementIndex, multiply, multiply, multiply, multiply, multiplyTo, mutable, negate, nonSparseIndexes, nonZeroCount, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, pow, projectToPlane, reshape, rotateView, rotateView, scale, scaleAdd, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, set, set, setElements, setElements, setRange, setValues, signum, slice, slice, sliceCount, sparse, sparseClone, square, sub, sub, sub, subArray, subMultiple, subVector, tanh, toDoubleArray, toDoubleBuffer, toList, toNormal, toString, toVector, unsafeGetInteger, unsafeSetInteger, zeroCount
broadcastCloneLike, density, ensureMutable, exp, getSlices, getSliceViews, isBoolean, reciprocal, scale, set, set, sqrt, toArray
finalize, getClass, notify, notifyAll, wait, wait, wait
broadcastCloneLike, ensureMutable, exp, getSlices, getSliceViews, isBoolean, reciprocal, scale, set, set, sqrt, toArray
public GrowableVector(AVector v)
public GrowableVector()
public static GrowableVector ofInitialCapacity(int capacity)
public int length()
IVector
public int currentCapacity()
public void ensureCapacity(int capacity)
public double get(int i)
INDArray
public void set(int i, double value)
IVector
public boolean isView()
AVector
public void append(double v)
public void append(AVector v)
public AVector build()
public GrowableVector clone()
AVector
public void clear()
public GrowableVector exactClone()
AVector
exactClone
in interface INDArray
exactClone
in class AVector
public void validate()
INDArray
Copyright © 2014. All Rights Reserved.