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

Precise bounds calculation for nfixed_mat_mul #2112

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fredrik-johansson
Copy link
Collaborator

For each of

  • _nfixed_mat_mul
  • _nfixed_mat_mul_classical
  • _nfixed_mat_mul_waksman
  • _nfixed_mat_mul_strassen
  • _nfixed_complex_mat_mul

we implement a corresponding method that bounds the magnitudes of all intermediate results as well as the final error (in ulps).

The magnitude bound allows one to scale the inputs tightly while guaranteeing |x| < 1 for intermediate results so that no overflow is possible.

Also, thanks to the error bound, it will be possible to use nfixed methods for arb_t and acb_t matrix multiplication (not done in this PR).

@albinahlback This basically SLP error analysis, so you might want to give this code a careful look when you have time.

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.

2 participants