stan icon indicating copy to clipboard operation
stan copied to clipboard

var_context builder

Open bob-carpenter opened this issue 5 years ago • 0 comments

Summary:

It'd be nice to have a builder pattern for var contexts to make them easy to construct for testing. Something that could be used like this:

MatrixXd m(3, 2); 
...
var_context vc
  = var_context::builder()
    .matrix("a", m)
    .real("f", 2.3)
    .build();

Current Version:

v2.23.0

bob-carpenter avatar May 23 '20 17:05 bob-carpenter