Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "ApproxFunOrthogonalPolynomials"
uuid = "b70543e2-c0d9-56b8-a290-0d4d6d4de211"
version = "0.6.63"
version = "0.6.64"

[deps]
ApproxFunBase = "fbd15aa5-315a-5a7d-a8a4-24992e37be05"
Expand Down Expand Up @@ -30,12 +30,12 @@ ApproxFunOrthogonalPolynomialsPolynomialsExt = "Polynomials"
ApproxFunOrthogonalPolynomialsStaticExt = "Static"

[compat]
ApproxFunBase = "0.8.67, 0.9.28"
ApproxFunBase = "0.9.35"
Aqua = "0.8"
BandedMatrices = "0.16, 0.17, 1"
BlockArrays = "0.14, 0.15, 0.16, 1"
BlockBandedMatrices = "0.10, 0.11, 0.12, 0.13"
DomainSets = "0.5, 0.6, 0.7"
DomainSets = "0.5, 0.6, 0.7, 0.8"
DualNumbers = "0.6.2"
FastGaussQuadrature = "0.4, 0.5, 1"
FastTransforms = "0.12, 0.13, 0.14, 0.15.1, 0.16, 0.17"
Expand Down
10 changes: 5 additions & 5 deletions test/MultivariateTest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using LinearAlgebra
using SpecialFunctions
using BlockBandedMatrices
using Test
using ApproxFunBase: factor, Block, cfstype, blocklengths, block, tensorizer, ArraySpace, ∞
using ApproxFunBase: factor, Block, cfstype, blocklengths, block, tensorizer, ArraySpace, ∞, cartesianproduct
using ApproxFunBase.TestUtils: testbandedblockbandedoperator, testraggedbelowoperator,
testblockbandedoperator
using ApproxFunOrthogonalPolynomials: chebyshevtransform
Expand Down Expand Up @@ -339,7 +339,7 @@ include("testutils.jl")

@testset "conversion between" begin
dx = dy = ChebyshevInterval()
d = dx × dy
d = cartesianproduct(dx, dy)
x,y=Fun(d)
@test x(0.1,0.2) ≈ 0.1
@test y(0.1,0.2) ≈ 0.2
Expand Down Expand Up @@ -421,7 +421,7 @@ include("testutils.jl")

@testset "Dirichlet" begin
testblockbandedoperator(@inferred Dirichlet((0..1)^2))
testblockbandedoperator(@inferred Dirichlet((0..1) × (0.0 .. 1)))
testblockbandedoperator(@inferred Dirichlet(cartesianproduct(0..1, 0.0 .. 1)))
testraggedbelowoperator(Dirichlet(Chebyshev()^2))
testraggedbelowoperator(Dirichlet(Chebyshev(0..1) * Chebyshev(0.0..1)))
end
Expand Down Expand Up @@ -576,13 +576,13 @@ include("testutils.jl")
@testset "inference in TensorSpace" begin
s = @inferred TensorSpace((Chebyshev(0..1), Chebyshev(0.0..2.0)))
d = @inferred domain(s)
@test d == (0..1) × (0.0..2.0)
@test d == cartesianproduct(0..1, 0.0..2.0)
f = Fun((x,y)->x^2*y^3, s)
@test f(0.1, 0.2) ≈ 0.1^2 * 0.2^3

s2 = TensorSpace((Chebyshev(0..1), Chebyshev(0.0..2.0), Chebyshev(0..2)))
d2 = @inferred domain(s2)
@test d2 == (0..1) × (0.0..2.0) × (0..2)
@test d2 == cartesianproduct(0..1, 0.0..2.0, 0..2)
end
end

Expand Down
18 changes: 9 additions & 9 deletions test/PDETest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ using ApproxFunOrthogonalPolynomials
using DomainSets: setdiffdomain
using LinearAlgebra
using Test
using ApproxFunBase: Block, ldiv_coefficients
using ApproxFunBase: Block, ldiv_coefficients, cartesianproduct
using ApproxFunBase.TestUtils: testbandedblockbandedoperator, testblockbandedoperator, testraggedbelowoperator

include("testutils.jl")

@verbose @testset "PDE" begin
@testset "Rectangle Laplace/Poisson" begin
dx = dy = ChebyshevInterval()
d = dx × dy
d = cartesianproduct(dx, dy)
g = Fun((x,y)->exp(x)*cos(y),∂(d))

B = Dirichlet(d)
Expand Down Expand Up @@ -42,7 +42,7 @@ include("testutils.jl")

@testset "Bilaplacian" begin
dx = dy = ChebyshevInterval()
d = dx × dy
d = cartesianproduct(dx, dy)
Dx = Derivative(dx); Dy = Derivative(dy)
L = Dx^4⊗I + 2*Dx^2⊗Dy^2 + I⊗Dy^4

Expand All @@ -69,7 +69,7 @@ include("testutils.jl")
testbandedblockbandedoperator(C)
testbandedblockbandedoperator(Operator{ComplexF64}(C))

d = dx × dt
d = cartesianproduct(dx, dt)

x,y = Fun(d)
@test x(0.1,0.0001) ≈ 0.1
Expand Down Expand Up @@ -97,7 +97,7 @@ include("testutils.jl")

@testset "Transport" begin
dx=ChebyshevInterval(); dt=Interval(0,2.)
d=dx × dt
d = cartesianproduct(dx, dt)
Dx=Derivative(d,[1,0]);Dt=Derivative(d,[0,1])
x,y=Fun(identity,d)
@time u=\([I⊗ldirichlet(dt);Dt+x*Dx],[Fun(x->exp(-20x^2),dx);0.];tolerance=1E-12)
Expand All @@ -107,7 +107,7 @@ include("testutils.jl")

@testset "Bilaplacian" begin
dx=dy=ChebyshevInterval()
d=dx × dy
d = cartesianproduct(dx, dy)
Dx=Derivative(dx);Dy=Derivative(dy)
L=Dx^4⊗I+2*Dx^2⊗Dy^2+I⊗Dy^4

Expand Down Expand Up @@ -146,7 +146,7 @@ include("testutils.jl")
@test u(0.1,0.2) ≈ exp(0.1)*cos(0.2)

dx=dy=ChebyshevInterval()
d=dx×dy
d = cartesianproduct(dx, dy)
Dx=Derivative(dx);Dy=Derivative(dy)
L=Dx^4⊗I+2*Dx^2⊗Dy^2+I⊗Dy^4

Expand Down Expand Up @@ -256,9 +256,9 @@ include("testutils.jl")

@testset "Small diffusion" begin
dx=ChebyshevInterval();dt=Interval(0,0.2)
d=dx×dt
d = cartesianproduct(dx, dt)
Dx=Derivative(d,[1,0]);Dt=Derivative(d,[0,1])
x,t=Fun(dx×dt)
x,t=Fun(cartesianproduct(dx, dt))

B=0.0
C=0.0
Expand Down
Loading