Skip to content

Document Stan Math expressions requirements  #2736

Open
@rok-cesnovar

Description

@rok-cesnovar

Stan Math functions that are meant to be exposed in the Stan language have 2 expressions requirements:

  • they have to be able to accept Eigen expressions
  • they have to work with the expressions efficiently (not evaluate them multiple times)

This is not really documented or expressed clearly for Stan Math developers I think. We need to mention this somewhere more prominently.

It should also mention that you can test expressions for a function not currently exposed in Stan by running:

python3 runTests.py test/expressions/ --only-function "foo(vector) => vector"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions