stanc3 icon indicating copy to clipboard operation
stanc3 copied to clipboard

Add vectorised signatures for categorical, categorical_logit, and ordered_logistic

Open andrjohns opened this issue 5 years ago • 1 comments

This Math PR vectorises the RNGs and lpmfs of the ordered_logistic, categorical, and categorical_logit distrubtions.

The following signatures were added:

  • ordered_logistic_rng(vector, vector)
  • ordered_logistic_rng(vector, vector[])
  • ordered_logistic_rng(real, vector[])
  • categorical_lpmf(int, vector[])
  • categorical_lpmf(int[], vector[])
  • categorical_rng(vector[])
  • categorical_logit_lpmf(int, vector[])
  • categorical_logit_lpmf(int[], vector[])
  • categorical_logit_rng(vector[])

I'll add these signatures once the PR goes through

andrjohns avatar Dec 30 '20 05:12 andrjohns

The linked math PR never got merged -- still planning on it?

WardBrian avatar Sep 26 '24 13:09 WardBrian