| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/pythran/pythonic/types/ |
Upload File : |
#ifndef PYTHONIC_TYPES_FINFO_HPP
#define PYTHONIC_TYPES_FINFO_HPP
#include "pythonic/include/types/finfo.hpp"
#include "pythonic/types/attr.hpp"
#include <limits>
PYTHONIC_NS_BEGIN
namespace types
{
template <class T>
T finfo<std::complex<T>>::eps() const
{
return std::numeric_limits<T>::epsilon();
}
template <class T>
T finfo<T>::eps() const
{
return std::numeric_limits<T>::epsilon();
}
}
PYTHONIC_NS_END
/* pythran attribute system { */
PYTHONIC_NS_BEGIN
namespace builtins
{
template <class T>
auto getattr(types::attr::EPS, pythonic::types::finfo<T> const &f)
-> decltype(f.eps())
{
return f.eps();
}
}
PYTHONIC_NS_END
/* } */
#endif