Commit Graph

73 Commits

Author SHA1 Message Date
John Maddock
8ae04c68a6 Merge multiprecision from sandbox.
[SVN r81417]
2012-11-18 18:56:59 +00:00
John Maddock
4071dd8d59 Fix missing number constructor.
Fix is_explicitly_convertible to take account of the generic conversions.
Change sf_performance to use multiple files so we can actually compile the thing!
Minor doc updates.
Suppress some more warnings.

[SVN r81324]
2012-11-13 17:12:19 +00:00
John Maddock
3430188795 Add overloads of the integer-only functions which work with native integer types.
Ensure powm promotes fixed precision types to avoid numeric overflow.
Allow the Miller-Rabin code to be used by native integers.
Fix Miller Rabin tests to actually return the test result!
Fix some bugs in cpp_int unsigned arithmetic, and ensure the Miller Rabin and random number code can be safely used with checked fixed precision integers.

[SVN r81269]
2012-11-09 18:55:19 +00:00
John Maddock
da40611f57 Fix mpfr_float_backend interconversions.
Update docs and regenerate.

[SVN r81163]
2012-11-03 18:27:11 +00:00
John Maddock
3080df73d9 Update MPFR docs with performance comparison.
[SVN r81146]
2012-11-02 13:07:39 +00:00
John Maddock
b640732abd Add additional template parameter to mpfr_float_backend to allow stack-based floats.
[SVN r81135]
2012-11-01 19:01:08 +00:00
John Maddock
d1336b5f63 More doc updates.
Regenerate docs.

[SVN r81133]
2012-11-01 11:19:59 +00:00
John Maddock
c587f1550b Update and regenerate docs.
Fix error in expression template unpacking that occasionally caused variable over-writes.
Update Math lib tests to test at least one non-ET type.

[SVN r81121]
2012-10-31 17:06:33 +00:00
John Maddock
4f2738fd6f Add traits class to determine default ExpressionTemplate parameter value.
Add support for fused-multiply-add/subtract.
Optimise temporary usage when the LHS also appears on the RHS.

[SVN r80607]
2012-09-20 16:04:02 +00:00
John Maddock
dd7ee60431 Fix GCC C++11 mode failures.
Tidy up TODO list.

[SVN r80577]
2012-09-18 16:47:03 +00:00
John Maddock
9f8b30fcdf Update docs with review comments.
Update a few tests based on review comments.
Regenerate docs.

[SVN r80539]
2012-09-16 12:25:14 +00:00
John Maddock
fc1cda1f62 Largely cosmetic change - add two new template params to cpp_dec_float - one for the exponent type, and one for an optional allocator.
[SVN r80431]
2012-09-07 08:31:49 +00:00
John Maddock
a2c8fc060f Rebuild docs.
[SVN r80419]
2012-09-06 09:52:28 +00:00
John Maddock
6dfcc7e526 Big search and replace change of name for the ExpressionTemplates template parameter to class number.
[SVN r80418]
2012-09-06 09:50:47 +00:00
John Maddock
9edbdc0ca4 Enable optimisations in the GMP and MPFR backends for mixed mode arithmetic.
Allow mixed arithmetic between two different expression templates.
Change docs to indicate mixed arithmetic is allowed and rebuild.

[SVN r80397]
2012-09-04 17:18:18 +00:00
John Maddock
c7230f94ff Extra test cases for more complete coverage.
Added test coverage makefile.
Fixed errors from extra test cases.
Rename a few traits.

[SVN r80328]
2012-08-31 11:57:55 +00:00
John Maddock
1e00790703 Rename mp_number_archetype.
Update docs with explicit conversion info.
Regenerate docs.

[SVN r80261]
2012-08-27 12:30:53 +00:00
John Maddock
6fe80f07de Much improved concept docs.
Regenerate docs.
Make some cpp_int specific routines generic instead.
Changed divide-by-zero to be an overflow error.

[SVN r79952]
2012-08-10 08:37:37 +00:00
John Maddock
6f317ee809 Rebuild docs.
[SVN r79933]
2012-08-08 18:25:27 +00:00
John Maddock
e2ef393c23 Big search and replace rename, removing mp_ prefix.
[SVN r79932]
2012-08-08 18:14:50 +00:00
John Maddock
281c667b71 Update frontend to allow direct construction of backend.
Improve construction times for cpp_int from integers.
Allow constexpr construction.
Allow fixed precision cpp_int's with small bit counts.

