U - the unitpublic interface MutableDoubleMatrixInterface<U extends Unit<U>> extends DoubleMatrixInterface<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 |
|---|---|
MutableDoubleMatrixInterface<U> |
copy()
Create a deep copy of this MutableDoubleMatrix.
|
DoubleMatrixInterface<U> |
immutable()
Create a immutable version of this MutableDoubleMatrix.
|
void |
normalize()
Normalize the matrix, i.e.
|
void |
set(int row,
int column,
DoubleScalar<U> value)
Replace the value at row, column by the supplied value which is in a compatible unit.
|
void |
setInUnit(int row,
int column,
double 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,
double valueSI)
Replace the value at row, column by the supplied value which is expressed in the standard SI unit.
|
MutableDoubleMatrixInterface<U> |
toDense()
Create a dense version of this DoubleMatrix.
|
MutableDoubleMatrixInterface<U> |
toSparse()
Create a sparse version of this DoubleMatrix.
|
cardinality, columns, determinant, get, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, mutable, rows, toString, toString, toString, toString, zSumMutableDoubleMatrixInterface<U> copy()
DoubleMatrixInterface<U> immutable()
void setSI(int row,
int column,
double valueSI)
throws ValueException
row - int; row of the value to replacecolumn - int; column of the value to replacevalueSI - double; 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,
DoubleScalar<U> value)
throws ValueException
row - int; row of the value to replacecolumn - int; column of the value to replacevalue - DoubleScalar<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,
double value,
U valueUnit)
throws ValueException
row - int; row of the value to replacecolumn - int; column of the value to replacevalue - double; 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 possibleMutableDoubleMatrixInterface<U> toDense()
toDense in interface DoubleMatrixInterface<U extends Unit<U>>MutableDoubleMatrixInterface<U> toSparse()
toSparse in interface DoubleMatrixInterface<U extends Unit<U>>Copyright © 2015–2016 Delft University of Technology. All rights reserved.