Skip to content

Commit ea30a91

Browse files
authored
Move Apply/BroadcastBandedLayout out of extension to avoid race condi… (#352)
* Move Apply/BroadcastBandedLayout out of extension to avoid race condition * Update ci.yml
1 parent 600d257 commit ea30a91

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
version:
15-
- '1.10'
16-
- '^1.11.0-0'
15+
- 'lts'
16+
- '1'
1717
os:
1818
- ubuntu-latest
1919
- macOS-latest

ext/LazyArraysBandedMatricesExt.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import LazyArrays: sublayout, symmetriclayout, hermitianlayout, applylayout, cac
1111
PaddedColumns, CachedArray, CachedMatrix, LazyLayout, BroadcastLayout, ApplyLayout,
1212
paddeddata, resizedata!, broadcastlayout, _broadcastarray2broadcasted, _broadcast_sub_arguments,
1313
arguments, call, applybroadcaststyle, simplify, simplifiable, islazy_layout, lazymaterialize, _broadcast_mul_mul,
14-
triangularlayout, AbstractCachedMatrix, _mulbanded_copyto!
14+
triangularlayout, AbstractCachedMatrix, _mulbanded_copyto!, ApplyBandedLayout, BroadcastBandedLayout
1515
import Base: BroadcastStyle, similar, copy, broadcasted, getindex, OneTo, oneto, tail, sign, abs
1616
import BandedMatrices: bandedbroadcaststyle, bandwidths, isbanded, bandedcolumns, bandeddata, BandedStyle,
1717
AbstractBandedLayout, AbstractBandedMatrix, BandedColumns, BandedRows, BandedSubBandedMatrix,
@@ -216,9 +216,6 @@ isbanded(M::MulMatrix) = isbanded(Applied(M))
216216
# ApplyBanded
217217
###
218218

219-
struct ApplyBandedLayout{F} <: AbstractLazyBandedLayout end
220-
struct BroadcastBandedLayout{F} <: AbstractLazyBandedLayout end
221-
222219

223220
bandedlayout(::LazyLayout) = LazyBandedLayout()
224221
bandedlayout(::ApplyLayout{F}) where F = ApplyBandedLayout{F}()

src/LazyArrays.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,8 @@ function _mulbanded_copyto! end
7676

7777
abstract type AbstractLazyBandedLayout <: AbstractBandedLayout end
7878
struct LazyBandedLayout <: AbstractLazyBandedLayout end
79+
struct ApplyBandedLayout{F} <: AbstractLazyBandedLayout end
80+
struct BroadcastBandedLayout{F} <: AbstractLazyBandedLayout end
81+
7982

8083
end # module

0 commit comments

Comments
 (0)