Skip to content

Instantly share code, notes, and snippets.

@SteveBronder
Last active June 30, 2020 19:42
Show Gist options
  • Save SteveBronder/0ccf66260654dc4e4d586e0b91e9f899 to your computer and use it in GitHub Desktop.
Save SteveBronder/0ccf66260654dc4e4d586e0b91e9f899 to your computer and use it in GitHub Desktop.
Eigen::Matrix<local_scalar_t__, -1, 1> B_in__;
B_in__
= Eigen::Matrix<local_scalar_t__, -1, 1>((N + ((N * (N - 1)) / 2)));
stan::math::fill(B_in__, DUMMY_VAR__);
current_statement__ = 2;
B_in__ = in__.vector((N + ((N * (N - 1)) / 2)));
current_statement__ = 2;
if (jacobian__) {
current_statement__ = 2;
assign(B, nil_index_list(),
stan::math::cov_matrix_constrain(B_in__, N, lp__),
"assigning variable B");
} else {
current_statement__ = 2;
assign(B, nil_index_list(), stan::math::cov_matrix_constrain(B_in__, N),
"assigning variable B");
}
Eigen::Matrix<local_scalar_t__, -1, 1> B_in__ = in__.vector((N + ((N * (N - 1)) / 2)));
B = stan::math::cov_matrix_constrain(B_in__, N);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment