Skip to content

Commit

Permalink
Add tests for Ax_mul_B!(Matrix, D, Matrix)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemarrows committed Apr 11, 2017
1 parent 07ffd2b commit 90c5cc4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/linalg/diagonal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ srand(1)
@test (r = full(D) * v ; A_mul_B!(vv, D, v) r vv)
@test (r = full(D)' * v ; Ac_mul_B!(vv, D, v) r vv)
@test (r = full(D).' * v ; At_mul_B!(vv, D, v) r vv)

UU = similar(U)
@test (r = full(D) * U ; A_mul_B!(UU, D, U) r UU)
@test (r = full(D)' * U ; Ac_mul_B!(UU, D, U) r UU)
@test (r = full(D).' * U ; At_mul_B!(UU, D, U) r UU)
end
@testset "triu/tril" begin
@test istriu(D)
Expand Down

0 comments on commit 90c5cc4

Please sign in to comment.