Skip to content

Commit 2fc5f86

Browse files
committed
Fix seed in rank-deficient qr test (#367)
1 parent 2a117f1 commit 2fc5f86

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/spqr.jl

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

1112
if Base.USE_GPL_LIBS
1213

@@ -77,6 +78,7 @@ nn = 100
7778
end
7879

7980
@testset "basic solution of rank deficient ls" begin
81+
seed!(12345)
8082
A = sprandn(m, 5, 0.9)*sprandn(5, n, 0.9)
8183
b = randn(m)
8284
xs = A\b

0 commit comments

Comments
 (0)