Is there an implementation callable from C or C++ that allows the evaluation of the generalized hypergeometric function pFq(a1,...,ap; b1,...,bp; x)
?
I tried GSL and Boost, but I don't think the generalized function is available in either of those libraries.
I believe the Arb library, a C library for arbitrary-precision floating-point ball arithmetic developed by the creator of mpmath, now provides an implementation.
I would suggest using this python library for the functions you need. It seems like it has it.
The trick however is you need to be able to call a python script from C++. For that you can use a boost component.
This seems like the easiest solution, even if it is possibly inefficient.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With