8000 QR factorization's memory allocation when updating matrix A · Issue #106 · numlinalg/RLinearAlgebra.jl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
QR factorization's memory allocation when updating matrix A #106
Open
@TongtongJin

Description

@TongtongJin

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0