Open bnicenboim opened 7 years ago
Transferring this old issue form stan-dev/stan. Do we have row_vector support for these in Math? I think we do but just checking. If so we should move this issue to stanc3.
Math code looks like it should support row vectors, but I doubt it is tested.
Summary:
The functions for the categorical distribution only accept a column vector, it would be great if it could accept also row vectors.
Description:
I use the categorical distribution to go over a matrix N_obs x N_probabilities, so it's more natural for me to use row vectors than column vectors.
Current functions:
real categorical_lpmf(ints y | vector theta) real categorical_logit_lpmf(ints y | vector beta) int categorical_rng(vector theta)
Expected functions:
real categorical_lpmf(ints y | row_vector theta) real categorical_logit_lpmf(ints y | row_vector beta) int categorical_rng(row_vector theta)
Current Version:
v2.15.0