Skip to content

Commit a967da1

Browse files
committed
sum_layout
1 parent c79641a commit a967da1

File tree

6 files changed

+15
-17
lines changed

6 files changed

+15
-17
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
version:
13-
- '1.7'
14-
- '1'
15-
- '^1.9.0-0'
13+
- '1.9'
1614
os:
1715
- ubuntu-latest
1816
- macOS-latest

Project.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ClassicalOrthogonalPolynomials"
22
uuid = "b30e2e7b-c4ee-47da-9d5f-2c5c27239acd"
33
authors = ["Sheehan Olver <[email protected]>"]
4-
version = "0.8.2"
4+
version = "0.9"
55

66
[deps]
77
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
@@ -30,20 +30,20 @@ BandedMatrices = "0.17.17"
3030
BlockArrays = "0.16.9"
3131
BlockBandedMatrices = "0.12"
3232
ContinuumArrays = "0.13"
33-
DomainSets = "0.5.6, 0.6"
33+
DomainSets = "0.6"
3434
FFTW = "1.1"
35-
FastGaussQuadrature = "0.4.3, 0.5"
35+
FastGaussQuadrature = "0.5"
3636
FastTransforms = "0.15.2"
3737
FillArrays = "1"
3838
HypergeometricFunctions = "0.3.4"
3939
InfiniteArrays = "0.12.11"
4040
InfiniteLinearAlgebra = "0.6.16"
41-
IntervalSets = "0.5, 0.6, 0.7"
41+
IntervalSets = "0.7"
4242
LazyArrays = "1.0.1"
4343
LazyBandedMatrices = "0.8.5"
4444
QuasiArrays = "0.10"
4545
SpecialFunctions = "1.0, 2"
46-
julia = "1.7"
46+
julia = "1.9"
4747

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

src/ClassicalOrthogonalPolynomials.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ import QuasiArrays: cardinality, checkindex, QuasiAdjoint, QuasiTranspose, Inclu
3434

3535
import InfiniteArrays: OneToInf, InfAxes, Infinity, AbstractInfUnitRange, InfiniteCardinal, InfRanges
3636
import InfiniteLinearAlgebra: chop!, chop, pad, choplength, compatible_resize!
37-
import ContinuumArrays: Basis, Weight, basis, @simplify, Identity, AbstractAffineQuasiVector, ProjectionFactorization,
37+
import ContinuumArrays: Basis, Weight, basis_axes, @simplify, Identity, AbstractAffineQuasiVector, ProjectionFactorization,
3838
grid, plotgrid, _plotgrid, _grid, transform_ldiv, TransformFactorization, QInfAxes, broadcastbasis, ExpansionLayout, basismap,
3939
AffineQuasiVector, AffineMap, WeightLayout, AbstractWeightedBasisLayout, WeightedBasisLayout, WeightedBasisLayouts, demap, AbstractBasisLayout, BasisLayout,
40-
checkpoints, weight, unweighted, MappedBasisLayouts, __sum, invmap, plan_ldiv, layout_broadcasted, MappedBasisLayout, SubBasisLayout, _broadcastbasis,
40+
checkpoints, weight, unweighted, MappedBasisLayouts, sum_layout, invmap, plan_ldiv, layout_broadcasted, MappedBasisLayout, SubBasisLayout, _broadcastbasis,
4141
plan_transform, plan_grid_transform, MAX_PLOT_POINTS, MulPlan
4242
import FastTransforms: Λ, forwardrecurrence, forwardrecurrence!, _forwardrecurrence!, clenshaw, clenshaw!,
4343
_forwardrecurrence_next, _clenshaw_next, check_clenshaw_recurrences, ChebyshevGrid, chebyshevpoints, Plan, ScaledPlan, th_cheb2leg
@@ -94,7 +94,7 @@ _equals(::MappedBasisLayouts, ::MappedOPLayout, P, Q) = demap(P) == demap(Q) &&
9494
_broadcastbasis(::typeof(+), ::MappedOPLayout, ::MappedOPLayout, P, Q) = _broadcastbasis(+, MappedBasisLayout(), MappedBasisLayout(), P, Q)
9595
_broadcastbasis(::typeof(+), ::MappedOPLayout, M::MappedBasisLayout, P, Q) = _broadcastbasis(+, MappedBasisLayout(), M, P, Q)
9696
_broadcastbasis(::typeof(+), L::MappedBasisLayout, ::MappedOPLayout, P, Q) = _broadcastbasis(+, L, MappedBasisLayout(), P, Q)
97-
__sum(::MappedOPLayout, A, dims) = __sum(MappedBasisLayout(), A, dims)
97+
sum_layout(::MappedOPLayout, A, dims) = sum_layout(MappedBasisLayout(), A, dims)
9898

