public final class ZeroVector extends APrimitiveVector implements ISparse
| Constructor and Description |
|---|
ZeroVector(int dimensions) |
| Modifier and Type | Method and Description |
|---|---|
static ZeroVector |
create(int dimensions) |
double |
density()
Computes the density ratio of this sparse array (proportion of non-zero elements)
|
double |
elementSum()
Returns the sum of all elements in a vector
|
ZeroVector |
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 |
isUnitLengthVector()
Returns true if the vector has unit length
|
boolean |
isZeroVector()
Returns true if this vector is a zero vector (all components zero)
|
int |
length() |
double |
magnitude()
Returns the magnitude (Euclidean length) of the vector
|
double |
magnitudeSquared() |
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, clone, 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, getLongShape, getShape, getSlices, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, iterator, join, 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, toStringget, get, scale, set, set, setElementspublic static ZeroVector create(int dimensions)
public int length()
public double get(int i)
public void set(int i,
double value)
public double magnitudeSquared()
magnitudeSquared in class AVectorpublic double magnitude()
AVectorpublic double elementSum()
AVectorelementSum in class AVectorpublic boolean isZeroVector()
AVectorisZeroVector in class AVectorpublic boolean isMutable()
AVectorisMutable in interface INDArrayisMutable in class APrimitiveVectorpublic boolean isUnitLengthVector()
AVectorisUnitLengthVector in class AVectorpublic ZeroVector exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorCopyright © 2013. All Rights Reserved.