U - Unit the unit for which this Matrix will be createdpublic static class MutableFloatMatrix.Rel<U extends Unit<U>> extends MutableFloatMatrix<U> implements Relative, MathFunctionsRel<MutableFloatMatrix.Rel<U>>, FloatMathFunctions<MutableFloatMatrix.Rel<U>>, FunctionsRel<U,FloatMatrix.Abs<U>,FloatMatrix.Rel<U>>
MutableFloatMatrix.Abs<U extends Unit<U>>, MutableFloatMatrix.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
Rel(float[][] values,
U unit,
StorageType storageType)
Construct a new Relative Mutable FloatMatrix.
|
Rel(FloatMatrixData data,
U unit)
Construct a new Relative Mutable FloatMatrix.
|
Rel(FloatScalar.Rel<U>[][] values,
StorageType storageType)
Construct a new Relative Mutable FloatMatrix.
|
| Modifier and Type | Method and Description |
|---|---|
MutableFloatMatrix.Rel<U> |
abs()
Set the value(s) to their absolute value.
|
MutableFloatMatrix.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.
|
MutableFloatMatrix.Rel<U> |
copy()
Create a deep copy of this MutableFloatMatrix.
|
MutableFloatMatrix.Rel<U> |
decrementBy(float decrement)
Decrement the value by the supplied constant and return the changed vector.
|
MutableFloatMatrix.Rel<U> |
decrementBy(FloatMatrix.Rel<U> decrement)
Decrement the value by the supplied value and return the changed vector.
|
MutableFloatMatrix.Rel<U> |
decrementBy(FloatScalar.Rel<U> decrement)
Decrement the value by the supplied value and return the changed vector.
|
FloatMatrix.Rel<U> |
divide(FloatMatrix.Rel<U> rel)
Divide this Relative value by a Relative value for a vector or matrix.
|
MutableFloatMatrix.Rel<U> |
divideBy(float factor)
Scale the value(s) by the inverse of a factor; i.e.
|
MutableFloatMatrix.Rel<U> |
divideBy(FloatMatrix.Rel<U> factors)
Divide the values in the vector by the supplied values and return the changed vector.
|
MutableFloatMatrix.Rel<U> |
divideBy(FloatScalar.Rel<U> factor)
Divide the values in the vector by the supplied value and return the changed vector.
|
MutableFloatMatrix.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.
|
FloatScalar.Rel<U> |
get(int row,
int column)
Retrieve the value stored at a specified row and column as a FloatScalar.
|
FloatMatrix.Rel<U> |
immutable()
Create a immutable version of this MutableFloatMatrix.
|
MutableFloatMatrix.Rel<U> |
incrementBy(float increment)
Increment the value by the supplied constant and return the changed vector.
|
MutableFloatMatrix.Rel<U> |
incrementBy(FloatMatrix.Rel<U> increment)
Increment the value by the supplied value and return the changed vector.
|
MutableFloatMatrix.Rel<U> |
incrementBy(FloatScalar.Rel<U> increment)
Increment the value by the supplied value and return the changed vector.
|
FloatMatrix.Rel<U> |
minus(FloatMatrix.Rel<U> rel)
Subtract a Relative value from this Relative value for a vector or matrix.
|
MutableFloatMatrix.Rel<U> |
multiplyBy(float factor)
Scale the value(s) by a factor.
|
MutableFloatMatrix.Rel<U> |
multiplyBy(FloatMatrix.Rel<U> factors)
Multiply the values in the vector by the supplied values and return the changed vector.
|
MutableFloatMatrix.Rel<U> |
multiplyBy(FloatScalar.Rel<U> factor)
Multiply the values in the vector by the supplied value and return the changed vector.
|
MutableFloatMatrix.Rel<U> |
mutable()
Create a mutable version of this FloatMatrix.
|
FloatMatrix.Abs<U> |
plus(FloatMatrix.Abs<U> abs)
Add an Absolute value to this Relative value for a vector or matrix.
|
FloatMatrix.Rel<U> |
plus(FloatMatrix.Rel<U> rel)
Add a Relative value to this Relative value for a vector or matrix.
|
MutableFloatMatrix.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.
|
MutableFloatMatrix.Rel<U> |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
FloatMatrix.Rel<U> |
times(FloatMatrix.Rel<U> rel)
Multiply a Relative value by this Relative value for a vector or matrix.
|
MutableFloatMatrix.Rel<U> |
toDense()
Create a dense version of this FloatMatrix.
|
MutableFloatMatrix.Rel<U> |
toSparse()
Create a sparse version of this FloatMatrix.
|
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(float[][] values,
U unit,
StorageType storageType)
throws ValueException
values - float[][]; the values of the entries in the new Relative Mutable FloatMatrixunit - U; the unit of the new Relative Mutable FloatMatrixstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic Rel(FloatScalar.Rel<U>[][] values, StorageType storageType) throws ValueException
values - FloatScalar.Rel<U>[]; the values of the entries in the new Relative Mutable FloatMatrixstorageType - the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriesRel(FloatMatrixData data, U unit)
data - an internal data objectunit - the unitpublic FloatMatrix.Rel<U> immutable()
immutable in interface MutableFloatMatrixInterface<U extends Unit<U>>public MutableFloatMatrix.Rel<U> mutable()
mutable in interface FloatMatrixInterface<U extends Unit<U>>public MutableFloatMatrix.Rel<U> copy()
copy in interface MutableFloatMatrixInterface<U extends Unit<U>>public MutableFloatMatrix.Rel<U> toDense()
toDense in interface FloatMatrixInterface<U extends Unit<U>>toDense in interface MutableFloatMatrixInterface<U extends Unit<U>>public MutableFloatMatrix.Rel<U> toSparse()
toSparse in interface FloatMatrixInterface<U extends Unit<U>>toSparse in interface MutableFloatMatrixInterface<U extends Unit<U>>public FloatScalar.Rel<U> get(int row, int column) throws ValueException
get in interface FloatMatrixInterface<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 MutableFloatMatrix.Rel<U> incrementBy(FloatMatrix.Rel<U> increment) throws ValueException
increment - FloatMatrix.Rel<U>; amount by which the value is incrementedValueException - when the size of increment is not identical to the size of thispublic final MutableFloatMatrix.Rel<U> incrementBy(FloatScalar.Rel<U> increment)
increment - FloatScalar.Rel<U>; amount by which the value is incrementedpublic final MutableFloatMatrix.Rel<U> incrementBy(float increment)
increment - amount by which the value is incrementedpublic final MutableFloatMatrix.Rel<U> decrementBy(FloatMatrix.Rel<U> decrement) throws ValueException
decrement - FloatMatrix.Rel<U>; amount by which the value is decrementedValueException - when the size of increment is not identical to the size of thispublic final MutableFloatMatrix.Rel<U> decrementBy(FloatScalar.Rel<U> decrement)
decrement - FloatScalar.Rel<U>; amount by which the value is decrementedpublic final MutableFloatMatrix.Rel<U> decrementBy(float decrement)
decrement - amount by which the value is decrementedpublic final MutableFloatMatrix.Rel<U> multiplyBy(FloatMatrix.Rel<U> factors) throws ValueException
factors - FloatMatrix.Rel<U>; amounts by which the value is multipliedValueException - when the size of the factors is not identical to the size of thispublic final MutableFloatMatrix.Rel<U> multiplyBy(FloatScalar.Rel<U> factor)
factor - FloatScalar.Rel<U>; amount by which the values in the vector are multipliedpublic MutableFloatMatrix.Rel<U> multiplyBy(float factor)
multiplyBy in interface FloatMathFunctions<MutableFloatMatrix.Rel<U extends Unit<U>>>factor - float; the multiplierpublic final MutableFloatMatrix.Rel<U> divideBy(FloatMatrix.Rel<U> factors) throws ValueException
factors - FloatMatrix.Rel<U>; amounts by which the value is dividedValueException - when the size of the factors is not identical to the size of thispublic MutableFloatMatrix.Rel<U> divideBy(float factor)
divideBy in interface FloatMathFunctions<MutableFloatMatrix.Rel<U extends Unit<U>>>factor - float; the divisorpublic final MutableFloatMatrix.Rel<U> divideBy(FloatScalar.Rel<U> factor)
factor - FloatScalar.Rel<U>; amount by which the values in the vector are dividedpublic FloatMatrix.Rel<U> plus(FloatMatrix.Rel<U> rel) throws ValueException
plus in interface FunctionsRel<U extends Unit<U>,FloatMatrix.Abs<U extends Unit<U>>,FloatMatrix.Rel<U extends Unit<U>>>rel - R the right operandValueException - in case this vector or matrix and the operand have a different sizepublic FloatMatrix.Abs<U> plus(FloatMatrix.Abs<U> abs) throws ValueException
plus in interface FunctionsRel<U extends Unit<U>,FloatMatrix.Abs<U extends Unit<U>>,FloatMatrix.Rel<U extends Unit<U>>>abs - A the right operandValueException - in case this vector or matrix and the operand have a different sizepublic FloatMatrix.Rel<U> minus(FloatMatrix.Rel<U> rel) throws ValueException
minus in interface FunctionsRel<U extends Unit<U>,FloatMatrix.Abs<U extends Unit<U>>,FloatMatrix.Rel<U extends Unit<U>>>rel - R the right operandValueException - in case this vector or matrix and the operand have a different sizepublic FloatMatrix.Rel<U> times(FloatMatrix.Rel<U> rel) throws ValueException
times in interface FunctionsRel<U extends Unit<U>,FloatMatrix.Abs<U extends Unit<U>>,FloatMatrix.Rel<U extends Unit<U>>>rel - R the right operandValueException - in case this vector or matrix and the operand have a different sizepublic FloatMatrix.Rel<U> divide(FloatMatrix.Rel<U> rel) throws ValueException
divide in interface FunctionsRel<U extends Unit<U>,FloatMatrix.Abs<U extends Unit<U>>,FloatMatrix.Rel<U extends Unit<U>>>rel - R the right operandValueException - in case this vector or matrix and the operand have a different sizepublic MutableFloatMatrix.Rel<U> abs()
abs in interface MathFunctionsRel<MutableFloatMatrix.Rel<U extends Unit<U>>>public MutableFloatMatrix.Rel<U> ceil()
ceil in interface MathFunctionsAbs<MutableFloatMatrix.Rel<U extends Unit<U>>>public MutableFloatMatrix.Rel<U> floor()
floor in interface MathFunctionsAbs<MutableFloatMatrix.Rel<U extends Unit<U>>>public MutableFloatMatrix.Rel<U> rint()
rint in interface MathFunctionsAbs<MutableFloatMatrix.Rel<U extends Unit<U>>>public MutableFloatMatrix.Rel<U> round()
round in interface MathFunctionsAbs<MutableFloatMatrix.Rel<U extends Unit<U>>>Copyright © 2015–2016 Delft University of Technology. All rights reserved.