Skip to content

Commit 5c8b83c

Browse files
committed
Fix combining block broadcast styles
1 parent 9c23819 commit 5c8b83c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/blocksparsearrayinterface/broadcast.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ blockstyle(::AbstractBlockSparseArrayStyle{N,B}) where {N,B<:AbstractArrayStyle{
1212
function Broadcast.BroadcastStyle(
1313
style1::AbstractBlockSparseArrayStyle, style2::AbstractBlockSparseArrayStyle
1414
)
15-
return BlockSparseArrayStyle(BroadcastStyle(blockstyle(style1), blockstyle(style2)))
15+
style = Broadcast.result_style(blockstyle(style1), blockstyle(style2))
16+
return BlockSparseArrayStyle(style)
1617
end
1718

1819
function DerivableInterfaces.interface(

0 commit comments

Comments
 (0)