-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PowLinearOperator for element-wise power operators #31
Comments
If I understand your definition correctly: thinking of the operator as a matrix, this is an elementwise power of each entry in the matrix? That does seem nontrivial to implement for general operators, so I think this would make sense as a PR! Probably the main thing to be careful about is to avoid compile times increasing as the power increases. The recursion should be doing using a (And moreover it's probably also worth overriding |
Hi all,
I'm prototyping a
PowLinearOperator
for some internal projects that need to perform(g * g).mv(x)
forLinearOperator
g
and 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.
The text was updated successfully, but these errors were encountered: