Skip to content

Commit 04c8993

Browse files
committed
Update InfiniteArraysBlockArraysExt.jl
1 parent cce29d9 commit 04c8993

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

ext/InfiniteArraysBlockArraysExt.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ module InfiniteArraysBlockArraysExt
22
using InfiniteArrays, BlockArrays
33
using InfiniteArrays.ArrayLayouts, InfiniteArrays.LazyArrays, InfiniteArrays.LinearAlgebra
44

5-
import Base: length, size, axes, BroadcastStyle
5+
import Base: length, size, axes, BroadcastStyle, copy, +, -
66
import Base.Broadcast: Broadcasted
77
import ArrayLayouts: sub_materialize, axes_print_matrix_row
8-
import InfiniteArrays: OneToInf, PosInfinity, InfRanges, RealInfinity, Infinity, InfStepRange
8+
import InfiniteArrays: OneToInf, PosInfinity, InfRanges, RealInfinity, Infinity, InfStepRange, TridiagonalToeplitzLayout
99
import BlockArrays: AbstractBlockLayout, sizes_from_blocks, BlockTridiagonal, OneToCumsum, BlockSlice, AbstractBlockedUnitRange,
1010
BlockLayout
1111
import LazyArrays: PaddedColumns
@@ -65,10 +65,6 @@ function copy(bc::Broadcasted{<:BroadcastStyle,<:Any,typeof(*),<:Tuple{AbstractA
6565
convert(AbstractArray{promote_type(T,V),N}, a)
6666
end
6767

68-
_block_interlace_axes(::Int, ax::Tuple{BlockedOneTo{Int,OneToInf{Int}}}...) = (blockedrange(Fill(length(ax), ∞)),)
69-
70-
_block_interlace_axes(nbc::Int, ax::NTuple{2,BlockedOneTo{Int,OneToInf{Int}}}...) =
71-
(blockedrange(Fill(length(ax) ÷ nbc, ∞)),blockedrange(Fill(mod1(length(ax),nbc), ∞)))
7268

7369
#######
7470
# block broadcasted

0 commit comments

Comments
 (0)