Last active
June 30, 2020 19:42
-
-
Save SteveBronder/0ccf66260654dc4e4d586e0b91e9f899 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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