John Maddock
5af139c437
Fix mpfr.hpp typos
2018-03-22 18:06:21 +00:00
jzmaddock
c68e8076b8
Complex/mpc: another try at fixing up the 2 argument constructor.
...
[CI SKIP]
2018-03-22 14:54:13 +00:00
jzmaddock
22789446f2
complex/mpc: There are no relational operators for complex types.
2018-03-21 20:17:17 +00:00
jzmaddock
1a32ade24c
Complex/mpc: Add support for 2-arg construction from args of different types.
...
Add first cut at Eigen compatibility test suite.
2018-03-21 20:10:21 +00:00
Nick Thompson
3015d1401e
[CI SKIP] No match for operator<=
2018-03-21 16:31:25 +08:00
Nick Thompson
62ad31c8da
[CI SKIP] A couple more failing tests.
2018-03-21 11:06:50 +08:00
jzmaddock
d04aaa7f6d
Fix type used in temporaries when expanding expression templates containing mixed expressions.
2018-03-19 20:06:59 +00:00
jzmaddock
26952775c6
complex/mpc: Add tests for poisoned operators, plus new test split split from sf_concept_check_beta_2.cpp.
2018-03-19 18:41:52 +00:00
John Maddock
b0c2fc13c0
Fix up poisoned expression template operators so they generate the message we want. [CI SKIP]
2018-03-19 13:21:51 +00:00
Nick Thompson
fc454b90b3
[CI SKIP] Put template arguments on all expression template static_asserts so that the build works on clang and gcc.
2018-03-19 09:52:46 +08:00
jzmaddock
ba0d929f19
complex/mpc: remove incorrect trait specialization.
...
[CI SKIP]
2018-03-18 19:22:34 +00:00
jzmaddock
2d309ab381
Merge pull request #50 from emfrias/gmp_float_string_formatting_fix
...
Fix infinite loop in gmp_float to fixed-point string conversion
2018-03-18 19:17:18 +00:00
jzmaddock
9255122b4f
Merge branch 'complex' of https://github.com/boostorg/multiprecision into complex
2018-03-18 19:04:10 +00:00
jzmaddock
3cacb57210
Update the expression templates to issue static_asserts with better error messages when you try and do something unsupported.
2018-03-18 19:03:49 +00:00
jzmaddock
04b1191732
complex/mpc: add support for interconversions to and from std::complex.
2018-03-18 17:33:28 +00:00
Nick Thompson
458e2b90da
[CI SKIP] One more failing test.
2018-03-18 20:44:38 +08:00
Nick Thompson
67505092d0
[CI SKIP] Test that the mixed arithmetic works. Add polar to the overload test.
2018-03-18 09:34:20 +08:00
jzmaddock
d0fc50fc4b
Merge branch 'complex' of https://github.com/boostorg/multiprecision into complex
2018-03-17 19:50:10 +00:00
jzmaddock
76c831ef78
complex: add msvc-11 and earlier workaround.
2018-03-17 19:49:56 +00:00
jzmaddock
4196c6ae62
Complex: Add support for single argument polar().
...
Update unary functions to handle case where we're creating a result type which is not the same as the function result type - for example when dealing with mixed scalar and complex arithmetic.
2018-03-17 19:08:36 +00:00
Nick Thompson
af73fe3672
Second failing overload.
2018-03-17 23:18:35 +08:00
Nick Thompson
4bcc02286f
[ci skip] Add failing unit test for MPC overloads.
2018-03-17 23:02:11 +08:00
Nick Thompson
2144154954
Use literal ints rather than shifted negative values.
2018-03-17 15:23:34 +08:00
Nick Thompson
0ef8b599cb
Add example showing how all elementary special functions supported by std::complex are supported by the MPC backend (other than polar, which is getting there). Remove warning on unused parameter. [ci skip]
2018-03-17 13:48:45 +08:00
jzmaddock
8d2bd0a1d3
complex/mpc: Add value_type to class number, and overloads for polar function.
...
Split up one concept check that was generating over-large object file sizes.
2018-03-16 20:12:06 +00:00
jzmaddock
2f1cb020b0
complex/mpc: Add value_type member to class number.
...
Rework and rationalise the component_type trait.
2018-03-16 18:59:19 +00:00
emfrias
339085567b
Fix infinite loop in gmp_float to fixed-point string conversion
...
Triggered by: cout << setprecision(1) << fixed << mpf_float_50("0.0501")
2018-03-15 11:58:11 -04:00
jzmaddock
e67906b467
Merge branch 'complex' of https://github.com/boostorg/multiprecision into complex
2018-03-15 12:17:20 +00:00
jzmaddock
ca2ba6c05d
complex/mpc: Fix c++11'ism.
...
[CI SKIP]
2018-03-15 12:16:46 +00:00
Nick Thompson
184fd0d56d
Begin work on complex multiprecision docs. [CI SKIP]
2018-03-15 20:08:58 +08:00
jzmaddock
578f9cc7b9
complex/mpc: support the non-member complex functions norm/conj etc from non-complex types.
2018-03-14 20:13:51 +00:00
jzmaddock
b10efd2267
complex/mpc: Add optimisations for mixed-type-arithmetic with mpfr.
2018-03-14 18:53:59 +00:00
jzmaddock
35c7f80d37
complex/mpc: big name change search and replace.
2018-03-13 20:12:40 +00:00
jzmaddock
9a9a88b0e3
complex/mpc: test interaction with mpfr_float's and first fix on generic conversions to/from complex types.
2018-03-13 19:16:44 +00:00
Nick Thompson
5b3965b296
Remove warning on shifting negative value.
2018-03-13 15:36:32 +08:00
jzmaddock
cd3ee9e096
Merge branch 'develop' into complex
...
# Resolved Conflicts:
# test/test_arithmetic.hpp
2018-03-12 18:35:38 +00:00
jzmaddock
3a5b6c3aa6
complex/mpc: another attempt at getting real/imag working with gcc.
2018-03-12 18:31:20 +00:00
jzmaddock
25474b49c8
Merge branch 'complex' of https://github.com/boostorg/multiprecision into complex
2018-03-12 18:11:43 +00:00
jzmaddock
2b18cecfff
Complex/mpc: Fix up Jamfile.
2018-03-12 18:11:27 +00:00
John Maddock
9c891b7220
complex/mpc: finally get test case compiling with gcc/clang, though not yet the real() and imag() member functions.
2018-03-12 18:02:09 +00:00
jzmaddock
b775fee610
complex/mpc: Add missing #include.
2018-03-11 20:18:19 +00:00
jzmaddock
d4aa01f657
complex/mpc: begin fixing test failures.
2018-03-11 19:59:45 +00:00
jzmaddock
496ce3dbac
complex/mpc: add hashing support, fix up a few gcc compile failures.
...
Add hashing support to concept checks and fix up most of the failures bar one obscure one.
2018-03-11 19:10:37 +00:00
jzmaddock
ba54b40edb
comples/mpc:correct typo in trait name.
2018-03-11 14:59:58 +00:00
jzmaddock
ead2781235
Complex/mpc: Add remaining non-member functions for complex types.
2018-03-11 12:55:47 +00:00
jzmaddock
032070a4df
complex/mpc: more or less complete the transcendental functions.
2018-03-10 20:23:51 +00:00
jzmaddock
c441dca055
Complex/MPC: Start adding non-member functions.
...
Strip out more unneeded code from mpc.hpp.
2018-03-10 19:41:01 +00:00
jzmaddock
e94f507f64
complex/mpc: delete more irrelevant stuff and add initial support for real() and imag() accessors.
2018-03-10 13:41:55 +00:00
jzmaddock
bd13b140e0
arithmetic_backend: use integer::gcd.
2018-03-09 19:12:39 +00:00
jzmaddock
9cce17af49
Merge pull request #47 from boostorg/swap_boost_math_gcd_to_boost_integer
...
Swap out boost::math::gcd to boost::integer::gcd
2018-03-09 19:09:28 +00:00