From e93e6772980b667d633931d0fc6acc489c006db0 Mon Sep 17 00:00:00 2001 From: Sheehan Olver Date: Fri, 17 Nov 2023 21:46:40 +0000 Subject: [PATCH] Bug in broadcast mixing Matrix and PseudoBlockMatrix --- test/test_blockbroadcast.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/test_blockbroadcast.jl b/test/test_blockbroadcast.jl index 0d58aa3d..049be8b6 100644 --- a/test/test_blockbroadcast.jl +++ b/test/test_blockbroadcast.jl @@ -265,4 +265,12 @@ import BlockArrays: SubBlockIterator, BlockIndexRange, Diagonal C = B + B @test C[Block(1)] == 2B[Block(1)] end + + @testset "broadcast bug" begin + X = randn(5,5) + Y = similar(X) + B = PseudoBlockArray(randn(5,5), [2,3], [2,3]) + Y .= X .- B ./ 2 + @test Y == X - B/2 + end end