U - Unit the unit for which this Matrix will be createdpublic static class MutableDoubleMatrix.Rel<U extends Unit<U>> extends MutableDoubleMatrix<U> implements Relative, MathFunctionsRel<MutableDoubleMatrix.Rel<U>>, FunctionsRel<U,DoubleMatrix.Abs<U>,DoubleMatrix.Rel<U>>, DoubleMathFunctions<MutableDoubleMatrix.Rel<U>>
MutableDoubleMatrix.Abs<U extends Unit<U>>, MutableDoubleMatrix.Rel<U extends Unit<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 |
|---|---|
MutableDoubleMatrix.Rel<U> |
abs()
Set the value(s) to their absolute value.
|
MutableDoubleMatrix.Rel<U> |
ceil()
Set the value(s) to the smallest (closest to negative infinity) value(s) that are greater than or equal to the argument
and equal to a mathematical integer.
|
MutableDoubleMatrix.Rel<U> |
copy()
Create a deep copy of this MutableDoubleMatrix.
|
MutableDoubleMatrix.Rel<U> |
decrementBy(double decrement)
Decrement the value by the supplied constant and return the changed vector.
|
MutableDoubleMatrix.Rel<U> |
decrementBy(DoubleMatrix.Rel<U> decrement)
Decrement the value by the supplied value and return the changed vector.
|
MutableDoubleMatrix.Rel<U> |
decrementBy(DoubleScalar.Rel<U> decrement)
Decrement the value by the supplied value and return the changed vector.
|
DoubleMatrix.Rel<U> |
divide(DoubleMatrix.Rel<U> rel)
Divide this Relative value by a Relative value for a vector or matrix.
|
MutableDoubleMatrix.Rel<U> |
divideBy(double factor)
Scale the value(s) by the inverse of a factor; i.e.
|
MutableDoubleMatrix.Rel<U> |
divideBy(DoubleMatrix.Rel<U> factors)
Divide the values in the vector by the supplied values and return the changed vector.
|
MutableDoubleMatrix.Rel<U> |
divideBy(DoubleScalar.Rel<U> factor)
Divide the values in the vector by the supplied value and return the changed vector.
|
MutableDoubleMatrix.Rel<U> |
floor()
Set the value(s) to the largest (closest to positive infinity) value(s) that are less than or equal to the argument and
equal to a mathematical integer.
|
DoubleScalar.Rel<U> |
get(int row,
int column)
Retrieve the value stored at a specified row and column as a DoubleScalar.
|
DoubleMatrix.Rel<U> |
immutable()
Create a immutable version of this MutableDoubleMatrix.
|
MutableDoubleMatrix.Rel<U> |
incrementBy(double increment)
Increment the value by the supplied constant and return the changed vector.
|
MutableDoubleMatrix.Rel<U> |
incrementBy(DoubleMatrix.Rel<U> increment)
Increment the value by the supplied value and return the changed vector.
|
MutableDoubleMatrix.Rel<U> |
incrementBy(DoubleScalar.Rel<U> increment)
Increment the value by the supplied value and return the changed vector.
|
DoubleMatrix.Rel<U> |
minus(DoubleMatrix.Rel<U> rel)
Subtract a Relative value from this Relative value for a vector or matrix.
|
MutableDoubleMatrix.Rel<U> |
multiplyBy(double factor)
Scale the value(s) by a factor.
|
MutableDoubleMatrix.Rel<U> |
multiplyBy(DoubleMatrix.Rel<U> factors)
Multiply the values in the vector by the supplied values and return the changed vector.
|
MutableDoubleMatrix.Rel<U> |
multiplyBy(DoubleScalar.Rel<U> factor)
Multiply the values in the vector by the supplied value and return the changed vector.
|
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.
|
MutableDoubleMatrix.Rel<U> |
rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
MutableDoubleMatrix.Rel<U> |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
DoubleMatrix.Rel<U> |
times(DoubleMatrix.Rel<U> rel)
Multiply a Relative value by this Relative value for a vector or matrix.
|
MutableDoubleMatrix.Rel<U> |
toDense()
Create a dense version of this DoubleMatrix.
|
MutableDoubleMatrix.Rel<U> |
toSparse()
Create a sparse version of this DoubleMatrix.
|
assign, checkCopyOnWrite, instantiateMutableAbs, normalize, set, setCopyOnWrite, setInUnit, setSIcardinality, 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, isRelativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitDIV, MULT, POWcardinality, columns, determinant, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, rows, toString, toString, toString, toString, zSumpublic 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 - 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 - 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 DoubleMatrix.Rel<U> immutable()
immutable in interface MutableDoubleMatrixInterface<U extends Unit<U>>public MutableDoubleMatrix.Rel<U> mutable()
mutable in interface DoubleMatrixInterface<U extends Unit<U>>public MutableDoubleMatrix.Rel<U> copy()
copy in interface MutableDoubleMatrixInterface<U extends Unit<U>>public MutableDoubleMatrix.Rel<U> toDense()
toDense in interface DoubleMatrixInterface<U extends Unit<U>>toDense in interface MutableDoubleMatrixInterface<U extends Unit<U>>public MutableDoubleMatrix.Rel<U> toSparse()
toSparse in interface DoubleMatrixInterface<U extends Unit<U>>toSparse in interface MutableDoubleMatrixInterface<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 final MutableDoubleMatrix.Rel<U> incrementBy(DoubleMatrix.Rel<U> increment) throws ValueException
increment - DoubleMatrix.Rel<U>; amount by which the value is incrementedValueException - when the size of increment is not identical to the size of thispublic final MutableDoubleMatrix.Rel<U> incrementBy(DoubleScalar.Rel<U> increment)
increment - DoubleScalar.Rel<U>; amount by which the value is incrementedpublic final MutableDoubleMatrix.Rel<U> incrementBy(double increment)
increment - amount by which the value is incrementedpublic final MutableDoubleMatrix.Rel<U> decrementBy(DoubleMatrix.Rel<U> decrement) throws ValueException
decrement - DoubleMatrix.Rel<U>; amount by which the value is decrementedValueException - when the size of increment is not identical to the size of thispublic final MutableDoubleMatrix.Rel<U> decrementBy(DoubleScalar.Rel<U> decrement)
decrement - DoubleScalar.Rel<U>; amount by which the value is decrementedpublic final MutableDoubleMatrix.Rel<U> decrementBy(double decrement)
decrement - amount by which the value is decrementedpublic final MutableDoubleMatrix.Rel<U> multiplyBy(DoubleMatrix.Rel<U> factors) throws ValueException
factors - DoubleMatrix.Rel<U>; amounts by which the value is multipliedValueException - when the size of the factors is not identical to the size of thispublic final MutableDoubleMatrix.Rel<U> multiplyBy(DoubleScalar.Rel<U> factor)
factor - DoubleScalar.Rel<U>; amount by which the values in the vector are multipliedpublic MutableDoubleMatrix.Rel<U> multiplyBy(double factor)
multiplyBy in interface DoubleMathFunctions<MutableDoubleMatrix.Rel<U extends Unit<U>>>factor - double; the multiplierpublic final MutableDoubleMatrix.Rel<U> divideBy(DoubleMatrix.Rel<U> factors) throws ValueException
factors - DoubleMatrix.Rel<U>; amounts by which the value is dividedValueException - when the size of the factors is not identical to the size of thispublic MutableDoubleMatrix.Rel<U> divideBy(double factor)
divideBy in interface DoubleMathFunctions<MutableDoubleMatrix.Rel<U extends Unit<U>>>factor - double; the divisorpublic final MutableDoubleMatrix.Rel<U> divideBy(DoubleScalar.Rel<U> factor)
factor - DoubleScalar.Rel<U>; amount by which the values in the vector are dividedpublic 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 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 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 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 sizepublic MutableDoubleMatrix.Rel<U> abs()
abs in interface MathFunctionsRel<MutableDoubleMatrix.Rel<U extends Unit<U>>>public MutableDoubleMatrix.Rel<U> ceil()
ceil in interface MathFunctionsAbs<MutableDoubleMatrix.Rel<U extends Unit<U>>>public MutableDoubleMatrix.Rel<U> floor()
floor in interface MathFunctionsAbs<MutableDoubleMatrix.Rel<U extends Unit<U>>>public MutableDoubleMatrix.Rel<U> rint()
rint in interface MathFunctionsAbs<MutableDoubleMatrix.Rel<U extends Unit<U>>>public MutableDoubleMatrix.Rel<U> round()
round in interface MathFunctionsAbs<MutableDoubleMatrix.Rel<U extends Unit<U>>>Copyright © 2015–2016 Delft University of Technology. All rights reserved.