fixed isnan issue on linux needed explicit std::isnan call from cmath