Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison authored Aug 6, 2024
1 parent 0bbd5ad commit ded768f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_allocations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@
storage_lslq_bytes(m, n) = nbits_FC * (4 * n + 2 * m)

expected_lslq_bytes = storage_lslq_bytes(m, k)
(x, stats) = lslq(Ao, b, window=0) # warmup
actual_lslq_bytes = @allocated lslq(Ao, b, window=0)
(x, stats) = lslq(Ao, b, window=1) # warmup
actual_lslq_bytes = @allocated lslq(Ao, b, window=1)
@test expected_lslq_bytes actual_lslq_bytes 1.02 * expected_lslq_bytes

solver = LslqSolver(Ao, b)
Expand Down

0 comments on commit ded768f

Please sign in to comment.