BVB Source Codes

mars Show round_fwd.hpp Source code

Return Download mars: download round_fwd.hpp Source code - Download mars Source code - Type:.hpp
  1. // Copyright John Maddock 2008.
  2.  
  3. // Use, modification and distribution are subject to the
  4. // Boost Software License, Version 1.0.
  5. // (See accompanying file LICENSE_1_0.txt
  6. // or copy at http://www.boost.org/LICENSE_1_0.txt)
  7.  
  8. #ifndef BOOST_MATH_SPECIAL_ROUND_FWD_HPP
  9. #define BOOST_MATH_SPECIAL_ROUND_FWD_HPP
  10.  
  11. #include <boost/config.hpp>
  12. #include <boost/math/tools/promotion.hpp>
  13.  
  14. #ifdef _MSC_VER
  15. #pragma once
  16. #endif
  17.  
  18. namespace mars_boost {} namespace boost = mars_boost; namespace mars_boost
  19. {
  20.    namespace math
  21.    {
  22.  
  23.    template <class T, class Policy>
  24.    typename tools::promote_args<T>::type trunc(const T& v, const Policy& pol);
  25.    template <class T>
  26.    typename tools::promote_args<T>::type trunc(const T& v);
  27.    template <class T, class Policy>
  28.    int itrunc(const T& v, const Policy& pol);
  29.    template <class T>
  30.    int itrunc(const T& v);
  31.    template <class T, class Policy>
  32.    long ltrunc(const T& v, const Policy& pol);
  33.    template <class T>
  34.    long ltrunc(const T& v);
  35. #ifdef BOOST_HAS_LONG_LONG
  36.    template <class T, class Policy>
  37.    mars_boost::long_long_type lltrunc(const T& v, const Policy& pol);
  38.    template <class T>
  39.    mars_boost::long_long_type lltrunc(const T& v);
  40. #endif
  41.    template <class T, class Policy>
  42.    typename tools::promote_args<T>::type round(const T& v, const Policy& pol);
  43.    template <class T>
  44.    typename tools::promote_args<T>::type round(const T& v);
  45.    template <class T, class Policy>
  46.    int iround(const T& v, const Policy& pol);
  47.    template <class T>
  48.    int iround(const T& v);
  49.    template <class T, class Policy>
  50.    long lround(const T& v, const Policy& pol);
  51.    template <class T>
  52.    long lround(const T& v);
  53. #ifdef BOOST_HAS_LONG_LONG
  54.    template <class T, class Policy>
  55.    mars_boost::long_long_type llround(const T& v, const Policy& pol);
  56.    template <class T>
  57.    mars_boost::long_long_type llround(const T& v);
  58. #endif
  59.    template <class T, class Policy>
  60.    T modf(const T& v, T* ipart, const Policy& pol);
  61.    template <class T>
  62.    T modf(const T& v, T* ipart);
  63.    template <class T, class Policy>
  64.    T modf(const T& v, int* ipart, const Policy& pol);
  65.    template <class T>
  66.    T modf(const T& v, int* ipart);
  67.    template <class T, class Policy>
  68.    T modf(const T& v, long* ipart, const Policy& pol);
  69.    template <class T>
  70.    T modf(const T& v, long* ipart);
  71. #ifdef BOOST_HAS_LONG_LONG
  72.    template <class T, class Policy>
  73.    T modf(const T& v, mars_boost::long_long_type* ipart, const Policy& pol);
  74.    template <class T>
  75.    T modf(const T& v, mars_boost::long_long_type* ipart);
  76. #endif
  77.  
  78.    }
  79. }
  80.  
  81. #undef BOOST_MATH_STD_USING
  82. #define BOOST_MATH_STD_USING BOOST_MATH_STD_USING_CORE\
  83.    using mars_boost::math::round;\
  84.    using mars_boost::math::iround;\
  85.    using mars_boost::math::lround;\
  86.    using mars_boost::math::trunc;\
  87.    using mars_boost::math::itrunc;\
  88.    using mars_boost::math::ltrunc;\
  89.    using mars_boost::math::modf;
  90.  
  91.  
  92. #endif // BOOST_MATH_SPECIAL_ROUND_FWD_HPP
  93.  
  94.  
downloadround_fwd.hpp Source code - Download mars Source code
Related Source Codes/Software:
Hero - Elegant transition library for iOS & tvOS 2017-06-09
deep-photo-styletransfer - Code and data for paper "Deep Photo Style Transfer... 2017-06-09
mastodon - A GNU Social-compatible microblogging server ... 2017-06-09
plyr - A simple HTML5, YouTube and Vimeo player ... 2017-06-08
prepack - Prepack is a partial evaluator for JavaScript. Pre... 2017-06-08
Public-APIs - 2017-06-09
lottie-ios - An iOS library to natively render After Effects ve... 2017-06-09
Awesome-Hacking - A collection of various awesome lists for hackers,... 2017-06-09
algorithms - Minimal examples of data structures and algorithms... 2017-06-10
lectures - Oxford Deep NLP 2017 course 2017-06-10
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top