Skip to content
Snippets Groups Projects
Commit 9127c5e0 authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Removed TODO in SpecularMagnetic::getImExponential

parent f7d239ae
No related branches found
No related tags found
No related merge requests found
......@@ -130,6 +130,8 @@ void SpecularMagnetic::setForNoTransmission(MultiLayerCoeff_t& coeff) const
complex_t SpecularMagnetic::getImExponential(complex_t exponent) const
{
// TODO: add over- and underflow checks!
if (exponent.imag() > -std::log(std::numeric_limits<double>::min()) ) {
return 0.0;
}
return std::exp(complex_t(0.0, 1.0)*exponent);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment