Skip to content

Commit

Permalink
Merge pull request #1563 from fusaroli/fix_#1562
Browse files Browse the repository at this point in the history
second attempt to fix #1562
  • Loading branch information
paul-buerkner authored Nov 13, 2023
2 parents b24dfa7 + 1546a00 commit 504d8ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inst/chunks/fun_scale_r_cor_by.stan
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Returns:
* matrix of scaled group-level effects
*/
matrix scale_r_cor_by(matrix z, matrix SD, matrix[] L, int[] Jby) {
matrix scale_r_cor_by(matrix z, matrix SD, array[] matrix L, array[] int Jby) {
// r is stored in another dimension order than z
matrix[cols(z), rows(z)] r;
array[size(L)] matrix[rows(L[1]), cols(L[1])] LC;
Expand Down
3 changes: 1 addition & 2 deletions inst/chunks/fun_scale_r_cor_by_cov.stan
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
* Returns:
* matrix of scaled group-level effects
*/
matrix scale_r_cor_by_cov(matrix z, matrix SD, matrix[] L,
int[] Jby, matrix Lcov) {
matrix scale_r_cor_by_cov(matrix z, matrix SD, array[] matrix L, array[] int Jby, matrix Lcov) {
vector[num_elements(z)] z_flat = to_vector(z);
vector[num_elements(z)] r = rep_vector(0, num_elements(z));
array[size(L)] matrix[rows(L[1]), cols(L[1])] LC;
Expand Down

0 comments on commit 504d8ca

Please sign in to comment.