public abstract class AJoinedVector extends ASizedVector
length| Constructor and Description |
|---|
AJoinedVector(int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyOp(Op2 op,
AVector b)
Applies a binary operator to this vector and a second vector
|
abstract int |
componentCount()
Returns the number of components of this array.
|
void |
copyTo(AVector dest,
int offset)
Copies a the contents of a vector to a vector at the specified offset
|
void |
copyTo(int offset,
AVector dest,
int destOffset,
int length)
Copies a subset of this vector to a vector at the specified offset
|
void |
copyTo(int offset,
double[] dest,
int destOffset,
int length)
Copies a subset of this vector to a specified destination array offset
|
void |
copyTo(int offset,
double[] dest,
int destOffset,
int length,
int stride)
Copies a subset of this vector to a specified destination array offset
using the given stride.
|
double |
dotProduct(double[] data,
int offset)
Fast dot product with a double[] array.
|
double |
dotProduct(double[] data,
int offset,
int stride)
Fast dot product with a double[] array and a stride.
|
double |
elementSquaredSum()
Returns the sum of squared elements in this array.
|
double |
elementSum()
Returns the sum of all elements in a vector
|
boolean |
equals(AVector a) |
boolean |
equalsArray(double[] values,
int offset)
Returns true if this vector exactly matches the elements in double[] array, starting
from the specified offset
|
abstract AVector |
getComponent(int k)
Gets a component from the array at the specified index
Will throw an error if components are not supported, or if the component is out of bounds as defined by 0 <= k |
boolean |
hasUncountable()
Returns true if any element is this array is NaN or infinite
|
boolean |
isMutable()
Returns true if this vector is mutable.
|
boolean |
isView()
Returns true if this vector is of a view type that references other vectors / data.
|
boolean |
isZero()
Returns true if this vector is a zero vector (all components zero)
|
double |
reduce(Op2 op)
Reduces over all elements of the array in row-major order.
|
double |
reduce(Op2 op,
double init)
Reduces over all elements of the array in row-major order.
|
void |
scaleAdd(double factor,
AVector b,
double bfactor,
double constant)
Scales all elements of the array by a given double value, adds a
scaled second vector and adds a constant value
|
void |
setElements(double[] values,
int offset)
Sets all elements in an array using the given double values
|
abstract AJoinedVector |
withComponents(INDArray... segments)
Reconstructs a new joined vector of the same type and shape with the given segments.
|
checkIndex, checkLength, checkRange, checkSameLength, checkSameLength, elementCount, equalsArray, get, getShape, getShapeClone, isSameShape, length, sliceCountabs, 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, applyOpCopy, asDoubleArray, asElementList, asVector, broadcast, broadcastLike, broadcastLike, broadcastLike, checkDimension, checkSameLength, clamp, clampMax, clampMin, clone, compareTo, copy, copyTo, crossProduct, crossProduct, dense, denseClone, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divide, divideCopy, divideCopy, divideTo, dotProduct, dotProduct, dotProduct, elementAbsPowSum, elementIterator, elementMax, elementMin, elementPowSum, elementProduct, elementsEqual, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, exactClone, fill, fillRange, get, get, get, get, get, getElements, getElements, getElements, getLongShape, getShape, getSlices, getTranspose, getTransposeCopy, getTransposeView, hashCode, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, interpolate, isElementConstrained, isFullyMutable, isRangeZero, isSameShape, isUnitLengthVector, isUnitLengthVector, 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, reduceSlices, reduceSlices, reorder, reorder, reshape, rotateCopy, rotateView, rotateView, scale, scaleAdd, scaleAdd, scaleAdd, scaleCopy, scaleToMagnitude, select, selectClone, selectView, set, set, set, set, set, set, set, set, set, set, set, 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, density, ensureMutable, exp, get, get, get, getComponents, getElements, getElements, getSlices, getSliceViews, isBoolean, isDense, isSparse, reciprocal, reciprocalCopy, scale, set, set, signumCopy, sqrt, sub, sub, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waitaddOuterProduct, broadcastCloneLike, broadcastCopyLike, checkMutable, ensureMutable, exp, get, get, get, getComponents, getElements, getElements, getSlices, getSliceViews, isBoolean, isDense, isSparse, reciprocal, reciprocalCopy, scale, set, set, signumCopy, sqrt, sub, toArrayforEach, spliteratorpublic abstract int componentCount()
INDArraycomponentCount in interface INDArraycomponentCount in class AbstractArray<Double>public abstract AVector getComponent(int k)
INDArraygetComponent in interface INDArraygetComponent in class AbstractArray<Double>public abstract AJoinedVector withComponents(INDArray... segments)
withComponents in interface INDArraywithComponents in class AbstractArray<Double>aVectors - public boolean isView()
AVectorpublic boolean isMutable()
AVectorpublic void setElements(double[] values,
int offset)
INDArraysetElements in interface INDArraysetElements in class AVectorvalues - Element values in a double[] array. There must be at least as many element values as elements in this array.offset - Position in the values array from which to start taking values.public void copyTo(AVector dest, int offset)
AVectorpublic void copyTo(int offset,
AVector dest,
int destOffset,
int length)
AVectorpublic void copyTo(int offset,
double[] dest,
int destOffset,
int length)
AVectorpublic void copyTo(int offset,
double[] dest,
int destOffset,
int length,
int stride)
AVectorpublic boolean equalsArray(double[] values,
int offset)
AVectorequalsArray in interface INDArrayequalsArray in class ASizedVectorvalues - Array of double element values to check for equalityoffset - Offset into the data arraypublic void scaleAdd(double factor,
AVector b,
double bfactor,
double constant)
AVectorpublic double elementSquaredSum()
INDArrayelementSquaredSum in interface INDArrayelementSquaredSum in class AVectorpublic double elementSum()
AVectorelementSum in interface INDArrayelementSum in class AVectorpublic boolean isZero()
AVectorpublic boolean hasUncountable()
AbstractArrayhasUncountable in interface INDArrayhasUncountable in class AVectorpublic double dotProduct(double[] data,
int offset)
AVectordotProduct in class AVectorpublic double dotProduct(double[] data,
int offset,
int stride)
AVectordotProduct in class AVectorpublic void applyOp(Op2 op, AVector b)
AVectorpublic double reduce(Op2 op, double init)
INDArrayCopyright © 2016. All rights reserved.