Skip to content
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

Fix axpy! and add tests. #15407

Merged
merged 1 commit into from
Mar 9, 2016
Merged

Fix axpy! and add tests. #15407

merged 1 commit into from
Mar 9, 2016

Conversation

musm
Copy link
Contributor

@musm musm commented Mar 8, 2016

Fixed bug in LinAlg.axpy! and added test. Fixes JuliaLang/LinearAlgebra.jl#315.

Is it convention for tests to explicit say Base.LinAlg.axpy! vs LinAlg.axpy! ?

@musm
Copy link
Contributor Author

musm commented Mar 9, 2016

Also some of the tests in the file kinda don't make sense especially for axpy! where * and + aren't defined for Char's even though the tests are using them.

# test that LinAlg.axpy! works for x and y of different dimensions
let
α = 5
x = ones(Int, 2, 3)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably use x = 2:7 or similar, so that the test checks that the right elements of x are being added to y.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes fixed.

@stevengj
Copy link
Member

stevengj commented Mar 9, 2016

LGTM.

stevengj added a commit that referenced this pull request Mar 9, 2016
@stevengj stevengj merged commit 1c0bbb2 into JuliaLang:master Mar 9, 2016
tkelman pushed a commit that referenced this pull request Mar 13, 2016
(cherry picked from commit ae775ea)
ref #15407
@musm musm deleted the axpy!_fix branch April 26, 2016 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug in daxpy!
2 participants