U
- Unit the unit for which this Matrix will be createdpublic static class MutableDoubleMatrix.Rel<U extends Unit<U>> extends AbstractMutableDoubleMatrixRel<U,DoubleMatrix.Rel<U>,MutableDoubleMatrix.Rel<U>,DoubleScalar.Rel<U>> implements MathFunctionsRel<MutableDoubleMatrix.Rel<U>>
data
Constructor and Description |
---|
Rel(double[][] values,
U unit,
StorageType storageType)
Construct a new Relative Mutable DoubleMatrix.
|
Rel(DoubleMatrixData data,
U unit)
Construct a new Relative Mutable DoubleMatrix.
|
Rel(DoubleScalar.Rel<U>[][] values,
StorageType storageType)
Construct a new Relative Mutable 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.
|
MutableDoubleMatrix.Rel<U> |
toDense()
Create a dense version of this DoubleMatrix.
|
MutableDoubleMatrix.Rel<U> |
toSparse()
Create a sparse version of this DoubleMatrix.
|
abs, assign, ceil, checkCopyOnWrite, copy, decrementBy, decrementBy, decrementBy, divideBy, divideBy, divideBy, floor, immutable, incrementBy, incrementBy, incrementBy, multiplyBy, multiplyBy, multiplyBy, mutable, neg, normalize, rint, round, set, setCopyOnWrite, setInUnit, setSI
checkUnit, divide, ensureRectangularAndNonEmpty, get, minus, 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
abs, neg
ceil, floor, rint, round
DIV, MULT, POW
public Rel(double[][] values, U unit, StorageType storageType) throws ValueException
values
- double[][]; the values of the entries in the new Relative Mutable DoubleMatrixunit
- U; the unit of the new Relative Mutable 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 Mutable 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 MutableDoubleMatrix.Rel<U> toDense()
toDense
in interface DoubleMatrixInterface<U extends Unit<U>>
public MutableDoubleMatrix.Rel<U> toSparse()
toSparse
in interface DoubleMatrixInterface<U extends Unit<U>>
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.