Skip to content

Commit

Permalink
Add conmat to daedalus_ode docs, mark files autogen
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikunterwegs committed Jan 31, 2025
1 parent 0d75087 commit 5429954
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
README.md linguist-generated=true
man/*.Rd linguist-generated=true
R/dust.R linguist-generated=true
src/daedalus.cpp linguist-generated=true
src/cpp11.cpp linguist-generated=true
6 changes: 3 additions & 3 deletions R/dust.R

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inst/dust/daedalus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const int N_COMPARTMENTS = N_EPI_COMPARTMENTS + N_DATA_COMPARTMENTS;
// [[dust2::parameter(sigma, constant = FALSE)]]
// [[dust2::parameter(gamma, constant = FALSE)]]
// [[dust2::parameter(n_strata, constant = FALSE, type = "int")]]
// [[dust2::parameter(conmat, constant = TRUE)]]
class daedalus_ode {
public:
daedalus_ode() = delete;
Expand Down Expand Up @@ -100,7 +101,6 @@ class daedalus_ode {
shared.sigma = dust2::r::read_real(pars, "sigma", shared.sigma);
shared.gamma = dust2::r::read_real(pars, "gamma", shared.gamma);
shared.n_strata = dust2::r::read_int(pars, "n_strata", shared.n_strata);
// TODO(pratik): add conmat update method?
}

/// @brief Set initial values of the IVP model.
Expand Down
6 changes: 3 additions & 3 deletions src/daedalus.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5429954

Please sign in to comment.