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) |
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() |
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, addWeighted, angle, applyOp, applyOp, asElementList, asVector, broadcast, clamp, clampMax, clampMin, compareTo, copyTo, copyTo, copyTo, copyTo, copyTo, countZeros, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divideTo, dotProduct, dotProduct, elementCount, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, fill, fillRange, get, getElements, getLongShape, getShape, getSlices, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isUnitLengthVector, iterator, maxAbsElement, multiply, multiply, multiply, multiplyTo, negate, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, projectToPlane, reshape, scale, scaleAdd, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, set, setElements, setValues, signum, slice, sliceCount, square, sub, sub, sub, subMultiple, subVector, toArray, toList, toString, validateget, get, scale, set, set, setElementspublic static Vector0 INSTANCE
public static Vector0 of()
public static Vector0 of(double... values)
public int length()
public double elementSum()
AVectorelementSum in class AVectorpublic double get(int i)
public 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.