galerkin()#

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

Return the Galerkin projection of the operator, \(\widehat{\mathbf{G}} = \Wr\trp\mathbf{G} (\Vr\otimes\Vr\otimes\Vr)\).

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
projectedopinf.operators.CubicOperator

Projected operator.