jzmaddock
33d3d0942f
Merge branch 'polynomial_constructor' into develop
2018-12-01 11:21:27 +00:00
jzmaddock
0a46a6530a
test_polynomial.cpp: Fix defect macro usage and use BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX.
2018-12-01 09:57:35 +00:00
jzmaddock
451afc3102
Fix polynomial template constructors.
2018-11-30 19:31:51 +00:00
Nick Thompson
24694847dc
Attempt to green up build by making it more obvious that the initializer list constructor should be called.
2018-11-28 13:35:10 -07:00
Nick Thompson
eb042c06d8
Only run tests requiring C++11 in C++11 mode.
2018-11-24 18:10:06 -07:00
Nick Thompson
54f475e58f
Add call operator, .prime(), .integrate(), and move constructor to polynomial.hpp
2018-11-14 17:04:57 -07:00
Nick Thompson
73a18c91c5
[ci skip] Fix up polynomial_gcd unit test. Also fix broken chebyshev transform test.
2018-02-16 15:51:04 -06:00
Nick Thompson
d30f2d5927
[ci skip] Remove gcd tests from boost.math
2018-02-16 12:43:15 -06:00
jzmaddock
e9356e3c7b
Add dummy test case to test_polynomial.cpp...
...
so that Boost.Test also has something to test even when everything is #ifdef'ed out.
2017-06-30 19:25:16 +01:00
jzmaddock
03d3adb050
Split test_polynomial.cpp up to make testing easier and object files smaller.
2017-06-28 18:36:31 +01:00
jzmaddock
540c93c542
CI: Fix more testing configuration issues.
...
* Disable testing the old mingw32 - it's too broken.
* Add feature dependency checks for new C++11 tests.
* Disable some tests that generate too large object files.
2017-06-05 09:32:00 +01:00
jzmaddock
6407bedb75
Bring polynomial gcd into line with new Boost.Integer code, and improve tests.
2017-05-02 19:12:18 +01:00
jzmaddock
ceae76a526
Switch to using Boost.Integer gcd/lcm.
2017-04-24 19:26:23 +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
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
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
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
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
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
jzmaddock
cace9b59de
Merge branch 'gcd' into develop
...
# Resolved Conflicts:
# test/test_polynomial.cpp
2016-05-09 18:15:54 +01:00
Jeremy W. Murphy
a56745b479
Merge branch 'develop' into polynomial_ufd_gcd
...
# Conflicts:
# test/test_polynomial.cpp
2016-05-07 18:32:42 +10:00
Jeremy W. Murphy
a822400320
Merge branch 'develop' into polynomial_shift
...
# Conflicts:
# test/test_polynomial.cpp
2016-05-07 18:27:46 +10:00
Kolya Matteo
3d3a1f8d2a
Add tests for polynomial normalization with initializer lists (so the highest-degree term is nonzero)
2016-05-02 14:06:18 -04:00
Kolya Matteo
ece2283833
Add polynomial self-multiply-assign test case
2016-05-02 13:46:06 -04:00
Jeremy W. Murphy
d484fa657c
Remove inferior generalized gcd; include integral size promotion.
2016-04-20 22:53:56 +10:00
Jeremy W. Murphy
dc81bc8e6e
Add 4.6.1E, generalized gcd.
...
Should be useful for cross-validating 4.6.1C.
2016-04-20 01:38:05 +10:00
Jeremy W. Murphy
4dc7c31f48
Extra test for gcd of polynomial over ufd. But is it correct?
2016-04-18 01:46:43 +10:00
Jeremy W. Murphy
aa19132d74
4.6.1C: Greatest common divisor over a unique factorization domain.
2016-04-17 14:21:01 +10:00
Jeremy W. Murphy
573b9fc399
content and primitive_part of a polynomial over a ufd.
2016-04-15 13:14:18 +10:00