Skip to content

Commit 66b620f

Browse files
giordanoKristofferC
authored andcommitted
[LinearAlgebra] Remove unreliable doctests (#56011)
The exact textual representation of the output of these doctests depend on the specific kernel used by the BLAS backend, and can vary between versions of OpenBLAS (as it did in #41973), or between different CPUs, which makes these doctests unreliable. Fix #55998. (cherry picked from commit c2a2e38)
1 parent 788775d commit 66b620f

File tree

2 files changed

+5
-23
lines changed

2 files changed

+5
-23
lines changed

stdlib/LinearAlgebra/src/LinearAlgebra.jl

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -360,17 +360,8 @@ julia> Y = zero(X);
360360
361361
julia> ldiv!(Y, qr(A), X);
362362
363-
julia> Y
364-
3-element Vector{Float64}:
365-
0.7128099173553719
366-
-0.051652892561983674
367-
0.10020661157024757
368-
369-
julia> A\\X
370-
3-element Vector{Float64}:
371-
0.7128099173553719
372-
-0.05165289256198333
373-
0.10020661157024785
363+
julia> Y ≈ A\\X
364+
true
374365
```
375366
"""
376367
ldiv!(Y, A, B)
@@ -401,17 +392,8 @@ julia> Y = copy(X);
401392
402393
julia> ldiv!(qr(A), X);
403394
404-
julia> X
405-
3-element Vector{Float64}:
406-
0.7128099173553719
407-
-0.051652892561983674
408-
0.10020661157024757
409-
410-
julia> A\\Y
411-
3-element Vector{Float64}:
412-
0.7128099173553719
413-
-0.05165289256198333
414-
0.10020661157024785
395+
julia> X ≈ A\\Y
396+
true
415397
```
416398
"""
417399
ldiv!(A, B)

stdlib/LinearAlgebra/src/hessenberg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ This is useful because multiple shifted solves `(F + μ*I) \\ b`
441441
Iterating the decomposition produces the factors `F.Q, F.H, F.μ`.
442442
443443
# Examples
444-
```jldoctest
444+
```julia-repl
445445
julia> A = [4. 9. 7.; 4. 4. 1.; 4. 3. 2.]
446446
3×3 Matrix{Float64}:
447447
4.0 9.0 7.0

0 commit comments

Comments
 (0)