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

perf wExp (1) #11

Closed
wants to merge 2 commits into from
Closed

perf wExp (1) #11

wants to merge 2 commits into from

Conversation

MathisGD
Copy link
Contributor

@MathisGD MathisGD commented Sep 3, 2023

Fixes #5. first alternative for an optimized wExp (range reduction + Padé approximant) copied from this, quite complex.

image

@MathisGD MathisGD self-assigned this Sep 3, 2023
@MathisGD MathisGD requested review from a team, Rubilmax, MerlinEgalite, Jean-Grimal, QGarchery and peyha and removed request for a team September 3, 2023 23:58
monomial = monomial.wMulDown(x) / k;
res += monomial;
/// @dev Returns an approximation of exp.
/// @dev Greatly inspired by https://xn--2-umb.com/22/exp-ln/#fixed-point-exponential-function
Copy link
Contributor

Choose a reason for hiding this comment

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

it seems this is excatly solmate's version why not importing it instead? Do we want to do the same as in blue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmmm no not really Solmate's one is in full assembly

Copy link
Contributor

@MerlinEgalite MerlinEgalite Sep 4, 2023

Choose a reason for hiding this comment

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

not full assmebly there's just the sdiv

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes mb

@Jean-Grimal Jean-Grimal mentioned this pull request Sep 4, 2023
@MathisGD MathisGD closed this Sep 4, 2023
@MathisGD MathisGD deleted the perf/wExp branch September 4, 2023 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimize wExp
2 participants