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 simple matrix class based on Tpetra. It is a wrapper for a Tpetra matrix pointer (Teuchos::RCP<matrix_type>) implementing the GenericMatrix interface.
The interface is intentionally simple. For advanced usage, access the Tpetra::RCP<matrix_type> pointer using the function mat() and use the standard Tpetra interface.
Create empty matrix
Create a wrapper around a Teuchos::RCP<matrix_type> pointer
Copy constructor
Initialize zero tensor using tensor layout
Return true if empty
Return size of given dimension
Return local ownership range
Set all entries to zero and keep any sparse structure
Finalize assembly of tensor. The mode parameter is ignored.
Return MPI communicator
Return informal string representation (pretty-print)
Return copy of matrix
Initialize vector z to be compatible with the matrix-vector product y = Ax. In the parallel case, both size and layout are important.
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)
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 (global row indices) to identity matrix
Set given rows (local row indices) to identity matrix
Get diagonal of a matrix
Set diagonal of a matrix
Multiply matrix by given number
Divide matrix by given number
Assignment operator
Test if matrix is symmetric
Return linear algebra backend factory
Return norm of matrix
Assignment operator