Skip to content

Commit db0d21b

Browse files
github-actions[bot]CompatHelper Juliadlfivefifty
authored
CompatHelper: bump compat for QuasiArrays to 0.10, (keep existing compat) (#152)
* CompatHelper: bump compat for QuasiArrays to 0.10, (keep existing compat) * Update Project.toml * Update ci.yml * Update Project.toml * Require ArrayLayout v1.0.9 so multiplication doesn't take forever * Drop old Julia versoins * Update Project.toml * add coverage * Update test_rect.jl * Update Project.toml * Update Project.toml --------- Co-authored-by: CompatHelper Julia <[email protected]> Co-authored-by: Sheehan Olver <[email protected]>
1 parent 02b1216 commit db0d21b

File tree

11 files changed

+56
-25
lines changed

11 files changed

+56
-25
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: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "MultivariateOrthogonalPolynomials"
22
uuid = "4f6956fd-4f93-5457-9149-7bfc4b2ce06d"
3-
version = "0.4.3"
3+
version = "0.5"
44

55
[deps]
66
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
@@ -24,29 +24,30 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
2424
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2525

2626
[compat]
27-
ArrayLayouts = "0.8.6, 1"
28-
BandedMatrices = "0.17"
27+
ArrayLayouts = "1.0.9"
28+
BandedMatrices = "0.17.30"
2929
BlockArrays = "0.16.14"
30-
BlockBandedMatrices = "0.11.5, 0.12"
31-
ClassicalOrthogonalPolynomials = "0.7, 0.8"
32-
ContinuumArrays = "0.12"
33-
DomainSets = "0.5, 0.6"
30+
BlockBandedMatrices = "0.12"
31+
ClassicalOrthogonalPolynomials = "0.10"
32+
ContinuumArrays = "0.13"
33+
DomainSets = "0.6"
3434
FastTransforms = "0.15"
35-
FillArrays = "0.13, 1"
35+
FillArrays = "1.0"
3636
HarmonicOrthogonalPolynomials = "0.4"
3737
InfiniteArrays = "0.12"
3838
InfiniteLinearAlgebra = "0.6.6"
39-
LazyArrays = "0.22.10, 1"
39+
LazyArrays = "1.0"
4040
LazyBandedMatrices = "0.8.4"
41-
QuasiArrays = "0.9"
41+
QuasiArrays = "0.10"
4242
SpecialFunctions = "1, 2"
4343
StaticArrays = "1"
44-
julia = "1.7"
44+
julia = "1.9"
4545

4646
[extras]
47+
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
4748
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
4849
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
4950
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
5051

5152
[targets]
52-
test = ["ForwardDiff", "RecipesBase", "Test"]
53+
test = ["Base64", "ForwardDiff", "RecipesBase", "Test"]

src/MultivariateOrthogonalPolynomials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ using ClassicalOrthogonalPolynomials, FastTransforms, BlockBandedMatrices, Block
66
LazyArrays, SpecialFunctions, LinearAlgebra, BandedMatrices, LazyBandedMatrices, ArrayLayouts,
77
HarmonicOrthogonalPolynomials
88

9-
import Base: axes, in, ==, *, ^, \, copy, copyto!, OneTo, getindex, size, oneto, all, resize!, BroadcastStyle, similar, fill!, setindex!, convert
9+
import Base: axes, in, ==, *, ^, \, copy, copyto!, OneTo, getindex, size, oneto, all, resize!, BroadcastStyle, similar, fill!, setindex!, convert, show, summary
1010
import Base.Broadcast: Broadcasted, broadcasted, DefaultArrayStyle
1111
import DomainSets: boundary
1212

src/disk.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ axes(P::Zernike{T}) where T = (Inclusion(UnitDisk{T}()),blockedrange(oneto(∞))
6363

6464
copy(A::Zernike) = A
6565

66-
Base.summary(io::IO, P::Zernike) = print(io, "Zernike($(P.a), $(P.b))")
66+
show(io::IO, P::Zernike) = summary(io, P)
67+
summary(io::IO, P::Zernike) = print(io, "Zernike($(P.a), $(P.b))")
6768

6869
orthogonalityweight(Z::Zernike) = ZernikeWeight(Z.a, Z.b)
6970

src/rect.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,17 @@ KronPolynomial{d,T}(a::AbstractVector) where {d,T} = KronPolynomial{d,T,typeof(a
99
KronPolynomial{d}(a::AbstractVector) where d = KronPolynomial{d,eltype(eltype(a))}(a)
1010
KronPolynomial(a::AbstractVector) = KronPolynomial{length(a)}(a)
1111

12+
function show(io::IO, P::KronPolynomial)
13+
for k = 1:length(P.args)
14+
print(io, "$(P.args[k])")
15+
k  length(P.args) && print(io, "")
16+
end
17+
end
18+
1219
const RectPolynomial{T, PP} = KronPolynomial{2, T, PP}
1320

1421

22+
1523
axes(P::KronPolynomial) = (Inclusion(×(map(domain, axes.(P.args, 1))...)), _krontrav_axes(axes.(P.args, 2)...))
1624
function getindex(P::RectPolynomial{T}, xy::StaticVector{2}, Jj::BlockIndex{1})::T where T
1725
a,b = P.args

src/rectdisk.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ DunklXuDisk() = DunklXuDisk(0)
1515
axes(P::DunklXuDisk{T}) where T = (Inclusion(UnitDisk{T}()),blockedrange(oneto(∞)))
1616

1717
copy(A::DunklXuDisk) = A
18-
19-
Base.summary(io::IO, P::DunklXuDisk) = print(io, "DunklXuDisk($(P.β))")
18+
show(io::IO, P::DunklXuDisk) = summary(io, P)
19+
summary(io::IO, P::DunklXuDisk) = print(io, "DunklXuDisk($(P.β))")
2020

2121

2222
"""
@@ -32,7 +32,8 @@ DunklXuDiskWeight(β::T) where T = DunklXuDiskWeight{float(T),T}(β)
3232

3333
axes(P::DunklXuDiskWeight{T}) where T = (Inclusion(UnitDisk{T}()),)
3434

35-
Base.summary(io::IO, P::DunklXuDiskWeight) = print(io, "(1-x^2-y^2)^$(P.β) on the unit disk")
35+
show(io::IO, P::DunklXuDiskWeight) = summary(io, P)
36+
summary(io::IO, P::DunklXuDiskWeight) = print(io, "(1-x^2-y^2)^$(P.β) on the unit disk")
3637

3738
const WeightedDunklXuDisk{T} = WeightedBasis{T,<:DunklXuDiskWeight,<:DunklXuDisk}
3839

src/triangle.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ axes(P::JacobiTriangle{T}) where T = (Inclusion(UnitTriangle{T}()),blockedrange(
2323

2424
copy(A::JacobiTriangle) = A
2525

26-
Base.summary(io::IO, P::JacobiTriangle) = print(io, "JacobiTriangle($(P.a), $(P.b), $(P.c))")
26+
show(io::IO, P::JacobiTriangle) = summary(io, P)
27+
summary(io::IO, P::JacobiTriangle) = print(io, "JacobiTriangle($(P.a), $(P.b), $(P.c))")
2728

2829

2930
"""
@@ -71,7 +72,8 @@ end
7172

7273
==(wB::WeightedTriangle, w_A::WeightedBasis{<:Any,<:TriangleWeight,<:JacobiTriangle}) = w_A == wB
7374

74-
Base.summary(io::IO, P::TriangleWeight) = print(io, "x^$(P.a)*y^$(P.b)*(1-x-y)^$(P.c) on the unit triangle")
75+
show(io::IO, P::TriangleWeight) = summary(io, P)
76+
summary(io::IO, P::TriangleWeight) = print(io, "x^$(P.a)*y^$(P.b)*(1-x-y)^$(P.c) on the unit triangle")
7577

7678
orthogonalityweight(P::JacobiTriangle) = TriangleWeight(P.a, P.b, P.c)
7779

test/test_disk.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using MultivariateOrthogonalPolynomials, ClassicalOrthogonalPolynomials, StaticArrays, BlockArrays, BandedMatrices, FastTransforms, LinearAlgebra, RecipesBase, Test, SpecialFunctions, LazyArrays, InfiniteArrays
1+
using MultivariateOrthogonalPolynomials, ClassicalOrthogonalPolynomials, StaticArrays, BlockArrays, BandedMatrices, FastTransforms, LinearAlgebra, Test, SpecialFunctions, LazyArrays, InfiniteArrays, Base64
2+
using RecipesBase
23
import MultivariateOrthogonalPolynomials: ModalTrav, grid, ZernikeTransform, ZernikeITransform, *, ModalInterlace
34
import ClassicalOrthogonalPolynomials: HalfWeighted, expand
45
import ForwardDiff: hessian
@@ -566,4 +567,8 @@ end
566567
@test sum(expand(P, 𝐱 -> 1)) π
567568
@test sum(expand(P, 𝐱 -> ((x,y) = 𝐱; exp(x*cos(y))))) 3.4898933353782744
568569
end
570+
571+
@testset "Show" begin
572+
@test stringmime("text/plain", Zernike()) == "Zernike(0.0, 0.0)"
573+
end
569574
end

test/test_rect.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using MultivariateOrthogonalPolynomials, ClassicalOrthogonalPolynomials, StaticArrays, LinearAlgebra, BlockArrays, FillArrays, Test
1+
using MultivariateOrthogonalPolynomials, ClassicalOrthogonalPolynomials, StaticArrays, LinearAlgebra, BlockArrays, FillArrays, Base64, Test
22
import ClassicalOrthogonalPolynomials: expand
33

44
@testset "RectPolynomial" begin
@@ -91,4 +91,9 @@ import ClassicalOrthogonalPolynomials: expand
9191

9292
@test (P²[:,Block.(1:100)] \ f) f.args[2][Block.(1:100)]
9393
end
94+
95+
@testset "Show" begin
96+
@test stringmime("text/plain", KronPolynomial(Legendre(), Chebyshev())) == "Legendre() ⊗ ChebyshevT()"
97+
@test stringmime("text/plain", KronPolynomial(Legendre(), Chebyshev(), Jacobi(1,1))) == "Legendre() ⊗ ChebyshevT() ⊗ Jacobi(1.0, 1.0)"
98+
end
9499
end

test/test_rectdisk.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using MultivariateOrthogonalPolynomials, StaticArrays, BlockArrays, BlockBandedMatrices, ArrayLayouts,
1+
using MultivariateOrthogonalPolynomials, StaticArrays, BlockArrays, BlockBandedMatrices, ArrayLayouts, Base64,
22
QuasiArrays, Test, ClassicalOrthogonalPolynomials, BandedMatrices, FastTransforms, LinearAlgebra
33
import MultivariateOrthogonalPolynomials: dunklxu_raising, dunklxu_lowering, AngularMomentum
44

@@ -81,4 +81,9 @@ import MultivariateOrthogonalPolynomials: dunklxu_raising, dunklxu_lowering, Ang
8181
@test Dy[KR,JR] isa BandedBlockBandedMatrix
8282
end
8383
end
84+
85+
@testset "show" begin
86+
@test stringmime("text/plain", DunklXuDisk()) == "DunklXuDisk(0)"
87+
@test stringmime("text/plain", DunklXuDiskWeight(0)) == "(1-x^2-y^2)^0 on the unit disk"
88+
end
8489
end

test/test_triangle.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,4 +451,9 @@ import MultivariateOrthogonalPolynomials: tri_forwardrecurrence, grid, TriangleR
451451
C =\ (L * P)
452452
@test C[1:10,1:10] A[1:10,1:10] - B[1:10,1:10]
453453
end
454+
455+
@testset "show" begin
456+
@test stringmime("text/plain", JacobiTriangle()) == "JacobiTriangle(0, 0, 0)"
457+
@test stringmime("text/plain", TriangleWeight(1,2,3)) == "x^1*y^2*(1-x-y)^3 on the unit triangle"
458+
end
454459
end

0 commit comments

Comments
 (0)