Stan fix for pystan 2.16

This commit is contained in:
bl 2018-05-30 14:23:37 -07:00
parent eecc1dd330
commit a38aaa38c6
3 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ functions {
for (i in 1:T) {
while ((cp_idx <= S) && (t[i] >= t_change[cp_idx])) {
a_row[cp_idx] = 1;
cp_idx += 1;
cp_idx = cp_idx + 1;
}
A[i] = a_row;
}

View file

@ -14,7 +14,7 @@ functions {
for (i in 1:T) {
while ((cp_idx <= S) && (t[i] >= t_change[cp_idx])) {
a_row[cp_idx] = 1;
cp_idx += 1;
cp_idx = cp_idx + 1;
}
A[i] = a_row;
}

View file

@ -14,7 +14,7 @@ functions {
for (i in 1:T) {
while ((cp_idx <= S) && (t[i] >= t_change[cp_idx])) {
a_row[cp_idx] = 1;
cp_idx += 1;
cp_idx = cp_idx + 1;
}
A[i] = a_row;
}