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