diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-26 16:18:40 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-26 16:18:40 -0400 |
commit | 1160baa61bad605cf8a1d583e8ae356a54a942df (patch) | |
tree | e7c865f38836a9a03349bbd803aae8be9b37a200 /lib/state.h | |
parent | 870555f569bc63fecdc7c0b16e72e4e002f21c13 (diff) | |
download | c++-1160baa61bad605cf8a1d583e8ae356a54a942df.tar.gz c++-1160baa61bad605cf8a1d583e8ae356a54a942df.tar.bz2 c++-1160baa61bad605cf8a1d583e8ae356a54a942df.zip |
many changes, including new spin spaces and groups and cleaning up core library code
Diffstat (limited to 'lib/state.h')
-rw-r--r-- | lib/state.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/state.h b/lib/state.h index eefa0cb..5abf65b 100644 --- a/lib/state.h +++ b/lib/state.h @@ -27,10 +27,10 @@ class state_t { std::vector<double> precomputed_cos; std::vector<double> precomputed_sin; - std::function <double(X_t, X_t)> J; - std::function <double(X_t)> H; + std::function <double(const X_t&, const X_t&)> J; + std::function <double(const X_t&)> H; - state_t(D_t D, L_t L, double T, std::function <double(X_t, X_t)> J, std::function <double(X_t)> H) : D(D), L(L), g(D, L), T(T), R(), J(J), H(H) { + state_t(D_t D, L_t L, double T, std::function <double(const X_t&, const X_t&)> J, std::function <double(const X_t&)> H) : D(D), L(L), g(D, L), T(T), R(), J(J), H(H) { nv = g.nv; ne = g.ne; g.add_ext(); |