]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/multiprecision/doc/html/boost_multiprecision/tut/floats.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / multiprecision / doc / html / boost_multiprecision / tut / floats.html
CommitLineData
7c673cae
FG
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4<title>floating-point Numbers</title>
5<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
7<link rel="home" href="../../index.html" title="Chapter&#160;1.&#160;Boost.Multiprecision">
8<link rel="up" href="../tut.html" title="Tutorial">
9<link rel="prev" href="ints/egs/bitops.html" title="Bit Operations">
10<link rel="next" href="floats/cpp_bin_float.html" title="cpp_bin_float">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr>
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
15<td align="center"><a href="../../../../../../index.html">Home</a></td>
16<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="ints/egs/bitops.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tut.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="floats/cpp_bin_float.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h3 class="title">
27<a name="boost_multiprecision.tut.floats"></a><a class="link" href="floats.html" title="floating-point Numbers">floating-point Numbers</a>
28</h3></div></div></div>
29<div class="toc"><dl>
30<dt><span class="section"><a href="floats/cpp_bin_float.html">cpp_bin_float</a></span></dt>
31<dt><span class="section"><a href="floats/cpp_dec_float.html">cpp_dec_float</a></span></dt>
32<dt><span class="section"><a href="floats/gmp_float.html">gmp_float</a></span></dt>
33<dt><span class="section"><a href="floats/mpfr_float.html">mpfr_float</a></span></dt>
34<dt><span class="section"><a href="floats/float128.html">float128</a></span></dt>
35<dt><span class="section"><a href="floats/fp_eg.html">Examples</a></span></dt>
36<dd><dl>
37<dt><span class="section"><a href="floats/fp_eg/aos.html">Area of
38 Circle</a></span></dt>
39<dt><span class="section"><a href="floats/fp_eg/jel.html">Defining
40 a Special Function.</a></span></dt>
41<dt><span class="section"><a href="floats/fp_eg/nd.html">Calculating
42 a Derivative</a></span></dt>
43<dt><span class="section"><a href="floats/fp_eg/gi.html">Calculating
44 an Integral</a></span></dt>
45<dt><span class="section"><a href="floats/fp_eg/poly_eg.html">Polynomial
46 Evaluation</a></span></dt>
47</dl></dd>
48</dl></div>
49<p>
50 The following back-ends provide floating-point arithmetic:
51 </p>
52<div class="informaltable"><table class="table">
53<colgroup>
54<col>
55<col>
56<col>
57<col>
58<col>
59<col>
60</colgroup>
61<thead><tr>
62<th>
63 <p>
64 Backend Type
65 </p>
66 </th>
67<th>
68 <p>
69 Header
70 </p>
71 </th>
72<th>
73 <p>
74 Radix
75 </p>
76 </th>
77<th>
78 <p>
79 Dependencies
80 </p>
81 </th>
82<th>
83 <p>
84 Pros
85 </p>
86 </th>
87<th>
88 <p>
89 Cons
90 </p>
91 </th>
92</tr></thead>
93<tbody>
94<tr>
95<td>
96 <p>
97 <code class="computeroutput"><span class="identifier">cpp_bin_float</span><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;</span></code>
98 </p>
99 </td>
100<td>
101 <p>
102 boost/multiprecision/cpp_bin_float.hpp
103 </p>
104 </td>
105<td>
106 <p>
107 2
108 </p>
109 </td>
110<td>
111 <p>
112 None
113 </p>
114 </td>
115<td>
116 <p>
117 Header only, all C++ implementation. Boost licence.
118 </p>
119 </td>
120<td>
121 <p>
122 Approximately 2x slower than the <a href="http://www.mpfr.org" target="_top">MPFR</a>
123 or <a href="http://gmplib.org" target="_top">GMP</a> libraries.
124 </p>
125 </td>
126</tr>
127<tr>
128<td>
129 <p>
130 <code class="computeroutput"><span class="identifier">cpp_dec_float</span><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;</span></code>
131 </p>
132 </td>
133<td>
134 <p>
135 boost/multiprecision/cpp_dec_float.hpp
136 </p>
137 </td>
138<td>
139 <p>
140 10
141 </p>
142 </td>
143<td>
144 <p>
145 None
146 </p>
147 </td>
148<td>
149 <p>
150 Header only, all C++ implementation. Boost licence.
151 </p>
152 </td>
153<td>
154 <p>
155 Approximately 2x slower than the <a href="http://www.mpfr.org" target="_top">MPFR</a>
156 or <a href="http://gmplib.org" target="_top">GMP</a> libraries.
157 </p>
158 </td>
159</tr>
160<tr>
161<td>
162 <p>
163 <code class="computeroutput"><span class="identifier">mpf_float</span><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;</span></code>
164 </p>
165 </td>
166<td>
167 <p>
168 boost/multiprecision/gmp.hpp
169 </p>
170 </td>
171<td>
172 <p>
173 2
174 </p>
175 </td>
176<td>
177 <p>
178 <a href="http://gmplib.org" target="_top">GMP</a>
179 </p>
180 </td>
181<td>
182 <p>
183 Very fast and efficient back-end.
184 </p>
185 </td>
186<td>
187 <p>
188 Dependency on GNU licensed <a href="http://gmplib.org" target="_top">GMP</a>
189 library.
190 </p>
191 </td>
192</tr>
193<tr>
194<td>
195 <p>
196 <code class="computeroutput"><span class="identifier">mpfr_float</span><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;</span></code>
197 </p>
198 </td>
199<td>
200 <p>
201 boost/multiprecision/mpfr.hpp
202 </p>
203 </td>
204<td>
205 <p>
206 2
207 </p>
208 </td>
209<td>
210 <p>
211 <a href="http://gmplib.org" target="_top">GMP</a> and <a href="http://www.mpfr.org" target="_top">MPFR</a>
212 </p>
213 </td>
214<td>
215 <p>
216 Very fast and efficient back-end, with its own standard library
217 implementation.
218 </p>
219 </td>
220<td>
221 <p>
222 Dependency on GNU licensed <a href="http://gmplib.org" target="_top">GMP</a>
223 and <a href="http://www.mpfr.org" target="_top">MPFR</a> libraries.
224 </p>
225 </td>
226</tr>
227<tr>
228<td>
229 <p>
230 <code class="computeroutput"><span class="identifier">float128</span></code>
231 </p>
232 </td>
233<td>
234 <p>
235 boost/multiprecision/float128.hpp
236 </p>
237 </td>
238<td>
239 <p>
240 2
241 </p>
242 </td>
243<td>
244 <p>
245 Either <a href="http://gcc.gnu.org/onlinedocs/libquadmath/" target="_top">libquadmath</a>
246 or the Intel C++ Math library.
247 </p>
248 </td>
249<td>
250 <p>
251 Very fast and efficient back-end for 128-bit floating-point values
252 (113-bit mantissa, equivalent to FORTRAN's QUAD real)
253 </p>
254 </td>
255<td>
256 <p>
257 Depends on the compiler being either recent GCC or Intel C++ versions.
258 </p>
259 </td>
260</tr>
261</tbody>
262</table></div>
263</div>
264<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
265<td align="left"></td>
266<td align="right"><div class="copyright-footer">Copyright &#169; 2002-2013 John Maddock and Christopher Kormanyos<p>
267 Distributed under the Boost Software License, Version 1.0. (See accompanying
268 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
269 </p>
270</div></td>
271</tr></table>
272<hr>
273<div class="spirit-nav">
274<a accesskey="p" href="ints/egs/bitops.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tut.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="floats/cpp_bin_float.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
275</div>
276</body>
277</html>