We definitely don't plan to reshape existing matrices.
Once a matrix is declared, its size can't change.
May I ask what you need it for?
We could write something that would build a matrix
from an array and maybe go back and forth that way,
as in:
matrix[4,8] A;
matrix[16,2] B;
B <- as_matrix(16,2, to_vector(A));
That would respect the current type system, but
wouldn't be as efficient as just writing loops (at least
until we get deep support of matrix expression templates).
I find this kind of thing confusing because of the
column- vs. row-major orientations.
- 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/d/optout.