galerkin()#

abstract _ParametricOperator.galerkin(Vr, Wr=None)[source]#

Get the (Petrov-)Galerkin projection of this operator.

Parameters
Vr(n, r) ndarray

Basis for the trial space.

Wr(n, r) ndarray or None

Basis for the test space. If None, defaults to Vr.

Returns
opoperator

New object of the same class as self.