-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Conversation
@@ -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).' |
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.
Why not just D*D2.'
?
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.
I wanted to make sure I would get this method. Is there a way to use @which
to see what (*)
will call?
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.
Do you want me to change it, @andreasnoack, or is this ok as is?
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.
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.
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)' |
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.
these don't depend on v
or U
, I don't think they need to run twice
* 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)
* 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
No description provided.