Skip to content

Commit

Permalink
Merge pull request #1084 from stan-dev/normal_id_glm
Browse files Browse the repository at this point in the history
Add missing normal_id_glm signatures
  • Loading branch information
andrjohns authored Jan 3, 2022
2 parents f9be294 + 6942b0c commit 9218def
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
20 changes: 20 additions & 0 deletions src/middle/Stan_math_signatures.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1688,6 +1688,16 @@ let () =
, ReturnType UReal
, [UVector; UMatrix; UVector; UVector; UReal]
, AoS ) ;
add_unqualified
( "normal_id_glm_lpdf"
, ReturnType UReal
, [UReal; UMatrix; UReal; UVector; UReal]
, AoS ) ;
add_unqualified
( "normal_id_glm_lpdf"
, ReturnType UReal
, [UReal; UMatrix; UVector; UVector; UReal]
, AoS ) ;
add_unqualified
( "normal_id_glm_lpdf"
, ReturnType UReal
Expand All @@ -1703,11 +1713,21 @@ let () =
, ReturnType UReal
, [UVector; URowVector; UReal; UVector; UVector]
, AoS ) ;
add_unqualified
( "normal_id_glm_lpdf"
, ReturnType UReal
, [UVector; URowVector; UVector; UVector; UReal]
, AoS ) ;
add_unqualified
( "normal_id_glm_lpdf"
, ReturnType UReal
, [UVector; URowVector; UVector; UVector; UVector]
, AoS ) ;
add_unqualified
( "normal_id_glm_lpdf"
, ReturnType UReal
, [UVector; URowVector; UReal; UVector; UReal]
, AoS ) ;
add_nullary "not_a_number" ;
add_unqualified ("num_elements", ReturnType UInt, [UMatrix], AoS) ;
add_unqualified ("num_elements", ReturnType UInt, [UVector], AoS) ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ transformed data {
transformed_data_real = normal_id_glm_lpdf(d_y_v| d_x_m, d_alpha_v, d_beta_v, d_phi);
transformed_data_real = normal_id_glm_lpdf(d_y| d_x_m, d_alpha, d_beta_v, d_phi_v);
transformed_data_real = normal_id_glm_lpdf(d_y| d_x_m, d_alpha_v, d_beta_v, d_phi_v);
transformed_data_real = normal_id_glm_lpdf(d_y| d_x_m, d_alpha, d_beta_v, d_phi);
transformed_data_real = normal_id_glm_lpdf(d_y| d_x_m, d_alpha_v, d_beta_v, d_phi);
transformed_data_real = normal_id_glm_lpdf(d_y_v| d_x_rv, d_alpha, d_beta_v, d_phi_v);
transformed_data_real = normal_id_glm_lpdf(d_y_v| d_x_rv, d_alpha_v, d_beta_v, d_phi_v);
transformed_data_real = normal_id_glm_lpdf(d_y_v| d_x_rv, d_alpha, d_beta_v, d_phi);
transformed_data_real = normal_id_glm_lpdf(d_y_v| d_x_rv, d_alpha_v, d_beta_v, d_phi);
}
parameters {
real p_y;
Expand All @@ -36,10 +40,13 @@ transformed parameters {
transformed_param_real = normal_id_glm_lpdf(p_y_v| p_x_m, p_alpha_v, p_beta_v, p_phi);
transformed_param_real = normal_id_glm_lpdf(p_y| p_x_m, p_alpha, p_beta_v, p_phi_v);
transformed_param_real = normal_id_glm_lpdf(p_y| p_x_m, p_alpha_v, p_beta_v, p_phi_v);
transformed_param_real = normal_id_glm_lpdf(p_y| p_x_m, p_alpha_v, p_beta_v, p_phi);
transformed_param_real = normal_id_glm_lpdf(p_y| p_x_m, p_alpha, p_beta_v, p_phi);
transformed_param_real = normal_id_glm_lpdf(p_y_v| p_x_rv, p_alpha, p_beta_v, p_phi_v);
transformed_param_real = normal_id_glm_lpdf(p_y_v| p_x_rv, p_alpha_v, p_beta_v, p_phi_v);
transformed_param_real = normal_id_glm_lpdf(p_y_v| p_x_rv, p_alpha, p_beta_v, p_phi);
transformed_param_real = normal_id_glm_lpdf(p_y_v| p_x_rv, p_alpha_v, p_beta_v, p_phi);
}
model {
y_p ~ normal(0, 1);
}

Original file line number Diff line number Diff line change
Expand Up @@ -896,8 +896,12 @@ transformed data {
transformed_data_real = normal_id_glm_lpdf(d_y_v | d_x_m, d_alpha_v, d_beta_v, d_phi);
transformed_data_real = normal_id_glm_lpdf(d_y | d_x_m, d_alpha, d_beta_v, d_phi_v);
transformed_data_real = normal_id_glm_lpdf(d_y | d_x_m, d_alpha_v, d_beta_v, d_phi_v);
transformed_data_real = normal_id_glm_lpdf(d_y | d_x_m, d_alpha, d_beta_v, d_phi);
transformed_data_real = normal_id_glm_lpdf(d_y | d_x_m, d_alpha_v, d_beta_v, d_phi);
transformed_data_real = normal_id_glm_lpdf(d_y_v | d_x_rv, d_alpha, d_beta_v, d_phi_v);
transformed_data_real = normal_id_glm_lpdf(d_y_v | d_x_rv, d_alpha_v, d_beta_v, d_phi_v);
transformed_data_real = normal_id_glm_lpdf(d_y_v | d_x_rv, d_alpha, d_beta_v, d_phi);
transformed_data_real = normal_id_glm_lpdf(d_y_v | d_x_rv, d_alpha_v, d_beta_v, d_phi);
}
parameters {
real p_y;
Expand All @@ -917,8 +921,12 @@ transformed parameters {
transformed_param_real = normal_id_glm_lpdf(p_y_v | p_x_m, p_alpha_v, p_beta_v, p_phi);
transformed_param_real = normal_id_glm_lpdf(p_y | p_x_m, p_alpha, p_beta_v, p_phi_v);
transformed_param_real = normal_id_glm_lpdf(p_y | p_x_m, p_alpha_v, p_beta_v, p_phi_v);
transformed_param_real = normal_id_glm_lpdf(p_y | p_x_m, p_alpha_v, p_beta_v, p_phi);
transformed_param_real = normal_id_glm_lpdf(p_y | p_x_m, p_alpha, p_beta_v, p_phi);
transformed_param_real = normal_id_glm_lpdf(p_y_v | p_x_rv, p_alpha, p_beta_v, p_phi_v);
transformed_param_real = normal_id_glm_lpdf(p_y_v | p_x_rv, p_alpha_v, p_beta_v, p_phi_v);
transformed_param_real = normal_id_glm_lpdf(p_y_v | p_x_rv, p_alpha, p_beta_v, p_phi);
transformed_param_real = normal_id_glm_lpdf(p_y_v | p_x_rv, p_alpha_v, p_beta_v, p_phi);
}
model {
y_p ~ normal(0, 1);
Expand Down
4 changes: 4 additions & 0 deletions test/integration/signatures/stan_math_signatures.t
Original file line number Diff line number Diff line change
Expand Up @@ -15284,9 +15284,13 @@ Display all Stan math signatures exposed in the language
normal_cdf_log(array[] real, array[] real, vector) => real
normal_cdf_log(array[] real, array[] real, row_vector) => real
normal_cdf_log(array[] real, array[] real, array[] real) => real
normal_id_glm_lpdf(real, matrix, real, vector, real) => real
normal_id_glm_lpdf(real, matrix, real, vector, vector) => real
normal_id_glm_lpdf(real, matrix, vector, vector, real) => real
normal_id_glm_lpdf(real, matrix, vector, vector, vector) => real
normal_id_glm_lpdf(vector, row_vector, real, vector, real) => real
normal_id_glm_lpdf(vector, row_vector, real, vector, vector) => real
normal_id_glm_lpdf(vector, row_vector, vector, vector, real) => real
normal_id_glm_lpdf(vector, row_vector, vector, vector, vector) => real
normal_id_glm_lpdf(vector, matrix, real, vector, real) => real
normal_id_glm_lpdf(vector, matrix, vector, vector, real) => real
Expand Down

0 comments on commit 9218def

Please sign in to comment.