Skip to content

Commit

Permalink
add & for vector
Browse files Browse the repository at this point in the history
  • Loading branch information
haozhihan committed Dec 9, 2024
1 parent b84e53a commit 3618448
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/pyabacus/src/hsolver/py_diago_dav_subspace.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ class PyDiagoDavSubspace

int diag(
std::function<py::array_t<std::complex<double>>(py::array_t<std::complex<double>>)> mm_op,
std::vector<double> precond_vec,
std::vector<double>& precond_vec,
int dav_ndim,
double tol,
int max_iter,
bool need_subspace,
std::vector<double> diag_ethr,
std::vector<double>& diag_ethr,
bool scf_type,
hsolver::diag_comm_info comm_info
) {
Expand Down
4 changes: 2 additions & 2 deletions python/pyabacus/src/hsolver/py_diago_david.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ class PyDiagoDavid

int diag(
std::function<py::array_t<std::complex<double>>(py::array_t<std::complex<double>>)> mm_op,
std::vector<double> precond_vec,
std::vector<double>& precond_vec,
int dav_ndim,
double tol,
std::vector<double> diag_ethr,
std::vector<double>& diag_ethr,
int max_iter,
bool use_paw,
hsolver::diag_comm_info comm_info
Expand Down

0 comments on commit 3618448

Please sign in to comment.