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