public final class Vector0 extends APrimitiveVector
| Modifier and Type | Method and Description |
|---|---|
Vector0 |
clone()
Clones the vector, creating a new copy of all data.
|
double |
elementSum()
Returns the sum of all elements in a vector
|
Vector0 |
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
|
int |
hashCode() |
boolean |
isMutable()
Returns true if this vector is mutable.
|
boolean |
isZeroVector()
Returns true if this vector is a zero vector (all components zero)
|
AVector |
join(AVector v)
Returns a new vector that refers to this vector joined to a second vector
|
int |
length() |
double |
magnitude()
Returns the magnitude (Euclidean length) of the vector
|
double |
magnitudeSquared() |
long |
nonZeroCount()
Returns the number of non-zero elements in the array.
|
static Vector0 |
of() |
static Vector0 |
of(double... values) |
void |
set(int i,
double value) |
getT, getX, getY, getZ, isFullyMutable, isViewabs, add, add, add, add, add, add, addAt, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultipleToArray, addProduct, addProduct, addProduct, addProductToArray, addProductToArray, addToArray, addToArray, addWeighted, angle, applyOp, applyOp, asElementList, asVector, broadcast, clamp, clampMax, clampMin, compareTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, countZeros, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divideTo, dotProduct, dotProduct, elementCount, elementSquaredSum, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, fill, fillRange, get, getElements, getLongShape, getShape, getShape, getSlices, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isUnitLengthVector, iterator, maxAbsElement, multiply, multiply, multiply, multiply, multiplyTo, negate, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, projectToPlane, reshape, scale, scaleAdd, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, set, set, setElements, setValues, signum, slice, slice, sliceCount, square, sub, sub, sub, subMultiple, subVector, toArray, toDoubleBuffer, toList, toString, validateget, get, getSliceViews, scale, set, set, setElements, toVectorfinalize, getClass, notify, notifyAll, wait, wait, waitget, get, getSliceViews, scale, set, set, setElements, toVectorpublic static Vector0 INSTANCE
public static Vector0 of()
public static Vector0 of(double... values)
public int length()
public double elementSum()
AVectorelementSum in interface INDArrayelementSum in class AVectorpublic long nonZeroCount()
INDArraynonZeroCount in interface INDArraynonZeroCount in class AVectorpublic double get(int i)
INDArraypublic void set(int i,
double value)
public Vector0 clone()
AVectorpublic boolean isMutable()
AVectorisMutable in interface INDArrayisMutable in class APrimitiveVectorpublic boolean isZeroVector()
AVectorisZeroVector in class AVectorpublic double magnitudeSquared()
magnitudeSquared in class AVectorpublic double magnitude()
AVectorpublic AVector join(AVector v)
AVectorpublic Vector0 exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorCopyright © 2013. All Rights Reserved.