summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hadamard_pt.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/hadamard_pt.hpp b/hadamard_pt.hpp
index 9886462..c658389 100644
--- a/hadamard_pt.hpp
+++ b/hadamard_pt.hpp
@@ -39,7 +39,7 @@ public:
}
}
- double T(signed i) {
+ double T(unsigned i) {
return 1 / Ms[Ms.size() - i - 1].β;
}
@@ -118,7 +118,7 @@ public:
std::vector<double> η(Ms.size() - 1);
for (unsigned i = 0; i < Ms.size() - 1; i++) {
- η[η.size() - i - 1] = sqrt((f[i + 1] - f[i])) / (1 / Ms[i].β - 1 / Ms[i+1].β);
+ η[η.size() - i - 1] = sqrt((f[i + 1] - f[i]) / (1 / Ms[i].β - 1 / Ms[i+1].β));
}
double C = 0;