public final class JoinedVector extends AVector
| Modifier and Type | Method and Description |
|---|---|
void |
abs()
Sets each component of the vector to its absolute value
|
void |
add(AVector a)
Adds another vector to this one
|
void |
add(AVector a,
int aOffset)
Adds part another vector to this one, starting at the specified offset in the source vector
|
void |
add(double constant)
Adds a double value to all elements in this array
|
void |
add(int offset,
AVector a)
Adds another vector into this one, at the specified offset
|
void |
add(int offset,
AVector a,
int aOffset,
int length)
Adds another vector into this one, at the specified offset
|
void |
add(JoinedVector a) |
void |
addAt(int i,
double v)
Adds a value to a specific element of the vector
This function does not perform bounds checking
|
void |
addMultiple(AVector a,
double factor)
Adds a scaled multiple of another vector to this one
|
void |
addMultiple(AVector a,
int aOffset,
double factor) |
void |
addMultiple(JoinedVector a,
double factor) |
void |
addMultipleToArray(double factor,
int offset,
double[] array,
int arrayOffset,
int length) |
void |
addProduct(AVector a,
AVector b,
double factor) |
void |
addProduct(AVector a,
int aOffset,
AVector b,
int bOffset,
double factor) |
void |
addToArray(int offset,
double[] array,
int arrayOffset,
int length) |
void |
applyOp(Op op)
Applies a unary operator to all elements of the array (in-place)
|
void |
clamp(double min,
double max)
Clamps all values in the vector to a given range
|
void |
copyTo(AVector dest,
int offset)
Copies a the contents of a vector to a vector at the specified offset
|
void |
copyTo(double[] data,
int offset)
Copies a the contents of a vector to a double array at the specified offset
|
void |
copyTo(int start,
AVector dest,
int destOffset,
int length)
Copies a subset of this vector to a vector at the specified offset
|
int |
depth() |
static int |
depthCalc(AVector v) |
void |
divideTo(double[] data,
int offset) |
double |
dotProduct(AVector v) |
double |
dotProduct(double[] data,
int offset)
Fast dot product with a double[] array.
|
double |
dotProduct(JoinedVector jv) |
double |
elementSum()
Returns the sum of all elements in a vector
|
JoinedVector |
exactClone()
Returns an exact clone of this vector, i.e.
|
void |
exp()
Computes the function e^x (in-place) for all array elements
|
void |
fill(double value)
Fills the entire vector with a given value
|
double |
get(int i)
Returns the double value at the specified position in a 1D vector
|
boolean |
isFullyMutable()
Returns true if this vector is fully mutable, i.e.
|
boolean |
isView()
Returns true if this vector is of a view type that references other vectors / data.
|
static AVector |
joinVectors(AVector left,
AVector right)
returns a JoinedVector connecting the two vectors
|
int |
length() |
void |
log()
Computes the natural logarithm (in-place) for all array elements
|
void |
logistic() |
void |
multiply(double value)
Multiplies the vector by a constant factor
|
void |
multiplyTo(double[] data,
int offset) |
void |
negate()
Negates all elements in the array
|
long |
nonZeroCount()
Returns the number of non-zero elements in the array.
|
void |
reciprocal()
Replaces all elements in the array with their reciprocal
|
void |
scaleAdd(double factor,
double constant)
Scales all elements of the array by a given double value and adds a constant vale
|
void |
set(AVector src)
Sets the vector to equal the value of another vector
|
void |
set(AVector src,
int srcOffset)
Set the vector equal to an offset into another vector
|
void |
set(int i,
double value) |
void |
setElements(double[] values,
int offset,
int length)
Sets all elements in an array using the given double values
|
void |
signum()
Sets each component of the vector to its sign value (-1, 0 or 1)
|
void |
sqrt()
Computes the square root of all elements in the array
|
void |
square()
Squares all elements of the vector
|
AVector |
subVector(int start,
int length)
Obtains a sub-vector that refers to this vector.
|
void |
tanh() |
void |
toDoubleBuffer(DoubleBuffer dest)
Copies the elements of this INDArray to the specified double buffer
|
double |
unsafeGet(int i) |
void |
unsafeSet(int i,
double value) |
add, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addProduct, addProductToArray, addProductToArray, addToArray, addWeighted, angle, applyOp, asDoubleArray, asElementList, asVector, broadcast, broadcastLike, broadcastLike, clampMax, clampMin, clone, compareTo, copyTo, copyTo, copyTo, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divide, dotProduct, dotProduct, elementCount, elementIterator, elementSquaredSum, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, fillRange, get, get, getElements, getLongShape, getShape, getShape, getSlices, getTranspose, getTransposeCopy, getTransposeView, hashCode, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isMutable, isSameShape, isSameShape, isUnitLengthVector, isZero, iterator, join, magnitude, magnitudeSquared, maxAbsElement, multiply, multiply, multiply, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, pow, projectToPlane, reshape, scale, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, setElements, setRange, setValues, slice, slice, sliceCount, sub, sub, sub, subMultiple, toDoubleArray, toList, toNormal, toString, toVector, validate, zeroCountbroadcastCloneLike, ensureMutable, get, getSliceViews, isBoolean, scale, set, set, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waitbroadcastCloneLike, ensureMutable, get, getSliceViews, isBoolean, scale, set, set, toArraypublic static AVector joinVectors(AVector left, AVector right)
left - right - public int length()
public boolean isView()
AVectorpublic boolean isFullyMutable()
AVectorisFullyMutable in interface INDArrayisFullyMutable in class AVectorpublic void copyTo(AVector dest, int offset)
AVectorpublic void toDoubleBuffer(DoubleBuffer dest)
INDArraytoDoubleBuffer in interface INDArraytoDoubleBuffer in class AVectorpublic void addToArray(int offset,
double[] array,
int arrayOffset,
int length)
addToArray in class AVectorpublic void addMultipleToArray(double factor,
int offset,
double[] array,
int arrayOffset,
int length)
addMultipleToArray in class AVectorpublic void addAt(int i,
double v)
AVectorpublic void copyTo(double[] data,
int offset)
AVectorpublic void multiplyTo(double[] data,
int offset)
multiplyTo in class AVectorpublic void copyTo(int start,
AVector dest,
int destOffset,
int length)
AVectorpublic AVector subVector(int start, int length)
AVectorpublic void add(AVector a)
AVectorpublic void add(JoinedVector a)
public void scaleAdd(double factor,
double constant)
INDArraypublic void add(double constant)
INDArraypublic void reciprocal()
INDArrayreciprocal in interface INDArrayreciprocal in class AbstractArray<Double>public void clamp(double min,
double max)
AVectorpublic double dotProduct(AVector v)
dotProduct in class AVectorpublic double dotProduct(double[] data,
int offset)
AVectordotProduct in class AVectorpublic double dotProduct(JoinedVector jv)
public void add(AVector a, int aOffset)
AVectorpublic void add(int offset,
AVector a)
AVectorpublic void add(int offset,
AVector a,
int aOffset,
int length)
AVectorpublic void addMultiple(AVector a, double factor)
AVectoraddMultiple in class AVectorpublic void addMultiple(JoinedVector a, double factor)
public void addMultiple(AVector a, int aOffset, double factor)
addMultiple in class AVectorpublic void addProduct(AVector a, AVector b, double factor)
addProduct in class AVectorpublic void addProduct(AVector a, int aOffset, AVector b, int bOffset, double factor)
addProduct in class AVectorpublic void signum()
AVectorpublic void abs()
AVectorpublic void exp()
INDArrayexp in interface INDArrayexp in class AbstractArray<Double>public void log()
INDArraypublic void negate()
INDArraypublic void applyOp(Op op)
INDArraypublic double elementSum()
AVectorelementSum in interface INDArrayelementSum in class AVectorpublic long nonZeroCount()
INDArraynonZeroCount in interface INDArraynonZeroCount in class AVectorpublic double get(int i)
INDArraypublic void set(AVector src)
AVectorpublic void set(AVector src, int srcOffset)
AVectorpublic void setElements(double[] values,
int offset,
int length)
INDArraysetElements in interface INDArraysetElements in class AVectorpublic void set(int i,
double value)
public void fill(double value)
AVectorpublic void square()
AVectorpublic void sqrt()
INDArraysqrt in interface INDArraysqrt in class AbstractArray<Double>public void multiply(double value)
AVectorpublic static int depthCalc(AVector v)
public int depth()
public JoinedVector exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorCopyright © 2013. All Rights Reserved.