U - Unit the unit for which this Matrix will be createdpublic static class DoubleMatrix.Rel<U extends Unit<U>> extends AbstractDoubleMatrixRel<U,DoubleMatrix.Rel<U>,MutableDoubleMatrix.Rel<U>,DoubleScalar.Rel<U>>
data| Constructor and Description |
|---|
Rel(double[][] values,
U unit,
StorageType storageType)
Construct a new Relative Immutable DoubleMatrix.
|
Rel(DoubleMatrixData data,
U unit)
Construct a new Relative Immutable DoubleMatrix.
|
Rel(DoubleScalar.Rel<U>[][] values,
StorageType storageType)
Construct a new Relative Immutable DoubleMatrix.
|
| Modifier and Type | Method and Description |
|---|---|
protected MutableDoubleMatrix.Rel<U> |
instantiateMutableType(DoubleMatrixData dmd,
U unit)
Construct a new Relative Mutable DoubleMatrix of the right type.
|
protected DoubleScalar.Rel<U> |
instantiateScalar(double value,
U unit)
Construct a new Relative Immutable DoubleScalar of the right type.
|
protected DoubleMatrix.Rel<U> |
instantiateType(DoubleMatrixData dmd,
U unit)
Construct a new Relative Immutable DoubleMatrix of the right type.
|
DoubleMatrix.Rel<U> |
toDense()
Create a dense version of this DoubleMatrix.
|
DoubleMatrix.Rel<U> |
toSparse()
Create a sparse version of this DoubleMatrix.
|
checkUnit, divide, ensureRectangularAndNonEmpty, get, minus, mutable, plus, timescardinality, checkIndex, checkSize, checkSize, columns, determinant, ensureRectangularAndNonEmpty, equals, getData, getInUnit, getInUnit, getSI, getStorageType, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, rows, toString, toString, toString, toString, zSumexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnitpublic Rel(double[][] values,
U unit,
StorageType storageType)
throws ValueException
values - double[][]; the values of the entries in the new Relative Immutable DoubleMatrixunit - U; the unit of the new Relative Immutable DoubleMatrixstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic Rel(DoubleScalar.Rel<U>[][] values, StorageType storageType) throws ValueException
values - DoubleScalar.Rel<U>[][]; the values of the entries in the new Relative Immutable DoubleMatrixstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriesRel(DoubleMatrixData data, U unit)
data - DoubleMatrixData; an internal data objectunit - U; the unitpublic DoubleMatrix.Rel<U> toDense()
public DoubleMatrix.Rel<U> toSparse()
protected final DoubleMatrix.Rel<U> instantiateType(DoubleMatrixData dmd, U unit)
instantiateType in class AbstractDoubleMatrixRel<U extends Unit<U>,DoubleMatrix.Rel<U extends Unit<U>>,MutableDoubleMatrix.Rel<U extends Unit<U>>,DoubleScalar.Rel<U extends Unit<U>>>dmd - DoubleMatrixData; an internal data objectunit - U; the unitprotected final MutableDoubleMatrix.Rel<U> instantiateMutableType(DoubleMatrixData dmd, U unit)
instantiateMutableType in class AbstractDoubleMatrixRel<U extends Unit<U>,DoubleMatrix.Rel<U extends Unit<U>>,MutableDoubleMatrix.Rel<U extends Unit<U>>,DoubleScalar.Rel<U extends Unit<U>>>dmd - DoubleMatrixData; an internal data objectunit - U; the unitprotected final DoubleScalar.Rel<U> instantiateScalar(double value, U unit)
instantiateScalar in class AbstractDoubleMatrixRel<U extends Unit<U>,DoubleMatrix.Rel<U extends Unit<U>>,MutableDoubleMatrix.Rel<U extends Unit<U>>,DoubleScalar.Rel<U extends Unit<U>>>value - double; the valueunit - U; the unitCopyright © 2015–2019 Delft University of Technology. All rights reserved.