public abstract class RowMajorMatrixF extends DenseMatrixF
RowMajorMatrixF
is a dense matrix whose entries are arranged in
row-major order.Constructor and Description |
---|
RowMajorMatrixF(int nRows,
int nCols) |
Modifier and Type | Method and Description |
---|---|
protected int |
indexFromRowCol(int row,
int col)
Given a row and column index into the matrix, returns the corresponding index
into the underlying float[] array.
|
VectorF |
toVector()
If the receiver is one-dimensional in one of its dimensions, returns a vector
containing the data of the receiver; otherwise, an exception is thrown.
|
get, getData, put
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, transform, transposed
protected int indexFromRowCol(int row, int col)
DenseMatrixF
indexFromRowCol
in class DenseMatrixF
row
- the row whose index is desiredcol
- the column whose index is desiredDenseMatrixF.getData()