-
Notifications
You must be signed in to change notification settings - Fork 189
Outer product #432
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
Outer product #432
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
2d7f477
Created function submodule and interface.
ghbrown a85310b
One line addition of submodule file to make files
ghbrown 2a82186
Commit after successful build.
ghbrown 64016f4
Fix manual makefile build
awvwgk 89f98ef
Update src/stdlib_linalg_outer_product.fypp
milancurcic cc33670
minor style fixes
milancurcic 31c98ae
remove col from the outer_product interface (thanks @ivan-pi)
milancurcic 6b0b46e
Added tests and confirmed build
ghbrown f2fafb8
Merge branch 'outer_product' of github.com:GHBrown/stdlib into outer_…
ghbrown dcb5f01
Uncommented two tests and rebuilt
ghbrown 58abf5f
Fixed grammar in documentation line
ghbrown 03b2dc3
Added specs documentation.
ghbrown 45e9458
Fixed errors and corrected style in specs doc
ghbrown bdc0ed4
Fixed spacing in specs docs
ghbrown 6aac9ca
matix -> rank-2 array in specs docs
ghbrown e852bb5
Fixed docs wording and made pure function
ghbrown 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
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,20 @@ | ||
#:include "common.fypp" | ||
#:set RCI_KINDS_TYPES = REAL_KINDS_TYPES + CMPLX_KINDS_TYPES + INT_KINDS_TYPES | ||
submodule (stdlib_linalg) stdlib_linalg_outer_product | ||
|
||
implicit none | ||
|
||
contains | ||
|
||
#:for k1, t1 in RCI_KINDS_TYPES | ||
pure module function outer_product_${t1[0]}$${k1}$(u, v) result(res) | ||
${t1}$, intent(in) :: u(:), v(:) | ||
${t1}$ :: res(size(u),size(v)) | ||
integer :: col | ||
do col = 1, size(v) | ||
res(:,col) = v(col) * u | ||
end do | ||
end function outer_product_${t1[0]}$${k1}$ | ||
#:endfor | ||
|
||
end submodule |
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.
Uh oh!
There was an error while loading. Please reload this page.