-
-
Notifications
You must be signed in to change notification settings - Fork 558
feat: Add Bunch–Kaufman LDL Decomposition #1591
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
Merged
Merged
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
5c2a360
Initial commit.
awinick 6ac360a
No-std and serde fix.
awinick c1da452
Address feedback.
awinick 062ac6c
Update ldl.rs
awinick 8df1917
Doc fixes
awinick ae49051
Removed public pivot API.
awinick 5264774
Rename ldl to lblt
awinick a9fafca
simplified f64 to T conversion.
awinick 782911d
Add 1-norm and address feedback.
awinick 79748b6
Doc fix.
awinick 42173f2
Norm and MSRV.
awinick ccbc191
Trailing whitespace.
awinick File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm in favor of having this in here, but I'll page the owner of the library privately, since I don't feel comfortable deciding this alone. The problem is that the current
LpNormimplementation looks deceptively similar and the struct is poorly documented. What the currentLpNormcalculates is the elementwise Lp norm and there should be a comment explaining this and giving a formula. Your documentation is much better, but still relies on everyone understanding what induced norm means. Would you be so kind to add some docs to both?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated the docs for both as requested, actually updated docs for all the norms with warnings when needed.
There's a meaningful inconsistency in how they all behave on matrices vs. vectors. In addition to what you said about
LpNorm,UniformNormhas the same issue.EuclideanNormon a matrix computes the Frobenius norm, not the spectral norm.Making them align with user expectation would be a breaking change but would be cool to see at some point maybe haha.