Skip to content
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

Prerequisites for the implementation of the Stehlé-Zimmermann algorithm #3995

Merged
merged 6 commits into from
May 5, 2024

Conversation

pleroy
Copy link
Member

@pleroy pleroy commented May 5, 2024

  1. Add support for Boost multiprecision types in quantities, in particular for elementary functions and tracing.
  2. Adjust the concepts so that the Boost multiprecision types are considered to have the appropriate algebraic structure.
  3. Fix a bug in the composition of polynomials with nontrivial origins.

#1760.

numerics::_fma::FusedMultiplyAdd(
x / si::Unit<Q1>, y / si::Unit<Q2>, z / si::Unit<Product<Q1, Q2>>);
if constexpr (is_number<Q1>::value || is_number<Q2>::value) {
return x * y + z;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This condition should also check for number_category<Q2>::value == number_kind_integer || number_category<Q2>::value == number_kind_rational; for floating-point we cannot just do that (but I think there is an fma).

@eggrobin eggrobin added the LGTM label May 5, 2024
@pleroy pleroy merged commit a0aecac into mockingbirdnest:master May 5, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants