Skip to content

Commit 9c23819

Browse files
committed
Define mixing block sparse array styles
1 parent 7ecf6eb commit 9c23819

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
@@ -6,7 +6,8 @@ using DerivableInterfaces: DerivableInterfaces, @interface
66

77
abstract type AbstractBlockSparseArrayStyle{N,B<:AbstractArrayStyle{N}} <:
88
AbstractArrayStyle{N} end
9-
blockstyle(::AbstractBlockSparseArrayStyle{<:Any,B}) where {<:Any,B} = B()
9+
10+
blockstyle(::AbstractBlockSparseArrayStyle{N,B}) where {N,B<:AbstractArrayStyle{N}} = B()
1011

1112
function Broadcast.BroadcastStyle(
1213
style1::AbstractBlockSparseArrayStyle, style2::AbstractBlockSparseArrayStyle

0 commit comments

Comments
 (0)