Skip to content

Commit

Permalink
Reinstated test for #20389
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Ferris committed Feb 8, 2017
1 parent fc962c5 commit 5367225
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/linalg/rowvector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,17 @@ end

@test_throws DimensionMismatch ut\rv
end

# issue #20389
@testset "1 row/col vec*mat" begin
let x=[1,2,3], A=ones(1,4), y=x', B=A', C=x.*A
@test x*A == y'*A == x*B' == y'*B' == C
@test A'*x' == A'*y == B*x' == B*y == C'
end
end
@testset "complex 1 row/col vec*mat" begin
let x=[1,2,3]*im, A=ones(1,4)*im, y=x', B=A', C=x.*A
@test x*A == y'*A == x*B' == y'*B' == C
@test A'*x' == A'*y == B*x' == B*y == C'
end
end

0 comments on commit 5367225

Please sign in to comment.