public class GeneralMatrixF extends RowMajorMatrixF
GeneralMatrixF
is a concrete matrix implementation that is supported by
a backing store consisting of an array of floats. The matrix is stored in row-major order.Constructor and Description |
---|
GeneralMatrixF(int numRows,
int numCols) |
GeneralMatrixF(int numRows,
int numCols,
float[] data) |
Modifier and Type | Method and Description |
---|---|
MatrixF |
emptyMatrix(int numRows,
int numCols)
Returns a new empty matrix of the indicated dimensions.
|
float[] |
getData()
Returns the contiguous array of floats which is the storage for this matrix
|
GeneralMatrixF |
transposed()
Returns a matrix which is the transposition of the receiver matrix.
|
indexFromRowCol, toVector
get, put
adaptHomogeneous, add, add, add, added, added, added, diagonalMatrix, diagonalMatrix, dimensionsError, dimensionsError, 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
public GeneralMatrixF(int numRows, int numCols)
public GeneralMatrixF(int numRows, int numCols, float[] data)
public float[] getData()
DenseMatrixF
getData
in class DenseMatrixF
public MatrixF emptyMatrix(int numRows, int numCols)
MatrixF
emptyMatrix
in class MatrixF
OpenGLMatrix.emptyMatrix(int, int)
public GeneralMatrixF transposed()
MatrixF
transposed
in class MatrixF