Skip to content

Commit 46d30f2

Browse files
github-actions[bot]CompatHelper Juliadlfivefifty
authored
CompatHelper: bump compat for LazyArrays to 2, (keep existing compat) (#71)
* CompatHelper: bump compat for LazyArrays to 2, (keep existing compat) * Update package deps * fix import * Update Project.toml * Update ci.yml --------- Co-authored-by: CompatHelper Julia <compathelper_noreply@julialang.org> Co-authored-by: Sheehan Olver <solver@mac.com>
1 parent c3be34c commit 46d30f2

File tree

8 files changed

+33
-31
lines changed

8 files changed

+33
-31
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
version:
23-
- '1.9'
23+
- '1.10'
2424
os:
2525
- ubuntu-latest
2626
- macOS-latest

Project.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PiecewiseOrthogonalPolynomials"
22
uuid = "4461d12d-4663-4550-8580-cb764c85e20f"
33
authors = ["Sheehan Olver <solver@mac.com>"]
4-
version = "0.4.2"
4+
version = "0.5"
55

66
[deps]
77
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
@@ -21,19 +21,19 @@ QuasiArrays = "c4ea9172-b204-11e9-377d-29865faadc5c"
2121

2222
[compat]
2323
ArrayLayouts = "1.0.12"
24-
BandedMatrices = "1.3"
25-
BlockArrays = "0.16.25"
26-
BlockBandedMatrices = "0.12.9"
27-
ClassicalOrthogonalPolynomials = "0.12.1"
28-
ContinuumArrays = "0.17.1"
24+
BandedMatrices = "1.7"
25+
BlockArrays = "1"
26+
BlockBandedMatrices = "0.13"
27+
ClassicalOrthogonalPolynomials = "0.13"
28+
ContinuumArrays = "0.18"
2929
FillArrays = "1.0"
30-
InfiniteArrays = "0.13"
31-
InfiniteLinearAlgebra = "0.7"
32-
LazyArrays = "1.8.2"
33-
LazyBandedMatrices = "0.9.1"
34-
MatrixFactorizations = "2.2"
30+
InfiniteArrays = "0.14"
31+
InfiniteLinearAlgebra = "0.8"
32+
LazyArrays = "2.0.4"
33+
LazyBandedMatrices = "0.10"
34+
MatrixFactorizations = "3"
3535
QuasiArrays = "0.11"
36-
julia = "1.9"
36+
julia = "1.10"
3737

3838
[extras]
3939
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"

src/PiecewiseOrthogonalPolynomials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import BlockBandedMatrices: _BandedBlockBandedMatrix, AbstractBandedBlockBandedM
88
import ClassicalOrthogonalPolynomials: grid, plotgrid, ldiv, pad, adaptivetransform_ldiv, Plan, singularities, basis_singularities, singularitiesbroadcast
99
import ContinuumArrays: @simplify, factorize, TransformFactorization, AbstractBasisLayout, MemoryLayout, layout_broadcasted, ExpansionLayout, basis, plan_transform, plan_grid_transform, grammatrix, weaklaplacian, MulPlan, InvPlan
1010
import LazyArrays: paddeddata, AbstractLazyLayout
11-
import LazyBandedMatrices: BlockBroadcastMatrix, BlockVec, BandedLazyLayouts, AbstractLazyBandedBlockBandedLayout, UpperOrLowerTriangular
11+
import LazyBandedMatrices: BlockBroadcastMatrix, BlockVec, AbstractLazyBandedBlockBandedLayout
1212
import Base: size, axes, getindex, +, -, *, /, ==, \, OneTo, oneto, replace_in_print_matrix, copy, diff, getproperty, adjoint, transpose, tail, _sum, inv, show, summary
1313
import InfiniteArrays: OneToInf
1414
import FillArrays: AbstractFill

src/arrowhead.jl

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ import BlockArrays: BlockSlice, block, blockindex, blockvec
66
import BlockBandedMatrices: subblockbandwidths, blockbandwidths, AbstractBandedBlockBandedLayout, AbstractBandedBlockBandedMatrix
77
import Base: size, axes, getindex, +, -, *, /, ==, \, OneTo, oneto, replace_in_print_matrix, copy, diff, getproperty, adjoint, transpose, tail, _sum, inv, show, summary
88
import LazyArrays: paddeddata, AbstractLazyLayout
9-
import LazyBandedMatrices: BlockBroadcastMatrix, BlockVec, BandedLazyLayouts, AbstractLazyBandedBlockBandedLayout, UpperOrLowerTriangular
10-
import LinearAlgebra: BlasInt, eigvals
9+
import LazyBandedMatrices: BlockBroadcastMatrix, BlockVec, AbstractLazyBandedBlockBandedLayout
10+
import LinearAlgebra: BlasInt, eigvals, UpperOrLowerTriangular
1111
import MatrixFactorizations: reversecholcopy
1212
import FillArrays: AbstractFill
1313
import FillArrays: SquareEye
1414
import InfiniteArrays: OneToInf
1515

16+
import LazyBandedMatrices.LazyArraysBandedMatricesExt: BandedLazyLayouts
17+
1618

1719
export BBBArrowheadMatrix
1820

@@ -186,8 +188,8 @@ end
186188

187189
function materialize!(M::MatMulVecAdd{<:ArrowheadLayouts,<:AbstractStridedLayout,<:AbstractStridedLayout})
188190
α, A, x_in, β, y_in = M.α, M.A, M.B, M.β, M.C
189-
x = PseudoBlockArray(x_in, (axes(A,2), ))
190-
y = PseudoBlockArray(y_in, (axes(A,1),))
191+
x = BlockedArray(x_in, (axes(A,2), ))
192+
y = BlockedArray(y_in, (axes(A,1),))
191193
m,n = size(A.A)
192194

193195
_fill_lmul!(β, y)
@@ -209,8 +211,8 @@ end
209211

210212
function materialize!(M::MatMulMatAdd{<:ArrowheadLayouts,<:AbstractColumnMajor,<:AbstractColumnMajor})
211213
α, A, X_in, β, Y_in = M.α, M.A, M.B, M.β, M.C
212-
X = PseudoBlockArray(X_in, (axes(A,2), axes(X_in,2)))
213-
Y = PseudoBlockArray(Y_in, (axes(A,1), axes(X_in,2)))
214+
X = BlockedArray(X_in, (axes(A,2), axes(X_in,2)))
215+
Y = BlockedArray(Y_in, (axes(A,1), axes(X_in,2)))
214216
m,n = size(A.A)
215217

216218
_fill_lmul!(β, Y)
@@ -232,8 +234,8 @@ end
232234

233235
function materialize!(M::MatMulMatAdd{<:AbstractColumnMajor,<:ArrowheadLayouts,<:AbstractColumnMajor})
234236
α, X_in, A, β, Y_in = M.α, M.A, M.B, M.β, M.C
235-
X = PseudoBlockArray(X_in, (axes(X_in,1), axes(A,1)))
236-
Y = PseudoBlockArray(Y_in, (axes(Y_in,1), axes(A,2)))
237+
X = BlockedArray(X_in, (axes(X_in,1), axes(A,1)))
238+
Y = BlockedArray(Y_in, (axes(Y_in,1), axes(A,2)))
237239
m,n = size(A.A)
238240

239241
_fill_lmul!(β, Y)
@@ -439,7 +441,7 @@ for (UNIT, Tri) in (('U',UnitUpperTriangular), ('N', UpperTriangular))
439441
N = blocksize(P,1)
440442

441443
# impose block structure
442-
b = PseudoBlockArray(dest, (axes(P,1),))
444+
b = BlockedArray(dest, (axes(P,1),))
443445
b̃_1 = view(b, Block(1))
444446

445447
for K = 1:min(N-1,length(B))
@@ -463,7 +465,7 @@ for (UNIT, Tri) in (('U',UnitLowerTriangular), ('N', LowerTriangular))
463465
m = length(D)
464466

465467
# impose block structure
466-
b = PseudoBlockArray(dest, (axes(P,1),))
468+
b = BlockedArray(dest, (axes(P,1),))
467469
b̃_1 = view(b, Block(1))
468470
ArrayLayouts.ldiv!($Tri(A), b̃_1)
469471

src/continuouspolynomial.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ _tensorsize2contblocks(M,N, Ns...) = (Vcat(N+1, Fill(N, M-2)), _tensorsize2contb
108108

109109
function *(Pl::ContinuousPolynomialTransform{T,<:Any,<:Any,Int}, X::AbstractMatrix{T}) where T
110110
dat = Pl.R * (Pl.legendretransform*X)
111-
cfs = PseudoBlockArray{T}(undef, _tensorsize2contblocks(size(X)...)...)
111+
cfs = BlockedArray{T}(undef, _tensorsize2contblocks(size(X)...)...)
112112
dims = Pl.dims
113113
@assert dims == 1
114114

@@ -157,7 +157,7 @@ function _contpolyinds2blocks(k, j)
157157
end
158158
function *(Pl::ContinuousPolynomialTransform{T}, X::AbstractArray{T,4}) where T
159159
dat = Pl.R * (Pl.legendretransform*X)
160-
cfs = PseudoBlockArray{T}(undef, _tensorsize2contblocks(size(X)...)...)
160+
cfs = BlockedArray{T}(undef, _tensorsize2contblocks(size(X)...)...)
161161
dims = Pl.dims
162162
@assert dims == (1,2)
163163

src/dirichlet.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ _tensorsize2dirichletblocks(M,N, Ns...) = (Vcat(N-1, Fill(N, M-2)), _tensorsize2
8080

8181
function *(Pl::DirichletPolynomialTransform{T,<:Any,<:Any,Int}, X::AbstractMatrix{T}) where T
8282
dat = Pl.R * (Pl.legendretransform*X)
83-
cfs = PseudoBlockArray{T}(undef, _tensorsize2dirichletblocks(size(X)...)...)
83+
cfs = BlockedArray{T}(undef, _tensorsize2dirichletblocks(size(X)...)...)
8484
dims = Pl.dims
8585
@assert dims == 1
8686

@@ -125,7 +125,7 @@ function _dirichletpolyinds2blocks(k, j)
125125
end
126126
function *(Pl::DirichletPolynomialTransform{T}, X::AbstractArray{T,4}) where T
127127
dat = Pl.R * (Pl.legendretransform*X)
128-
cfs = PseudoBlockArray{T}(undef, _tensorsize2dirichletblocks(size(X)...)...)
128+
cfs = BlockedArray{T}(undef, _tensorsize2dirichletblocks(size(X)...)...)
129129
dims = Pl.dims
130130
@assert dims == (1,2)
131131

src/piecewisepolynomial.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ end
7878
function _perm_blockvec(X::AbstractArray{T,3}, dims=1) where T
7979
@assert dims == 1
8080
X1 = _perm_blockvec(X[:,:,1])
81-
ret = PseudoBlockMatrix{T}(undef, (axes(X1,1), axes(X,3)))
81+
ret = BlockedMatrix{T}(undef, (axes(X1,1), axes(X,3)))
8282
ret[:,1] = X1
8383
for k = 2:size(X,3)
8484
ret[:,k] = _perm_blockvec(X[:,:,k])
@@ -93,7 +93,7 @@ function _perm_blockvec(X::AbstractArray{T,4}, dims=(1,2)) where T
9393
@assert dims == 1:2 || dims == (1,2)
9494
X1 = _perm_blockvec(X[:,:,1,1])
9595
X2 = _perm_blockvec(X[1,1,:,:])
96-
ret = PseudoBlockMatrix{T}(undef, (axes(X1,1), axes(X2,1)))
96+
ret = BlockedMatrix{T}(undef, (axes(X1,1), axes(X2,1)))
9797
for k = axes(X,1), j = axes(X,2), l = axes(X,3), m = axes(X,4)
9898
ret[Block(k)[j], Block(l)[m]] = X[k,j,l,m]
9999
end

test/test_arrowhead.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ import Base: oneto, OneTo
129129
x = M[KR,KR] * transform(C, exp)[KR]
130130
@time c = F \ x;
131131

132-
@test_broken c isa PseudoBlockArray # TODO: overload copy_similar in BlockArrays.jl
132+
@test_broken c isa BlockedArray # TODO: overload copy_similar in BlockArrays.jl
133133

134134
@test (C[:,KR] * c)[0.1] 1.1952730862177243
135135
end

0 commit comments

Comments
 (0)