You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As is, the categorical and categorical_logit pdfs allow multiple outputs, but not multiple parameters.
This was requested in docs, but doesn't exist yet: stan-dev/docs#500
Example
Currently:
Available signatures:
(array[] int, vector) => real
The second argument must be vector but got matrix
(int, vector) => real
The first argument must be int but got array[] int
What we want is to add the following signature in the usual way (so that each row of the matrix corresponds to an entry of the integer array):
(array[] int, matrix) => real
and maybe
(array[] int, array[] vector) => real
The goal is to support vectorized code that looks like this:
Description
As is, the
categorical
andcategorical_logit
pdfs allow multiple outputs, but not multiple parameters.This was requested in docs, but doesn't exist yet: stan-dev/docs#500
Example
Currently:
What we want is to add the following signature in the usual way (so that each row of the matrix corresponds to an entry of the integer array):
and maybe
The goal is to support vectorized code that looks like this:
Expected Output
Above example compiles.
Current Version:
v4.9.0
The text was updated successfully, but these errors were encountered: