1) Stan manual, section 22.4 on matrix and vector types.
2) If you define:
cholesky_factor_cov[K] L;
then L is a lower-triangular matrix with the diagonals constrained
to be positive.
matrix[K,K] Sigma;
Sigma <- multiply_lower_tri_self_transpose(L);
is the efficient way to set Sigma <- L * L’; See the specialized
products subsection of section 32.2, Matrix Arithmetic Operations.
It’s nice to be able to just answer “yes” once in a while!
- Bob
> --
> You received this message because you are subscribed to the Google Groups "stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
stan-users+...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.