[SVN r79692]
2012-07-23 08:57:44 +00:00
John Maddock
19ee491c55 Add noexcept support/markup where possible.
[SVN r79331]
2012-07-07 11:16:28 +00:00
John Maddock
f09ead8e37 Some file renaming and fixes from Steven Watanabe's comments.
[SVN r79141]
2012-06-27 18:25:10 +00:00
John Maddock
5ce96a1459 Fix some doc typos and regenerate docs.
[SVN r78843]
2012-06-07 10:06:56 +00:00
John Maddock
3fc6a3f67c Update TODO list.
[SVN r78815]
2012-06-05 17:19:56 +00:00
John Maddock
e299171d07 Add performance test comparing double to mp_number<float_backend<double>>.
Fix typo in docs and regenerate.

[SVN r78811]
2012-06-05 10:40:56 +00:00
John Maddock
f543ec2639 Address doc concerns of Vincente Botet Escriba in pre-review comments.
Rebuild docs.

[SVN r78807]
2012-06-04 17:50:57 +00:00
John Maddock
1b33ece7f8 Documentation update - address Marc Glisse's comments on the overview section.
[SVN r78806]
2012-06-04 15:25:22 +00:00
John Maddock
a8c73aea66 Change non-member functions to be protected by enable_if based on the type of the number.
Extend expression templates to 4 arguments.
Add pow and powm functions for integer types.
Update docs to match.

[SVN r78401]
2012-05-10 09:20:26 +00:00
John Maddock
538415e0ef Correct wrong function-call argument in docs.
Change max_digits10 in numeric_limits<cpp_dec_float> to include all the *possible* digits.

[SVN r77996]
2012-04-15 17:46:42 +00:00
John Maddock
12fa743b47 Improve class index.
[SVN r77950]
2012-04-13 16:51:01 +00:00
John Maddock
5c9d22ae8e Commit revised docs.
[SVN r77949]
2012-04-13 15:40:50 +00:00
John Maddock
d4a2c46ac6 Update examples, reorganise docs, temporarily remove HTML before rebuilding.
Enhance test cases, including enabling loopback testing on cpp_dec_float io.

[SVN r77948]
2012-04-13 15:38:28 +00:00
John Maddock
2b1f19fa2b Integrate Chris's FP examples into the docs.
[SVN r77851]
2012-04-09 16:58:30 +00:00
John Maddock
d873049821 Update notes on comments.
[SVN r77760]
2012-04-04 17:14:00 +00:00
John Maddock
0488e551b9 Add extended floating point example.
[SVN r77746]
2012-04-03 18:20:35 +00:00
John Maddock
149af697bc Add log of comments.
[SVN r77743]
2012-04-03 16:22:27 +00:00
John Maddock
c984b2eaa7 Add updated HTML docs.
[SVN r77652]
2012-03-30 18:35:38 +00:00
John Maddock
0e71a0c55e Documentation update, temporarily remove the HTML docs.
[SVN r77651]
2012-03-30 18:33:27 +00:00
John Maddock
ada7aced0a Add links to arbitary precision definition.
[SVN r77608]
2012-03-28 17:53:35 +00:00
John Maddock
e47eee1e5e Update floating point examples to show Boost.Math usage.
[SVN r77607]
2012-03-28 17:47:41 +00:00
John Maddock
bb6393d69e Fix typos / issue spotted by Paul Bristow.
[SVN r77605]
2012-03-28 17:26:20 +00:00
John Maddock
4c6065717b Add a few more integer specific bit-fiddling functions.
Fix some bugs in cpp_int left shift code.
Document some missing backend API's, and update docs.

[SVN r77583]
2012-03-27 11:45:01 +00:00
John Maddock
8433c69175 Disable expression templates for fixed precision types.
Restrict integer functions to integer types.
Improve Miller Rabin performance by filtering out small primes etc.
Improve Miller Rabin tests.
Change mp_int to tom_int to avoid conflict with global ::mp_Int type.

[SVN r77471]
2012-03-22 10:29:30 +00:00
John Maddock
24cff33935 Update Miller Rabin test to use small prime filtering.
Add some new integer type operations.
Update performance tests to match.

[SVN r77451]
2012-03-21 09:19:57 +00:00
John Maddock
6deafa525b Fix bug in cpp_int shown up by random number generations and change example to use it.
[SVN r77359]
2012-03-17 13:23:32 +00:00
John Maddock
45a08da90e Add simple version of the Miller Rabin test
[SVN r77353]
2012-03-17 09:18:20 +00:00
John Maddock
0f6a527cee Add random number support.
[SVN r77344]
2012-03-15 18:41:00 +00:00
John Maddock
d82fa61c81 Mostly remove references to fixed_int.
Update docs.

[SVN r77335]
2012-03-14 18:23:44 +00:00
John Maddock
e1b23af8f5 Add files missing from last commit, and add new examples to tests.
[SVN r77324]
2012-03-13 18:40:52 +00:00