public final class JoinedArrayVector extends AVector
| Modifier and Type | Method and Description |
|---|---|
void |
add(AVector a)
Adds another vector to this one
|
void |
add(double value) |
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) |
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(ArrayVector v) |
double |
dotProduct(AVector v) |
double |
elementSum()
Returns the sum of all elements in a vector
|
JoinedArrayVector |
exactClone()
Returns an exact clone of this vector, i.e.
|
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(ArrayVector 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(ArrayVector a,
ArrayVector b) |
static JoinedArrayVector |
joinVectors(JoinedArrayVector a,
JoinedArrayVector b) |
int |
length() |
void |
multiply(double value)
Multiplies the vector by a constant factor
|
void |
multiplyTo(double[] target,
int offset) |
long |
nonZeroCount()
Returns the number of non-zero elements in the array.
|
int |
numArrays() |
void |
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 |
square()
Squares all elements of the vector
|
AVector |
subVector(int start,
int length)
Obtains a sub-vector that refers to this vector.
|
List<ArrayVector> |
toSubArrays() |
void |
validate()
Validates the internal data structure of the INDArray.
|
static JoinedArrayVector |
wrap(ArrayVector v) |
abs, add, add, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addProduct, addProductToArray, addProductToArray, addToArray, addToArray, addWeighted, angle, applyOp, asElementList, asVector, broadcast, clampMax, clampMin, clone, compareTo, copyTo, copyTo, copyTo, copyTo, countZeros, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, dotProduct, elementCount, elementSquaredSum, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, fillRange, get, getElements, getLongShape, getShape, getShape, getSlices, getTranspose, getTransposeView, hashCode, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isMutable, isUnitLengthVector, isZeroVector, iterator, magnitude, magnitudeSquared, maxAbsElement, multiply, multiply, multiply, negate, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, pow, projectToPlane, reshape, scale, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, set, setValues, signum, slice, slice, sliceCount, sub, sub, sub, subMultiple, toArray, toDoubleBuffer, toList, toStringepsilonEquals, epsilonEquals, get, get, getSliceViews, scale, set, set, setElements, toVectorfinalize, getClass, notify, notifyAll, wait, wait, waitepsilonEquals, epsilonEquals, get, get, getSliceViews, scale, set, set, setElements, toVectorpublic static final JoinedArrayVector create(AVector v)
public static JoinedArrayVector wrap(ArrayVector v)
public int numArrays()
public List<ArrayVector> 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 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(ArrayVector v)
public 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()
reciprocal in interface INDArrayreciprocal in class AbstractArray<Double>public void add(double value)
public void square()
AVectorpublic JoinedArrayVector exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorpublic AVector subVector(int start, int length)
AVectorpublic AVector join(AVector v)
AVectorpublic JoinedArrayVector join(ArrayVector v)
public JoinedArrayVector join(JoinedArrayVector v)
public static JoinedArrayVector joinVectors(JoinedArrayVector a, JoinedArrayVector b)
public static AVector joinVectors(ArrayVector a, ArrayVector b)
public void validate()
INDArrayCopyright © 2013. All Rights Reserved.