public final class JoinedArrayVector 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(double value)
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 |
addAt(int i,
double value)
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(int offset,
AVector a,
double factor) |
void |
addMultiple(int offset,
AVector a,
int aOffset,
int length,
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 |
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[] destArray,
int offset)
Copies a the contents of a vector to a double array at the specified offset
|
static JoinedArrayVector |
create(AVector v) |
void |
divideTo(double[] target,
int offset) |
double |
dotProduct(AArrayVector v) |
double |
dotProduct(AVector v) |
double |
dotProduct(double[] arr,
int offset)
Fast dot product with a double[] array.
|
double |
elementSum()
Returns the sum of all elements in a vector
|
JoinedArrayVector |
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.
|
JoinedArrayVector |
join(AArrayVector v) |
AVector |
join(AVector v)
Returns a new vector that refers to this vector joined to a second vector
|
JoinedArrayVector |
join(JoinedArrayVector v) |
static AVector |
joinVectors(AArrayVector a,
AArrayVector b) |
static JoinedArrayVector |
joinVectors(JoinedArrayVector a,
JoinedArrayVector b) |
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[] target,
int offset) |
void |
negate()
Negates all elements in the array
|
long |
nonZeroCount()
Returns the number of non-zero elements in the array.
|
int |
numArrays() |
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 v)
Sets the vector to equal the value of 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() |
List<AArrayVector> |
toSubArrays() |
double |
unsafeGet(int i) |
void |
unsafeSet(int i,
double value) |
void |
validate()
Validates the internal data structure of the INDArray.
|
static JoinedArrayVector |
wrap(AArrayVector v) |
add, add, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addProduct, addProductToArray, addProductToArray, addToArray, addToArray, addWeighted, angle, applyOp, asDoubleArray, asElementList, asVector, broadcast, broadcastLike, broadcastLike, clampMax, clampMin, clone, compareTo, copyTo, 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, magnitude, magnitudeSquared, maxAbsElement, multiply, multiply, multiply, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, pow, projectToPlane, reshape, scale, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, setElements, setRange, setValues, slice, slice, sliceCount, sub, sub, sub, subMultiple, toDoubleArray, toDoubleBuffer, toList, toNormal, toString, toVector, zeroCountbroadcastCloneLike, ensureMutable, get, getSliceViews, isBoolean, scale, set, set, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waitbroadcastCloneLike, ensureMutable, get, getSliceViews, isBoolean, scale, set, set, toArraypublic static final JoinedArrayVector create(AVector v)
public static JoinedArrayVector wrap(AArrayVector v)
public int numArrays()
public List<AArrayVector> toSubArrays()
public int length()
public boolean isView()
AVectorpublic boolean isFullyMutable()
AVectorisFullyMutable in interface INDArrayisFullyMutable in class AVectorpublic double get(int i)
INDArraypublic void set(int i,
double value)
public void addAt(int i,
double value)
AVectorpublic void copyTo(AVector dest, int offset)
AVectorpublic double elementSum()
AVectorelementSum in interface INDArrayelementSum in class AVectorpublic long nonZeroCount()
INDArraynonZeroCount in interface INDArraynonZeroCount in class AVectorpublic double dotProduct(AVector v)
dotProduct in class AVectorpublic double dotProduct(AArrayVector v)
public double dotProduct(double[] arr,
int offset)
AVectordotProduct in class AVectorpublic void add(AVector a)
AVectorpublic void add(int offset,
AVector a)
AVectorpublic void add(int offset,
AVector a,
int aOffset,
int length)
AVectorpublic void addProduct(AVector a, AVector b, double factor)
addProduct in class AVectorpublic void addMultiple(AVector a, double factor)
AVectoraddMultiple in class AVectorpublic void addMultiple(int offset,
AVector a,
double factor)
addMultiple in class AVectorpublic void addMultiple(int offset,
AVector a,
int aOffset,
int length,
double factor)
addMultiple in class AVectorpublic void addMultipleToArray(double factor,
int offset,
double[] array,
int arrayOffset,
int length)
addMultipleToArray in class AVectorpublic void addProduct(AVector a, int aOffset, AVector b, int bOffset, double factor)
addProduct in class AVectorpublic void applyOp(Op op)
INDArraypublic void copyTo(double[] destArray,
int offset)
AVectorpublic void multiplyTo(double[] target,
int offset)
multiplyTo in class AVectorpublic void fill(double value)
AVectorpublic void set(AVector v)
AVectorpublic void setElements(double[] values,
int offset,
int length)
INDArraysetElements in interface INDArraysetElements in class AVectorpublic void multiply(double value)
AVectorpublic void scaleAdd(double factor,
double constant)
INDArraypublic void clamp(double min,
double max)
AVectorpublic void reciprocal()
INDArrayreciprocal in interface INDArrayreciprocal in class AbstractArray<Double>public void add(double value)
INDArraypublic void abs()
AVectorpublic void exp()
INDArrayexp in interface INDArrayexp in class AbstractArray<Double>public void log()
INDArraypublic void signum()
AVectorpublic void square()
AVectorpublic void sqrt()
INDArraysqrt in interface INDArraysqrt in class AbstractArray<Double>public void negate()
INDArraypublic JoinedArrayVector exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorpublic AVector subVector(int start, int length)
AVectorpublic AVector join(AVector v)
AVectorpublic JoinedArrayVector join(AArrayVector v)
public JoinedArrayVector join(JoinedArrayVector v)
public static JoinedArrayVector joinVectors(JoinedArrayVector a, JoinedArrayVector b)
public static AVector joinVectors(AArrayVector a, AArrayVector b)
public void validate()
INDArrayCopyright © 2013. All Rights Reserved.