stan-dev / stanc3

The Stan transpiler (from Stan to C++ and beyond).
BSD 3-Clause "New" or "Revised" License
142 stars 46 forks source link

Add poisson_binomial lpmf/lcdf/lccdf/rng #618

Open rok-cesnovar opened 4 years ago

rok-cesnovar commented 4 years ago

The following signature recently got stan math support.

real poisson_binomial_lpmf(int, vector)
real poisson_binomial_lpmf(int[], vector)
real poisson_binomial_lpmf(int[], vector[])
real poisson_binomial_lcdf(int, vector)
real poisson_binomial_lcdf(int[], vector)
real poisson_binomial_lcdf(int[], vector[])
real poisson_binomial_lccdf(int, vector)
real poisson_binomial_lccdf(int[], vector)
real poisson_binomial_lccdf(int[], vector[])
int poisson_binomial_rng(vector)

I can handle the stanc3 PR but would require help for the docs PR.

rok-cesnovar commented 3 years ago

This is blocked by missing deprecated suffixes.

WardBrian commented 2 years ago

I believe we can add these without the deprecated suffixes using #1191 and the missing_math_functions list, no?

rok-cesnovar commented 2 years ago

Yes, we can add this now finally.

WardBrian commented 2 years ago

It seems like the deprecated signatures actually were added, its https://github.com/stan-dev/math/issues/2490 which is still blocking