9999
# demap to avoid Golub-Welsch fallback
100100
ContinuumArrays.transform_ldiv_if_columns(L::Ldiv{MappedOPLayout,Lay}, ax::OneTo) where Lay = ContinuumArrays.transform_ldiv_if_columns(Ldiv{MappedBasisLayout,Lay}(L.A,L.B), ax)
@@ -170,7 +170,7 @@ singularities(::ExpansionLayout, f) = singularities(basis(f))
170170
singularitiesview(w, ::Inclusion) = w # for now just assume it doesn't change
171171
singularities(S::SubQuasiArray) = singularitiesview(singularities(parent(S)), parentindices(S)[1])
172172

173-
basis(lay, v, ax::Inclusion{<:Any,<:AbstractInterval}) = _basis(singularities(v))
173+
basis_axes(::Inclusion{<:Any,<:AbstractInterval}, v) = basis_singularities(singularities(v))
174174

175175
struct NoSingularities end
176176

src/classical/jacobi.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jacobi(a,b, d::AbstractInterval{T}) where T = Jacobi{float(promote_type(eltype(a
8383

8484
Jacobi(P::Legendre{T}) where T = Jacobi(zero(T), zero(T))
8585

86-
_basis(w::JacobiWeight) = Weighted(Jacobi(w.a, w.b))
86+
basis_singularities(w::JacobiWeight) = Weighted(Jacobi(w.a, w.b))
8787

8888
"""
8989
jacobip(n, a, b, z)

src/classical/legendre.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ singularities(::Inclusion{T,<:ChebyshevInterval}) where T = LegendreWeight{T}()
3939
singularities(d::Inclusion{T,<:AbstractInterval}) where T = LegendreWeight{T}()[affine(d,ChebyshevInterval{T}())]
4040
singularities(::AbstractFillLayout, P) = LegendreWeight{eltype(P)}()
4141

42-
_basis(::LegendreWeight{T}) where T = Legendre{T}()
43-
_basis(v::SubQuasiArray) = view(_basis(parent(v)), parentindices(v)[1], :)
42+
basis_singularities(::LegendreWeight{T}) where T = Legendre{T}()
43+
basis_singularities(v::SubQuasiArray) = view(basis_singularities(parent(v)), parentindices(v)[1], :)
4444

4545
struct Legendre{T} <: AbstractJacobi{T} end
4646
Legendre() = Legendre{Float64}()

src/normalized.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ mul(Ac::QuasiAdjoint{<:Any, Weighted{<:Any,<:SubQuasiArray{<:Any,2,<:AbstractQua
300300

301301
show(io::IO, Q::Weighted) = print(io, "Weighted($(Q.P))")
302302

303-
__sum(::AbstractNormalizedOPLayout, A, dims) = __sum(ApplyLayout{typeof(*)}(), A, dims)
304-
function __sum(::WeightedOPLayout, A, dims)
303+
sum_layout(::AbstractNormalizedOPLayout, A, dims) = sum_layout(ApplyLayout{typeof(*)}(), A, dims)
304+
function sum_layout(::WeightedOPLayout, A, dims)
305305
@assert dims == 1
306306
Hcat(sum(weight(A)), Zeros{eltype(A)}(1,∞))
307307
end

0 commit comments

Comments
 (0)