U - Unit; the unit of this MutableFloatMatrixpublic abstract class MutableFloatMatrix<U extends Unit<U>> extends FloatMatrix<U> implements MutableFloatMatrixInterface<U>
This file was generated by the djunits value classes generator, 26 jun, 2015
Copyright (c) 2015-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2016-05-28 14:25:52 +0200 (Sat, 28 May 2016) $, @version $Revision: 202 $, by $Author: averbraeck $,
initial version 26 jun, 2015
| Modifier and Type | Class and Description |
|---|---|
static class |
MutableFloatMatrix.Abs<U extends Unit<U>>
ABSOLUTE implementation of MutableFloatVector.
|
static class |
MutableFloatMatrix.Rel<U extends Unit<U>>
RELATIVE implementation of MutableFloatMatrix.
|
data| Modifier | Constructor and Description |
|---|---|
protected |
MutableFloatMatrix(U unit)
Construct a new MutableFloatMatrix.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assign(FloatFunction floatFunction)
Execute a function on a cell by cell basis.
|
protected void |
checkCopyOnWrite()
Check the copyOnWrite flag and, if it is set, make a deep copy of the data and clear the flag.
|
(package private) static <U extends Unit<U>> |
instantiateMutableAbs(FloatMatrixData dmData,
U unit)
Instantiate a matrix based on the type of data.
|
void |
normalize()
Normalize the matrix, i.e.
|
void |
set(int row,
int column,
FloatScalar<U> value)
Replace the value at row, column by the supplied value which is in a compatible unit.
|
(package private) void |
setCopyOnWrite(boolean copyOnWrite)
Change the copyOnWrite flag.
|
void |
setInUnit(int row,
int column,
float value,
U valueUnit)
Replace the value at row, column by the supplied value which is expressed in a supplied (compatible) unit.
|
void |
setSI(int row,
int column,
float valueSI)
Replace the value at row, column by the supplied value which is expressed in the standard SI unit.
|
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, isRelativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopy, immutable, toDense, toSparsecardinality, columns, determinant, get, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, mutable, rows, toString, toString, toString, toString, zSumprotected MutableFloatMatrix(U unit)
unit - U; the unit of the new MutableFloatMatrixfinal void setCopyOnWrite(boolean copyOnWrite)
copyOnWrite - boolean; the new value for the copyOnWrite flagstatic <U extends Unit<U>> MutableFloatMatrix.Abs<U> instantiateMutableAbs(FloatMatrixData dmData, U unit)
U - the unitdmData - the FloatMatrixDataunit - the unit to useprotected final void checkCopyOnWrite()
public final void setSI(int row,
int column,
float valueSI)
throws ValueException
setSI in interface MutableFloatMatrixInterface<U extends Unit<U>>row - int; row of the value to replacecolumn - int; column of the value to replacevalueSI - float; the value to store (expressed in the standard SI unit)ValueException - when row or column out of range (row < 0 or row >= rows() or column < 0 or column >=
columns())public final void set(int row,
int column,
FloatScalar<U> value)
throws ValueException
set in interface MutableFloatMatrixInterface<U extends Unit<U>>row - int; row of the value to replacecolumn - int; column of the value to replacevalue - FloatScalar<U>; the strongly typed value to storeValueException - when row or column out of range (row < 0 or row >= rows() or column < 0 or column >=
columns())public final void setInUnit(int row,
int column,
float value,
U valueUnit)
throws ValueException
setInUnit in interface MutableFloatMatrixInterface<U extends Unit<U>>row - int; row of the value to replacecolumn - int; column of the value to replacevalue - float; the value to store (which is expressed in valueUnit)valueUnit - U; unit of the supplied valueValueException - when row or column out of range (row < 0 or row >= rows() or column < 0 or column >=
columns())public final void assign(FloatFunction floatFunction)
floatFunction - the function to applypublic final void normalize()
throws ValueException
normalize in interface MutableFloatMatrixInterface<U extends Unit<U>>ValueException - when the sum of the values is zero and normalization is not possibleCopyright © 2015–2016 Delft University of Technology. All rights reserved.