Skip to content

Commit 0accdb1

Browse files
authored
Merge pull request #2 from andrjohns/array-syntax
Update deprecated Stan array syntax
2 parents 61da644 + 95820d7 commit 0accdb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/stan/bdSampler.stan

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
functions{
2-
real logLikeBDcoalTimes_lpdf(real[] t, real lambda, real mu, real lgRho){
2+
real logLikeBDcoalTimes_lpdf(array[] real t, real lambda, real mu, real lgRho){
33
int numCoal;
44
real ll;
55
numCoal=size(t);
@@ -21,7 +21,7 @@ functions{
2121

2222
data{
2323
int<lower=1> nCoal; // Number of coalescence times
24-
real t[nCoal]; // Coalescence times
24+
array[nCoal] real t; // Coalescence times
2525
real upperLambda; // Max growth rate allowed
2626
}
2727

0 commit comments

Comments
 (0)