U - Unit of the matrixpublic interface ReadOnlyFloatMatrixFunctions<U extends Unit<U>>
This file was generated by the djunits value classes generator, 26 jun, 2015
Copyright (c) 2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2015-10-04 20:48:33 +0200 (Sun, 04 Oct 2015) $, @version $Revision: 87 $, by $Author: averbraeck $, initial
version 26 jun, 2015
| Modifier and Type | Method and Description |
|---|---|
int |
cardinality()
Count the number of cells that have a non-zero value (ignores tolerance).
|
int |
columns()
Retrieve the number of columns of the matrix.
|
float |
determinant()
Compute the determinant of the matrix.
|
FloatScalar<U> |
get(int row,
int column)
Retrieve the value stored at a specified row and column as a FloatScalar.
|
float |
getInUnit(int row,
int column)
Retrieve the value stored at a specified row and column in the original unit.
|
float |
getInUnit(int row,
int column,
U targetUnit)
Retrieve the value stored at a specified row and column converted into a specified unit.
|
float |
getSI(int row,
int column)
Retrieve the value stored at a specified row and column in the standard SI unit.
|
int |
rows()
Retrieve the number of rows of the matrix.
|
float |
zSum()
Compute the sum of all values of this matrix.
|
int rows()
int columns()
int cardinality()
float getSI(int row,
int column)
throws ValueException
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())float getInUnit(int row,
int column)
throws ValueException
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())float getInUnit(int row,
int column,
U targetUnit)
throws ValueException
row - int; row of the value to retrievecolumn - int; column of the value to retrievetargetUnit - U; the unit for the resultValueException - when row or column out of range (row < 0 or row >= rows() or column < 0 or column >=
columns())FloatScalar<U> get(int row, int column) throws ValueException
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())float zSum()
float determinant()
throws ValueException
ValueException - when matrix is neither sparse, nor dense, or not squareCopyright © 2015 Delft University of Technology. All rights reserved.