public static class LengthVector.Abs.Sparse extends LengthVector.Abs implements SparseData
LengthVector.Abs.Dense, LengthVector.Abs.SparseDoubleVector.Abs<U extends Unit<U>>, DoubleVector.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
Sparse(double[] values,
LengthUnit unit)
Construct a new Absolute Sparse Immutable DoubleVector.
|
Sparse(Length.Abs[] values)
Construct a new Absolute Sparse Immutable DoubleVector.
|
Sparse(SortedMap<Integer,Double> values,
LengthUnit unit,
int length)
Construct a new Absolute Sparse Immutable DoubleVector.
|
Sparse(SortedMap<Integer,DoubleScalar.Abs<LengthUnit>> values,
int length)
Construct a new Absolute Sparse Immutable DoubleVector.
|
| Modifier and Type | Method and Description |
|---|---|
protected DoubleVectorDataSparse |
getData() |
MutableLengthVector.Abs |
mutable()
Create a mutable version of this DoubleVector.
|
LengthVector.Abs |
toDense()
Create a dense version of this DoubleVector.
|
LengthVector.Abs |
toSparse()
Create a sparse version of this DoubleVector.
|
get, minus, minus, plusminus, minus, pluscardinality, checkIndex, checkSize, checkSize, equals, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, initializeSparse, initializeSparseMA, initializeSparseMR, safeGet, safeSet, size, toString, toString, toString, toString, zSumexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelativepublic Sparse(SortedMap<Integer,Double> values, LengthUnit unit, int length) throws ValueException
values - Map; the map of indexes to values of the Absolute Sparse Immutable DoubleVectorunit - U; the unit of the new Absolute Sparse Immutable DoubleVectorlength - the size of the vectorValueException - when values is nullpublic Sparse(SortedMap<Integer,DoubleScalar.Abs<LengthUnit>> values, int length) throws ValueException
values - DoubleScalar.Abs<U>[]; the values of the entries in the new Absolute Sparse Immutable
DoubleVectorlength - the size of the vectorValueException - when values has zero entriespublic Sparse(double[] values,
LengthUnit unit)
throws ValueException
values - double[]; the values of the entries in the new Absolute Sparse Immutable DoubleVectorunit - U; the unit of the new Absolute Sparse Immutable DoubleVectorValueException - when values is nullpublic Sparse(Length.Abs[] values) throws ValueException
values - DoubleScalar.Abs<U>[]; the values of the entries in the new Absolute Sparse Immutable
DoubleVectorValueException - when values has zero entriespublic MutableLengthVector.Abs mutable()
mutable in interface DoubleVectorInterface<LengthUnit>mutable in class LengthVector.Absprotected final DoubleVectorDataSparse getData()
getData in class DoubleVector<LengthUnit>public LengthVector.Abs toDense()
toDense in interface DoubleVectorInterface<LengthUnit>toDense in class LengthVector.Abspublic LengthVector.Abs toSparse()
toSparse in interface DoubleVectorInterface<LengthUnit>toSparse in class LengthVector.AbsCopyright © 2015 Delft University of Technology. All rights reserved.