public class AxisVector extends ComputedVector implements ISparse
| Constructor and Description |
|---|
AxisVector(int axisIndex,
int length) |
| Modifier and Type | Method and Description |
|---|---|
double |
density()
Computes the density ratio of this sparse array
|
double |
dotProduct(AVector v) |
double |
dotProduct(Vector2 v) |
double |
dotProduct(Vector3 v) |
double |
elementSum()
Returns the sum of all elements in a vector
|
AxisVector |
exactClone()
Returns an exact clone of this vector, i.e.
|
double |
get(int i) |
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() |
double |
normalise() |
void |
square() |
setabs, add, add, add, add, add, add, addAt, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultipleToArray, addProduct, addProduct, addProduct, addProductToArray, addProductToArray, addToArray, addWeighted, angle, applyOp, applyOp, asList, asVector, broadcast, clamp, clampMax, clampMin, clone, compareTo, copyTo, copyTo, copyTo, copyTo, copyTo, countZeros, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divideTo, dotProduct, elementCount, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, fill, fillRange, get, getShape, getSlices, hashCode, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isFullyMutable, isView, iterator, join, maxAbsElement, multiply, multiply, multiply, multiplyTo, negate, normaliseMaxAbsElement, outerProduct, outerProduct, projectToPlane, reshape, scale, scale, scaleAdd, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, set, set, signum, slice, sliceCount, sub, sub, sub, subMultiple, subVector, toArray, toList, toStringget, get, set, setpublic int length()
length in interface IVectorlength in class ComputedVectorpublic double magnitude()
AVectorpublic double magnitudeSquared()
magnitudeSquared in class AVectorpublic double elementSum()
AVectorelementSum in class AVectorpublic boolean isMutable()
AVectorisMutable in interface INDArrayisMutable in class ComputedVectorpublic double dotProduct(AVector v)
dotProduct in class AVectorpublic boolean isZeroVector()
AVectorisZeroVector in class AVectorpublic boolean isUnitLengthVector()
AVectorisUnitLengthVector in class AVectorpublic double dotProduct(Vector3 v)
public double dotProduct(Vector2 v)
public double get(int i)
public AxisVector exactClone()
AVectorexactClone in interface INDArrayexactClone in class ComputedVectorCopyright © 2013. All Rights Reserved.