|
DOLFINx
0.1.0
DOLFINx C++ interface
|
This class is a base class for matrices that can be used in PETScKrylovSolver. More...
#include <PETScOperator.h>

Public Member Functions | |
| PETScOperator (Mat A, bool inc_ref_count) | |
| Constructor. | |
| PETScOperator (const PETScOperator &A)=delete | |
| PETScOperator (PETScOperator &&A) | |
| Move constructor. | |
| virtual | ~PETScOperator () |
| Destructor. | |
| PETScOperator & | operator= (const PETScOperator &A)=delete |
| Assignment operator (deleted) | |
| PETScOperator & | operator= (PETScOperator &&A) |
| Move assignment operator. | |
| std::array< std::int64_t, 2 > | size () const |
| Return number of rows and columns (num_rows, num_cols). PETSc returns -1 if size has not been set. | |
| PETScVector | create_vector (std::size_t dim) const |
| Initialize vector to be compatible with the matrix-vector product y = Ax. In the parallel case, size and layout are both important. More... | |
| Mat | mat () const |
| Return PETSc Mat pointer. | |
This class is a base class for matrices that can be used in PETScKrylovSolver.
| PETScVector PETScOperator::create_vector | ( | std::size_t | dim | ) | const |
Initialize vector to be compatible with the matrix-vector product y = Ax. In the parallel case, size and layout are both important.
| [in] | dim | The dimension (axis): dim = 0 --> z = y, dim = 1 --> z = x |
1.8.17