Skip to content

Commit dd7c6be

Browse files
author
Bob Carpenter
committed
fixed index in corr-lda model
1 parent e446e33 commit dd7c6be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

misc/cluster/lda/corr-lda.stan

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ transformed parameters {
1919
cov_matrix[K] Sigma; // covariance matrix
2020
for (m in 1:M)
2121
theta[m] <- softmax(eta[m]);
22-
for (m in 1:M) {
22+
for (m in 1:K) {
2323
Sigma[m,m] <- sigma[m] * sigma[m] * Omega[m,m];
24-
for (n in (m+1):M) {
24+
for (n in (m+1):K) {
2525
Sigma[m,n] <- sigma[m] * sigma[n] * Omega[m,n];
2626
Sigma[n,m] <- Sigma[m,n];
2727
}

0 commit comments

Comments
 (0)