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