Skip to content

Commit f15948a

Browse files
committed
Add back definitions for Zeros
1 parent de30036 commit f15948a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ext/KroneckerArraysBlockSparseArraysExt/KroneckerArraysBlockSparseArraysExt.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ end
3636

3737
using BlockArrays: AbstractBlockedUnitRange
3838
using BlockSparseArrays: Block, ZeroBlocks, eachblockaxis, mortar_axis
39-
using KroneckerArrays: KroneckerArrays, KroneckerArray, , arg1, arg2, _similar
39+
using KroneckerArrays: KroneckerArrays, KroneckerArray, , arg1, arg2
4040
using BlockSparseArrays.TypeParameterAccessors: unwrap_array_type
4141

4242
function KroneckerArrays.arg1(r::AbstractBlockedUnitRange)
@@ -72,13 +72,13 @@ function Base.getindex(
7272
ZeroBlocks{N,A}(ax_a1)[I...]
7373
else
7474
block_ax_a1 = arg1.(block_axes(a.parentaxes, Block(I)))
75-
_similar(A, block_ax_a1)
75+
similar(A, block_ax_a1)
7676
end
7777
a2 = if ismut2
7878
ZeroBlocks{N,B}(ax_a2)[I...]
7979
else
8080
block_ax_a2 = arg2.(block_axes(a.parentaxes, Block(I)))
81-
a2 = _similar(B, block_ax_a2)
81+
a2 = similar(B, block_ax_a2)
8282
end
8383
return a1 a2
8484
end

src/KroneckerArrays.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ include("cartesianproduct.jl")
66
include("kroneckerarray.jl")
77
include("linearalgebra.jl")
88
include("matrixalgebrakit.jl")
9+
include("fillarrays.jl")
910

1011
end

0 commit comments

Comments
 (0)