]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/multiprecision/detail/big_lanczos.hpp
buildsys: change download over to reef release
[ceph.git] / ceph / src / boost / boost / multiprecision / detail / big_lanczos.hpp
CommitLineData
7c673cae
FG
1
2// Copyright (c) 2011 John Maddock
3// Use, modification and distribution are subject to the
4// Boost Software License, Version 1.0. (See accompanying file
5// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7#ifndef BOOST_MP_BIG_LANCZOS
8#define BOOST_MP_BIG_LANCZOS
9
10#include <boost/math/bindings/detail/big_lanczos.hpp>
11
92f5a8d4
TL
12namespace boost {
13namespace math {
7c673cae 14
92f5a8d4 15namespace lanczos {
7c673cae
FG
16
17template <class T, class Policy>
18struct lanczos;
19
92f5a8d4 20template <class Backend, boost::multiprecision::expression_template_option ExpressionTemplates, class Policy>
7c673cae
FG
21struct lanczos<multiprecision::number<Backend, ExpressionTemplates>, Policy>
22{
23 typedef typename boost::math::policies::precision<multiprecision::number<Backend, ExpressionTemplates>, Policy>::type precision_type;
24 typedef typename mpl::if_c<
92f5a8d4
TL
25 precision_type::value && (precision_type::value <= 73),
26 lanczos13UDT,
27 typename mpl::if_c<
28 precision_type::value && (precision_type::value <= 122),
29 lanczos22UDT,
30 undefined_lanczos>::type>::type type;
7c673cae
FG
31};
32
92f5a8d4 33}
7c673cae 34
92f5a8d4 35}} // namespace boost::math::lanczos
7c673cae
FG
36
37#endif