Skip to content

Commit 5367225

Browse files
author
Andy Ferris
committed
Reinstated test for #20389
1 parent fc962c5 commit 5367225

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/linalg/rowvector.jl

+14
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,17 @@ end
235235

236236
@test_throws DimensionMismatch ut\rv
237237
end
238+
239+
# issue #20389
240+
@testset "1 row/col vec*mat" begin
241+
let x=[1,2,3], A=ones(1,4), y=x', B=A', C=x.*A
242+
@test x*A == y'*A == x*B' == y'*B' == C
243+
@test A'*x' == A'*y == B*x' == B*y == C'
244+
end
245+
end
246+
@testset "complex 1 row/col vec*mat" begin
247+
let x=[1,2,3]*im, A=ones(1,4)*im, y=x', B=A', C=x.*A
248+
@test x*A == y'*A == x*B' == y'*B' == C
249+
@test A'*x' == A'*y == B*x' == B*y == C'
250+
end
251+
end

0 commit comments

Comments
 (0)