| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| #include <stan/math/prim/fun/hypergeometric_2F2.hpp> | ||
| #include <stan/math/prim/fun/hypergeometric_3F2.hpp> | ||
| #include <stan/math/prim/fun/hypergeometric_pFq.hpp> | ||
| #include <stan/math/prim/fun/hypergeometric_pFq_helper.hpp> |
There was a problem hiding this comment.
Do we actually want to include this in prim/fun.hpp? Not fully sure what the implications of leaving it out would be
Sorry, something went wrong.
Jenkins Console Log Machine information No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal CPU: G++: Clang: |
Sorry, something went wrong.
Jenkins Console Log Machine information No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal CPU: G++: Clang: |
Sorry, something went wrong.
|
Note: 0F0(;;z) = exp(z) |
Sorry, something went wrong.
There was a problem hiding this comment.
Just needs docs for the template parameters for the helper then I think this is good!
Sorry, something went wrong.
| * | ||
| * This is declared separatel to avoid circular dependencies between the | ||
| * various hypergeometric functions. | ||
| * |
There was a problem hiding this comment.
Needs docs for template parameters
Sorry, something went wrong.
There was a problem hiding this comment.
Hi @andrjohns this just needs to docs for the template parameters then it is good to go. I can do that if you don't have the time
Sorry, something went wrong.
|
@andrjohns you think you can update those docs over the next 2 weeks? |
Sorry, something went wrong.
| plain_type_t<Ta> a_ref = a; | ||
| plain_type_t<Tb> b_ref = b; | ||
|
|
||
| if (a_ref.size() == 1 && b_ref.size() == 0) { |
There was a problem hiding this comment.
we may also add something like:
if (a_ref.size() == 0 && b_ref.size() == 0) return exp(z);
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
This PR updates hypergeometric_pFq to delegate the existing specialisations (e.g., hypergeometric_2F1) to take advantage of their optimisations/reparameterisations.
For this I had to extract the actual call to Boost's hypergeometric_pFq into a standalone file to avoid recursive includes
Tests
N/A - tests should still pass
Side Effects
N/A
Release notes
Update hypergeometric_pFq to delegate to specialisations where relevant
Checklist
Copyright holder: Andrew Johnson
The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
the basic tests are passing
the code is written in idiomatic C++ and changes are documented in the doxygen
the new changes are tested