structure.qbk 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. [section:navigation Navigation]
  2. [indexterm1 navigation]
  3. Boost.Math documentation is provided in both HTML and PDF formats.
  4. * [*Tutorials] are listed in the ['Table of Contents] and
  5. include many examples that should help you get started quickly.
  6. * [*Source code] of the many ['Examples] will often be your quickest starting point.
  7. * [*Index] (general) includes all entries.
  8. * [*Specific Indexes] list only functions, class signatures, macros and typedefs.
  9. [h5 Using the Indexes]
  10. The main index will usually help,
  11. especially if you know a word describing what it does,
  12. without needing to know the exact name chosen for the function.
  13. [tip When using the index, keep in mind that clicking on an index term
  14. only takes you to the [*section] containing the index entry.
  15. This section may be several pages long,
  16. so you may need to use the [*find] facility of your browser or PDF reader
  17. to get to the index term itself.]
  18. [tip A PDF reader usually allows a [*global] find; this can be really useful
  19. if the term you expect to be indexed is not the one chosen by the authors.
  20. You might find searching the PDF version and viewing the HTML version
  21. will locate an elusive item.]
  22. [endsect] [/section:navigation Navigation]
  23. [section:conventions Document Conventions]
  24. [indexterm1 conventions]
  25. This documentation aims to use of the following naming and formatting conventions.
  26. * C++ Code is in `fixed width font` and is syntax-highlighted in color, for example `double`.
  27. * Other code is in block [^teletype fixed-width font].
  28. * Replaceable text that [*you] will need to supply is in [~italics].
  29. * If a name refers to a free function, it is specified like this:
  30. `free_function()`; that is, it is in [~code font] and its name is followed by `()`
  31. to indicate that it is a free function.
  32. * If a name refers to a class template, it is specified like this:
  33. `class_template<>`; that is, it is in code font and its name is followed by `<>`
  34. to indicate that it is a class template.
  35. * If a name refers to a function-like macro, it is specified like this: `MACRO()`;
  36. that is, it is uppercase in code font and its name is followed by `()` to
  37. indicate that it is a function-like macro. Object-like macros appear without the
  38. trailing `()`.
  39. * Names that refer to ['concepts] in the generic programming sense
  40. (like template parameter names) are specified in CamelCase.
  41. [endsect] [/section:conventions Document Conventions]
  42. [section:hints Other Hints and tips]
  43. * Historial records of issues are at [@https://svn.boost.org/trac/boost/ Boost Trac], now read-only.
  44. * Always ensure that you are using the [@https://www.boost.org/users/download/#live current release version].
  45. * The current documentation for the release version is [@https://www.boost.org/doc/libs/release/libs/math/doc/html/index.html here].
  46. * The current documentation for the version being developed is [@https://www.boost.org/doc/libs/develop/libs/math/doc/html/index.html here].
  47. * See [@https://github.com/boostorg/math develop branch(es)] where changes are being assembled and tested ready for the next release.[br]
  48. You may, at your own risk, download new versions from there.
  49. * If you have a new feature request, raise a new [@https://github.com/boostorg/math/issues Boost.Math issue],
  50. * If it appears that the implementation is in error,
  51. please search first at [@https://github.com/boostorg/math/issues Boost.Math issues].
  52. Entries may indicate that updates or corrections that solve your problem are in
  53. [@https://github.com/boostorg/math Boost.Math on Github].
  54. * If you have a suggested enhancements or fix,
  55. you are most welcome to submit [@https://github.com/boostorg/math/pulls pull requests].
  56. * If you do not understand why things work the way they do, see first the ['rationale] section.
  57. * If you do not find satisfaction for your idea/feature/complaint,
  58. please reach the author(s) preferably through the Boost user or
  59. development lists [@https://www.boost.org/community/groups.html],
  60. or raise a new [@https://github.com/boostorg/math/issues Boost.Math issue],
  61. or email the author(s) direct.
  62. [h5:admonishments Admonishments]
  63. [note In addition, notes such as this one specify non-essential information that
  64. provides additional background or rationale.]
  65. [tip These blocks contain information that you may find helpful while coding.]
  66. [important These contain information that is imperative to understanding a concept.
  67. Failure to follow suggestions in these blocks will probably result in undesired behavior.
  68. Read all of these you find.]
  69. [warning Failure to heed this will lead to incorrect, and very likely undesired, results!]
  70. [endsect] [/section:hints Other Hints and tips]
  71. [section:directories Directory and File Structure]
  72. [h4 boost\/math]
  73. [variablelist
  74. [[\/concepts\/]
  75. [Prototype defining the *essential* features of a RealType
  76. class (see real_concept.hpp). Most applications will use `double`
  77. as the RealType (and short `typedef` names of distributions are
  78. reserved for this type where possible), a few will use `float` or
  79. `long double`, but it is also possible to use higher precision types
  80. like __NTL_RR, __GMP, __MPFR, __multiprecision like cpp_bin_float_50
  81. that conform to the requirements specified by `real_concept`.]]
  82. [[\/constants\/]
  83. [Templated definition of some highly accurate math constants ([@https://github.com/boostorg/math/blob/develop/include/boost/math/constants/constants.hpp constants.hpp]).]]
  84. [[\/distributions\/]
  85. [Distributions used in mathematics and, especially, statistics:
  86. Gaussian, Students-t, Fisher, Binomial etc]]
  87. [[\/policies\/]
  88. [Policy framework, for handling user requested behaviour modifications.]]
  89. [[\/special_functions\/]
  90. [Math functions generally regarded as 'special', like beta,
  91. cbrt, erf, gamma, lgamma, tgamma ... (Some of these are specified in
  92. C++, and C99\/TR1, and perhaps TR2).]]
  93. [[\/tools\/]
  94. [Tools used by functions, like evaluating polynomials, continued fractions,
  95. root finding, precision and limits, and by tests. Some will
  96. find application outside this package.]]
  97. ]
  98. [h4 boost\/libs]
  99. [variablelist
  100. [[\/doc\/]
  101. [Documentation source files in Quickbook format processed into
  102. html and pdf formats.]]
  103. [[\/examples\/]
  104. [Examples and demos of using math functions and distributions.]]
  105. [[\/performance\/]
  106. [Performance testing and tuning program.]]
  107. [[\/test\/]
  108. [Test files, in many .cpp files, most using Boost.Test
  109. (some with test data as .ipp files, usually generated using NTL RR
  110. type with ample precision for the type, often for precisions
  111. suitable for up to 256-bit significand real types).]]
  112. [[\/tools\/]
  113. [Programs used to generate test data. Also changes to the
  114. [@http://shoup.net/ntl/ NTL] released package to provide a few additional
  115. (and vital) extra features.]]
  116. ]
  117. [endsect] [/section:directories Directory and File Structure]
  118. [section:namespaces Namespaces]
  119. All math functions and distributions are in `namespace boost::math`.
  120. So, for example, the Students-t distribution template in `namespace boost::math` is
  121. template <class RealType> class students_t_distribution
  122. and can be instantiated with the help of the reserved name `students_t`(for `RealType double`)
  123. typedef students_t_distribution<double> students_t;
  124. student_t mydist(10);
  125. [warning Some distribution names are also used in std random library,
  126. so to avoid the risk of ambiguity it is better to make explicit using declarations,
  127. for example: `using boost::math::students_t_distribution`]
  128. Functions not intended for use by applications are in `boost::math::detail`.
  129. Functions that may have more general use, like `digits`
  130. (significand), `max_value`, `min_value` and `epsilon` are in
  131. `boost::math::tools`.
  132. __Policy and configuration information is in `namespace` `boost::math::policies`.
  133. [tip Many code snippets assume implicit namespace(s),
  134. for example, `std::` or `boost::math`.]
  135. [tip Start your work from a copy of the example source code; links usually provided.]
  136. [endsect] [/section:namespaces Namespaces]
  137. [/ structure.qbk
  138. Copyright 2006, 2010, 2012 John Maddock and Paul A. Bristow.
  139. Distributed under the Boost Software License, Version 1.0.
  140. (See accompanying file LICENSE_1_0.txt or copy at
  141. http://www.boost.org/LICENSE_1_0.txt).
  142. ]