U - the unitpublic interface MutableFloatMatrixInterface<U extends Unit<U>> extends FloatMatrixInterface<U>
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Method and Description |
|---|---|
MutableFloatMatrixInterface<U> |
copy()
Create a deep copy of this MutableFloatMatrix.
|
FloatMatrixInterface<U> |
immutable()
Create a immutable version of this MutableFloatMatrix.
|
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.
|
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.
|
MutableFloatMatrixInterface<U> |
toDense()
Create a dense version of this FloatMatrix.
|
MutableFloatMatrixInterface<U> |
toSparse()
Create a sparse version of this FloatMatrix.
|
cardinality, columns, determinant, get, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, mutable, rows, toString, toString, toString, toString, zSumMutableFloatMatrixInterface<U> copy()
FloatMatrixInterface<U> immutable()
void setSI(int row,
int column,
float valueSI)
throws ValueException
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())void set(int row,
int column,
FloatScalar<U> value)
throws ValueException
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())void setInUnit(int row,
int column,
float value,
U valueUnit)
throws ValueException
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())void normalize()
throws ValueException
ValueException - when the sum of the values is zero and normalization is not possibleMutableFloatMatrixInterface<U> toDense()
toDense in interface FloatMatrixInterface<U extends Unit<U>>MutableFloatMatrixInterface<U> toSparse()
toSparse in interface FloatMatrixInterface<U extends Unit<U>>Copyright © 2015–2016 Delft University of Technology. All rights reserved.