Skip to content

Commit

Permalink
relax some Diagonal tests from #31443 (#32162)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarrasch authored and JeffBezanson committed Jun 6, 2019
1 parent 9a3e1c7 commit 1833a12
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 @@ -491,10 +491,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 1833a12

Please sign in to comment.