stan-dev / math

The Stan Math Library is a C++ template library for automatic differentiation of any order using forward, reverse, and mixed modes. It includes a range of built-in functions for probabilistic modeling, linear algebra, and equation solving.
https://mc-stan.org
BSD 3-Clause "New" or "Revised" License
744 stars 187 forks source link

Feature: Torsten (pharmacometrics function library) #314

Closed charlesm93 closed 8 years ago

charlesm93 commented 8 years ago

Summary:

Torsten is a prototype library of C++ functions that facilitate applications of Stan in pharmacometrics.

Description:

The main reason for posting the prototype is to facilitate collaboration with the Stan developer community and pursue a conversation on the best ways to create applications of Stan in pharmacometrics.

All the functions are stored in the torsten directory under math/stan/math/. The only already existing file in stan-math that has been modified is math/stan/math/mat.hpp.

For exposing the functions to Stan, see issue on stan-dev/stan.

The current prototype has the following features:

Other features are being developed and tested.

Additional Information:

I still need to work through some of the pre-requisites before creating a pull request (testing, documentation, and code quality). I have used these functions on a few examples -- that is fitting models to data with Stan -- and will post these in example-models.

I also intend to create a wiki to pool ideas.

Current Version:

v2.10.0 (read this is the version with which Torsten is compatible and with which I have been testing it).

syclik commented 8 years ago

@charlesm93, is there any action you need anyone to take?

charlesm93 commented 8 years ago

@syclik, no action required. I created this issue to be consistent with Stan practices when implementing a new feature. My understanding is that this precedes submitting a pull request. Btw, I could not create a new branch directly on stan-dev, so I first created a fork -- I don't believe this should pose any problem.

I anticipate we will be revising the design for Torsten, and pharma applications in general, during the upcoming meeting with the Stan group and Sebastian Weber. So I'm holding off designing unit tests until that's settled.