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
- StorageType; 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<Double>; the values of the entries in the new Absolute Mutable DoubleVectorunit
- AU; the unit of the new Absolute Mutable DoubleVectorstorageType
- StorageType; 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.Abs<AU, RU>[]; the values of the entries in the new Absolute Mutable DoubleVectorstorageType
- StorageType; 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<DoubleScalar.Abs<AU, RU>>; the values of the entries in the new Absolute Mutable
DoubleVectorstorageType
- StorageType; 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
- SortedMap<Integer, DoubleScalar.Abs<AU, RU>>; the values of the entries in the new Absolute
Sparse Mutable DoubleVectorlength
- int; the size of the vectorstorageType
- StorageType; 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
- SortedMap<Integer, Double>; the map of indexes to values of the Absolute Sparse Mutable
DoubleVectorunit
- AU; the unit of the new Absolute Sparse Mutable DoubleVectorlength
- int; the size of the vectorstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic Abs(DoubleVectorData data, AU unit)
data
- DoubleVectorData; an internal data objectunit
- AU; 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
- DoubleVectorData; an internal data objectunit
- AU; 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
- DoubleVectorData; an internal data objectunit
- RU; 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
- DoubleVectorData; an internal data objectunit
- AU; 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
- double; the valueunit
- AU; the unitpublic final DoubleVector.Abs<AU,RU> toDense()
public final DoubleVector.Abs<AU,RU> toSparse()
Copyright © 2015–2019 Delft University of Technology. All rights reserved.