Commit Graph

1759 Commits

Author SHA1 Message Date
jzmaddock
b57c27b245 1F1: remove dead code from test_1F0.cpp, rebalance test grouping in Jamfile to avoid timeouts. 2019-07-19 09:54:27 +01:00
NAThompson
d5f7a9bc30 Cardinal B-splines: Second attempt to fix compile error on old MSVC compilers. 2019-07-18 16:47:08 -04:00
jzmaddock
81f8757f85 pFq: rename test file 2019-07-18 18:34:11 +01:00
jzmaddock
e5ffa8eb6b pFq: rename test file 2019-07-18 18:33:04 +01:00
jzmaddock
6e85193231 pFq: rename test file 2019-07-18 18:31:30 +01:00
jzmaddock
99936ee354 1F1: Rename file to uppercase F 2019-07-18 16:47:26 +01:00
jzmaddock
5376702cc7 pFq: Add tests. 2019-07-17 18:24:07 +01:00
NAThompson
a173f8ff0b Cardinal B-splines: Remove 'hides location declaration warnings'. Fix overload error on MSVC. 2019-07-16 07:56:13 -04:00
NAThompson
cfd5a353f6 Cardinal B-splines 2019-07-15 10:42:49 -04:00
NAThompson
f5cc5a1cc4 Cardinal B-splines: Update math_unit_test to support expected values which are integers. [CI SKIP] 2019-07-15 10:30:40 -04:00
jzmaddock
427f3dadb2 pFq: begin adding tests. 2019-07-12 11:45:14 +01:00
pabristow
af7b0d76a8 Removed examples of going wrong. 2019-07-09 14:27:35 +01:00
Nick
4be4fec1ef
Merge pull request #225 from boostorg/autodiff/lexical_cast
Remove lexical_cast<> dependencies.
2019-07-07 08:54:45 -04:00
jzmaddock
0275428d5a Catmull_rom: fix vc12 and vc14 errors highlighted by the new tests. 2019-07-06 20:29:11 +01:00
jzmaddock
ed38d8f556 catmull_rom.hpp: Added missing include.
Fix concept tests and add them to the Jamfile.v2
Fixes: https://github.com/boostorg/math/issues/226
2019-07-06 09:00:50 +01:00
pabristow
a51769477c Corrected copy'n'paste err in test description, but this does not explain my fails on https://www.boost.org/development/tests/develop/output/Marshall-ASAN-boost-bin-v2-libs-math-test-ooura_fourier_integral_test-test-clang-darwin-asan-debug-cxxstd-17-iso-link-static-threading-multi-visibility-hidden.html but last jun is 30 Jun so may be corrected by now. 2019-07-05 14:23:45 +01:00
Matt Pulver
ee4a4181f0 Remove lexical_cast<> dependencies. 2019-07-05 08:51:59 -04:00
jzmaddock
472e34efc4 Merge branch 'develop' into hypergeometric_soc_2014 2019-07-02 18:12:43 +01:00
jzmaddock
5771f8dbd5 1F1: Update expected error rates for regularized 1F1. 2019-07-02 17:44:34 +01:00
jzmaddock
1c9cf2069a 1F1: update logarithmic test cases. 2019-07-02 17:41:42 +01:00
pabristow
06c0680b77 Skeletal ooura example, needing expansion. 2019-07-02 17:37:30 +01:00
pulver
8c37a418cd
Delete gamma_hpp autodiff test template. (#222) 2019-06-29 08:20:21 -04:00
Nick Thompson
ebf8eb9d21 Cardinal quadratic B-spline: Explicitly add template argument to green up build. 2019-06-27 06:56:40 -04:00
Nick Thompson
a3b60e647f Cardinal quadratic B-spline interpolation. 2019-06-26 08:50:00 -04:00
Nick
21daaf9a90
Merge pull request #219 from boostorg/whittaker_shannon
Whittaker shannon
2019-06-26 06:58:27 -04:00
pulver
95defb67df
Add make_ftuple(), digamma(), lgamma(), tgamma(), doc/test updates. (#218)
Improve tests and coverage. C++11/14 support. (@kedarbhat)
2019-06-25 17:31:48 -07:00
Nick
dc373ee009
Merge pull request #107 from boostorg/ooura_fourier_transform
Ooura's method for computing Fourier sin and Fourier cosine… [CI SKIP]
2019-06-24 09:40:59 -04:00
Nick Thompson
f5f52cfb2b Whittaker-Shannon: Add the test to test/Jamfile.v2. 2019-06-24 08:40:21 -04:00
Nick Thompson
260a3af015 Whittaker-Shannon: Update docs, implement derivatives. 2019-06-24 08:28:14 -04:00
Nick Thompson
118b18c248 Merge branch 'develop' into issue204 2019-06-22 09:29:01 -04:00
Nick Thompson
91ef47c0eb Merge branch 'develop' into ooura_fourier_transform [CI SKIP] 2019-06-22 09:20:55 -04:00
Nick Thompson
95eef16b0b Ooura Fourier integrals: Use (std::numeric_limits<Real>::min)() to compiile on windows. 2019-06-20 07:14:23 -04:00
Nick Thompson
b2c2f0e644 Whittaker-Shannon interpolation: Derivative works, but is not sufficiently accurate. Some floating point manipulations are still required. [CI SKIP] 2019-06-19 09:42:50 -04:00
Nick Thompson
3a8a44a327 Merge branch 'develop' into vector_barycentric 2019-06-19 07:21:03 -04:00
Nick Thompson
442fa8c2ad Make sure that vector interpolant agrees with scalar interpolant. [CI SKIP] 2019-06-19 07:21:00 -04:00
Nick Thompson
a1149ce7f0 Whittaker-Shannon interpolation: Use PIMPL idiom. [CI SKIP] 2019-06-19 06:53:01 -04:00
Nick Thompson
2d770b9d32 Vector barycentric rational: Enable compilation with containers which do not have multiplication/division/addition defined on them. 2019-06-17 08:28:45 -04:00
Nick Thompson
119c286bc6 Merge branch 'develop' into ooura_fourier_transform 2019-06-14 09:05:24 -04:00
Nick Thompson
6cd90d38d2 Improve documentation and kick off build. 2019-06-14 08:55:47 -04:00
jzmaddock
050679a933 Update test_roots.cpp to test in the negative half of the domain as well as the positive half.
Fix resulting bugs discovered.
Completes fix for https://github.com/boostorg/math/issues/216.
2019-06-14 08:36:16 +01:00
Nick Thompson
81c92932a4 Get rid of scoped_lock to compile on clang. [CI SKIP] 2019-06-13 18:16:24 -04:00
Nick Thompson
f38e74570b Ooura Fourier Integrals: Return {I, err} rather than I [CI SKIP] 2019-06-12 07:09:09 -04:00
Nick Thompson
a6ca778176 Ooura Fourier Sine: Add levels after precomputed levels are exhausted. [CI SKIP] 2019-06-11 09:00:03 -04:00
Nick Thompson
f595b6a8f6 Cleanup before refactoring. [CI SKIP] 2019-06-11 07:21:24 -04:00
Nick Thompson
e659c69fc2 The nodes and weights must be computed in higher precision than the working precision or else the error decreases to a point and then begins to increase. [CI SKIP] 2019-06-07 13:26:34 -04:00
Nick Thompson
43d76caa25 Precompute nodes and weights. This is somewhat suboptimal, since it requires a priori assumptions about the asymptotic behavior of the integrand. But the alternative is that the class is slow. [CI SKIP] 2019-06-07 12:49:23 -04:00
jzmaddock
bb9ad4a909 1F1: Testing update, note that not all tests quite pass yet. 2019-06-04 17:54:06 +01:00
Nick Thompson
b06fbdbc5f merge develop [CI SKIP] 2019-06-04 11:54:51 -04:00
jzmaddock
9432e32afa
Merge pull request #210 from boostorg/catmull_cxx11
Backport catmull_rom.hpp to C++11.
2019-05-30 21:03:48 +01:00
Nick
18feb0fc2a Documentation, more unit tests [CI SKIP] 2019-05-30 13:25:53 -04:00
Nick Thompson
9e21a89675 fix move constructor use [CI SKIP] 2019-05-30 11:12:38 -04:00
Nick
2f725f0299 Tests for vector-valued barycentric rational. [CI SKIP] 2019-05-29 15:52:23 -04:00
jzmaddock
e415650f86 prime: Correct value of max_prime and add test.
Fixes https://github.com/boostorg/math/issues/214.
2019-05-26 11:45:35 +01:00
jzmaddock
0531fd715c catmull_rom: further split up test case to avoid over large obj files. 2019-05-26 10:03:53 +01:00
jzmaddock
aa44b78885 Split catmull_rom_test into 2 and fix clang conversion issue. 2019-05-25 18:27:08 +01:00
jzmaddock
bbcd180273 catmull_rom - second try at back porting to C++11. 2019-05-23 08:54:11 +01:00
jzmaddock
1b10acf47f Backport catmull_rom.hpp to C++11.
See https://github.com/boostorg/math/issues/208.
2019-05-22 19:38:34 +01:00
jzmaddock
9803ed1fa0
Merge pull request #207 from boostorg/ellint-range
Update the range of the elliptic integrals to support the k > 1 case.
2019-05-20 13:34:50 +01:00
jzmaddock
d11eb67c67 ellint_d: extend range to k > 1 same ellint_1/2/3. 2019-05-19 08:54:17 +01:00
jzmaddock
a033166f7f Elliptic Integrals: extend range of ellint_1/2/3.
See https://github.com/boostorg/math/issues/183.
2019-05-18 19:36:22 +01:00
Nick Thompson
c8062fbc90 Allow generic random access containers other than std::vector for Catmull-Rom. 2019-05-16 18:03:57 -04:00
jzmaddock
dc7ecc0581 1F1: Exclude values very close to 1 from logarithmic testing for now.
Add tests for log and regularized cases.
Log cases still have many failures and are not yet tested.
2019-05-13 18:07:47 +01:00
jzmaddock
d81eb7ea31 1F1: Update expected errors now we're using the large abz case more often. 2019-05-13 18:05:59 +01:00
jzmaddock
e414e316ab
Merge pull request #191 from boostorg/float128_patches_2
Next set of float128 patches for better std lib support.
2019-04-27 19:03:48 +01:00
jzmaddock
df9bb98a12 float128 tests: disable NaN check on Mingw. 2019-04-26 20:03:47 +01:00
John Maddock
067e778d75 Merge branch 'autodiff' of https://github.com/pulver/math into autodiff 2019-04-23 18:04:27 +01:00
jzmaddock
350d9a3cd1 1F1: Correct use of precision changing in pFq.
Correct test values which were effected by the above issue.
2019-04-21 19:03:54 +01:00
jzmaddock
61322ac8ec 1F1: Add regularized versions to tests. 2019-04-17 18:37:02 +01:00
jzmaddock
648ebfdc25 1F1: Add regularized version. 2019-04-17 18:27:42 +01:00
jzmaddock
52e4ee3c79 1F1: Update tests for previous changes, improve error testing code. 2019-04-14 09:51:45 +01:00
Nick
165cf9e480 Vectorize mean calculation. 2019-04-13 17:22:24 -04:00
jzmaddock
91731ab5fa 1F1: Fix up b < 0 domain for extended precision types.
Update docs for b < 0 case.
2019-04-08 18:25:40 +01:00
jzmaddock
b8c9267aec 1F1: better map out the regions for b < 0 where forwards/backwards recursion are stable and make use of them. 2019-04-05 18:56:46 +01:00
jzmaddock
05360ce5e8 Big reformat of cstdfloat header and code, removes the tabs. 2019-03-27 18:29:25 +00:00
jzmaddock
a9201f9a44 Add more cstdfloat functions for __float128 2019-03-26 19:57:11 +00:00
jzmaddock
a41421a8e5 1F1: Correct selection logic for forward-ratio on negative b method.
[CI SKIP]
2019-03-17 19:08:55 +00:00
jzmaddock
aa916169d4 1F1: Add better support for a > 0, b < 0 with additional method of ratios.
[CI SKIP]
2019-03-17 17:00:54 +00:00
jzmaddock
e07c435a0c 1F1: Fine tune recurrence on a and b for large abz case.
Update tests.
2019-03-11 19:20:36 +00:00
jzmaddock
33e67bb94d 1F1: Fine tune negative a,b fallback code, update tests. 2019-03-11 12:05:04 +00:00
jzmaddock
390fc04bf0 Add libfftw3 support to the tests and fix up one failure that results. 2019-03-02 19:55:44 +00:00
pulver
2ffd44200a
Merge branch 'develop' into autodiff 2019-02-28 08:45:53 -05:00
jzmaddock
97fb671b25 1F1: Fix up expected errors in tests.
[CI SKIP]
2019-02-26 18:40:20 +00:00
jzmaddock
510ef0d054
Correct expected iterations in test_root_iterations.cpp 2019-02-26 09:18:45 +00:00
jzmaddock
2e02905a61 1F1: 2 more bug cases.
[CI SKIP]
2019-02-24 18:11:19 +00:00
jzmaddock
24b1fe51e5 CI: split quadrature tests into a separate group to try to avoid timeouts. 2019-02-24 13:13:57 +00:00
jzmaddock
640f6cc510 test_root_iterations.cpp: adjust expected result for vc10. 2019-02-24 13:06:21 +00:00
jzmaddock
39c3d03db2 1F1: simplify log_pochhammer, add new test cases.
[CI SKIP]
2019-02-24 09:43:54 +00:00
jzmaddock
fa875495e2 1F1: Update logic to determine when to apply Kummer's transformation.
[CI SKIP]
2019-02-23 19:25:27 +00:00
jzmaddock
61b52c010d 1F1: Add new bug test cases.
[CI SKIP]
2019-02-23 18:40:31 +00:00
Matt Pulver
b7ea8cef5c Revert test_autodiff_4 - these two tests break test_autodiff_3. Attempt to fix asinh() test that fails on gcc-mingw for unknown reason. 2019-02-23 11:56:16 -05:00
Matt Pulver
fd1262bdcf Move 2 test_autodiff_4 tests back into test_autodiff_3. 2019-02-22 18:05:43 -05:00
Nick Thompson
aff668f28c Remove long double and multiprecision tests so build unbreaks. 2019-02-21 10:16:35 -07:00
Matt Pulver
418887e137 Move round_and_trunc and iround_and_itrunc tests from _4 to _3. Drop lambert_w0 test. 2019-02-21 08:51:13 -05:00
jzmaddock
332fb32919 Merge branch 'develop' into hypergeometric_soc_2014
[CI SKIP]
2019-02-21 13:03:04 +00:00
jzmaddock
a3bb22494a Root finding: correct bug where we could incorrectly terminate when the last iteration was pathological and we had to bisect. Fixes: https://github.com/boostorg/math/issues/184. 2019-02-20 20:53:00 +00:00
Matt Pulver
f03c562721 Remove mixed_partials_test and black_scholes_test. These are in the examples folder. 2019-02-19 18:25:04 -05:00
Matt Pulver
7fb4062e97 Split autodiff tests into 4 files due to mingw 'too many sections'. Comment out unused #include <boost/multiprecision/cpp_bin_float.hpp> (tested in examples). 2019-02-18 18:40:26 -05:00
jzmaddock
2d0e3db2db 1F1: Picked off a couple more bug cases, some more are currently "unfixable" and lodged as such.
[CI SKIP]
2019-02-18 19:31:17 +00:00
Matt Pulver
992b6aae15 Split autodiff tests into 3 files due to mingw 'too many sections'. Doc: improve General Functions subsection. 2019-02-17 11:14:08 -05:00
jzmaddock
5c663c558d 1F1: Correct cancellation bug in log_pochhammer.
Refine termination condition for series.
Add previously failing tests to bug cases.
2019-02-17 15:57:33 +00:00
jzmaddock
867b68440c 1F1: Fix bug in recurrence relations. 2019-02-17 10:00:03 +00:00
pulver
4d8622d9bd
Merge branch 'develop' into autodiff 2019-02-16 15:06:12 -05:00
Matt Pulver
bd14611c59 Split autodiff tests into 2 files due to mingw 'too many sections'. 2019-02-16 15:04:21 -05:00
jzmaddock
b60cc93ae2 1F1: add updated test cases for new bugs found.
Completes second round of bug fixes.
No doubt more to come.
[CI SKIP]
2019-02-16 12:14:09 +00:00
jzmaddock
e21ebd56c4 1F1: Add expected error rates for bug cases.
Completes first round of bug fixing, but there are still many more to come.
[CI SKIP]
2019-02-15 20:05:18 +00:00
Matt Pulver
1bf3ba6bd2 Fix example compiler requirements. Add <toolset>gcc-mingw:<cxxflags>-Wa,-mbig-obj to test/Jamefile.v2. Minor doc/code updates. 2019-02-14 10:54:42 -05:00
jzmaddock
51e6cb14d2 1F1: add bug cases identified during random testing.
Note that these tests currently all fail, some are commented out because they should be tests for overflow.
2019-02-12 18:17:05 +00:00
jzmaddock
cf277a51f4 Disable some clang warnings on the hypergeometric tests. 2019-02-12 18:15:18 +00:00
Matt Pulver
9418a4e2d4 Doc: Add sections Migrating Code, and Function Writing Guidelines. Additional math function overloads: acosh, asinh, atanh, cosh, erf, lambert_w0, sinc, sinh, tanh. Attempt to fix appveyor errors. 2019-02-12 07:43:04 -05:00
Nick Thompson
8e78096977 Add more C++11 feature requirements to barycentric_rational. 2019-02-11 21:42:12 -07:00
Nick Thompson
c60af18460 Merge branch 'develop' into barycentric_move_constructor 2019-02-11 09:46:28 -07:00
Nick Thompson
210c53151c Increase Lanczos smoothing error rate for Windows (again). 2019-02-10 10:45:33 -07:00
Nick Thompson
cac1059c78 Barycentric rational test still generates object too big. 2019-02-09 18:20:03 -07:00
Nick Thompson
5212ce1276 Merge branch 'develop' into barycentric_move_constructor [CI SKIP] 2019-02-09 18:10:11 -07:00
Nick Thompson
8c762558e3 Increase error rates for Lanczos smoothing. 2019-02-09 16:44:57 -07:00
Nick Thompson
8024c4eae0 Remove instantiation of std::complex on multiprecision types. 2019-02-09 09:46:45 -07:00
Nick Thompson
4a6d80e059 Fix object size too big in MSVC 14 in Catmull-Rom tests. 2019-02-07 18:28:49 -07:00
Nick Thompson
0d27687236 MSVC 14 does not like uint8_t. 2019-02-06 15:04:15 -05:00
jzmaddock
c603bf78a7 Hypergeometrics: Fix up some testing and conceptual errors flagged up by first CI run. 2019-02-06 18:42:09 +00:00
jzmaddock
028868a670 0F1/2F0: mark up error rates. 2019-02-04 18:22:29 +00:00
pulver
04aeb5fdd9
Merge branch 'develop' into autodiff 2019-02-03 20:59:39 -05:00
Matt Pulver
7748f2ea19 Feedback from boostorg/math/#176 2019-02-03 20:45:35 -05:00
jzmaddock
17c3ef0093 1F1: adjust expected error rates and make sure we can find stdlib functions via ADL. 2019-02-03 18:45:36 +00:00
Nick Thompson
93ccc669d9 Remove integer tests for median absolute deviation; need to think more on how this should work (which it can) [CI SKIP] 2019-02-02 11:14:06 -07:00
Nick Thompson
3d70e49874 Refactor all tests to use summation condition numbers. Kick off build. 2019-02-01 22:23:02 -07:00
Nick Thompson
3f5ca2b8da Refactor moment sums to use the condition number class [CI SKIP] 2019-02-01 16:28:42 -07:00
Nick Thompson
c6d6f876d5 Take advice from https://codereview.stackexchange.com/questions/210762/discrete-lanczos-derivatives [CI SKIP] 2019-02-01 15:25:00 -07:00
Nick Thompson
6742ed83f6 Merge branch 'develop' into barycentric_move_constructor [CI SKIP] 2019-02-01 11:21:23 -07:00
Nick Thompson
9362bae4fc Add extra cxx11 feature tests to example. Prevent macro substitution of min. Decrease length of unit tests for barycentric_rational from 90 seconds to 24 seconds. 2019-02-01 11:19:56 -07:00
jzmaddock
a187b714e9 1F1: Apply backwards recurrence relations for GammaP in large a,b,z approximation.
[CI SKIP]
2019-01-31 19:06:17 +00:00
Nick Thompson
50e6c83e47 Test condition number as well as error rate [CI SKIP] 2019-01-29 18:51:44 -07:00
Nick Thompson
c8dfc96f88 Merge commit [CI SKIP] 2019-01-29 17:34:41 -07:00
Nick Thompson
680719b0c8 Add test for exponential sum [CI SKIP] 2019-01-29 17:23:04 -07:00
Nick Thompson
4c48f2d6e2 Lanczos smoothing now works with boost::range [CI SKIP] 2019-01-29 12:46:52 -07:00
Nick Thompson
037b6fe5eb Add tests for std::array and boost::numeric::ublas::vector. Clean up docs. [CI SKIP] 2019-01-28 14:06:14 -07:00
Nick Thompson
1a00352994 Second attempt at condition numbers file. [CI SKIP] 2019-01-28 13:48:36 -07:00
Nick Thompson
c00623da74 Add move constructor for barycentric rational interpolation. 2019-01-27 16:28:31 -07:00
Nick Thompson
224ec2e8db Test scaling properties of the Lanczos derivative based on spacing [CI SKIP] 2019-01-27 13:11:52 -07:00
jzmaddock
f00093cdf3 Test special cases, code tidy up, fix a couple of bugs exposed by new tests. 2019-01-27 09:28:56 +00:00
Nick Thompson
a1cade5a90 Save an xorpd instruction by initializing not to zero, but to the first value. Save a division for each element by dividing the filters by the spacing (square of the spacing for the second derivative). [CI SKIP] 2019-01-26 21:34:16 -07:00
Nick
590647f8c3
Merge pull request #171 from boostorg/differentiation
Rearrangement of file layout for differentiation [CI SKIP]
2019-01-24 11:22:22 -07:00
Nick Thompson
bdc0b231ea Merge branch 'develop' into lanczos_smoothing 2019-01-24 09:57:27 -07:00
Nick Thompson
0f3e643fa7 Change gen.max() to (gen.max)() to hopefully prevent macro substitution. [CI SKIP] 2019-01-24 09:56:42 -07:00
Matt Pulver
ad96b617cc Add differentiation/autodiff.hpp. 2019-01-23 14:17:02 -05:00
Nick Thompson
1dd2f435a9 Fix typo. 2019-01-23 14:17:02 -05:00
Nick Thompson
afdd37bf00 Also change concept and include test [CI SKIP] 2019-01-23 14:17:01 -05:00
Nick Thompson
1f1e9974f0 Begin rearrangement. 2019-01-23 14:17:01 -05:00
Nick Thompson
175e375934 Rename filter computation functions to reflect the fact that multiple orders of differentiation may be computed. [CI SKIP] 2019-01-23 10:10:36 -07:00
Nick Thompson
9c28ad5aab Merge branch 'develop' into lanczos_smoothing [CI SKIP] 2019-01-23 09:33:15 -07:00
Nick Thompson
79bd607704 MSVC 14.1 does not appreciate uint8_t; no matter-use unsigned for the test instead [CI SKIP] 2019-01-23 09:01:41 -07:00