- Notifications
You must be signed in to change notification settings - Fork 198
linalg: determinant #798
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
linalg: determinant #798
Changes from 21 commits
Commits
Show all changes
29 commits Select commit Hold shift + click to select a range
4a4b899 import files
perazz d54cfa3 add `pure` interface
perazz c987fa1 add operator interface
perazz b9a3b0e add tests
perazz 4a29219 make `pure`
perazz 3d05cc3 remove `xdp`
perazz 4beab1f Documentation
perazz 15023e1 `submodule version`
perazz 5923a54 Update src/stdlib_linalg.fypp
perazz 31cdc84 Update src/stdlib_linalg.fypp
perazz 45a606f add `det` example
perazz cacb585 Update src/stdlib_linalg_determinant.fypp
perazz 5c16ff8 Update src/stdlib_linalg_determinant.fypp
perazz ab030c5 Update src/stdlib_linalg_determinant.fypp
perazz 13bd98a warn about `xdp`
perazz 7bf7141 Merge branch 'determinant' of github.com:perazz/stdlib into determinant
perazz 504d90d cleanup xdp notes
perazz e80b508 spacing
perazz c6076ea relax error thresholds
perazz eaebe5c restore `pure` attribute
perazz 5d52d48 Update test/linalg/test_linalg_determinant.fypp
perazz cff995d add docs
perazz 2fe2428 link to specs
perazz 45447a8 Update doc/specs/stdlib_linalg.md
perazz 3ee20ad Update doc/specs/stdlib_linalg.md
perazz 1e50115 Update doc/specs/stdlib_linalg.md
perazz fe933ad Update doc/specs/stdlib_linalg.md
perazz 59dae89 Update doc/specs/stdlib_linalg.md
perazz 3c72b06 Update doc/specs/stdlib_linalg.md
perazz 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| program example_determinant | ||
| use stdlib_kinds, only: dp | ||
| use stdlib_linalg, only: det, linalg_state_type | ||
| implicit none | ||
| type(linalg_state_type) :: err | ||
| | ||
| real(dp) :: d | ||
| | ||
| ! Compute determinate of a real matrix | ||
| d = det(reshape([real(dp)::1,2,3,4],[2,2])) | ||
| | ||
| print *, d ! a*d-b*c = -2.0 | ||
| | ||
| end program example_determinant |
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.
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 let me think that we should review the structure of the specs. Currently we have 1 page per module. However, if these become available through
stdlib_linalg, the specs should be modified accordingly (probably in another PR; I can start to work on a proposition when this is ready).