Array return types

Hi Stan users,

Can I just check I’m understanding the documentation correctly:
There is no way of having a function which can return a matrix array, only a vector array?

i.e. it’s not possible for a function to return an object like X:

array[2, 10] matrix[3, 3] X;

Yes that’s possible, the return type for that would be:

array[,] matrix
1 Like