# GenericLinearOperator¶

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

This class defines a common interface for linear operators, including actual matrices (class GenericMatrix ) and linear operators only defined in terms of their action on vectors. This class is used internally by DOLFIN to define a class hierarchy of backend independent linear operators and solvers. Users should not interface to this class directly but instead use the LinearOperator class.

Friends: LinearOperator.

mult()

Compute matrix-vector product y = Ax.

Parameters: GenericVector & x (const) – & y (GenericVector) – void
size()

Return size of given dimension.

Parameters: dim (std::size_t) – std::size_t
thisown

The membership flag