public final class ArraySubVector extends ArrayVector
| Constructor and Description |
|---|
ArraySubVector(ArraySubVector source) |
ArraySubVector(ArrayVector source,
int offset,
int length)
Constructs a vector directly referencing a sub-vector of an existing
array-based Vector
|
ArraySubVector(double[] values) |
ArraySubVector(int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ArrayVector v) |
void |
addAt(int i,
double v) |
void |
addMultiple(ArrayVector v,
double factor) |
AVector |
clone()
Clones the vector, creating a new copy of all data.
|
ArraySubVector |
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) |
double[] |
getArray() |
int |
getArrayOffset() |
int |
hashCode()
Vector hashcode, designed to match hashcode of Java double array
|
boolean |
isView()
Returns true if this vector is of a view type that references other vectors / data.
|
int |
length() |
void |
multiply(double factor)
Multiplies the vector by a constant factor
|
void |
set(int i,
double value) |
static ArraySubVector |
wrap(double[] data,
int offset,
int length) |
add, add, add, add, add, add, add, addMultiple, addMultipleToArray, addProduct, addProduct, addProductToArray, addProductToArray, addToArray, applyOp, copyTo, copyTo, copyTo, copyTo, divide, divide, divideTo, elementSum, fillRange, getElements, join, join, join, magnitude, magnitudeSquared, multiply, multiply, multiplyTo, scaleAdd, set, set, set, setElements, slice, square, subVector, validateabs, add, add, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addProduct, addWeighted, angle, applyOp, asElementList, asVector, broadcast, clamp, clampMax, clampMin, compareTo, copyTo, copyTo, countZeros, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, dotProduct, dotProduct, elementCount, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, get, getLongShape, getShape, getSlices, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isFullyMutable, isMutable, isUnitLengthVector, isZeroVector, iterator, maxAbsElement, negate, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, projectToPlane, reshape, scale, scaleAdd, scaleToMagnitude, set, set, set, set, set, setValues, signum, sliceCount, sub, sub, sub, subMultiple, toArray, toList, toStringget, get, scale, set, set, setElementspublic ArraySubVector(double[] values)
public ArraySubVector(int length)
public ArraySubVector(ArraySubVector source)
public ArraySubVector(ArrayVector source, int offset, int length)
source - offset - length - public static ArraySubVector wrap(double[] data, int offset, int length)
public int length()
public double get(int i)
public void set(int i,
double value)
public void add(ArrayVector v)
add in class ArrayVectorpublic void addMultiple(ArrayVector v, double factor)
addMultiple in class ArrayVectorpublic void addAt(int i,
double v)
addAt in class ArrayVectorpublic void fill(double value)
AVectorpublic void multiply(double factor)
AVectorpublic int hashCode()
public double[] getArray()
getArray in class ArrayVectorpublic int getArrayOffset()
getArrayOffset in class ArrayVectorpublic boolean isView()
AVectorisView in interface INDArrayisView in class ArrayVectorpublic AVector clone()
AVectorpublic ArraySubVector exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorCopyright © 2013. All Rights Reserved.