complex.html 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
  4. <title>Complex Number Types</title>
  5. <link rel="stylesheet" href="../../multiprecision.css" type="text/css">
  6. <meta name="generator" content="DocBook XSL Stylesheets V1.79.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="interval/mpfi.html" title="mpfi_float">
  10. <link rel="next" href="complex/cpp_complex.html" title="cpp_complex">
  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="interval/mpfi.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="complex/cpp_complex.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.complex"></a><a class="link" href="complex.html" title="Complex Number Types">Complex Number Types</a>
  28. </h3></div></div></div>
  29. <div class="toc"><dl class="toc">
  30. <dt><span class="section"><a href="complex/cpp_complex.html">cpp_complex</a></span></dt>
  31. <dt><span class="section"><a href="complex/mpc_complex.html">mpc_complex</a></span></dt>
  32. <dt><span class="section"><a href="complex/complex128.html">complex128</a></span></dt>
  33. <dt><span class="section"><a href="complex/complex_adaptor.html">complex_adaptor</a></span></dt>
  34. </dl></div>
  35. <p>
  36. The following backends provide complex number arithmetic:
  37. </p>
  38. <div class="informaltable"><table class="table">
  39. <colgroup>
  40. <col>
  41. <col>
  42. <col>
  43. <col>
  44. <col>
  45. <col>
  46. </colgroup>
  47. <thead><tr>
  48. <th>
  49. <p>
  50. Backend Type
  51. </p>
  52. </th>
  53. <th>
  54. <p>
  55. Header
  56. </p>
  57. </th>
  58. <th>
  59. <p>
  60. Radix
  61. </p>
  62. </th>
  63. <th>
  64. <p>
  65. Dependencies
  66. </p>
  67. </th>
  68. <th>
  69. <p>
  70. Pros
  71. </p>
  72. </th>
  73. <th>
  74. <p>
  75. Cons
  76. </p>
  77. </th>
  78. </tr></thead>
  79. <tbody>
  80. <tr>
  81. <td>
  82. <p>
  83. <code class="computeroutput"><span class="identifier">cpp_complex</span></code>
  84. </p>
  85. </td>
  86. <td>
  87. <p>
  88. boost/multiprecision/cpp_complex.hpp
  89. </p>
  90. </td>
  91. <td>
  92. <p>
  93. 2
  94. </p>
  95. </td>
  96. <td>
  97. <p>
  98. None
  99. </p>
  100. </td>
  101. <td>
  102. <p>
  103. An all C++ Boost-licensed implementation.
  104. </p>
  105. </td>
  106. <td>
  107. <p>
  108. Slower than <a href="http://www.multiprecision.org" target="_top">MPC</a>.
  109. </p>
  110. </td>
  111. </tr>
  112. <tr>
  113. <td>
  114. <p>
  115. <code class="computeroutput"><span class="identifier">mpc</span></code>
  116. </p>
  117. </td>
  118. <td>
  119. <p>
  120. boost/multiprecision/mpc.hpp
  121. </p>
  122. </td>
  123. <td>
  124. <p>
  125. 2
  126. </p>
  127. </td>
  128. <td>
  129. <p>
  130. <a href="http://www.multiprecision.org" target="_top">MPC</a>
  131. </p>
  132. </td>
  133. <td>
  134. <p>
  135. Very fast and efficient back-end.
  136. </p>
  137. </td>
  138. <td>
  139. <p>
  140. Dependency on LGLP-licensed [MPC] library.
  141. </p>
  142. </td>
  143. </tr>
  144. <tr>
  145. <td>
  146. <p>
  147. <code class="computeroutput"><span class="identifier">compplex128</span></code>
  148. </p>
  149. </td>
  150. <td>
  151. <p>
  152. boost/multiprecision/complex128.hpp
  153. </p>
  154. </td>
  155. <td>
  156. <p>
  157. 2
  158. </p>
  159. </td>
  160. <td>
  161. <p>
  162. <code class="computeroutput"><a class="link" href="floats/float128.html" title="float128">float128</a></code>
  163. and libquadmath
  164. </p>
  165. </td>
  166. <td>
  167. <p>
  168. Very fast and efficient number type.
  169. </p>
  170. </td>
  171. <td>
  172. <p>
  173. 128-bit precision only, and resticted to GCC.
  174. </p>
  175. </td>
  176. </tr>
  177. <tr>
  178. <td>
  179. <p>
  180. <code class="computeroutput"><span class="identifier">complex_adaptor</span></code>
  181. </p>
  182. </td>
  183. <td>
  184. <p>
  185. boost/multiprecision/complex_adaptor.hpp
  186. </p>
  187. </td>
  188. <td>
  189. <p>
  190. -
  191. </p>
  192. </td>
  193. <td>
  194. <p>
  195. none
  196. </p>
  197. </td>
  198. <td>
  199. <p>
  200. Can convert any backend type into a complex number backend.
  201. </p>
  202. </td>
  203. <td>
  204. <p>
  205. Not a numbe rin it's own right, and hard to use as a result.
  206. </p>
  207. </td>
  208. </tr>
  209. </tbody>
  210. </table></div>
  211. </div>
  212. <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
  213. <td align="left"></td>
  214. <td align="right"><div class="copyright-footer">Copyright &#169; 2002-2019 John Maddock
  215. and Christopher Kormanyos<p>
  216. Distributed under the Boost Software License, Version 1.0. (See accompanying
  217. 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>)
  218. </p>
  219. </div></td>
  220. </tr></table>
  221. <hr>
  222. <div class="spirit-nav">
  223. <a accesskey="p" href="interval/mpfi.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="complex/cpp_complex.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
  224. </div>
  225. </body>
  226. </html>