Skip to content

Vectorize abs, deprecate fabs #1195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 24, 2022

Conversation

WardBrian
Copy link
Member

@WardBrian WardBrian commented May 10, 2022

This closes #475. It won't be ready to merge until @bob-carpenter figures out some things on the C++ side (see stan-dev/math#2729), but I'm opening it now so we can run tests against it.

Submission Checklist

Release notes

abs is now vectorized for container types. fabs is now deprecated, as all usages can be replaced with abs thanks to array promotion rules.

Copyright and Licensing

By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the BSD 3-clause license (https://opensource.org/licenses/BSD-3-Clause)

@WardBrian WardBrian added cleanup Code simplification or clean-up deprecations labels May 10, 2022
@WardBrian
Copy link
Member Author

I'm now running this with stan-dev/math#2734

@WardBrian
Copy link
Member Author

This depends on stan-dev/math#2741 but is otherwise ready for review

@WardBrian WardBrian merged commit ced33f6 into stan-dev:master May 24, 2022
@WardBrian WardBrian deleted the vectorize-abs-deprecate-fabs branch May 24, 2022 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code simplification or clean-up deprecations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

reverse deprecation on abs() and fabs()
2 participants