public class DenseMatrix extends Object implements Matrix
1.0 2.0
3.0 4.0
5.0 6.0
is stored as [1.0, 3.0, 5.0, 2.0, 4.0, 6.0]
.
Constructor and Description |
---|
DenseMatrix(int numRows,
int numCols,
double[] values) |
Modifier and Type | Method and Description |
---|---|
int |
numCols()
Number of columns.
|
int |
numRows()
Number of rows.
|
double[] |
toArray()
Converts to a dense array in column major.
|
double[] |
values() |