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) |
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) |
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 |
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(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 |
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.
|
static AVector |
joinVectors(AVector left,
AVector right)
returns a JoinedVector connecting the two vectors
|
int |
length() |
void |
multiply(double value)
Multiplies the vector by a constant factor
|
void |
multiplyTo(double[] data,
int offset) |
void |
scaleAdd(double factor,
double constant) |
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) |
void |
signum()
Sets each component of the vector to its sign value (-1, 0 or 1)
|
void |
square() |
AVector |
subVector(int start,
int length)
Obtains a sub-vector that refers to this vector.
|
add, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addProduct, addProductToArray, addProductToArray, addWeighted, angle, applyOp, asElementList, asVector, broadcast, clamp, clampMax, clampMin, clone, compareTo, 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, join, magnitude, magnitudeSquared, maxAbsElement, multiply, multiply, negate, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, projectToPlane, reshape, scale, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, setValues, slice, sliceCount, sub, sub, sub, subMultiple, toArray, toList, toString, validateget, get, scale, set, set, setElementspublic 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 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 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 double dotProduct(AVector v)
dotProduct 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 applyOp(Op op)
INDArraypublic double elementSum()
AVectorelementSum in class AVectorpublic double get(int i)
public void set(AVector src)
AVectorpublic void set(AVector src, int srcOffset)
AVectorpublic void setElements(double[] values,
int offset,
int length)
setElements in interface INDArraysetElements in class AVectorpublic void set(int i,
double value)
public void fill(double value)
AVectorpublic 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.