Hi all,
I'm prototyping a PowLinearOperator for some internal projects that need to perform (g * g).mv(x) for LinearOperator g and vector x, and thought I'd collect some thoughts before proceeding.
If we restrict to positive integer scalars, then we can rely on the decomposition of (g * g).mv(x) == diag(g diag(x) g.T) [or recurse similarly for scalars > 2].
Would this be of general interest? If so, I'm happy to expand on the test suite and perform a pull req.
Hi all,
I'm prototyping a
PowLinearOperatorfor some internal projects that need to perform(g * g).mv(x)forLinearOperatorgand vectorx, and thought I'd collect some thoughts before proceeding.If we restrict to positive integer scalars, then we can rely on the decomposition of
(g * g).mv(x) == diag(g diag(x) g.T)[or recurse similarly for scalars > 2].Would this be of general interest? If so, I'm happy to expand on the test suite and perform a pull req.