Skip to content

Commit d62ee3e

Browse files
fix up dense test
1 parent a42114d commit d62ee3e

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

test/nonsquare.jl

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1-
using LinearSolve
1+
using LinearSolve, Test
22
using SparseArrays, LinearAlgebra
33

44
m, n = 13, 3
5+
6+
A = rand(m, n); b = rand(m);
7+
prob = LinearProblem(A, b)
8+
res = A\b
9+
@test solve(prob).u res
10+
@test solve(prob, QRFactorization()) res
11+
@test solve(prob, KrylovJL_LSMR()) res
12+
513
A = sprand(m, n, 0.5); b = rand(m);
614
prob = LinearProblem(A, b)
7-
solve(prob)
15+
res = A\b
16+
@test solve(prob).u res
17+
@test solve(prob, QRFactorization()) res
18+
@test solve(prob, KrylovJL_LSMR()) res
19+

0 commit comments

Comments
 (0)