AU
- Absolute unitRU
- Relative unitpublic static class DoubleVector.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>> extends AbstractDoubleVectorAbs<AU,RU,DoubleVector.Abs<AU,RU>,DoubleVector.Rel<RU>,MutableDoubleVector.Abs<AU,RU>,DoubleScalar.Abs<AU,RU>>
AbstractDoubleVectorAbs.Itr
data
Constructor and Description |
---|
Abs(double[] values,
AU unit,
StorageType storageType)
Construct a new Absolute Mutable DoubleVector.
|
Abs(DoubleScalar.Abs<AU,RU>[] values,
StorageType storageType)
Construct a new Absolute Mutable DoubleVector.
|
Abs(DoubleVectorData data,
AU unit)
Construct a new Absolute Mutable DoubleVector.
|
Abs(List<Double> values,
AU unit,
StorageType storageType)
Construct a new Absolute Mutable DoubleVector.
|
Abs(List<DoubleScalar.Abs<AU,RU>> values,
StorageType storageType)
Construct a new Absolute Mutable DoubleVector.
|
Abs(SortedMap<Integer,Double> values,
AU unit,
int length,
StorageType storageType)
Construct a new Absolute Mutable DoubleVector.
|
Abs(SortedMap<Integer,DoubleScalar.Abs<AU,RU>> values,
int length,
StorageType storageType)
Construct a new Absolute Mutable DoubleVector.
|
Modifier and Type | Method and Description |
---|---|
protected MutableDoubleVector.Abs<AU,RU> |
instantiateMutableType(DoubleVectorData dvd,
AU unit)
Construct a new Absolute Mutable DoubleVector of the right type.
|
protected DoubleScalar.Abs<AU,RU> |
instantiateScalar(double value,
AU unit)
Construct a new Absolute Immutable DoubleScalar of the right type.
|
protected DoubleVector.Abs<AU,RU> |
instantiateTypeAbs(DoubleVectorData dvd,
AU unit)
Construct a new Absolute Immutable DoubleVector of the right type.
|
protected DoubleVector.Rel<RU> |
instantiateTypeRel(DoubleVectorData dvd,
RU unit)
Construct a new Relative Immutable DoubleVector of the right type.
|
DoubleVector.Abs<AU,RU> |
toDense()
return a dense version of this vector.
|
DoubleVector.Abs<AU,RU> |
toSparse()
return a sparse version of this vector.
|
checkUnit, checkUnit, checkUnit, get, iterator, minus, minus, mutable, plus
cardinality, checkIndex, checkSize, checkSize, equals, getData, getInUnit, getInUnit, getSI, getStorageType, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, size, toString, toString, toString, toString, zSum
expressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnit
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public Abs(double[] values, AU unit, StorageType storageType) throws ValueException
values
- double[]; the values of the entries in the new Absolute Mutable DoubleVectorunit
- AU; the unit of the new Absolute Mutable DoubleVectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic Abs(List<Double> values, AU unit, StorageType storageType) throws ValueException
values
- List; the values of the entries in the new Absolute Mutable DoubleVectorunit
- AU; the unit of the new Absolute Mutable DoubleVectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic Abs(DoubleScalar.Abs<AU,RU>[] values, StorageType storageType) throws ValueException
values
- DoubleScalar.Rel<U>[]; the values of the entries in the new Absolute Mutable DoubleVectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriespublic Abs(List<DoubleScalar.Abs<AU,RU>> values, StorageType storageType) throws ValueException
values
- List; the values of the entries in the new Absolute Mutable DoubleVectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriespublic Abs(SortedMap<Integer,DoubleScalar.Abs<AU,RU>> values, int length, StorageType storageType) throws ValueException
values
- DoubleScalar.Rel<U>[]; the values of the entries in the new Absolute Sparse Mutable DoubleVectorlength
- the size of the vectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriespublic Abs(SortedMap<Integer,Double> values, AU unit, int length, StorageType storageType) throws ValueException
values
- Map; the map of indexes to values of the Absolute Sparse Mutable DoubleVectorunit
- AU; the unit of the new Absolute Sparse Mutable DoubleVectorlength
- the size of the vectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic Abs(DoubleVectorData data, AU unit)
data
- an internal data objectunit
- the unitprotected final DoubleVector.Abs<AU,RU> instantiateTypeAbs(DoubleVectorData dvd, AU unit)
instantiateTypeAbs
in class AbstractDoubleVectorAbs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,DoubleVector.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,DoubleVector.Rel<RU extends Unit<RU>>,MutableDoubleVector.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,DoubleScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>>
dvd
- an internal data objectunit
- the unitprotected final DoubleVector.Rel<RU> instantiateTypeRel(DoubleVectorData dvd, RU unit)
instantiateTypeRel
in class AbstractDoubleVectorAbs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,DoubleVector.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,DoubleVector.Rel<RU extends Unit<RU>>,MutableDoubleVector.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,DoubleScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>>
dvd
- an internal data objectunit
- the unitprotected final MutableDoubleVector.Abs<AU,RU> instantiateMutableType(DoubleVectorData dvd, AU unit)
instantiateMutableType
in class AbstractDoubleVectorAbs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,DoubleVector.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,DoubleVector.Rel<RU extends Unit<RU>>,MutableDoubleVector.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,DoubleScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>>
dvd
- an internal data objectunit
- the unitprotected final DoubleScalar.Abs<AU,RU> instantiateScalar(double value, AU unit)
instantiateScalar
in class AbstractDoubleVectorAbs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,DoubleVector.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,DoubleVector.Rel<RU extends Unit<RU>>,MutableDoubleVector.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,DoubleScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>>
value
- the valueunit
- the unitpublic final DoubleVector.Abs<AU,RU> toDense()
public final DoubleVector.Abs<AU,RU> toSparse()
Copyright © 2015–2018 Delft University of Technology. All rights reserved.