U - Unit the unit for which this Matrix will be createdpublic static class DoubleMatrix.Abs<U extends Unit<U>> extends DoubleMatrix<U> implements Absolute, FunctionsAbs<U,DoubleMatrix.Abs<U>,DoubleMatrix.Rel<U>>
DoubleMatrix.Abs<U extends Unit<U>>, DoubleMatrix.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
Abs(double[][] values,
U unit,
StorageType storageType)
Construct a new Absolute Immutable DoubleMatrix.
|
Abs(DoubleMatrixData data,
U unit)
Construct a new Absolute Immutable DoubleMatrix.
|
Abs(DoubleScalar.Abs<U>[][] values,
StorageType storageType)
Construct a new Absolute Immutable DoubleMatrix.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar.Abs<U> |
get(int row,
int column)
Retrieve the value stored at a specified row and column as a DoubleScalar.
|
DoubleMatrix.Rel<U> |
minus(DoubleMatrix.Abs<U> abs)
Subtract an Absolute value from this Absolute value for a vector or matrix.
|
DoubleMatrix.Abs<U> |
minus(DoubleMatrix.Rel<U> rel)
Subtract a Relative value from this Absolute value for a vector or matrix.
|
MutableDoubleMatrix.Abs<U> |
mutable()
Create a mutable version of this DoubleMatrix.
|
DoubleMatrix.Abs<U> |
plus(DoubleMatrix.Rel<U> rel)
Add a Relative value to this Absolute value for a vector or matrix.
|
DoubleMatrix.Abs<U> |
toDense()
Create a dense version of this DoubleMatrix.
|
DoubleMatrix.Abs<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 Abs(double[][] values,
U unit,
StorageType storageType)
throws ValueException
values - double[][]; the values of the entries in the new Absolute Immutable DoubleMatrixunit - U; the unit of the new Absolute Immutable DoubleMatrixstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic Abs(DoubleScalar.Abs<U>[][] values, StorageType storageType) throws ValueException
values - DoubleScalar.Abs<U>[][]; the values of the entries in the new Absolute Immutable DoubleMatrixstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriesAbs(DoubleMatrixData data, U unit)
data - an internal data objectunit - the unitpublic MutableDoubleMatrix.Abs<U> mutable()
mutable in interface DoubleMatrixInterface<U extends Unit<U>>public DoubleMatrix.Abs<U> toDense()
toDense in interface DoubleMatrixInterface<U extends Unit<U>>public DoubleMatrix.Abs<U> toSparse()
toSparse in interface DoubleMatrixInterface<U extends Unit<U>>public DoubleScalar.Abs<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.Abs<U> plus(DoubleMatrix.Rel<U> rel) throws ValueException
plus in interface FunctionsAbs<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 and the operand have a different sizepublic DoubleMatrix.Abs<U> minus(DoubleMatrix.Rel<U> rel) throws ValueException
minus in interface FunctionsAbs<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 and the operand have a different sizepublic DoubleMatrix.Rel<U> minus(DoubleMatrix.Abs<U> abs) throws ValueException
minus in interface FunctionsAbs<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 and the operand have a different sizeCopyright © 2015–2016 Delft University of Technology. All rights reserved.