public abstract class ASizedVector extends AVector
| Modifier and Type | Field and Description |
|---|---|
protected int |
length |
| Modifier | Constructor and Description |
|---|---|
protected |
ASizedVector(int length) |
| Modifier and Type | Method and Description |
|---|---|
int |
checkIndex(int i)
Utility function to check an index and throw an exception in not in bounds.
|
int |
checkLength(int length)
Checks that a vector is the specified length, throws an exception if not.
|
int |
checkRange(int offset,
int length)
Utility function to check vector range and throw an exception if not valid.
|
protected int |
checkSameLength(ASizedVector v) |
protected int |
checkSameLength(AVector v)
Utility function to check vector length and throw an exception if not same shape.
|
long |
elementCount()
Returns the total number of elements in this array.
|
boolean |
equalsArray(double[] data)
Returns true if this vector exactly matches a double[] array.
|
boolean |
equalsArray(double[] data,
int offset)
Returns true if this vector exactly matches the elements in double[] array, starting
from the specified offset
|
double |
get(long i)
Returns the double value at the specified position in a 1D vector
|
int[] |
getShape()
Returns the shape of the array as an array of ints.
|
int[] |
getShapeClone()
Returns the shape of the array as an array of ints, guaranteed to be a new array
i.e.
|
boolean |
isSameShape(AVector a)
Returns true if this vector is exactly the same shape as another vector.
|
int |
length()
Returns the length of a vector, in terms of the number of elements.
|
int |
sliceCount()
Returns the number of major slices in this array (i.e.
|
abs, absCopy, add, add, add, add, add, add, add, add, add, addAt, addAt, addCopy, addCopy, addCopy, addInnerProduct, addInnerProduct, addInnerProduct, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultipleCopy, addMultipleToArray, addMultipleToArray, addPower, addPower, addPower, addProduct, addProduct, addProduct, addProductCopy, addProductCopy, addProductToArray, addProductToArray, addToArray, addToArray, addToArray, addWeighted, angle, applyOp, applyOp, applyOp, applyOp, applyOp, applyOpCopy, asDoubleArray, asElementList, asVector, broadcast, broadcastLike, broadcastLike, broadcastLike, checkDimension, checkSameLength, clamp, clampMax, clampMin, clone, compareTo, copy, copyTo, copyTo, copyTo, copyTo, copyTo, crossProduct, crossProduct, dense, denseClone, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divide, divideCopy, divideCopy, divideTo, dotProduct, dotProduct, dotProduct, dotProduct, dotProduct, elementAbsPowSum, elementIterator, elementMax, elementMin, elementPowSum, elementProduct, elementsEqual, elementSquaredSum, elementSum, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, exactClone, fill, fillRange, get, get, get, get, get, getElements, getElements, getElements, getLongShape, getShape, getSlices, getTranspose, getTransposeCopy, getTransposeView, hashCode, hasUncountable, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, interpolate, isElementConstrained, isFullyMutable, isMutable, isRangeZero, isSameShape, isUnitLengthVector, isUnitLengthVector, isView, isZero, iterator, join, join, join, log, logistic, magnitude, magnitudeSquared, maxAbsElement, maxAbsElementIndex, maxElement, maxElementIndex, minElement, minElementIndex, multiply, multiply, multiply, multiply, multiply, multiplyCopy, multiplyCopy, multiplyCopy, multiplyTo, mutable, negate, negateCopy, nonSparseIndex, nonZeroCount, nonZeroIndices, nonZeroValues, normalise, normaliseCopy, normaliseMaxAbsElement, outerProduct, outerProduct, pow, projectToPlane, reduce, reduce, reduceSlices, reduceSlices, reorder, reorder, reshape, rotateCopy, rotateView, rotateView, scale, scaleAdd, scaleAdd, scaleAdd, scaleAdd, scaleCopy, scaleToMagnitude, select, selectClone, selectView, set, set, set, set, set, set, set, set, set, set, set, setElements, setElements, setElements, setInnerProduct, setInnerProduct, setInnerProduct, setMultiple, setMultiple, setMultiple, setMultiple, shiftCopy, signum, slice, slice, sliceValue, softmax, softmaxCopy, sparse, sparseClone, sqrtCopy, square, squareCopy, sub, sub, subArray, subAt, subCopy, subCopy, subMultiple, subVector, tanh, toDoubleArray, toDoubleBuffer, toList, toNormal, toSliceArray, toString, toStringFull, toVector, tryEfficientJoin, unsafeGet, unsafeSet, validateadd, addInnerProduct, addInnerProduct, addOuterProduct, broadcastCloneLike, broadcastCopyLike, checkMutable, componentCount, density, ensureMutable, exp, get, get, get, getComponent, getComponents, getElements, getElements, getSlices, getSliceViews, isBoolean, isDense, isSparse, reciprocal, reciprocalCopy, scale, set, set, signumCopy, sqrt, sub, sub, toArray, withComponentsfinalize, getClass, notify, notifyAll, wait, wait, waitaddOuterProduct, broadcastCloneLike, broadcastCopyLike, checkMutable, componentCount, ensureMutable, exp, get, get, get, getComponent, getComponents, getElements, getElements, getSlices, getSliceViews, isBoolean, isDense, isSparse, reciprocal, reciprocalCopy, scale, set, set, signumCopy, sqrt, sub, toArray, withComponentsforEach, spliteratorpublic final int length()
IVectorpublic final long elementCount()
INDArrayelementCount in interface INDArrayelementCount in class AVectorpublic final int sliceCount()
INDArraysliceCount in interface INDArraysliceCount in class AVectorpublic double get(long i)
INDArraypublic final int[] getShape()
INDArraypublic boolean isSameShape(AVector a)
IVectorisSameShape in interface IVectorisSameShape in class AVectorprotected final int checkSameLength(AVector v)
AVectorcheckSameLength in class AVectorpublic final int checkRange(int offset,
int length)
AVectorcheckRange in class AVectorpublic final int checkIndex(int i)
AVectorcheckIndex in class AVectorpublic final int checkLength(int length)
AVectorcheckLength in class AVectorprotected final int checkSameLength(ASizedVector v)
checkSameLength in class AVectorpublic final int[] getShapeClone()
INDArraygetShapeClone in interface INDArraygetShapeClone in class AVectorpublic boolean equalsArray(double[] data)
AVectorequalsArray in interface INDArrayequalsArray in class AVectordata - Array of double element values to check for equalitypublic boolean equalsArray(double[] data,
int offset)
AVectorequalsArray in interface INDArrayequalsArray in class AVectordata - Array of double element values to check for equalityoffset - Offset into the data arrayCopyright © 2016. All rights reserved.