stan-dev/stan

var_context builder

Open

#2.924 aberto em 23 de mai. de 2020

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)R (270 forks)batch import
featuregood first issue

Métricas do repositório

Stars
 (1.476 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador