forked from translunar/nmatrix
-
Notifications
You must be signed in to change notification settings - Fork 134
Matrix norms implementation #204
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
Closed
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
cd27a44
Added basic version. Only computes frobenius
MpoMp 0660835
First full version
MpoMp 1713fc0
Tests pass
MpoMp b8055df
Changed format and included norms
MpoMp 87f5b62
Replaced == with is_a?
MpoMp 177ed24
Converted lambdas to protected functions
MpoMp 75f0364
Code formatting, replace norm name symbols with full name one
MpoMp e0b9e0f
Added some TODOs and other comments
MpoMp 8e6e4a5
Whoops, forgot to update the rest of the method for the full name sym…
MpoMp f241dce
Fetched changes from /SciRuby/nmatrix/tree/mpomp
MpoMp d773a67
Removed some tabs, and some accidentally copied code
MpoMp b5a3554
String input no longer accepted
MpoMp c7f869b
Better variable names
MpoMp 7727102
Shorter injects for simple sum
MpoMp 3c2d634
Frobenius norm is now calculated using the existing nrm2 method
MpoMp 256e1dc
Replaced if-then-else with case
MpoMp 1433cc5
Removed useless symbol map
MpoMp 1d2fa6f
Removed redundant tests for invalid args
MpoMp eb75c8d
Fixed some wrong calculations
MpoMp a9e6533
Fixed some wrong calculations
MpoMp 11924d5
Added -1, -2, -inf norms
MpoMp f85ca37
Better tests
MpoMp 7fbd759
Replaced array with NMatrix in frobenius calculation
MpoMp d97ac05
At 2-norm calculation, defaults the dtype to :float64
MpoMp 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
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.
This is much, much better.