metrumresearchgroup / mrgsolve

Simulate from ODE-based population PK/PD and QSP models in R
https://mrgsolve.org
GNU General Public License v2.0
132 stars 36 forks source link

Pass SIGMA into model functions #1051

Closed kylebaron closed 1 year ago

kylebaron commented 1 year ago

Summary

This PR implements the ability to access on diagonal elements of SIGMA in the model functions.

The data are stored as a numeric vector in self.SIGMA. This is zero- based indexing. There is 1-based indexing through the SIGMA() macro (see unit test).