diff --git a/test/test_alloc.jl b/test/test_alloc.jl index a256384b3..d489fcc48 100644 --- a/test/test_alloc.jl +++ b/test/test_alloc.jl @@ -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) @@ -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)