Skip to content

QR factorization's memory allocation when updating matrix A #106

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

Open
TongtongJin opened this issue May 27, 2025 · 0 comments
Open

QR factorization's memory allocation when updating matrix A #106

TongtongJin opened this issue May 27, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@TongtongJin
Copy link

The original comments are:

We need to be careful that the factorization is no longer needed prior to updating A.

For example

A = randn(10, 4)
F = qr!(A)
R = F.R
A .= randn(10, 4)
R != F.R  # This should evaluate to true

If we do not do the in-place operation (i.e., solver.A = A) then something else will be allocated

A = randn(10, 4)
F = qr!(A)
R = F.R
A = randn(10, 4)
R == F.R # This should evaluate to true
@TongtongJin TongtongJin added the enhancement New feature or request label May 27, 2025
@TongtongJin TongtongJin self-assigned this May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant