PETScBaseMatrix.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
class
PETScMatrixDeleter
¶
-
class
PETScBaseMatrix
¶ Parent class(es)
This class is a base class for matrices that can be used in PETScKrylovSolver.
-
PETScBaseMatrix
()¶ Constructor
Constructor
-
std::size_t
size
(std::size_t dim) const¶ Return number of rows (dim = 0) or columns (dim = 1)
-
std::pair<std::size_t, std::size_t>
local_range
(std::size_t dim) const¶ Return local range along dimension dim
-
void
resize
(GenericVector &z, std::size_t dim) const¶ Resize matrix to be compatible with the matrix-vector product y = Ax. In the parallel case, both size and layout are important.
- Arguments
- dim (std::size_t)
- The dimension (axis): dim = 0 –> z = y, dim = 1 –> z = x
-
boost::shared_ptr<Mat>
mat
() const¶ Return PETSc Mat pointer
-
std::string
str
(bool verbose) const = 0¶ Return informal string representation (pretty-print)
-