Loading graph_framework/special_functions.hpp +1 −2 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ template<typename T> using complex_type = complex<T>; #else #include <iostream> #include <complex> #include <cfloat> #include <cmath> Loading Loading @@ -1583,7 +1582,7 @@ namespace special { #endif complex_type<T> erfi(const complex_type<T> z) { // Avoids NaN instead of doing i<T>*z and -i*temp; const complex_type<T> temp = erf_complex<T> (complex_type<T> (-imag<T> (z), real<T> (z))); const complex_type<T> temp = erf_complex<T> (complex_type<T> (-imag(z), real(z))); return complex_type<T> (imag(temp), -real(temp)); } } Loading Loading
graph_framework/special_functions.hpp +1 −2 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ template<typename T> using complex_type = complex<T>; #else #include <iostream> #include <complex> #include <cfloat> #include <cmath> Loading Loading @@ -1583,7 +1582,7 @@ namespace special { #endif complex_type<T> erfi(const complex_type<T> z) { // Avoids NaN instead of doing i<T>*z and -i*temp; const complex_type<T> temp = erf_complex<T> (complex_type<T> (-imag<T> (z), real<T> (z))); const complex_type<T> temp = erf_complex<T> (complex_type<T> (-imag(z), real(z))); return complex_type<T> (imag(temp), -real(temp)); } } Loading