/** * * * Created on: 18 jun. 2024 * Author: AKKODIS - Furkan */ #include "IsNaN.hh" #include template int _isNaN(const Type& el) { double dEl = (double)el; return (int)std::isnan(dEl); } template std::vector _isNaN(const std::vector& el) { std::vector result; for (typename std::vector::const_iterator it = el.begin(); it != el.end(); ++it) { result.push_back(_isNaN(*it)); } return result; } int IsNaN(const float& el) { return _isNaN(el); } int IsNaN(const double& el) { return _isNaN(el); } int IsNaN(const long double& el) { return _isNaN(el); } int IsNaN(const int& el) { return _isNaN(el); } int IsNaN(const short& el) { return _isNaN(el); } std::vector IsNaN(const std::vector& el) { return _isNaN(el); } std::vector IsNaN_(const std::vector& el) { return _isNaN(el); } std::vector IsNaN_(const std::vector& el) { return _isNaN(el); } std::vector IsNaN_(const std::vector& el) { return _isNaN(el); } std::vector IsNaN_(const std::vector& el) { return _isNaN(el); }