public final class JoinedArrayVector extends AVector
| Modifier and Type | Method and Description |
|---|---|
void |
add(AVector a)
Adds another vector to this one
|
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 |
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 |
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) |
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) |
int |
numArrays() |
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) |
void |
square() |
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, add, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultipleToArray, addProduct, addProductToArray, addProductToArray, addToArray, addWeighted, angle, applyOp, asElementList, asVector, broadcast, clamp, clampMax, clampMin, clone, compareTo, copyTo, copyTo, copyTo, countZeros, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, dotProduct, elementCount, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, fillRange, get, getElements, getLongShape, getShape, getSlices, hashCode, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isMutable, isUnitLengthVector, isZeroVector, iterator, magnitude, magnitudeSquared, maxAbsElement, multiply, multiply, negate, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, projectToPlane, reshape, scale, scaleAdd, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, setValues, signum, slice, sliceCount, sub, sub, sub, subMultiple, toArray, toList, toStringget, get, scale, set, set, setElementspublic 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)
public void set(int i,
double value)
public void copyTo(AVector dest, int offset)
AVectorpublic double elementSum()
AVectorelementSum 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 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)
setElements in interface INDArraysetElements in class AVectorpublic void multiply(double value)
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.