Commit Graph

171 Commits

Author SHA1 Message Date
John Maddock
97b0b495a4 Split test_arithmetic_mpfr_50.cpp into two tests for faster compiles / smaller memory usage.
[SVN r82431]
2013-01-10 11:25:15 +00:00
John Maddock
42458450be Add initial support for mpfi interval arithmetic
[SVN r82337]
2013-01-03 18:58:43 +00:00
John Maddock
08fdb31fa2 Add some optimisation to gcd/lcm/lsb and cpp_int:
Use compiler intrinsics where possible for lsb.
Switch to using native integers when the values get small enough for gcd.
Re-run the performance tests and regenerate the docs.

Also change the series evaluation limits to make them depend on the precision in pow.hpp and trig.hpp.

[SVN r81946]
2012-12-14 18:37:27 +00:00
John Maddock
82e82e6b15 Disable debug info for a couple of slower compilers: speeds up the tests somewhat.
[SVN r81799]
2012-12-08 17:40:29 +00:00
John Maddock
bfd897f5d8 Fix some more GCC warnings and make compiles faster for slow compilers (Intel)
[SVN r81710]
2012-12-04 19:28:46 +00:00
John Maddock
672cd76754 Refactor test_arithmetic.cpp into lots of small files for reduced dependencies.
Changed use of __forceinline to release builds only.

[SVN r81654]
2012-12-01 16:19:23 +00:00
John Maddock
8f18e0b73f Enhance config tests.
Split cpp_int tests into smaller chunks.

[SVN r81440]
2012-11-20 18:50:08 +00:00
John Maddock
8ae04c68a6 Merge multiprecision from sandbox.
[SVN r81417]
2012-11-18 18:56:59 +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
836d765243 Fix Jamfile SNAFU.
[SVN r81170]
2012-11-04 12:14:22 +00:00
John Maddock
788449ffa5 Add non-member functions for mixed precision arithmetic + tests for same.
Fix a couple of bugs discovered along the way.

[SVN r81151]
2012-11-02 19:13:50 +00:00
John Maddock
645fe8865c Add tests for checked ints and fix failures.
Make negating an unsigned int an error, and fix resulting test failures.
Change allocator defaults to be void when the allocator is not actually required.

[SVN r81070]
2012-10-27 17:48:33 +00:00
John Maddock
a857186cb4 Big "blow it away and start again" refactoring of cpp_int.
Adds support for runtime checking, enumerated template params, fixed precision with allocator, and no "hidden" template parameters.

[SVN r81054]
2012-10-24 16:00:05 +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
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
af9e0c2fe7 Add more explicit constructors and tests for them.
Centralise digits10 to digits2 conversions.

[SVN r80112]
2012-08-21 14:42:15 +00:00
John Maddock
1f35bfe581 Make some gmp constructors explicit.
Add tests to verify that explicit conversions fail.
Fix failures inside number.hpp.

[SVN r80083]
2012-08-19 16:39:24 +00:00
John Maddock
b892e3f5ab Big breaking change - make lossy construction explicit.
[SVN r80058]
2012-08-16 08:13:51 +00:00
John Maddock
c8c3610cdc Fix uBlas tests and failures resulting from them.
[SVN r79902]
2012-08-07 11:47:25 +00:00
John Maddock
821afe64fb Add uBlas interoperability tests.
Add file include tests.

[SVN r79894]
2012-08-07 08:10:07 +00:00
John Maddock
2fb7c1a044 Fix Linux x64 C++0x build issues.
[SVN r79854]
2012-08-02 17:14:17 +00:00
John Maddock
64fe0089d3 Refactor concept checks for faster compilers.
Add constexpr construction test.

