Skip to content

Commit

Permalink
relax some Diagonal tests from #31443 (#32162)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1833a12)
  • Loading branch information
dkarrasch authored and JeffBezanson committed Jun 6, 2019
1 parent 5a8fb5e commit fe158ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stdlib/LinearAlgebra/test/diagonal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,10 @@ end
M = randn(T, 5, 5)
MM = [randn(T, 2, 2) for _ in 1:2, _ in 1:2]
for transform in (identity, adjoint, transpose, Adjoint, Transpose)
@test lmul!(transform(D), copy(M)) == *(transform(Matrix(D)), M)
@test rmul!(copy(M), transform(D)) == *(M, transform(Matrix(D)))
@test lmul!(transform(DD), copy(MM)) == *(transform(fullDD), MM)
@test rmul!(copy(MM), transform(DD)) == *(MM, transform(fullDD))
@test lmul!(transform(D), copy(M)) *(transform(Matrix(D)), M)
@test rmul!(copy(M), transform(D)) *(M, transform(Matrix(D)))
@test lmul!(transform(DD), copy(MM)) *(transform(fullDD), MM)
@test rmul!(copy(MM), transform(DD)) *(MM, transform(fullDD))
end
end
end
Expand Down

0 comments on commit fe158ba

Please sign in to comment.