public class MatrixViewVector extends AMatrixSubVector
| Constructor and Description |
|---|
MatrixViewVector(AMatrix a) |
| Modifier and Type | Method and Description |
|---|---|
void |
abs()
Sets each component of the vector to its absolute value
|
void |
applyOp(Op op)
Applies a unary operator to all elements of the array (in-place)
|
List<Double> |
asElementList()
Returns a list containing all elements of this array
|
void |
clamp(double min,
double max)
Clamps all values in the vector to a given range
|
double |
elementSum()
Returns the sum of all elements in a vector
|
AVector |
exactClone()
Returns an exact clone of this vector, i.e.
|
void |
exp()
Computes the function e^x (in-place) for all array elements
|
void |
fill(double v)
Fills the entire vector with a given value
|
double |
get(int i)
Returns the double value at the specified position in a 1D vector
|
void |
getElements(double[] data,
int offset)
Gets all elements of the array, copying them into a double array
|
boolean |
isFullyMutable()
Returns true if this vector is fully mutable, i.e.
|
boolean |
isMutable()
Returns true if this vector is mutable.
|
boolean |
isView()
Returns true if this vector is of a view type that references other vectors / data.
|
boolean |
isZero()
Returns true if this vector is a zero vector (all components zero)
|
int |
length() |
void |
log()
Computes the natural logarithm (in-place) for all array elements
|
double |
magnitudeSquared() |
void |
negate()
Negates all elements in the array
|
void |
pow(double exponent)
Raises all elements of the array to a specified power
|
void |
set(int i,
double value) |
void |
signum()
Sets each component of the vector to its sign value (-1, 0 or 1)
|
void |
sqrt()
Computes the square root of all elements in the array
|
void |
square()
Squares all elements of the vector
|
double |
unsafeGet(int i) |
void |
unsafeSet(int i,
double value) |
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, asDoubleArray, asVector, broadcast, broadcastLike, broadcastLike, clampMax, clampMin, clone, 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, equalsArray, fillRange, get, get, get, getLongShape, getShape, getShape, getSlices, getTranspose, getTransposeCopy, getTransposeView, hashCode, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isSameShape, isSameShape, isUnitLengthVector, iterator, join, logistic, magnitude, maxAbsElement, multiply, multiply, multiply, multiply, multiplyTo, mutable, nonZeroCount, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, projectToPlane, reshape, scale, scaleAdd, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, set, set, setElements, setElements, setRange, setValues, slice, slice, sliceCount, sub, sub, sub, subMultiple, subVector, tanh, toDoubleArray, toDoubleBuffer, toList, toNormal, toString, toVector, validate, zeroCountbroadcastCloneLike, ensureMutable, get, getSliceViews, isBoolean, reciprocal, scale, set, set, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waitbroadcastCloneLike, ensureMutable, get, getSliceViews, isBoolean, reciprocal, scale, set, set, toArraypublic MatrixViewVector(AMatrix a)
public int length()
public double get(int i)
INDArraypublic void set(int i,
double value)
public AVector exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorpublic void fill(double v)
AVectorpublic boolean isFullyMutable()
AVectorisFullyMutable in interface INDArrayisFullyMutable in class AVectorpublic boolean isMutable()
AVectorpublic boolean isView()
AVectorisView in interface INDArrayisView in class AMatrixSubVectorpublic boolean isZero()
AVectorpublic void getElements(double[] data,
int offset)
INDArraygetElements in interface INDArraygetElements in class AVectorpublic List<Double> asElementList()
INDArrayasElementList in interface INDArrayasElementList in class AVectorpublic void clamp(double min,
double max)
AVectorpublic double elementSum()
AVectorelementSum in interface INDArrayelementSum in class AVectorpublic double magnitudeSquared()
magnitudeSquared in class AVectorpublic void applyOp(Op op)
INDArraypublic void abs()
AVectorpublic void signum()
AVectorpublic void negate()
INDArraypublic void exp()
INDArrayexp in interface INDArrayexp in class AbstractArray<Double>public void log()
INDArraypublic void square()
AVectorpublic void sqrt()
INDArraysqrt in interface INDArraysqrt in class AbstractArray<Double>Copyright © 2013. All Rights Reserved.