U
- Unit the unit for which this Matrix will be createdpublic static class FloatMatrix.Rel<U extends Unit<U>> extends AbstractFloatMatrixRel<U,FloatMatrix.Rel<U>,MutableFloatMatrix.Rel<U>,FloatScalar.Rel<U>>
data
Constructor and Description |
---|
Rel(float[][] values,
U unit,
StorageType storageType)
Construct a new Relative Immutable FloatMatrix.
|
Rel(FloatMatrixData data,
U unit)
Construct a new Relative Immutable FloatMatrix.
|
Rel(FloatScalar.Rel<U>[][] values,
StorageType storageType)
Construct a new Relative Immutable FloatMatrix.
|
Modifier and Type | Method and Description |
---|---|
protected MutableFloatMatrix.Rel<U> |
instantiateMutableType(FloatMatrixData dmd,
U unit)
Construct a new Relative Mutable FloatMatrix of the right type.
|
protected FloatScalar.Rel<U> |
instantiateScalar(float value,
U unit)
Construct a new Relative Immutable FloatScalar of the right type.
|
protected FloatMatrix.Rel<U> |
instantiateType(FloatMatrixData dmd,
U unit)
Construct a new Relative Immutable FloatMatrix of the right type.
|
FloatMatrix.Rel<U> |
toDense()
Create a dense version of this FloatMatrix.
|
FloatMatrix.Rel<U> |
toSparse()
Create a sparse version of this FloatMatrix.
|
checkUnit, divide, ensureRectangularAndNonEmpty, get, minus, mutable, plus, times
cardinality, checkIndex, checkSize, checkSize, columns, determinant, ensureRectangularAndNonEmpty, equals, getData, getInUnit, getInUnit, getSI, getStorageType, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, rows, toString, toString, toString, toString, zSum
expressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnit
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
cardinality, columns, determinant, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, rows, toString, toString, toString, toString, zSum
public Rel(float[][] values, U unit, StorageType storageType) throws ValueException
values
- float[][]; the values of the entries in the new Relative Immutable FloatMatrixunit
- U; the unit of the new Relative Immutable FloatMatrixstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic Rel(FloatScalar.Rel<U>[][] values, StorageType storageType) throws ValueException
values
- FloatScalar.Abs<U>[][]; the values of the entries in the new Relative Immutable FloatMatrixstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriesRel(FloatMatrixData data, U unit)
data
- an internal data objectunit
- the unitpublic FloatMatrix.Rel<U> toDense()
public FloatMatrix.Rel<U> toSparse()
protected final FloatMatrix.Rel<U> instantiateType(FloatMatrixData dmd, U unit)
instantiateType
in class AbstractFloatMatrixRel<U extends Unit<U>,FloatMatrix.Rel<U extends Unit<U>>,MutableFloatMatrix.Rel<U extends Unit<U>>,FloatScalar.Rel<U extends Unit<U>>>
dmd
- an internal data objectunit
- the unitprotected final MutableFloatMatrix.Rel<U> instantiateMutableType(FloatMatrixData dmd, U unit)
instantiateMutableType
in class AbstractFloatMatrixRel<U extends Unit<U>,FloatMatrix.Rel<U extends Unit<U>>,MutableFloatMatrix.Rel<U extends Unit<U>>,FloatScalar.Rel<U extends Unit<U>>>
dmd
- an internal data objectunit
- the unitprotected final FloatScalar.Rel<U> instantiateScalar(float value, U unit)
instantiateScalar
in class AbstractFloatMatrixRel<U extends Unit<U>,FloatMatrix.Rel<U extends Unit<U>>,MutableFloatMatrix.Rel<U extends Unit<U>>,FloatScalar.Rel<U extends Unit<U>>>
value
- the valueunit
- the unitCopyright © 2015–2018 Delft University of Technology. All rights reserved.