U - Unit the unit for which this Matrix will be createdpublic static class DoubleMatrix.Rel<U extends Unit<U>> extends DoubleMatrix<U> implements Relative, FunctionsRel<U,DoubleMatrix.Abs<U>,DoubleMatrix.Rel<U>>
DoubleMatrix.Abs<U extends Unit<U>>, DoubleMatrix.Rel<U extends Unit<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 |
|---|---|
DoubleMatrix.Rel<U> |
divide(DoubleMatrix.Rel<U> rel)
Divide this Relative value by a Relative value for a vector or matrix.
|
DoubleScalar.Rel<U> |
get(int row,
int column)
Retrieve the value stored at a specified row and column as a DoubleScalar.
|
DoubleMatrix.Rel<U> |
minus(DoubleMatrix.Rel<U> rel)
Subtract a Relative value from this Relative value for a vector or matrix.
|
MutableDoubleMatrix.Rel<U> |
mutable()
Create a mutable version of this DoubleMatrix.
|
DoubleMatrix.Abs<U> |
plus(DoubleMatrix.Abs<U> abs)
Add an Absolute value to this Relative value for a vector or matrix.
|
DoubleMatrix.Rel<U> |
plus(DoubleMatrix.Rel<U> rel)
Add a Relative value to this Relative value for a vector or matrix.
|
DoubleMatrix.Rel<U> |
times(DoubleMatrix.Rel<U> rel)
Multiply a Relative value by this Relative value for a vector or matrix.
|
DoubleMatrix.Rel<U> |
toDense()
Create a dense version of this DoubleMatrix.
|
DoubleMatrix.Rel<U> |
toSparse()
Create a sparse version of this DoubleMatrix.
|
cardinality, checkIndex, checkSize, checkSize, checkUnit, columns, determinant, divide, ensureRectangularAndNonEmpty, ensureRectangularAndNonEmpty, equals, getData, getInUnit, getInUnit, getSI, getStorageType, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, instantiateAbs, instantiateRel, minus, minus, minus, plus, plus, rows, times, toString, toString, toString, toString, zSumexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelativepublic 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 - 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 - the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriesRel(DoubleMatrixData data, U unit)
data - an internal data objectunit - the unitpublic MutableDoubleMatrix.Rel<U> mutable()
mutable in interface DoubleMatrixInterface<U extends Unit<U>>public DoubleMatrix.Rel<U> toDense()
toDense in interface DoubleMatrixInterface<U extends Unit<U>>public DoubleMatrix.Rel<U> toSparse()
toSparse in interface DoubleMatrixInterface<U extends Unit<U>>public DoubleScalar.Rel<U> get(int row, int column) throws ValueException
get in interface DoubleMatrixInterface<U extends Unit<U>>row - int; row of the value to retrievecolumn - int; column of the value to retrieveValueException - when row or column out of range (row < 0 or row >= rows() or column < 0 or column >=
columns())public DoubleMatrix.Rel<U> plus(DoubleMatrix.Rel<U> rel) throws ValueException
plus in interface FunctionsRel<U extends Unit<U>,DoubleMatrix.Abs<U extends Unit<U>>,DoubleMatrix.Rel<U extends Unit<U>>>rel - R the right operandValueException - in case this vector or matrix and the operand have a different sizepublic DoubleMatrix.Abs<U> plus(DoubleMatrix.Abs<U> abs) throws ValueException
plus in interface FunctionsRel<U extends Unit<U>,DoubleMatrix.Abs<U extends Unit<U>>,DoubleMatrix.Rel<U extends Unit<U>>>abs - A the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final DoubleMatrix.Rel<U> minus(DoubleMatrix.Rel<U> rel) throws ValueException
minus in interface FunctionsRel<U extends Unit<U>,DoubleMatrix.Abs<U extends Unit<U>>,DoubleMatrix.Rel<U extends Unit<U>>>rel - R the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final DoubleMatrix.Rel<U> times(DoubleMatrix.Rel<U> rel) throws ValueException
times in interface FunctionsRel<U extends Unit<U>,DoubleMatrix.Abs<U extends Unit<U>>,DoubleMatrix.Rel<U extends Unit<U>>>rel - R the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final DoubleMatrix.Rel<U> divide(DoubleMatrix.Rel<U> rel) throws ValueException
divide in interface FunctionsRel<U extends Unit<U>,DoubleMatrix.Abs<U extends Unit<U>>,DoubleMatrix.Rel<U extends Unit<U>>>rel - R the right operandValueException - in case this vector or matrix and the operand have a different sizeCopyright © 2015–2016 Delft University of Technology. All rights reserved.