📄 fpclassifyf.cpp
字号:
// Copyright John Maddock 2008.// Use, modification and distribution are subject to the// Boost Software License, Version 1.0. (See accompanying file// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)//#define BOOST_MATH_TR1_SOURCE#include <boost/math/tr1.hpp>#include <boost/math/special_functions/fpclassify.hpp>#include <boost/math/special_functions/sign.hpp>#include "c_policy.hpp"namespace boost{ namespace math{ namespace tr1{template<> bool BOOST_MATH_TR1_DECL signbit<float> BOOST_PREVENT_MACRO_SUBSTITUTION(float x){ return static_cast<bool>((boost::math::signbit)(x)); }template<> int BOOST_MATH_TR1_DECL fpclassify<float> BOOST_PREVENT_MACRO_SUBSTITUTION(float x){ return (boost::math::fpclassify)(x);}template<> bool BOOST_MATH_TR1_DECL isfinite<float> BOOST_PREVENT_MACRO_SUBSTITUTION(float x){ return (boost::math::isfinite)(x);}template<> bool BOOST_MATH_TR1_DECL isinf<float> BOOST_PREVENT_MACRO_SUBSTITUTION(float x){ return (boost::math::isinf)(x);}template<> bool BOOST_MATH_TR1_DECL isnan<float> BOOST_PREVENT_MACRO_SUBSTITUTION(float x){ return (boost::math::isnan)(x);}template<> bool BOOST_MATH_TR1_DECL isnormal<float> BOOST_PREVENT_MACRO_SUBSTITUTION(float x){ return (boost::math::isnormal)(x);}}}}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -