Skip to content

Commit

Permalink
Use correct specification of empty array (#186)
Browse files Browse the repository at this point in the history
* Use correct specification of empty array

* Add NEWs item

* Add missing empty array

Co-authored-by: Sam Abbott <[email protected]>

* Add James as ctb

---------

Co-authored-by: Sam Abbott <[email protected]>
  • Loading branch information
jamesmbaazam and seabbs authored Dec 13, 2024
1 parent 5b8abe3 commit f961b89
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ Authors@R:
role = c("ctb"),
email = "[email protected]",
comment = c(ORCID = "0000-0003-2386-4031")),
person(given = "James Mba",
family = "Azam",
role = c("ctb"),
email = "[email protected]",
comment = c(ORCID = "0000-0001-5782-7330")),
person(given = "Sebastian",
family = "Funk",
role = c("aut"),
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Development release.
## Documentation

- Added a CRAN downloads badge to the README.
- Corrected how to specify an empty array in the docs of `primarycensored_lcdf()`.

## Bug fixes

Expand Down
2 changes: 1 addition & 1 deletion inst/stan/functions/primarycensored.stan
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ real primarycensored_cdf(data real d, int dist_id, array[] real params,
* real pwindow = 1.0;
* real D = positive_infinity();
* int primary_id = 1; // Uniform
* array[0] real primary_params = {};
* array[0] real primary_params = rep_array(0.0, 0);
* real log_cdf = primarycensored_lcdf(
* d, dist_id, params, pwindow, D, primary_id, primary_params
* );
Expand Down

0 comments on commit f961b89

Please sign in to comment.