Column-major dense matrix.
Column-major dense matrix. The entry values are stored in a single array of doubles with columns listed in sequence. For example, the following 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]
.
number of rows
number of columns
matrix entries in column major
number of rows
number of columns
matrix entries in column major if not transposed or in row major otherwise
whether the matrix is transposed. If true, values
stores the matrix in
row major.
Gets the (i, j)-th element.
Gets the (i, j)-th element.
Get a deep copy of the matrix.
Get a deep copy of the matrix.
whether the matrix is transposed.
whether the matrix is transposed. If true, values
stores the matrix in
row major.
Convenience method for Matrix
-DenseVector
multiplication.
Convenience method for Matrix
-DenseVector
multiplication.
Convenience method for Matrix
-DenseMatrix
multiplication.
Convenience method for Matrix
-DenseMatrix
multiplication.
number of columns
number of columns
number of rows
number of rows
Converts to a dense array in column major.
Converts to a dense array in column major.
Generate a SparseMatrix
from the given DenseMatrix
.
Generate a SparseMatrix
from the given DenseMatrix
. The new matrix will have isTransposed
set to false.
A human readable representation of the matrix
A human readable representation of the matrix
Transpose the Matrix.
Transpose the Matrix. Returns a new Matrix
instance sharing the same underlying data.
matrix entries in column major if not transposed or in row major otherwise
Column-major dense matrix. The entry values are stored in a single array of doubles with columns listed in sequence. For example, the following matrix
is stored as
[1.0, 3.0, 5.0, 2.0, 4.0, 6.0]
.