-
-
Notifications
You must be signed in to change notification settings - Fork 191
Fix blocking issues for exposing poisson-binomial in Stan #3178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Jenkins Console Log Machine informationNo LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focalCPU: G++: Clang: |
Jenkins Console Log Machine informationNo LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focalCPU: G++: Clang: |
Awesome! Thanks for pushing this through! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good, thanks!
Summary
This PR addresses the issues from #2490 required for exposing
poisson_binomial
in the language (#618):row_vector
andarray[] real
arguments fortheta
poisson_binomial_rng
fails expression testsI haven't added support for passing scalar arguments to
theta
(i.e.,int
,real
) sincetheta
is supposed to be a vector of probabilities (similar tocategorical_rng
).I had to make some minor changes to
size_mvt
andvector_seq_view
to supportstd::vector<double>
arguments, but the other changes are fairly minorTests
Expanded
poisson_binomial
tests to userow_vector
andarray[] real
typesSide Effects
N/A
Release notes
Fixed expression test errors with
poisson_binomial_rng
, added support for row-vector andstd::vector<double>
theta
arguments forpoisson_binomial
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
./runTests.py test/unit
)make test-headers
)make test-math-dependencies
)make doxygen
)make cpplint
)the code is written in idiomatic C++ and changes are documented in the doxygen
the new changes are tested