stan-dev/stan

var_context builder

Ouverte

#2 924 ouverte le 23 mai 2020

 (0 commentaire) (0 réaction) (0 personne assignée)C++ (387 forks)batch import
featuregood first issue

Métriques du dépôt

Stars
 (2 761 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur