From 6482fcaf4e5d8ede27d9492ed08e6bc81b28b418 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 25 Feb 2021 16:23:13 +0100 Subject: More changes. --- complex_normal.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'complex_normal.hpp') 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 σ, std::complex κ) : μ(μ), 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 std::complex operator()(Generator& g) { -- cgit v1.2.3-54-g00ecf