boostorg / boostorg/math

lgamma slow with defaults

Open
#241 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
374
Forks
264
Avg merge
1d 23h
Merged PRs (30d)
17

Description

The `boost::math::lgamma` implementation is about 2-3x slower than the `std::lgamma` implementation when used with standard `double`s.

When turning off the do the propagation from `double` to `long double` the boost implementation is comparable in speed to `std::lgamma`, but still 10-20% slower.

However, when turning off propagation to `long double` problems with early overflow are the price to pay... see the next issue.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.