Skip to content

Commit 484722f

Browse files
committed
Format
1 parent 7564dc7 commit 484722f

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/abstractblocksparsearray/wrappedabstractblocksparsearray.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,7 @@ function Base.Array(a::AnyAbstractBlockSparseArray)
343343
return Array{eltype(a)}(a)
344344
end
345345

346-
function SparseArraysBase.isstored(
347-
a::AnyAbstractBlockSparseArray, I::Int...
348-
)
346+
function SparseArraysBase.isstored(a::AnyAbstractBlockSparseArray, I::Int...)
349347
return @interface interface(a) isstored(a, I...)
350348
end
351349

src/blocksparsearrayinterface/blocksparsearrayinterface.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ struct BlockSparseArrayInterface <: AbstractBlockSparseArrayInterface end
100100
error("Not implemented")
101101

102102
@interface ::AbstractBlockSparseArrayInterface function SparseArraysBase.isstored(
103-
a::AbstractArray{<:Any,N}, I::Vararg{Int,N}
104-
) where {N}
105-
bI = BlockIndex(findblockindex.(axes(a), I))
106-
return isstored(blocks_a, bI.I...) && isstored(blocks_a[bI.I...], bI.α...)
107-
end
103+
a::AbstractArray{<:Any,N}, I::Vararg{Int,N}
104+
) where {N}
105+
bI = BlockIndex(findblockindex.(axes(a), I))
106+
return isstored(blocks_a, bI.I...) && isstored(blocks_a[bI.I...], bI.α...)
107+
end
108108

109109
@interface ::AbstractBlockSparseArrayInterface function Base.getindex(
110110
a::AbstractArray{<:Any,N}, I::Vararg{Int,N}

0 commit comments

Comments
 (0)