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

Add missing tests for diagonal and uniformscaling #17921

Merged
merged 3 commits into from
Aug 17, 2016
Merged

Conversation

kshyatt
Copy link
Contributor

@kshyatt kshyatt commented Aug 9, 2016

No description provided.

@kshyatt kshyatt added test This change adds or pertains to unit tests linear algebra Linear algebra labels Aug 9, 2016
@@ -116,6 +123,12 @@ for relty in (Float32, Float64, BigFloat), elty in (relty, Complex{relty})
@test Ac_mul_B!(copy(D), copy(b)) ≈ full(D)'*full(b)
end

#a few missing mults
bd = Bidiagonal(D2)
@test A_mul_Bt(D,D2) ≈ full(D)*full(D2).'
Copy link
Member

Choose a reason for hiding this comment

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

Why not just D*D2.'?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wanted to make sure I would get this method. Is there a way to use @which to see what (*) will call?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you want me to change it, @andreasnoack, or is this ok as is?

Copy link
Member

Choose a reason for hiding this comment

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

Is there a way to use @which to see what (*) will call?

It used to work but then #17469

I think it would be good to change this. Ax_mul_Bx are not really meant to be used.

@kshyatt
Copy link
Contributor Author

kshyatt commented Aug 13, 2016

Are the test failures unrelated (looks like it to me)?

bd = Bidiagonal(D2)
@test D*D2.' ≈ full(D)*full(D2).'
@test D2*D.' ≈ full(D2)*full(D).'
@test D2*D' ≈ full(D2)*full(D)'
Copy link
Contributor

@tkelman tkelman Aug 16, 2016

Choose a reason for hiding this comment

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

these don't depend on v or U, I don't think they need to run twice

@kshyatt kshyatt merged commit ee80a0c into master Aug 17, 2016
@kshyatt kshyatt deleted the ksh/diagtests branch August 17, 2016 20:00
tkelman pushed a commit that referenced this pull request Aug 20, 2016
* Add missing tests for diagonal and uniformscaling

* Change A_mul_B to *

* Moved things out of nested loop that don't need to be there

(cherry picked from commit ee80a0c)
mfasi pushed a commit to mfasi/julia that referenced this pull request Sep 5, 2016
* Add missing tests for diagonal and uniformscaling

* Change A_mul_B to *

* Moved things out of nested loop that don't need to be there
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear algebra Linear algebra test This change adds or pertains to unit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants