Skip to content

Commit 8c79a70

Browse files
Tidy PPCG test includes
1 parent d47d633 commit 8c79a70

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

source/source_hsolver/test/diago_ppcg_test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* diago_ppcg_test.cpp — unit test for DiagoPPCG solver
33
*
4-
* Test matrices (all with S = I):
4+
* Test matrices include both S = I and non-trivial overlap operators:
55
* 1. Tridiagonal Laplacian (1D particle-in-a-box): H[i,i]=2, H[i,i±1]=-1
66
* Exact λ_k = 2 - 2·cos(k·π/(n+1)). Realistic but sparse.
77
* 2. Diagonal matrix: H = diag(1, 2, 3, 4, 5)
@@ -20,6 +20,7 @@
2020
#include <cmath>
2121
#include <cstdio>
2222
#include <fstream>
23+
#include <limits>
2324
#include <random>
2425
#include <string>
2526
#include <vector>

0 commit comments

Comments
 (0)