Skip to content

Commit

Permalink
clarify comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dpo committed Mar 7, 2019
1 parent 72d26ed commit ddee9c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_alloc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mem = 10
shifts = [1:5;]
nshifts = 5

# without preconditioner and with Ap preallocated, SYMMLQ needs 5 n-vectors: x_lq, vold, v, w, wbar
# without preconditioner and with Ap preallocated, SYMMLQ needs 5 n-vectors: x_lq, vold, v, w, wbar (= x_cg)
storage_symmlq(n) = 5 * n
storage_symmlq_bytes(n) = 8 * storage_symmlq(n)

Expand Down Expand Up @@ -147,7 +147,7 @@ actual_craig_bytes = @allocated craig(Au, c)
@test actual_craig_bytes 1.1 * expected_craig_bytes

# without preconditioner and with (Ap, Aᵀq) preallocated, LSLQ needs:
# - 4 m-vectors: x_lq, v, w, w̄
# - 4 m-vectors: x_lq, v, w, w̄ (= x_cg)
# - 1 n-vector: u
storage_lslq(n, m) = 4 * m + n
storage_lslq_bytes(n, m) = 8 * storage_lslq(n, m)
Expand Down

0 comments on commit ddee9c0

Please sign in to comment.