This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
Bug 1666 - Scale by power of two when computing stableNorm
Summary: Scale by power of two when computing stableNorm
Status: CONFIRMED
Alias: None
Product: Eigen
Classification: Unclassified
Component: Core - general (show other bugs)
Version: 3.4 (development)
Hardware: All All
: Normal Accuracy Problem
Assignee: Nobody
URL:
Whiteboard:
Keywords: accuracy, performance
Depends on:
Blocks:
 
Reported: 2019-01-23 14:23 UTC by Christoph Hertzberg
Modified: 2019-12-04 18:24 UTC (History)
3 users (show)



Attachments

Description Christoph Hertzberg 2019-01-23 14:23:24 UTC
Currently stableNorm scales by the actual inverse of the maximum element. This requires at least one division and is less accurate than scaling by the next power of two.
This also applies to the scaling done by most Eigenvalue or singular value decompositions.


Somewhat related SO question/answer:
https://stackoverflow.com/questions/54297525/fast-way-to-get-a-close-power-of-2-number-floating-point
Comment 1 Gael Guennebaud 2019-01-23 20:52:26 UTC
Good idea!
Comment 2 Nobody 2019-12-04 18:24:07 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1666.

Note You need to log in before you can comment on or make changes to this bug.