Skip to content

Commit

Permalink
gen quantities test
Browse files Browse the repository at this point in the history
  • Loading branch information
mitzimorris committed Oct 30, 2017
1 parent a4c3df1 commit a66ff2a
Showing 1 changed file with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,22 @@ functions {
}

transformed data {
vector[1] y;
vector[1] td_y;
{
vector[1] y_guess = [1]';
vector[1] theta = [1]';
real x_r[0] = {1.0};
int x_i[0];

y = algebra_solver(target, y_guess, theta, x_r, x_i);
vector[1] td_y_guess = [1]';
vector[1] td_theta = [1]';
real td_x_r[0] = {1.0};
int td_x_i[0];
td_y = algebra_solver(target, td_y_guess, td_theta, td_x_r, td_x_i);
}
}
generated quantities {
vector[1] gq_y;
{
vector[1] gq_y_guess = [1]';
vector[1] gq_theta = [1]';
real gq_x_r[0] = {1.0};
int gq_x_i[0];
gq_y = algebra_solver(target, gq_y_guess, gq_theta, gq_x_r, gq_x_i);
}
}

0 comments on commit a66ff2a

Please sign in to comment.