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(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.
|
double |
get(int i)
Returns the double value at the specified position in a 1D vector
|
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 |
set(int i,
double value) |
static ArraySubVector |
wrap(double[] values) |
static ArraySubVector |
wrap(double[] data,
int offset,
int length) |
abs, add, add, add, add, add, add, add, addMultiple, addMultipleToArray, addProduct, addProduct, addProductToArray, addProductToArray, addToArray, applyOp, clamp, copyTo, copyTo, copyTo, copyTo, divide, divide, divideTo, elementSum, exp, fill, fillRange, getElements, isPackedArray, join, join, join, log, magnitude, magnitudeSquared, multiply, multiply, multiply, multiplyTo, nonZeroCount, pow, reciprocal, scaleAdd, set, set, set, setElements, signum, slice, sqrt, square, subVector, toDoubleBuffer, validateadd, add, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addProduct, addToArray, addWeighted, angle, applyOp, asElementList, asVector, broadcast, clampMax, clampMin, compareTo, copyTo, copyTo, copyTo, countZeros, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, dotProduct, dotProduct, elementCount, elementSquaredSum, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, get, getLongShape, getShape, getShape, getSlices, getTranspose, getTransposeView, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isFullyMutable, isMutable, isUnitLengthVector, isZeroVector, iterator, maxAbsElement, multiply, negate, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, projectToPlane, reshape, scale, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, setElements, setValues, slice, sliceCount, sub, sub, sub, subMultiple, toArray, toList, toString, toVectorepsilonEquals, epsilonEquals, get, get, getSliceViews, scale, set, setfinalize, getClass, notify, notifyAll, wait, wait, waitepsilonEquals, epsilonEquals, get, get, getSliceViews, scale, set, setpublic ArraySubVector(int length)
public ArraySubVector(ArraySubVector source)
public ArraySubVector(ArrayVector source, int offset, int length)
source - offset - length - public static ArraySubVector wrap(double[] values)
public static ArraySubVector wrap(double[] data, int offset, int length)
public int length()
public double get(int i)
INDArraypublic 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 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.