public final class Vector0 extends APrimitiveVector
| Constructor and Description |
|---|
Vector0() |
| 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()
Computes the hashcode of a vector.
|
boolean |
isMutable()
Returns true if this vector is mutable.
|
boolean |
isZero()
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, isView, toNormalabs, 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, asDoubleArray, asElementList, asVector, broadcast, broadcastLike, broadcastLike, clamp, clampMax, clampMin, compareTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divide, divideTo, dotProduct, dotProduct, dotProduct, dotProduct, elementCount, elementIterator, elementSquaredSum, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, fill, fillRange, get, get, getElements, getLongShape, getShape, getShape, getSlices, getTranspose, getTransposeCopy, getTransposeView, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isSameShape, isSameShape, isUnitLengthVector, iterator, log, logistic, maxAbsElement, multiply, multiply, multiply, multiply, multiplyTo, negate, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, pow, projectToPlane, reshape, scale, scaleAdd, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, set, setElements, setElements, setRange, setValues, signum, slice, slice, sliceCount, square, sub, sub, sub, subMultiple, subVector, tanh, toDoubleArray, toDoubleBuffer, toList, toString, toVector, unsafeGet, unsafeSet, validate, zeroCountbroadcastCloneLike, ensureMutable, exp, get, getSliceViews, isBoolean, reciprocal, scale, set, set, sqrt, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waitbroadcastCloneLike, ensureMutable, exp, get, getSliceViews, isBoolean, reciprocal, scale, set, set, sqrt, toArraypublic 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()
AVectorclone in interface INDArrayclone in class APrimitiveVectorpublic boolean isMutable()
AVectorisMutable in interface INDArrayisMutable in class APrimitiveVectorpublic int hashCode()
AVectorpublic boolean isZero()
AVectorpublic double magnitudeSquared()
magnitudeSquared in class AVectorpublic double magnitude()
AVectorpublic AVector join(AVector v)
AVectorpublic Vector0 exactClone()
AVectorexactClone in interface INDArrayexactClone in class APrimitiveVectorCopyright © 2013. All Rights Reserved.