public static class MoneyPerVolumeVector.Dense extends MoneyPerVolumeVector implements DenseData
MoneyPerVolumeVector.Dense, MoneyPerVolumeVector.SparseDoubleVector.Abs<U extends Unit<U>>, DoubleVector.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
Dense(double[] values,
MoneyPerVolumeUnit unit)
Construct a new Dense Immutable Double MoneyPerVolume Vector.
|
Dense(List<Double> values,
MoneyPerVolumeUnit unit)
Construct a new Relative Dense Immutable DoubleVector.
|
Dense(List<DoubleScalar.Rel<MoneyPerVolumeUnit>> values)
Construct a new Relative Dense Immutable DoubleVector.
|
Dense(MoneyPerVolume[] values)
Construct a new Relative Dense Immutable MoneyPerVolume Vector.
|
| Modifier and Type | Method and Description |
|---|---|
protected DoubleVectorDataDense |
getData() |
MutableMoneyPerVolumeVector |
mutable()
Create a mutable version of this DoubleVector.
|
MoneyPerVolumeVector |
toDense()
Create a dense version of this DoubleVector.
|
MoneyPerVolumeVector |
toSparse()
Create a sparse version of this DoubleVector.
|
divide, get, minus, plus, timesdivide, minus, plus, plus, timescardinality, 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 Dense(double[] values,
MoneyPerVolumeUnit unit)
throws ValueException
values - double[]; the values of the entries in the new Dense Immutable Double MoneyPerVolume Vectorunit - U; the unit of the new Dense Immutable MoneyPerVolume VectorValueException - when values is nullpublic Dense(List<Double> values, MoneyPerVolumeUnit unit) throws ValueException
values - List; the values of the entries in the new Relative Dense Immutable MoneyPerVolume Vectorunit - U; the unit of the new Relative Dense Immutable MoneyPerVolume VectorValueException - when values is nullpublic Dense(List<DoubleScalar.Rel<MoneyPerVolumeUnit>> values) throws ValueException
values - List<MoneyPerVolume>; the values of the Scalar MoneyPerVolume entries in the new Relative Dense
Immutable DoubleVectorValueException - when values has zero entriespublic Dense(MoneyPerVolume[] values) throws ValueException
values - MoneyPerVolume[]; the values of the Scalar MoneyPerVolume entries in the new Relative Dense Immutable
MoneyPerVolume VectorValueException - when values has zero entriespublic final MutableMoneyPerVolumeVector mutable()
mutable in interface DoubleVectorInterface<MoneyPerVolumeUnit>mutable in class MoneyPerVolumeVectorprotected final DoubleVectorDataDense getData()
getData in class DoubleVector<MoneyPerVolumeUnit>public final MoneyPerVolumeVector toDense()
toDense in interface DoubleVectorInterface<MoneyPerVolumeUnit>toDense in class MoneyPerVolumeVectorpublic final MoneyPerVolumeVector toSparse()
toSparse in interface DoubleVectorInterface<MoneyPerVolumeUnit>toSparse in class MoneyPerVolumeVectorCopyright © 2015 Delft University of Technology. All rights reserved.