Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reinstated test for #20389
Browse files Browse the repository at this point in the history
Andy Ferris committed Feb 8, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
@@ -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.