diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2021-02-25 16:23:13 +0100 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2021-02-25 16:23:13 +0100 |
commit | 6482fcaf4e5d8ede27d9492ed08e6bc81b28b418 (patch) | |
tree | 9653bcb04ca148e85d5f494664f276a9ac828713 /complex_normal.hpp | |
parent | 3276bdd1e9796fec71e169e6c41d77da72b3a4fb (diff) | |
download | code-6482fcaf4e5d8ede27d9492ed08e6bc81b28b418.tar.gz code-6482fcaf4e5d8ede27d9492ed08e6bc81b28b418.tar.bz2 code-6482fcaf4e5d8ede27d9492ed08e6bc81b28b418.zip |
More changes.
Diffstat (limited to 'complex_normal.hpp')
-rw-r--r-- | complex_normal.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/complex_normal.hpp b/complex_normal.hpp index 2ffcea1..65b054f 100644 --- a/complex_normal.hpp +++ b/complex_normal.hpp @@ -15,7 +15,7 @@ public: complex_normal_distribution(std::complex<T> μ, T σ, std::complex<T> κ) : μ(μ), d(0, σ / sqrt(2)) { δx = sqrt(1 + std::abs(κ)); δy = sqrt(1 - std::abs(κ)); - eθ = std::polar(1.0, std::arg(κ)); + eθ = std::polar((T)1, std::arg(κ)); } template <class Generator> std::complex<T> operator()(Generator& g) { |