Skip to content

Add stub functions for certain std:: functions #2611

@WardBrian

Description

@WardBrian

This is related to stan-dev/stanc3#997 / stan-dev/stanc3#1011

There are several functions which we don't define in stan::math but rather use std:: (or don't qualify them at all) for when the argument is only reals or ints. As far as I can tell, these are:

  • pow
  • fmod
  • atan2
  • min, max (the versions that accept 2 scalars, not the ones for arrays etc)
  • ceil

It would be great to redirect these within the library, so we can codegen all functions as fully qualified, e.g. stan::math::pow.

We may also need more definitions for norm and pow of complex numbers, see this log for what currently fails

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions