Skip to content

Commit 7916b73

Browse files
dkarraschimciner2
andauthored
Mention allocation of R factor from QR (#51400)
Co-authored-by: Ian McInerney <[email protected]>
1 parent 75504b5 commit 7916b73

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/qr.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,11 @@ The individual components of the decomposition `F` can be retrieved via property
366366
- `F.p`: the permutation vector of the pivot ([`QRPivoted`](@ref) only)
367367
- `F.P`: the permutation matrix of the pivot ([`QRPivoted`](@ref) only)
368368
369+
!!! note
370+
Each reference to the upper triangular factor via `F.R` allocates a new array.
371+
It is therefore advisable to cache that array, say, by `R = F.R` and continue working
372+
with `R`.
373+
369374
Iterating the decomposition produces the components `Q`, `R`, and if extant `p`.
370375
371376
The following functions are available for the `QR` objects: [`inv`](@ref), [`size`](@ref),

0 commit comments

Comments
 (0)