DenseMatrix64F is a dense matrix with elements that are 64-bit floats (doubles). A matrix is the fundamental data structure in linear algebra. Unlike a sparse matrix, there is no compression in a dense matrix and every element is stored in memory. This allows for fast reads and writes to the matrix.
To keep the code manageable and the library easier to use only basic functions for accessing and editing elements are provided in this class. The numerous operations which can be performed on DenseMatrix64F are contained in various other classes, where the most common operations can be found in the {@link org.ejml.ops.CommonOps} and {@link org.ejml.ops.SpecializedOps} classes.
The matrix is stored internally in a row-major 1D array format:
data[ y*numCols + x ] = data[y][x]
For example:
data =
a11 | a12 | a13 | a14 | a21 | a22 | a23 | a24 | a31 | a32 | a33 | a34 | a41 | a42 | a43 | a44 |
An alternative to working directly with DenseMatrix64 is {@link org.ejml.simple.SimpleMatrix}. SimpleMatrix is a wrapper around DenseMatrix64F that provides an easier to use object oriented way of manipulating matrices, at the cost of efficiency.
@see org.ejml.ops.CommonOps @see org.ejml.ops.SpecializedOps @see org.ejml.simple.SimpleMatrix @author Peter Abeles
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|