-
-
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,13 @@ for relty in (Float32, Float64, BigFloat), elty in (relty, Complex{relty}) | |
@test D[1,1] == d[1] | ||
@test D[1,2] == 0 | ||
|
||
@test issymmetric(D) | ||
@test istriu(D) | ||
@test istril(D) | ||
if elty <: Real | ||
@test ishermitian(D) | ||
end | ||
|
||
debug && println("Simple unary functions") | ||
for op in (-,) | ||
@test op(D)==op(DM) | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. Why not just There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more.
It used to work but then #17469 I think it would be good to change this. |
||
@test A_mul_Bt(D2,D) ≈ full(D2)*full(D).' | ||
@test A_mul_Bc(D2,D) ≈ full(D2)*full(D)' | ||
|
||
@test U.'*D ≈ U.'*full(D) | ||
@test U'*D ≈ U'*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.
did you want to use
bd
for anything?