Multiply matrix by tensor

You can use a for loop

for (i in 1:N){
	y[i, ] ~ multi_normal(mu, Sigma);
}

where mu is something you should be defined based on i.

1 Like