Skip to content
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

Schur(qz) decomposition #20

Open
thorek1 opened this issue Nov 3, 2019 · 2 comments
Open

Schur(qz) decomposition #20

thorek1 opened this issue Nov 3, 2019 · 2 comments
Assignees

Comments

@thorek1
Copy link

thorek1 commented Nov 3, 2019

Thanks for maintaining the package. It is very useful, yet missing a crucial part for my applications: Schur(qz) decomposition - e.g.
QZ::qz(QZ::exAB2$A, QZ::exAB2$B)

I did not find any implementation of it around.

Do you think this is feasible?

@shabbychef
Copy link
Owner

Thanks for your interest in the package. I am not sure how I would approach this problem. I also am not so familiar with the Q-Z decomposition. Can this be derived somehow from the generalized eigenvalue decomposition?

As you probably have guessed, this package computes derivatives by hand-coding the derivatives of certain operations, and using the chain rule. A more effective forward differentiation scheme can be found in the Julia JuliaDiff package, which replaces low level numerical computations with those that carry derivatives forward. This is not really possible in R where we delegate complicated operations to C code.

@shabbychef shabbychef self-assigned this Nov 4, 2019
@thorek1
Copy link
Author

thorek1 commented Nov 4, 2019

I am also not sure how to do it.

What you are saying about the generalized eigenvalue decomposition sounds like a good idea and I found this post which seems relevant: https://mathoverflow.net/questions/229425/derivative-of-eigenvectors-of-a-matrix-with-respect-to-its-components

That would still leave all other 4 matrices (Q,Z,S,T).

I looked a bit around as well and checked out JAX (python) but they don’t have it and JuliaDiff, which telling from the documentation doesn’t have it either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants