2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 16:32:10 +00:00

70 Commits

Author SHA1 Message Date
Oleg Alexandrov
85676085ea Expand the catmull-rom spline doc (#698)
* Expand the document of Catmull-Rom spline

It is not clear from the current documentation how the curve parameter is relates to how to interpolate between any two of the input points, which is, at the end of the day, one reason for using spline interpolation. Here a blurb is added to the doc, following https://github.com/boostorg/math/issues/211.

* Remove unneeded newline in catmull_rom doc
2021-09-29 11:10:15 -07:00
Nick
051a1bfae9 github appears to have lost this commit. (#655)
* github appears to have lost this commit.

* Change #error to #warning so that CI is happy.
2021-07-04 13:34:06 -04:00
Nick
af14cdaf47 Bezier polynomials. (#650)
* Bezier polynomials.

* Bezier polynomials.

* Performance test.

* Implement de Casteljau's algorithm.

* Documentation and cleanup.

* Use thread_local storage to increase performance of interpolation.

* Inspect tool doesn't like asserts or anonymous namespaces.

* Test convex hull property of Bezier polynomial and add float128 tests.

* Allow editing of control points.

* Add .prime member function. Fix bug when scratch space size is larger than control point size. Document alternative implementations found in Bezier and B-spline techniques.

* Submit failing unit test so I don't forget to fix it later

* Add indefinite integral and tests.

* Do not test on gcc < 9 on MingW.
2021-07-01 19:31:51 -04:00
Nick
769f4f690d Interpolate a uniform grid with a bilinear function. (#643)
* Interpolate a uniform grid with a bilinear function.

* Typo removal.

* Invalid syntax in Jamfile.

* Do domain verification before computation.

* Fix OOB access on print.

* pimpl the class so it can be shared between threads.

* Add google/benchmark file to measure the performance of the bilinear interpolation.

* Fix up docs.

* Remove non-ASCII characters from print statements. Add a float128 test.

* Improve the documentation of the bilinear uniform class.

* Remove float128 as it doesn't support to_string.

* Don't use decltype(fieldData.size()) as the indexer; that makes MSVC 14.2 choke. Use RandomAccessContainer::size_type.

* Use ADL for to_string for compatibility with multiprecision.

* Improve error message which rows*cols != fieldData.size().
2021-06-22 10:38:00 -04:00
Matt Borland
12b3c8a7e7 Standalone tests (#606)
* Add missing distribution compile tests

* Add cstdfloat compile tests

* Rename and finish differentiation

* Add interpolators compile tests and fixes

* Reorganize/add quadrature compile tests

* Add missing sf tests and fixes for failures

* Add tools incl tests and fixes

* Add compile tests to jamfile plus collected fixes

* Collected fixes for CI failures

* Fix fftw config

* Remove lexical cast from arcsine dist [ci skip]

* Improve cstdfloat tests [ci skip]

* Improve differentiation tests [ci skip]

* Improve distribution testing [ci skip]

* Updates to interpolator tests [ci skip]

* Improve quadrature tests [ci skip]

* Improve sf tests [ci skip]

* Improve tools tests

* Collected CI fixes

* Fix for MSVC 14.2 array allocation error
[windows]

* MSVC 14.2 workarounds
[windows]

* Fix float128 and interpolators tests

* Add standalone testing on clang
[standalone]

* Fixes for type mismatches on MSVC
[windows]

* Fix for MSVC 14.0 fail from missing header
[windows]

* Change barycentric rational namespace
[ci skip]

* Fix standalone clang warnings

* Change namespace in barycentric examples
2021-04-22 14:44:21 -04:00
Nick
2af33f2725 Fix quintic hermite interpolation [CI SKIP] 2020-03-22 12:07:05 -04:00
Nick
5cbfdb554a Fix invalid read in cubic Hermite. [CI SKIP] 2020-03-22 11:22:36 -04:00
NAThompson
0289eca4fe Documentation updates for quintic_hermite interpolation [CI SKIP] 2020-02-20 07:25:49 -05:00
NAThompson
a068a92643 Update docs for quintic Hermite interpolation [CI SKIP] 2020-02-20 07:03:40 -05:00
NAThompson
6290803975 Finish up cubic Hermite interpolation. 2020-02-18 08:11:48 -05:00
NAThompson
38b8f5a96a Remove bug in quintic_hermite interpolation. Add graph to exhibit its utility. 2020-01-27 13:35:14 +08:00
Nick
b1996cbe21 Merge branch 'develop' into quintic_hermite 2020-01-19 09:49:42 -05:00
Nick Thompson
2a37abd93a Cubic Hermite spline: Backend pchip and makima to cubic_hermite. 2020-01-18 14:11:31 -05:00
NAThompson
408392dff0 Update timing [CI SKIP] 2020-01-17 17:39:48 -05:00
NAThompson
32f7e35012 Quintic Hermite: Remove irrelevant information from docs [CI SKIP] 2020-01-16 18:09:58 -05:00
NAThompson
0242d1ac6b Quintic Hermite: Fix #include, fix docs, add test to Jamfile. 2020-01-16 18:08:34 -05:00
NAThompson
de67bcb45c Quintic Hermite interpolation [CI SKIP] 2020-01-16 16:31:32 -05:00
NAThompson
d8c2219a23 Cubic Hermite spline interpolation. [CI SKIP] 2020-01-10 13:41:11 -05:00
NAThompson
6ce45899b6 PCHIP interpolation. 2020-01-09 14:17:08 -05:00
NAThompson
90411e58bb Implement update, implement .prime(), compatibility with boost::circular_buffer. 2020-01-08 16:09:57 -05:00
Nick Thompson
2e5f67fa11 Makima interpolation: pimpl it. [CI SKIP] 2020-01-05 19:27:10 -05:00
Nick Thompson
e4c4f6db94 Makima spline: First build. 2020-01-05 17:42:17 -05:00
Nick Thompson
1d984f4fe7 Makima spline: Improve performance of evaluation [CI SKIP] 2020-01-05 11:53:10 -05:00
Nick Thompson
8cc3884642 Makima spline documentation [CI SKIP] 2020-01-04 13:18:49 -05:00
Nick
4294260812 Merge pull request #245 from boostorg/deprecate_cubic_b_spline
Deprecate cubic B-spline for cardinal cubic B-spline [CI SKIP]
2019-08-30 08:02:41 -04:00
NAThompson
caf1883788 Deprecate cubic B-spline for cardinal cubic B-spline [CI SKIP] 2019-08-22 09:35:05 -04:00
NAThompson
1955699777 Cardinal Quintic B-splines: Documentation. [CI SKIP] 2019-08-13 09:34:01 -04:00
pabristow
3d56177eb2 Merge branch 'develop' of https://github.com/boostorg/math into develop 2019-08-12 18:14:41 +01:00
pabristow
fee0884df4 [CI SKIP] Use JM version of hypergeometric.gbk 2019-08-09 16:13:10 +01:00
NAThompson
357cc1528a Derivatives of trigonometric interpolant. 2019-08-09 08:39:52 -04:00
pabristow
6981dc12f9 [CI SKIP]Editorial work using changes in math.css, part one. 2019-08-09 13:22:33 +01:00
NAThompson
d7772d1560 Document second derivative of cubic B-spline. [CI SKIP] 2019-08-08 11:26:57 -04:00
Nick Thompson
31fa421c46 Cardinal trigonometric: Documentation updates [CI SKIP] 2019-07-28 12:34:06 -04:00
Nick Thompson
efb53a3c43 Cardinal trigonometric interpolation: Implement squared l2 norm. 2019-07-27 21:21:33 -04:00
Nick Thompson
27bc4146d9 Cardinal trigonometric interpolation. 2019-07-27 17:04:29 -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
Nick Thompson
260a3af015 Whittaker-Shannon: Update docs, implement derivatives. 2019-06-24 08:28:14 -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
aa5a63135c Remove typo from docs and kick off build. 2019-05-30 13:42:58 -04:00
Nick
18feb0fc2a Documentation, more unit tests [CI SKIP] 2019-05-30 13:25:53 -04:00
Nick Thompson
c8062fbc90 Allow generic random access containers other than std::vector for Catmull-Rom. 2019-05-16 18:03:57 -04:00
Nick Thompson
c00623da74 Add move constructor for barycentric rational interpolation. 2019-01-27 16:28:31 -07:00
Nick Thompson
081842118b Give advice about first and last interpolator segments in the open-curve case. [CI SKIP] 2018-12-03 12:33:45 -07:00
Nick Thompson
baddf9509a The move constructor is 30% faster than the copy; hence remove the data copy and only allow move construction. [CI SKIP] 2018-12-02 13:34:51 -07:00
Nick Thompson
fd519a73d6 Implement suggestions from code review [CI SKIP] 2018-12-02 11:18:41 -07:00
Nick Thompson
9e61547f33 Fix syntax error in docs. [CI SKIP] 2018-10-29 17:14:46 -06:00
Nick Thompson
381f663517 Merge and run CI 2018-10-28 23:27:41 -06:00
pabristow
69908294cd edit and broken links in docs qbk only, locally builds and passed inspect program [CI SKIP] 2018-10-04 14:33:13 +01:00