[SVN r79724]
2012-07-24 18:03:54 +00:00
John Maddock
26905dc5ea Fix non ET operators to return by value (not rvalue refs as that's unsafe - thanks to Howard Hinnant for the test case).
Fix move constructors to actually move!
Add move test case.
Add better move support throughout the lib.

[SVN r79224]
2012-07-02 08:08:28 +00:00
John Maddock
1a4e3af5c8 Fix Linux x64 errors
[SVN r79165]
2012-06-29 11:53:25 +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
ebd7502fdc Enhance pow and powm tests.
Quash some warnings.
Fix the IO tests on GCC.

[SVN r78423]
2012-05-11 17:19:13 +00:00
Christopher Kormanyos
9ee0022c77 Re-factor cpp_dec_float class constants.
Extend cpp_dec_float low-digit range from 30 to 9.
Removed temporary storage from cpp_dec_float multiply routine.
Extended tests to 9, 18 and (sqrt test) to 1000 digits.

[SVN r78097]
2012-04-20 20:05:49 +00:00
John Maddock
462bec3925 Fix ldexp/frexp in default_ops.hpp. Improve 64-bit platform detection in cpp_int_core.hpp. Get examples building with GCC
[SVN r77971]
2012-04-14 16:51:02 +00:00
John Maddock
68a4a87438 Add string versions of constants for faster (and more accurate) constant initialization.
[SVN r77758]
2012-04-04 17:04:00 +00:00
John Maddock
3913771ea0 Change cpp_dec_float string conversion to generate a better error message when conversion fails.
Add generic inter-conversions and tests for them.
Fix bug in cpp_int convert_to.

[SVN r77630]
2012-03-29 18:00:06 +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
e1b23af8f5 Add files missing from last commit, and add new examples to tests.
[SVN r77324]
2012-03-13 18:40:52 +00:00
John Maddock
7bed8d02f9 Add support for disabling expression templates via a second template parameter to mp_number.
Begin to update docs to reflect new cpp_int code.

[SVN r77323]
2012-03-13 18:30:18 +00:00
John Maddock
bea3707326 Add initial version of an arbitrary precision integer type.
Hook up some more fixed_int tests.

[SVN r77141]
2012-02-29 13:05:51 +00:00
John Maddock
8d6dedf4b0 Complete renaming of cpp_float to cpp_dec_float.
Rebuild docs.

[SVN r77037]
2012-02-16 09:36:26 +00:00
John Maddock
380d627359 Big search and replace: change cpp_float to cpp_dec_float.
Also fix up some numeric_limits test failures.

[SVN r77032]
2012-02-15 13:09:45 +00:00
John Maddock
4b844fc60c Improve performance of fixed_int divide and string conversion.
Add mixed integer ops to fixed_int.
Improve fixed_int test cases.
Add improved default forwarding functions that preserve arithmetic type arguments.
Fix some operator overloads.
Update performance tests.

[SVN r76639]
2012-01-22 19:12:37 +00:00
John Maddock
66b67a1c09 Refactor SF tests for much faster compile times.
[SVN r76545]
2012-01-16 18:26:50 +00:00
John Maddock
036dc2bacc Rename files.
[SVN r76429]
2012-01-12 12:06:27 +00:00
John Maddock
db83a1c4ad Tentative rename of packed_cpp_int to fixed_int.
[SVN r76428]
2012-01-12 11:55:09 +00:00
John Maddock
44d5a3e394 Change tests for faster compile times.
[SVN r76412]
2012-01-11 19:09:49 +00:00
John Maddock
8c28b89dfc Fix GCC failures and generally improve performance of packed_cpp_int.
[SVN r76409]
2012-01-11 11:53:49 +00:00
John Maddock
99707d8925 Switch to faster division code and add better test case for packed int's.
[SVN r76398]
2012-01-10 13:20:29 +00:00
John Maddock
30310e4a52 Another Boost.Rational fix.
Add tentative version of a fixed width, bit-packed 2's complement integer type.

[SVN r76234]
2011-12-30 18:21:08 +00:00
John Maddock
a2dc3b968c Fix remaining Boost.Rational support issues and add rational number IO test.
[SVN r76121]
2011-12-23 17:13:29 +00:00
John Maddock
6e3ab5380b Add tests for Boost.Math special functions, and fix whatever errors came up in running those tests.
Add workaround for compilers that don't have a std::abs(long long).

[SVN r76079]
2011-12-20 16:19:55 +00:00
John Maddock
018ac8cd6c Begin adding tests taken from Boost.Math and fix the issues they flag up.
[SVN r75832]
2011-12-06 19:03:41 +00:00
John Maddock
fdcc1a5034 Document libtommath support, add error checking to tommath bitwise operators.
[SVN r75746]
2011-11-30 12:08:59 +00:00
John Maddock
4a9845ac7e Fix and test integer formatted output.
[SVN r75716]
2011-11-28 19:24:20 +00:00
John Maddock
ffc6bcedc9 Fix float IO and add test.
[SVN r75707]
2011-11-28 09:13:12 +00:00
John Maddock
b653174c77 Add enhanced testing support.
Remove throw statements for BOOST_THROW_EXCEPTION.
Remove throw() qualifiers: they're a dis-optimization.

[SVN r75511]
2011-11-16 17:36:40 +00:00
John Maddock
050ae32c44 Add initial libtommath support.
Fix use of noexcept.
Remove dead files.

[SVN r75505]
2011-11-16 09:40:05 +00:00
John Maddock
0c413f7352 Change real_types to float_types.
[SVN r75489]
2011-11-14 13:39:10 +00:00
John Maddock
40d1b2f1dd Add sqrt tests.
Fix remaining cpp_float failures.

[SVN r75478]
2011-11-13 17:36:39 +00:00
John Maddock
c8eda6845e Search and replace - rename mp_float cpp_float.
[SVN r75453]
2011-11-12 13:15:33 +00:00
John Maddock
47724a4221 Fixes for bugs in mp_float.
Fix constant initialization.
Add some instrumentation code.
Make mp_exp constructor explicit.
Remove some dead code.
Note mp_float division has outstanding bugs still!!

[SVN r75452]
2011-11-12 12:15:04 +00:00
John Maddock
0c4dde52ee Get the rounding functions working and tested, update docs to match.
[SVN r75425]
2011-11-09 17:37:40 +00:00
John Maddock
b36be1f5c3 Tighten up and test the architypes.
[SVN r75404]
2011-11-08 12:50:21 +00:00
John Maddock
6e009f3029 Fix gcc warnings and errors.
Update docs.

[SVN r75284]
2011-11-03 11:06:05 +00:00
John Maddock
1c6577b5a6 Add conversion tests and update docs.
[SVN r75279]
2011-11-02 18:15:00 +00:00
John Maddock
6372f8b638 Get mp_float passing all the tests, fix some bugs in acos and atan implementations.
[SVN r75166]
2011-10-29 11:57:54 +00:00
John Maddock
ad66feecbe Add numeric_limits support for mp_float.
[SVN r75134]
2011-10-27 16:46:46 +00:00
John Maddock
b0ac20f391 Add port of e_float as a backend.
[SVN r75129]
2011-10-27 12:43:41 +00:00
John Maddock
c34e9f654f Big search and replace namespace and class renaming: get rid of last references to "big_number" and "real".
[SVN r75093]
2011-10-23 11:23:13 +00:00
John Maddock
636fdc2e5d Tidy up the tests with boilerplate relative error calculation.
Fix eval_ldexp for mpf_t.
Fix power and log calculations.
Add acos.
Get all the tests passing.

[SVN r75070]
2011-10-20 18:16:46 +00:00
John Maddock
8cf2a83683 Add sin/cos/tan/asin functions.
[SVN r75053]
2011-10-18 18:10:20 +00:00
John Maddock
5f15eaa679 Added pow, exp, log, sinh, cosh and tanh support.
[SVN r74781]
2011-10-07 18:14:34 +00:00
John Maddock
7be44c1683 Add log function and tests.
[SVN r74700]
2011-10-04 16:46:25 +00:00
John Maddock
e0309c8492 More file renames to remove "big_" prefixes.
[SVN r74670]
2011-10-03 17:03:28 +00:00
John Maddock
01173bc59c Changed namespace to "multiprecision".
Added some numberic constant calculations.
Added exp function support and test case.

[SVN r74669]
2011-10-03 16:56:24 +00:00
John Maddock
73960e2a46 Giant file and directory rename: changed directory name from math to multiprecision and updated code to match.
[SVN r74579]
2011-09-26 17:00:44 +00:00