summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--langevin.cpp8
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();