Trait funspace::traits::BaseMatOpDiffmat
source · [−]pub trait BaseMatOpDiffmat {
type NumType;
fn diffmat(&self, _deriv: usize) -> Array2<Self::NumType>;
fn diffmat_pinv(
&self,
_deriv: usize
) -> (Array2<Self::NumType>, Array2<Self::NumType>);
}
Expand description
Collection of differentiation matrix operators
Associated Types
Required methods
Explicit differential operator $ D $
Matrix-based version of BaseGradient::gradient()
Explicit inverse of differential operator $ D^* $
Returns (D_pinv, I_pinv)
, where D_pinv
is the pseudoinverse
and I_pinv
the corresponding pseudoidentity matrix, such
that
D_pinv @ D = I_pinv
Can be used as a preconditioner.