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 defines a common interface for matrices.
Return tensor rank (number of dimensions)
Return size of given dimension
Return local ownership range
Return number of non-zero entries in matrix (collective)
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 block of values using global indices
Add block of values using local indices
Set all entries to zero and keep any sparse structure
Finalize assembly of tensor
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)
Return norm of matrix
Get non-zero values of given row (global index) on local process
Set values for given row (global index) on local process
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
Matrix-vector product, y = A^T x. The y vector must either be zero-sized or have correct size and parallel layout.
Get diagonal of a matrix
Set diagonal of a matrix
Multiply matrix by given number
Divide matrix by given number
Add given matrix
Subtract given matrix
Test if matrix is symmetric
Assignment operator
Get value of given entry
Get value of given entry
Set given entry to value. apply(“insert”) must be called before using using the object.
Insert one on the diagonal for all zero rows