Skip to content

Commit 3618448

Browse files
committed
add & for vector
1 parent b84e53a commit 3618448

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

python/pyabacus/src/hsolver/py_diago_dav_subspace.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ class PyDiagoDavSubspace
101101

102102
int diag(
103103
std::function<py::array_t<std::complex<double>>(py::array_t<std::complex<double>>)> mm_op,
104-
std::vector<double> precond_vec,
104+
std::vector<double>& precond_vec,
105105
int dav_ndim,
106106
double tol,
107107
int max_iter,
108108
bool need_subspace,
109-
std::vector<double> diag_ethr,
109+
std::vector<double>& diag_ethr,
110110
bool scf_type,
111111
hsolver::diag_comm_info comm_info
112112
) {

python/pyabacus/src/hsolver/py_diago_david.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ class PyDiagoDavid
101101

102102
int diag(
103103
std::function<py::array_t<std::complex<double>>(py::array_t<std::complex<double>>)> mm_op,
104-
std::vector<double> precond_vec,
104+
std::vector<double>& precond_vec,
105105
int dav_ndim,
106106
double tol,
107-
std::vector<double> diag_ethr,
107+
std::vector<double>& diag_ethr,
108108
int max_iter,
109109
bool use_paw,
110110
hsolver::diag_comm_info comm_info

0 commit comments

Comments
 (0)