Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
Parent class(es)
This class provides a sparse matrix class based on Eigen. It is a simple wrapper for Eigen::SparseMatrix implementing the GenericMatrix interface.
The interface is intentionally simple. For advanced usage, access the underlying Eigen matrix and use the standard Eigen interface which is documented at http://eigen.tuxfamily.org
Create empty matrix
Create M x N matrix
Copy constructor
Initialize zero tensor using tenor layout
Return true if empty
Return size of given dimension
Return local ownership range
Return number of non-zero entries in matrix
Set all entries to zero and keep any sparse structure
Finalize assembly of tensor
Return MPI communicator
Return informal string representation (pretty-print)
Return copy of matrix
Resize matrix to M x N
Initialise vector z to be compatible with the matrix-vector product y = Ax.
Get block of values
Set block of values using global indices
Set block of values using local indices
Add block of values using global indices
Add block of values using local indices
Add multiple of given matrix (AXPY operation)
Return norm of matrix
Get non-zero values of given row
Set values for given row
Set given rows (global row indices) to zero
Set given rows (local row indices) to zero
Set given rows to identity matrix
Set given rows to identity matrix
Matrix-vector product, y = Ax
Matrix-vector product, y = A^T x
Get diagonal of a matrix
Set diagonal of a matrix
Multiply matrix by given number
Divide matrix by given number
Assignment operator
Return pointers to underlying compressed storage data See GenericMatrix for documentation.
Return linear algebra backend factory
Return reference to Eigen matrix (const version)
Return reference to Eigen matrix (non-const version)
Compress matrix (eliminate all zeros from a sparse matrix)
Access value of given entry
Assignment operator