Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/LinearAlgebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -394,13 +394,13 @@ control over the factorization of `A`.
```jldoctest
julia> A = [1 2.2 4; 3.1 0.2 3; 4 1 2];

julia> X = [1; 2.5; 3];
julia> B = [1, 2.5, 3];

julia> Y = zero(X);
julia> Y = similar(B); # use similar since there is no need to read from it

julia> ldiv!(Y, qr(A), X);
julia> ldiv!(Y, qr(A), B); # you may also try qr!(A) to further reduce allocation

julia> Y ≈ A\\X
julia> Y ≈ A \\ B
true
```
"""
Expand All @@ -426,13 +426,13 @@ control over the factorization of `A`.
```jldoctest
julia> A = [1 2.2 4; 3.1 0.2 3; 4 1 2];

julia> X = [1; 2.5; 3];
julia> B = [1, 2.5, 3];

julia> Y = copy(X);
julia> B0 = copy(B); # a backup copy to facilitate testing

julia> ldiv!(qr(A), X);
julia> ldiv!(lu(A), B); # you may also try lu!(A) to further reduce allocation

julia> X ≈ A\\Y
julia> B ≈ A \\ B0
true
```
"""
Expand Down