stan-dev / stan-dev/stanc3

Add vectorised signatures for categorical, categorical_logit, and ordered_logistic

Open
#782 1 comment 0 reactions 1 assignee View on GitHub

@andrjohns is already working on this.

Since Dec 30, 2020.

feature
Dominant language
OCaml
Stars
160
Forks
59
Avg merge
21h 45m
Merged PRs (30d)
26

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.