public final class RepeatedElementVector extends ASizedVector
length| Modifier and Type | Method and Description |
|---|---|
AVector |
absCopy()
Returns a copy of the array with the abs operator applied to each element
|
AVector |
addCopy(AVector v)
Adds a vector element-wise to this vector, returning a new vector.
|
AVector |
addCopy(double v)
Creates a new array equal to this array with a constant value added to every element
|
void |
addToArray(double[] data,
int offset)
Adds this vector to a double[] array, starting at the specified offset.
|
AVector |
applyOpCopy(Op op)
Applies a unary operator to all elements of the array (creating a new array)
|
static RepeatedElementVector |
create(int length,
double value) |
double |
dotProduct(AVector v)
Returns the dot product of this vector with another vector
The vectors must have the same length: if not the result is undefined
|
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 |
elementAbsPowSum(double p)
Returns the sum of the absolute values of all the elements raised to a specified power
|
double |
elementMax()
Returns the maximum element value in this array.
|
double |
elementMin()
Returns the maximum element value in this array.
|
double |
elementPowSum(double p)
Returns the sum of all the elements raised to a specified power
|
double |
elementProduct()
Returns the product of all elements in the array.
|
boolean |
elementsEqual(double value)
Returns true if all elements are equal to a specific value
|
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 v) |
boolean |
equalsArray(double[] data,
int offset)
Returns true if this vector exactly matches the elements in double[] array, starting
from the specified offset
|
RepeatedElementVector |
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 |
hasUncountable()
Returns true if any element is this array is NaN or infinite
|
AVector |
innerProduct(AMatrix m)
Computes the inner product of this vector with a matrix
|
boolean |
isElementConstrained()
Returns true if this array has some constraints on element values
|
boolean |
isFullyMutable()
Returns true if this vector is fully mutable, i.e.
|
boolean |
isMutable()
Returns true if this vector is mutable.
|
boolean |
isRangeZero(int start,
int length)
Returns true if a sub-vector range is completely zero.
|
boolean |
isZero()
Returns true if this vector is a zero vector (all components zero)
|
Iterator<Double> |
iterator() |
AVector |
multiplyCopy(AVector v)
Multiplies a vector element-wise with this vector, returning a new vector.
|
AVector |
multiplyCopy(double d)
Returns a copy of the array with all elements multiplied by a single constant value
|
AVector |
negateCopy()
Negates all elements in the array, returning a new array
|
long |
nonZeroCount()
Returns the number of non-zero elements in the array.
|
AVector |
reciprocalCopy()
Returns a new array where every element is the reciprocal of the corresponding element in this array
|
AVector |
select(int... order)
Selects a subset of indices from a vector
|
void |
set(int i,
double value)
Sets a value at a given position in a mutable 1D array
|
AVector |
subVector(int offset,
int length)
Obtains a sub-vector view that refers to this vector.
|
AVector |
tryEfficientJoin(AVector a)
Attempts to perform an efficient join with a second vector.
|
double |
unsafeGet(int i) |
checkIndex, checkLength, checkRange, checkSameLength, checkSameLength, elementCount, equalsArray, get, getShape, getShapeClone, isSameShape, length, sliceCountabs, add, add, add, add, add, add, add, add, add, addAt, addAt, 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, addWeighted, angle, applyOp, applyOp, applyOp, applyOp, applyOp, 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, elementIterator, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, fill, fillRange, get, get, get, get, getElements, getElements, getElements, getLongShape, getShape, getSlices, getTranspose, getTransposeCopy, getTransposeView, hashCode, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, interpolate, isSameShape, isUnitLengthVector, isUnitLengthVector, isView, join, join, join, log, logistic, magnitude, magnitudeSquared, maxAbsElement, maxAbsElementIndex, maxElement, maxElementIndex, minElement, minElementIndex, multiply, multiply, multiply, multiply, multiply, multiplyCopy, multiplyTo, mutable, negate, nonSparseIndex, 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, selectClone, selectView, 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, tanh, toDoubleArray, toDoubleBuffer, toList, toNormal, toSliceArray, toString, toStringFull, toVector, 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, 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, scale, set, set, signumCopy, sqrt, sub, toArray, withComponentsforEach, spliteratorpublic static RepeatedElementVector create(int length, double value)
public boolean isFullyMutable()
AVectorisFullyMutable in interface INDArrayisFullyMutable in class AVectorpublic boolean isMutable()
AVectorpublic boolean isZero()
AVectorpublic boolean isRangeZero(int start,
int length)
AVectorisRangeZero in class AVectorpublic boolean isElementConstrained()
INDArrayisElementConstrained in interface INDArrayisElementConstrained in class AVectorpublic double get(int i)
INDArraypublic AVector applyOpCopy(Op op)
INDArrayapplyOpCopy in interface INDArrayapplyOpCopy in class AVectorpublic double elementSum()
AVectorelementSum in interface INDArrayelementSum in class AVectorpublic double elementProduct()
INDArrayelementProduct in interface INDArrayelementProduct in class AVectorpublic double elementMax()
INDArrayelementMax in interface INDArrayelementMax in class AVectorpublic double elementMin()
INDArrayelementMin in interface INDArrayelementMin in class AVectorpublic double elementSquaredSum()
INDArrayelementSquaredSum in interface INDArrayelementSquaredSum in class AVectorpublic double dotProduct(AVector v)
AVectordotProduct 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 AVector multiplyCopy(double d)
INDArraymultiplyCopy in interface INDArraymultiplyCopy in class AVectord - A scalar factorpublic AVector innerProduct(AMatrix m)
AVectorinnerProduct in class AVectorpublic AVector select(int... order)
AVectorpublic AVector reciprocalCopy()
INDArrayreciprocalCopy in interface INDArrayreciprocalCopy in class AbstractArray<Double>public AVector absCopy()
INDArraypublic AVector negateCopy()
INDArraynegateCopy in interface INDArraynegateCopy in class AVectorpublic AVector addCopy(AVector v)
IVectorpublic AVector multiplyCopy(AVector v)
IVectormultiplyCopy in interface IVectormultiplyCopy in class AVectorpublic AVector addCopy(double v)
INDArraypublic void addToArray(double[] data,
int offset)
AVectoraddToArray in interface INDArrayaddToArray in class AVectorpublic long nonZeroCount()
INDArraynonZeroCount in interface INDArraynonZeroCount in class AVectorpublic void set(int i,
double value)
INDArraypublic AVector subVector(int offset, int length)
AVectorpublic AVector tryEfficientJoin(AVector a)
AVectortryEfficientJoin in class AVectorpublic RepeatedElementVector exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorpublic boolean equalsArray(double[] data,
int offset)
AVectorequalsArray in interface INDArrayequalsArray in class ASizedVectordata - Array of double element values to check for equalityoffset - Offset into the data arraypublic boolean elementsEqual(double value)
INDArrayelementsEqual in interface INDArrayelementsEqual in class AVectorpublic boolean hasUncountable()
AbstractArrayhasUncountable in interface INDArrayhasUncountable in class AVectorpublic double elementPowSum(double p)
elementPowSum in interface INDArrayelementPowSum in class AVectorpublic double elementAbsPowSum(double p)
elementAbsPowSum in interface INDArrayelementAbsPowSum in class AVectorCopyright © 2016. All rights reserved.