Comparing sensitive data, confidential files or internal emails?

Most legal and privacy policies prohibit uploading sensitive data online. Diffchecker Desktop ensures your confidential information never leaves your computer. Work offline and compare documents securely.

Untitled Diff

Created Diff never expires
1 removal
40 lines
1 addition
40 lines
prepare_data {
prepare_data {
data int pos__;
data int pos__;
pos__ = 1;
pos__ = 1;
data array[vector[5], 2] inputs;
data array[vector[5], 2] inputs;
inputs = rep_array(zeros_vector(5), 2); }
inputs = rep_array(zeros_vector(5), 2); }


log_prob {
log_prob {
real param;
real param;
param = (FnReadParam(constrain Identity)(dims())(mem_pattern AoS))__();
param = (FnReadParam(constrain Identity)(dims())(mem_pattern SoA))__();
{
{
array[vector[5], 2] local;
array[vector[5], 2] local;
local = inputs;
local = inputs;
for(i in 1:2) {
for(i in 1:2) {
for(j in 1:5) {
for(j in 1:5) {
local[i, j] = (local[i, j] + 1);
local[i, j] = (local[i, j] + 1);
}
}
}
}
target += std_normal_lupdf(param);
target += std_normal_lupdf(param);
} }
} }


generate_quantities {
generate_quantities {
data real param;
data real param;
param = (FnReadParam(constrain Identity)(dims())(mem_pattern AoS))__();
param = (FnReadParam(constrain Identity)(dims())(mem_pattern AoS))__();
(FnWriteParam(unconstrain_opt())(var param))__();
(FnWriteParam(unconstrain_opt())(var param))__();
if(PNot__(emit_transformed_parameters__ || emit_generated_quantities__)) {
if(PNot__(emit_transformed_parameters__ || emit_generated_quantities__)) {
return;
return;
}
}
if(PNot__(emit_generated_quantities__)) {
if(PNot__(emit_generated_quantities__)) {
return;
return;
} }
} }


transform_inits {
transform_inits {
data int pos__;
data int pos__;
pos__ = 1;
pos__ = 1;
real param;
real param;
param = FnReadDataSerializer__();
param = FnReadDataSerializer__();
(FnWriteParam(unconstrain_opt(Identity))(var param))__(); }
(FnWriteParam(unconstrain_opt(Identity))(var param))__(); }
output_vars {
output_vars {
parameters real param; //real
parameters real param; //real
}
}