public final class Vector1 extends APrimitiveVector
| Modifier and Type | Field and Description |
|---|---|
double |
x |
| Constructor and Description |
|---|
Vector1() |
Vector1(double... values) |
Vector1(double x) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyOp(Op op)
Applies a unary operator to all elements of the array (in-place)
|
Vector1 |
clone()
Clones the vector, creating a new copy of all data.
|
double |
elementSum()
Returns the sum of all elements in a vector
|
Vector1 |
exactClone()
Returns an exact clone of this vector, i.e.
|
double |
get(int i) |
double |
getX() |
int |
length() |
static Vector1 |
of(double... values) |
static Vector1 |
of(double x) |
void |
set(int i,
double value) |
void |
setValues(double x) |
getT, getY, getZ, isFullyMutable, isMutable, isViewabs, add, add, add, add, add, add, addAt, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultipleToArray, addProduct, addProduct, addProduct, addProductToArray, addProductToArray, addToArray, addWeighted, angle, applyOp, asList, asVector, broadcast, clamp, clampMax, clampMin, 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, getShape, getSlices, hashCode, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isUnitLengthVector, isZeroVector, iterator, join, magnitude, magnitudeSquared, maxAbsElement, multiply, multiply, multiply, multiplyTo, negate, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, projectToPlane, reshape, scale, scale, scaleAdd, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, set, set, signum, slice, sliceCount, square, sub, sub, sub, subMultiple, subVector, toArray, toList, toStringget, get, set, setpublic Vector1()
public Vector1(double x)
public Vector1(double... values)
public static Vector1 of(double x)
public static Vector1 of(double... values)
public int length()
public double elementSum()
AVectorelementSum in class AVectorpublic void applyOp(Op op)
INDArraypublic double get(int i)
public void set(int i,
double value)
public void setValues(double x)
public Vector1 clone()
AVectorpublic double getX()
getX in class APrimitiveVectorpublic Vector1 exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorCopyright © 2013. All Rights Reserved.