Skip to content

Commit

Permalink
Fix seed in rank-deficient qr test (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarrasch authored Mar 22, 2023
1 parent 765bf1c commit e17f6da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/spqr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ using SparseArrays.SPQR
using SparseArrays.CHOLMOD
using LinearAlgebra: I, istriu, norm, qr, rank, rmul!, lmul!, Adjoint, Transpose, ColumnNorm, RowMaximum, NoPivot
using SparseArrays: SparseArrays, sparse, sprandn, spzeros, SparseMatrixCSC
using Random: seed!

if Base.USE_GPL_LIBS

Expand Down Expand Up @@ -80,6 +81,7 @@ nn = 100
end

@testset "basic solution of rank deficient ls" begin
seed!(12345)
A = sprandn(m, 5, 0.9)*sprandn(5, n, 0.9)
b = randn(m)
xs = A\b
Expand Down

0 comments on commit e17f6da

Please sign in to comment.