diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2020-12-29 13:49:36 +0100 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2020-12-29 13:49:36 +0100 |
commit | fa131164b1a82cb165562b138051557f63068ee8 (patch) | |
tree | a76c1385c9d216655ba06b5f681d690131e416a3 | |
parent | 5698efde2e8bb86571dcf72d97ca4d702106b394 (diff) | |
download | code-fa131164b1a82cb165562b138051557f63068ee8.tar.gz code-fa131164b1a82cb165562b138051557f63068ee8.tar.bz2 code-fa131164b1a82cb165562b138051557f63068ee8.zip |
Camel cased some function names.
-rw-r--r-- | langevin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/langevin.cpp b/langevin.cpp index f29cd25..8660330 100644 --- a/langevin.cpp +++ b/langevin.cpp @@ -49,7 +49,7 @@ long unsigned factorial(unsigned p) { } } -Tensor generate_coupling_tensor(unsigned N, std::complex<double> κ, Rng& r) { +Tensor generateCouplings(unsigned N, std::complex<double> κ, Rng& r) { double σ = sqrt(factorial(p) / (2.0 * pow(N, p - 1))); complex_normal_distribution<> dist(0, σ, κ); @@ -84,7 +84,7 @@ double norm(const Eigen::Tensor<std::complex<double>, r>& t) { return t2(0); } -Vector generate_initial_vector(unsigned N) { +Vector initializeVector(unsigned N) { Vector z(N); z.setConstant(1); return z; @@ -223,8 +223,8 @@ int main(int argc, char* argv[]) { Rng r; - Tensor J = generate_coupling_tensor(N, κ, r); - Vector z = generate_initial_vector(N); + Tensor J = generateCouplings(N, κ, r); + Vector z = initializeVector(N); std::complex<double> ε = hamiltonian(J, z) / (double)N; Scalar zz = z.pow(2).sum(); |