stan-dev/stan

var_context builder

開放

#2,924 建立於 2020年5月23日

 (0 則留言) (0 個反應) (0 位負責人)C++ (387 個分叉)batch import
featuregood first issue

倉庫指標

星標
 (2,761 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南