Why won't boost's bessel function compile with a complex input?
问题 According to the boost documentation, the boost special functions bessel function (specifically the modified bessel function) should be able to accept a complex input. However, when I attempt to feed it one, I get a compile error complaining that there is no < operator for operand types float and std::complex<float> . Here is my code: using namespace boost::math; std::complex<float> cpxTerm = std::complex<float>(m_u1 * cos(az), -wbar * cos(sin(lim))); std::complex<float> besselTerm = cyl