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 (proportion of non-zero elements)
|
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() |
void |
validate()
Validates the internal data structure of the INDArray.
|
setabs, 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, elementCount, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, fill, fillRange, get, getElements, getLongShape, 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, scaleAdd, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, set, setElements, setValues, signum, slice, sliceCount, sub, sub, sub, subMultiple, subVector, toArray, toList, toStringget, get, scale, set, set, setElementspublic 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 boolean isZeroVector()
AVectorisZeroVector in class AVectorpublic boolean isUnitLengthVector()
AVectorisUnitLengthVector in class AVectorpublic double dotProduct(AVector v)
dotProduct 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 ComputedVectorpublic double density()
ISparsepublic void validate()
INDArrayCopyright © 2013. All Rights Reserved.