Skip to content

Commit c2a2e38

Browse files
authored
[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.
1 parent 2ca88ad commit c2a2e38

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
@@ -394,17 +394,8 @@ julia> Y = zero(X);
394394
395395
julia> ldiv!(Y, qr(A), X);
396396
397-
julia> Y
398-
3-element Vector{Float64}:
399-
0.7128099173553719
400-
-0.051652892561983674
401-
0.10020661157024757
402-
403-
julia> A\\X
404-
3-element Vector{Float64}:
405-
0.7128099173553719
406-
-0.05165289256198333
407-
0.10020661157024785
397+
julia> Y ≈ A\\X
398+
true
408399
```
409400
"""
410401
ldiv!(Y, A, B)
@@ -435,17 +426,8 @@ julia> Y = copy(X);
435426
436427
julia> ldiv!(qr(A), X);
437428
438-
julia> X
439-
3-element Vector{Float64}:
440-
0.7128099173553719
441-
-0.051652892561983674
442-
0.10020661157024757
443-
444-
julia> A\\Y
445-
3-element Vector{Float64}:
446-
0.7128099173553719
447-
-0.05165289256198333
448-
0.10020661157024785
429+
julia> X ≈ A\\Y
430+
true
449431
```
450432
"""
451433
ldiv!(A, B)

stdlib/LinearAlgebra/src/hessenberg.jl

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

0 commit comments

Comments
 (0)