|
From: | John W. Eaton |
Subject: | Re: expint: help with C++ |
Date: | Thu, 17 Aug 2017 16:55:09 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 08/17/2017 10:57 AM, Daniel J Sebald wrote:
On 08/17/2017 08:11 AM, Michele wrote:
However, even though std::complex<float> Delta = 0;is std::complex, the compiler probably doesn't understand what "Delta - 1" is because there probably is not automatic promotion from 1 to std::complex...I'm not sure. So, perhaps you needDelta - complex <float> (1.0, 0.0)or something similar (maybe complex <int> (1,0) will work, don't know,
<complex> defines (complex<T>, T) operators, so you just need to do something like
Delta + 1.0f jwe
[Prev in Thread] | Current Thread | [Next in Thread] |