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 |
addAt(int i,
double value) |
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.
|
void |
copyTo(double[] data,
int offset)
Copies a the contents of a vector to a double array at the specified offset
|
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)
Returns the double value at the specified position in a 1D vector
|
double |
getX() |
int |
length() |
void |
negate() |
static Vector1 |
of(double... values) |
static Vector1 |
of(double x) |
void |
set(double v)
Sets all elements of an array to a specific double value
|
void |
set(int i,
double value) |
void |
setValues(double x) |
getT, getY, getZ, isFullyMutable, isMutable, isViewabs, add, add, add, add, add, add, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultipleToArray, addProduct, addProduct, addProduct, addProductToArray, addProductToArray, addToArray, addToArray, addWeighted, angle, applyOp, asElementList, 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, elementSquaredSum, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, fill, fillRange, get, getElements, getLongShape, getShape, getShape, getSlices, hashCode, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isUnitLengthVector, isZeroVector, iterator, join, magnitude, magnitudeSquared, maxAbsElement, multiply, multiply, multiply, multiply, multiplyTo, nonZeroCount, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, projectToPlane, reshape, scale, scaleAdd, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, set, setElements, setValues, signum, slice, slice, sliceCount, square, sub, sub, sub, subMultiple, subVector, toArray, toDoubleBuffer, toList, toString, validateget, get, getSliceViews, scale, set, set, setElements, toVectorfinalize, getClass, notify, notifyAll, wait, wait, waitget, get, getSliceViews, scale, set, set, setElements, toVectorpublic 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 interface INDArrayelementSum in class AVectorpublic void applyOp(Op op)
INDArraypublic double get(int i)
INDArraypublic void set(int i,
double value)
public void set(double v)
INDArraypublic void copyTo(double[] data,
int offset)
AVectorpublic void setValues(double x)
public void negate()
public Vector1 clone()
AVectorpublic double getX()
getX in class APrimitiveVectorpublic Vector1 exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorCopyright © 2013. All Rights Reserved.