From 5367225ef2b7baf4522e507feb251af64883eeba Mon Sep 17 00:00:00 2001 From: Andy Ferris Date: Thu, 9 Feb 2017 09:45:29 +1000 Subject: [PATCH] Reinstated test for #20389 --- test/linalg/rowvector.jl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/linalg/rowvector.jl b/test/linalg/rowvector.jl index 116758e68119a8..77fdbc87f29ca7 100644 --- a/test/linalg/rowvector.jl +++ b/test/linalg/rowvector.jl @@ -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