stan-dev/stanc3

Expose `hypergeometric_2F1` and `hypergeometric_3F2`

spinkney opened this issue · 3 comments

Exposing these should be easy if you can provide the list of supported signatures

@andrjohns, I don't see a rev version of hypergeometric_3F2 so we probably shouldn't expose that now. I also see that hypergeometric_pFq has a comment about not being exposed to users but I think it could be useful. What are your thoughts on that?

At the end, I believe we just have hypergeometric_2F1 which is quite a useful function.

A couple of questions for @andrjohns:

  • Does this function accept complex arguments? Mathematically, it is able but not sure that is built out.
  • We do not have apply_* to for vectorization so the signatures for hypergeometric_2F1 are
    a real or int
    b real or int
    c real or int
    z real or int
  • We need to handle the following restrictions in the function to reject and document this
a arbitrary
b Must be greater 0
c Must be greater than b if |z| < 1, and c > b + a if z = 1
z |z| <= 1