U - Unit the unit for which this Vector will be createdpublic static class MutableDoubleMatrix.Abs<U extends Unit<U>> extends MutableDoubleMatrix<U> implements Absolute, MathFunctionsAbs<MutableDoubleMatrix.Abs<U>>, FunctionsAbs<U,DoubleMatrix.Abs<U>,DoubleMatrix.Rel<U>>, DoubleMathFunctions<MutableDoubleMatrix.Abs<U>>
MutableDoubleMatrix.Abs<U extends Unit<U>>, MutableDoubleMatrix.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
Abs(double[][] values,
U unit,
StorageType storageType)
Construct a new Absolute Mutable DoubleMatrix.
|
Abs(DoubleMatrixData data,
U unit)
Construct a new Absolute Mutable DoubleMatrix.
|
Abs(DoubleScalar.Abs<U>[][] values,
StorageType storageType)
Construct a new Absolute Mutable DoubleMatrix.
|
| Modifier and Type | Method and Description |
|---|---|
MutableDoubleMatrix.Abs<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.Abs<U> |
copy()
Create a deep copy of this MutableDoubleMatrix.
|
MutableDoubleMatrix.Abs<U> |
decrementBy(double decrement)
Decrement the value by the supplied constant and return the changed vector.
|
MutableDoubleMatrix.Abs<U> |
decrementBy(DoubleMatrix.Rel<U> decrement)
Decrement the value by the supplied value and return the changed vector.
|
MutableDoubleMatrix.Abs<U> |
decrementBy(DoubleScalar.Rel<U> decrement)
Decrement the value by the supplied value and return the changed vector.
|
MutableDoubleMatrix.Abs<U> |
divideBy(double factor)
Scale the value(s) by the inverse of a factor; i.e.
|
MutableDoubleMatrix.Abs<U> |
divideBy(DoubleMatrix.Rel<U> factors)
Divide the values in the vector by the supplied values and return the changed vector.
|
MutableDoubleMatrix.Abs<U> |
divideBy(DoubleScalar.Rel<U> factor)
Divide the values in the vector by the supplied value and return the changed vector.
|
MutableDoubleMatrix.Abs<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.Abs<U> |
get(int row,
int column)
Retrieve the value stored at a specified row and column as a DoubleScalar.
|
DoubleMatrix.Abs<U> |
immutable()
Create a immutable version of this MutableDoubleMatrix.
|
MutableDoubleMatrix.Abs<U> |
incrementBy(double increment)
Increment the value by the supplied constant and return the changed vector.
|
MutableDoubleMatrix.Abs<U> |
incrementBy(DoubleMatrix.Rel<U> increment)
Increment the value by the supplied value and return the changed vector.
|
MutableDoubleMatrix.Abs<U> |
incrementBy(DoubleScalar.Rel<U> increment)
Increment the value by the supplied value and return the changed vector.
|
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> |
multiplyBy(double factor)
Scale the value(s) by a factor.
|
MutableDoubleMatrix.Abs<U> |
multiplyBy(DoubleMatrix.Rel<U> factors)
Multiply the values in the vector by the supplied values and return the changed vector.
|
MutableDoubleMatrix.Abs<U> |
multiplyBy(DoubleScalar.Rel<U> factor)
Multiply the values in the vector by the supplied value and return the changed vector.
|
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.
|
MutableDoubleMatrix.Abs<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.Abs<U> |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
MutableDoubleMatrix.Abs<U> |
toDense()
Create a dense version of this DoubleMatrix.
|
MutableDoubleMatrix.Abs<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 Abs(double[][] values,
U unit,
StorageType storageType)
throws ValueException
values - double[][]; the values of the entries in the new Absolute Mutable DoubleMatrixunit - U; the unit of the new Absolute Mutable 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 Mutable 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 DoubleMatrix.Abs<U> immutable()
immutable in interface MutableDoubleMatrixInterface<U extends Unit<U>>public MutableDoubleMatrix.Abs<U> mutable()
mutable in interface DoubleMatrixInterface<U extends Unit<U>>public MutableDoubleMatrix.Abs<U> copy()
copy in interface MutableDoubleMatrixInterface<U extends Unit<U>>public MutableDoubleMatrix.Abs<U> toDense()
toDense in interface DoubleMatrixInterface<U extends Unit<U>>toDense in interface MutableDoubleMatrixInterface<U extends Unit<U>>public MutableDoubleMatrix.Abs<U> toSparse()
toSparse in interface DoubleMatrixInterface<U extends Unit<U>>toSparse in interface MutableDoubleMatrixInterface<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 final MutableDoubleMatrix.Abs<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.Abs<U> incrementBy(DoubleScalar.Rel<U> increment)
increment - DoubleScalar.Rel<U>; amount by which the value is incrementedpublic final MutableDoubleMatrix.Abs<U> incrementBy(double increment)
increment - amount by which the value is incrementedpublic final MutableDoubleMatrix.Abs<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.Abs<U> decrementBy(DoubleScalar.Rel<U> decrement)
decrement - DoubleScalar.Rel<U>; amount by which the value is decrementedpublic final MutableDoubleMatrix.Abs<U> decrementBy(double decrement)
decrement - amount by which the value is decrementedpublic final MutableDoubleMatrix.Abs<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.Abs<U> multiplyBy(DoubleScalar.Rel<U> factor)
factor - DoubleScalar.Rel<U>; amount by which the values in the vector are multipliedpublic MutableDoubleMatrix.Abs<U> multiplyBy(double factor)
multiplyBy in interface DoubleMathFunctions<MutableDoubleMatrix.Abs<U extends Unit<U>>>factor - double; the multiplierpublic final MutableDoubleMatrix.Abs<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.Abs<U> divideBy(double factor)
divideBy in interface DoubleMathFunctions<MutableDoubleMatrix.Abs<U extends Unit<U>>>factor - double; the divisorpublic final MutableDoubleMatrix.Abs<U> divideBy(DoubleScalar.Rel<U> factor)
factor - DoubleScalar.Rel<U>; amount by which the values in the vector are dividedpublic 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 sizepublic MutableDoubleMatrix.Abs<U> ceil()
ceil in interface MathFunctionsAbs<MutableDoubleMatrix.Abs<U extends Unit<U>>>public MutableDoubleMatrix.Abs<U> floor()
floor in interface MathFunctionsAbs<MutableDoubleMatrix.Abs<U extends Unit<U>>>public MutableDoubleMatrix.Abs<U> rint()
rint in interface MathFunctionsAbs<MutableDoubleMatrix.Abs<U extends Unit<U>>>public MutableDoubleMatrix.Abs<U> round()
round in interface MathFunctionsAbs<MutableDoubleMatrix.Abs<U extends Unit<U>>>Copyright © 2015–2016 Delft University of Technology. All rights reserved.