Skip to content

Commit ac552da

Browse files
authored
update for DomainSets 0.3 (#36)
* update for DomainSets 0.3 * Update Project.toml * Update .travis.yml
1 parent d95695e commit ac552da

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ julia:
1010
matrix:
1111
allow_failures:
1212
- julia: nightly
13+
- os: osx
1314

1415
notifications:
1516
email: false

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunOrthogonalPolynomials"
22
uuid = "b70543e2-c0d9-56b8-a290-0d4d6d4de211"
3-
version = "0.3.3"
3+
version = "0.3.4"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
@@ -25,12 +25,12 @@ ApproxFunBase = "0.2, 0.3"
2525
BandedMatrices = "0.14, 0.15"
2626
BlockArrays = "0.10, 0.11, 0.12"
2727
BlockBandedMatrices = "0.6, 0.7.1, 0.8"
28-
DomainSets = "0.1, 0.2"
28+
DomainSets = "0.3"
2929
FFTW = "1.1"
3030
FastGaussQuadrature = "0.4"
3131
FastTransforms = "0.8"
3232
FillArrays = "0.8"
33-
IntervalSets = "0.3.1, 0.4"
33+
IntervalSets = "0.5"
3434
Reexport = "0.2"
3535
SpecialFunctions = "0.8, 0.9, 0.10"
3636
julia = "1.3"

src/ApproxFunOrthogonalPolynomials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import ApproxFunBase: normalize!, flipsign, FiniteRange, Fun, MatrixFun, UnsetSp
4444
domaintype, diagindshift, rangetype, weight, isapproxinteger, default_Dirichlet, scal!, dotu,
4545
components, promoterangespace, promotedomainspace,
4646
block, blockstart, blockstop, blocklengths, isblockbanded, pointscompatible, affine_setdiff, complexroots,
47-
ℓ⁰, recα, recβ, recγ, ∞
47+
ℓ⁰, recα, recβ, recγ, ∞, RectDomain
4848

4949
import DomainSets: Domain, indomain, UnionDomain, ProductDomain, FullSpace, Point, elements, DifferenceDomain,
5050
Interval, ChebyshevInterval, boundary, ∂, rightendpoint, leftendpoint,

src/Spaces/Ultraspherical/ContinuousSpace.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ const TensorChebyshevDirichlet = TensorSpace{<:Tuple{<:ChebyshevDirichlet{1,1,<:
235235

236236
Dirichlet(S::TensorChebyshevDirichlet,k) = k == 0 ? ConcreteDirichlet(S,0) : tensor_Dirichlet(S,k)
237237

238-
Dirichlet(d::ProductDomain{<:Tuple{<:IntervalOrSegment,<:IntervalOrSegment}}) =
238+
Dirichlet(d::RectDomain) =
239239
Dirichlet(ChebyshevDirichlet{1,1}(factor(d,1))*ChebyshevDirichlet{1,1}(factor(d,2)))
240240

241241
isblockbanded(::Dirichlet{<:TensorChebyshevDirichlet}) = true

test/MultivariateTest.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using ApproxFunBase, ApproxFunOrthogonalPolynomials, LinearAlgebra, SpecialFunct
22
import ApproxFunBase: testbandedblockbandedoperator, testraggedbelowoperator, factor, Block, cfstype,
33
blocklengths, block, tensorizer, Vec, ArraySpace, ∞,
44
testblockbandedoperator
5-
import ApproxFunOrthogonalPolynomials: chebyshevtransform
5+
import ApproxFunOrthogonalPolynomials: chebyshevtransform
66

77
@testset "Multivariate" begin
88
@testset "Square" begin
@@ -194,20 +194,19 @@ import ApproxFunOrthogonalPolynomials: chebyshevtransform
194194
@test x(0.1,0.2) 0.1
195195
@test y(0.1,0.2) 0.2
196196

197+
@test (d) isa PiecewiseSegment
197198
x,y = Fun((d))
198199
x,y = components(x),components(y)
199-
200-
g = [real(exp(x[1]-1im));0.0y[2];real(exp(x[3]+1im));real(exp(-1+1im*y[4]))]
200+
@test (x[1]-1im)(0.1,-1.0) 0.1-im
201+
g = [real(exp(x[1]-1im)); 0.0y[2]; real(exp(x[3]+1im)); real(exp(-1+1im*y[4]))]
201202
B = [ Operator(I,dx)ldirichlet(dy);
202203
ldirichlet(dx)Operator(I,dy);
203204
Operator(I,dx)rdirichlet(dy);
204205
rneumann(dx)Operator(I,dy) ]
205206

206-
207207
@test Fun(g[1],rangespace(B)[1])(-0.1,-1.0) g[1](-0.1,-1.0)
208208
@test Fun(g[3],rangespace(B)[3])(-0.1,1.0) g[3](-0.1,1.0)
209209

210-
211210
A = [B; Laplacian()]
212211

213212
@test cfstype([g;0.0]) == Float64

0 commit comments

Comments
 (0)