@@ -68,15 +68,16 @@ class DiagoDavid : public DiagH<T, Device>
6868 */
6969 using SPsiFunc = std::function<void (T*, T*, const int , const int , const int )>;
7070
71- int diag (const HPsiFunc& hpsi_func, // function void hpsi(T*, T*, const int, const int, const int, const int)
72- const SPsiFunc& spsi_func, // function void spsi(T*, T*, const int, const int, const int)
73- const int ldPsi, // Leading dimension of the psi input
74- T *psi_in, // Pointer to eigenvectors
75- Real* eigenvalue_in, // Pointer to store the resulting eigenvalues
76- const Real david_diag_thr, // Convergence threshold for the Davidson iteration
77- const int david_maxiter, // Maximum allowed iterations for the Davidson method
78- const int ntry_max = 5 , // Maximum number of diagonalization attempts (default is 5)
79- const int notconv_max = 0 ); // Maximum number of allowed non-converged eigenvectors
71+ int diag (
72+ const HPsiFunc& hpsi_func, // function void hpsi(T*, T*, const int, const int, const int, const int)
73+ const SPsiFunc& spsi_func, // function void spsi(T*, T*, const int, const int, const int)
74+ const int ldPsi, // Leading dimension of the psi input
75+ T *psi_in, // Pointer to eigenvectors
76+ Real* eigenvalue_in, // Pointer to store the resulting eigenvalues
77+ const Real david_diag_thr, // Convergence threshold for the Davidson iteration
78+ const int david_maxiter, // Maximum allowed iterations for the Davidson method
79+ const int ntry_max = 5 , // Maximum number of diagonalization attempts (default is 5)
80+ const int notconv_max = 0 ); // Maximum number of allowed non-converged eigenvectors
8081
8182 private:
8283 bool use_paw = false ;
@@ -166,12 +167,12 @@ class DiagoDavid : public DiagH<T, Device>
166167 T* vcc);
167168
168169 void SchmidtOrth (const int & dim,
169- const int nband,
170- const int m,
171- const T* spsi,
172- T* lagrange_m,
173- const int mm_size,
174- const int mv_size);
170+ const int nband,
171+ const int m,
172+ const T* spsi,
173+ T* lagrange_m,
174+ const int mm_size,
175+ const int mv_size);
175176
176177 void planSchmidtOrth (const int nband, std::vector<int >& pre_matrix_mm_m, std::vector<int >& pre_matrix_mv_m);
177178
0 commit comments