Skip to content

Commit e17f6da

Browse files
authored
Fix seed in rank-deficient qr test (#367)
1 parent 765bf1c commit e17f6da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/spqr.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ using SparseArrays.SPQR
77
using SparseArrays.CHOLMOD
88
using LinearAlgebra: I, istriu, norm, qr, rank, rmul!, lmul!, Adjoint, Transpose, ColumnNorm, RowMaximum, NoPivot
99
using SparseArrays: SparseArrays, sparse, sprandn, spzeros, SparseMatrixCSC
10+
using Random: seed!
1011

1112
if Base.USE_GPL_LIBS
1213

@@ -80,6 +81,7 @@ nn = 100
8081
end
8182

8283
@testset "basic solution of rank deficient ls" begin
84+
seed!(12345)
8385
A = sprandn(m, 5, 0.9)*sprandn(5, n, 0.9)
8486
b = randn(m)
8587
xs = A\b

0 commit comments

Comments
 (0)