Skip to content

Commit 25ee4ea

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 3ba6c16 commit 25ee4ea

File tree

2 files changed

+5
-23
lines changed

2 files changed

+5
-23
lines changed

stdlib/LinearAlgebra/src/LinearAlgebra.jl

+4-22
Original file line numberDiff line numberDiff line change
@@ -299,17 +299,8 @@ julia> Y = zero(X);
299299
300300
julia> ldiv!(Y, qr(A), X);
301301
302-
julia> Y
303-
3-element Vector{Float64}:
304-
0.7128099173553719
305-
-0.051652892561983674
306-
0.10020661157024757
307-
308-
julia> A\\X
309-
3-element Vector{Float64}:
310-
0.7128099173553719
311-
-0.05165289256198333
312-
0.10020661157024785
302+
julia> Y ≈ A\\X
303+
true
313304
```
314305
"""
315306
ldiv!(Y, A, B)
@@ -340,17 +331,8 @@ julia> Y = copy(X);
340331
341332
julia> ldiv!(qr(A), X);
342333
343-
julia> X
344-
3-element Vector{Float64}:
345-
0.7128099173553719
346-
-0.051652892561983674
347-
0.10020661157024757
348-
349-
julia> A\\Y
350-
3-element Vector{Float64}:
351-
0.7128099173553719
352-
-0.05165289256198333
353-
0.10020661157024785
334+
julia> X ≈ A\\Y
335+
true
354336
```
355337
"""
356338
ldiv!(A, B)

stdlib/LinearAlgebra/src/hessenberg.jl

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

0 commit comments

Comments
 (0)