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.
|
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
|
double |
getX() |
int |
length() |
void |
negate()
Negates all elements in the array
|
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, 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, fillRange, get, getElements, getLongShape, getShape, getShape, getSlices, getTranspose, getTransposeView, hashCode, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isElementConstrained, isUnitLengthVector, isZeroVector, iterator, join, log, magnitude, magnitudeSquared, maxAbsElement, multiply, multiply, multiply, multiply, multiplyTo, nonZeroCount, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, pow, projectToPlane, reshape, scale, scaleAdd, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, set, set, setElements, setElements, setValues, signum, slice, slice, sliceCount, square, sub, sub, sub, subMultiple, subVector, toArray, toDoubleBuffer, toList, toString, toVector, validateepsilonEquals, epsilonEquals, exp, get, get, getSliceViews, reciprocal, scale, set, set, sqrtfinalize, getClass, notify, notifyAll, wait, wait, waitepsilonEquals, epsilonEquals, exp, get, get, getSliceViews, reciprocal, scale, set, set, sqrtpublic 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 fill(double v)
AVectorpublic void copyTo(double[] data,
int offset)
AVectorpublic void setValues(double x)
public void negate()
INDArraypublic Vector1 clone()
AVectorpublic double getX()
getX in class APrimitiveVectorpublic Vector1 exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorCopyright © 2013. All Rights Reserved.