Skip to content

Commit

Permalink
Update InfiniteArraysBlockArraysExt.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
dlfivefifty committed Nov 30, 2024
1 parent cce29d9 commit 04c8993
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ext/InfiniteArraysBlockArraysExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ module InfiniteArraysBlockArraysExt
using InfiniteArrays, BlockArrays
using InfiniteArrays.ArrayLayouts, InfiniteArrays.LazyArrays, InfiniteArrays.LinearAlgebra

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

Check warning on line 65 in ext/InfiniteArraysBlockArraysExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/InfiniteArraysBlockArraysExt.jl#L62-L65

Added lines #L62 - L65 were not covered by tests
end

_block_interlace_axes(::Int, ax::Tuple{BlockedOneTo{Int,OneToInf{Int}}}...) = (blockedrange(Fill(length(ax), ∞)),)

_block_interlace_axes(nbc::Int, ax::NTuple{2,BlockedOneTo{Int,OneToInf{Int}}}...) =
(blockedrange(Fill(length(ax) ÷ nbc, ∞)),blockedrange(Fill(mod1(length(ax),nbc), ∞)))

#######
# block broadcasted
Expand Down

0 comments on commit 04c8993

Please sign in to comment.