PETScBaseMatrix

class dolfin.cpp.la.PETScBaseMatrix(*args, **kwargs)

Bases: dolfin.cpp.la.PETScObject, dolfin.cpp.common.Variable

This class is a base class for matrices that can be used in PETScKrylovSolver.

local_range()

Return local range along dimension dim

mat()
resize()

Resize matrix to be compatible with the matrix-vector product y = Ax. In the parallel case, both size and layout are important.

Arguments
dim (int)
The dimension (axis): dim = 0 –> z = y, dim = 1 –> z = x
size()

Return number of rows (dim = 0) or columns (dim = 1)

thisown

The membership flag