public class VoidVector extends VectorBase
Constructor and Description |
---|
VoidVector(int size) |
Modifier and Type | Method and Description |
---|---|
VoidVector |
clone() |
double |
get(int idx)
Gets a single element of this vector.
|
int |
set(double[] values,
int idx)
Sets the elements of this vector from an array of doubles,
starting from a particular location.
|
void |
set(int idx,
double val)
Sets a single element of this vector.
|
int |
size()
Returns the number of elements in this vector.
|
containsNaN, copy, copyAndAdd, copyAndNegate, copyAndScale, copyAndSub, copyAndSubLeft, dot, epsilonEquals, equals, get, get, getDefaultFormat, hasInf, hasNaN, infinityNorm, isColumnVectorStringsVertical, isFixedSize, isRowVector, isWritable, maxElement, minElement, norm, normSquared, oneNorm, scan, scan, set, set, set, setColumnVectorStringsVertical, setDefaultFormat, setRowVector, setSize, toString, toString, toString, write, write, write, writeToFile
public int size()
VectorBase
size
in interface Vector
size
in class VectorBase
public void set(int idx, double val)
VectorBase
set
in interface Vector
set
in class VectorBase
idx
- element indexval
- element valuepublic int set(double[] values, int idx)
Vector
values
- array from which values are copiedidx
- starting point within values from which copying should beginpublic double get(int idx)
VectorBase
get
in interface Vector
get
in class VectorBase
idx
- element indexpublic VoidVector clone()
clone
in interface Clonable
clone
in class VectorBase