public abstract class DenseMatrixF extends MatrixF
DenseMatrixF
is a matrix of floats whose storage is a contiguous float[] array. It may
logically be ranged arranged either in row or column major order.MatrixF
,
RowMajorMatrixF
,
ColumnMajorMatrixF
,
SliceMatrixF
Modifier | Constructor and Description |
---|---|
protected |
DenseMatrixF(int nRows,
int nCols) |
Modifier and Type | Method and Description |
---|---|
float |
get(int row,
int col)
Returns a particular element of this matrix
|
abstract float[] |
getData()
Returns the contiguous array of floats which is the storage for this matrix
|
protected abstract int |
indexFromRowCol(int row,
int col)
Given a row and column index into the matrix, returns the corresponding index
into the underlying float[] array.
|
void |
put(int row,
int col,
float value)
Updates a particular element of this matrix
|
adaptHomogeneous, add, add, add, added, added, added, diagonalMatrix, diagonalMatrix, dimensionsError, dimensionsError, emptyMatrix, formatAsTransform, formatAsTransform, getColumn, getRow, getTranslation, identityMatrix, inverted, multiplied, multiplied, multiplied, multiplied, multiply, multiply, multiply, multiply, numCols, numRows, slice, slice, subtract, subtract, subtract, subtracted, subtracted, subtracted, toString, toVector, transform, transposed
public float get(int row, int col)
MatrixF
get
in class MatrixF
row
- the index of the row of the element to returncol
- the index of the column of the element to returnMatrixF.put(int, int, float)
public void put(int row, int col, float value)
MatrixF
public abstract float[] getData()
protected abstract int indexFromRowCol(int row, int col)
row
- the row whose index is desiredcol
- the column whose index is desiredgetData()