2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-20 16:52:09 +00:00
Commit Graph

1085 Commits

Author SHA1 Message Date
jzmaddock
fafda3176c Fix gcd tests and code for clang on Linux 2017-04-20 14:43:28 +01:00
jzmaddock
82e3949024 GCD: Don't enable variadics unless the compiler supports them.
Update docs.
Escape from variadic GCD early when the result hits unity.
2017-04-15 18:31:01 +01:00
jzmaddock
c1ab95b6cc Add rational and multiprecision types to common_factor_test.cpp.
Disable rational overloads if there is no numeric_limits support as boost::rational won't compile in that case anyway.
2017-04-15 18:13:30 +01:00
jzmaddock
f74da283aa Add variadic gcd and lcm variations, update tests to match. 2017-04-08 19:42:33 +01:00
jzmaddock
141fcf0b15 Disable test case which invokes undefined behaviour 2017-04-06 11:34:08 +01:00
jzmaddock
7795ad3fd1 Merge branch 'gcd_polynomial' into gcd_cpp14 2017-04-06 11:28:32 +01:00
jzmaddock
9d0dac1df9 gcd: add the function objects back.
Improve the gcd/lcm tests.
2017-04-04 18:29:45 +01:00
jzmaddock
e4c0fdb0f2 Make gcd/lcm independent of type_traits and mpl.
Later we'll try and reconcile this version with that in Boost.Integer.
2017-04-02 20:10:46 +01:00
jzmaddock
383c024400 Fix missing arguments. 2016-10-29 17:58:22 +01:00
jzmaddock
3370ea2f79 Add missing #include.
Fixes https://svn.boost.org/trac/boost/ticket/12537.
2016-10-19 19:27:37 +01:00
jzmaddock
4787d870c6 Suppress some msvc warnings. 2016-10-19 19:22:37 +01:00
jzmaddock
f888dcb129 Including polynomial.hpp should get the gcd overloads as well. 2016-08-26 18:32:27 +01:00
Jeremy W. Murphy
64c887a3c9 Add overload of gcd() for polynomials with multi-precision integral coeffs.
And add a unit test to show that it works.
2016-08-25 23:02:03 +10:00
Jeremy W. Murphy
783dc6af46 Merge branch 'develop' into polynomial_ufd_gcd 2016-08-25 22:08:48 +10:00
inkstink
dd6ac8f9da typos 2016-08-19 20:47:49 -04:00
inkstink
c9d9f446c5 fixed typos for real this time 2016-08-19 20:42:14 -04:00
inkstink
950d3990e4 fixed typos 2016-08-19 20:33:24 -04:00
jzmaddock
5d48124b80 Adjust Intel C++ error rates. 2016-08-10 18:52:26 +01:00
jzmaddock
a74dca9089 Merge branch 'develop' of https://github.com/boostorg/math into develop 2016-07-22 09:28:45 +01:00
jzmaddock
d3a570e91a Fix Intel C++ test failures 2016-07-22 09:27:15 +01:00
John Maddock
48a2c84843 Fix expected error rates for Oracle C++ on Solaris 2016-07-19 17:54:30 +00:00
Jeremy W. Murphy
f04643225a Define large integral test types for subresultant_gcd unit test. 2016-07-15 23:08:44 +10:00
Jeremy W. Murphy
2e024bd02d Merge branch 'polynomial_ufd_gcd' into polynomial_ufd_gcd_2
# Conflicts:
#	test/test_polynomial.cpp
2016-07-15 18:46:35 +10:00
Jeremy W. Murphy
579d6681bc Merge branch 'develop' into HEAD
# Conflicts:
#	test/test_polynomial.cpp
2016-07-15 18:42:53 +10:00
Jeremy W. Murphy
ce1d534414 Add case for zero to leading_coefficient and unit test. 2016-07-15 18:12:51 +10:00
Jeremy W. Murphy
208bd598e3 Tweak comment about normalization of result. 2016-07-15 18:05:31 +10:00
Jeremy W. Murphy
5ffcca3998 Remove Euclidean_gcd test; it's not relevant to this PR. 2016-07-15 18:05:14 +10:00
Jeremy W. Murphy
a27c8d5ad2 Consolidate merge further; test subresultant instead of Stein algorithm. 2016-07-15 18:00:06 +10:00
jzmaddock
94d81d96ce Stop testing details that have been removed 2016-07-15 02:14:38 +01:00
jzmaddock
9127a2f707 Merge branch 'develop' of https://github.com/boostorg/math into develop 2016-07-15 01:31:17 +01:00
jzmaddock
12feba86fa Remove references to removed gcd/lcd code. 2016-07-15 18:36:55 +01:00
jzmaddock
cbb0cce89b Disable initializer_list support for GCC-4.4 as it doesn't fully support the new syntax and there appears to be no workaround. 2016-07-15 01:24:18 +01:00
Jeremy W. Murphy
6cf88b589e Grab test fixtures from another branch. 2016-07-14 18:38:38 +10:00
jzmaddock
2934670e51 Disable some tests for older msvc compilers. 2016-07-11 18:31:51 +01:00
Jeremy W. Murphy
6f5537d273 [polynomial] Move gcd code into a new file. 2016-06-20 09:58:39 +10:00
Jeremy W. Murphy
95d4976b86 [polynomial] Rename gcd_ufd to subresultant_gcd. 2016-06-19 15:37:42 +10:00
Jeremy W. Murphy
412f881740 [polynomial] Add more unit tests for gcd_ufd.
Also, remove short from the list of integral types tested because the
particular values tested in gcd_ufd require larger intermediate values.
2016-06-18 21:46:47 +10:00
Jeremy W. Murphy
7c705d6f10 [polynomial] Remove superfluous typedefs in unit test. 2016-06-17 23:14:22 +10:00
Jeremy W. Murphy
48e856cf34 Merge branch 'develop' into polynomial_ufd_gcd 2016-06-16 23:21:48 +10:00
jzmaddock
e4cd194686 Fix misc clang issues 2016-06-04 19:26:59 +01:00
jzmaddock
1cb146a001 Merge branch 'develop' of https://github.com/boostorg/math into develop 2016-05-31 13:36:01 +01:00
jzmaddock
8cb9be7699 Change test data so it always uses the SC_ macro:
it helps multiprecision tests, and in particular allows us to test types whose precision varies at runtime.
2016-05-31 13:35:37 +01:00
Jeremy W. Murphy
d922f95fd5 Merge branch 'develop' into polynomial_ufd_gcd
# Conflicts:
#	include/boost/math/tools/polynomial.hpp
#	test/test_polynomial.cpp
2016-05-16 09:48:15 +10:00
Jeremy W. Murphy
94526e54c7 Merge branch 'develop' into polynomial_zero
# Conflicts:
#	test/test_polynomial.cpp
2016-05-15 21:03:12 +10:00
Kolya Matteo
42249f03e7 Simplify one and zero polynomial declarations 2016-05-13 09:06:36 -04:00
Jeremy W. Murphy
e608dc6657 Rename clear() to set_zero(). 2016-05-13 18:27:31 +10:00
Kolya Matteo
c7d7a0ce6e Add unit tests for polynomial pow 2016-05-11 15:05:13 -04:00
Jeremy W. Murphy
a737a3f5c2 operator bool() and clear(): test for zero and set to zero respectively.
Checking for zero or non-zero and setting to zero are common operations,
so fast implementations
2016-05-11 14:02:16 +10:00
jzmaddock
bea587f3fd Merge branch 'gcd_n' of https://github.com/jeremy-murphy/math into develop
# Resolved Conflicts:
#	include/boost/math/common_factor_rt.hpp
#	test/test_gcd.cpp
2016-05-09 18:59:17 +01:00
jzmaddock
c9bf1df944 Merge branch 'polynomial_shift' of https://github.com/jeremy-murphy/math into develop
# Resolved Conflicts:
#	test/test_polynomial.cpp
2016-05-09 18:29:22 +01:00