Skip to content

Commit 6e0f34e

Browse files
committed
upgrade AFB to v0.8
1 parent 7d8782a commit 6e0f34e

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

Project.toml

Lines changed: 2 additions & 2 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.6.13"
3+
version = "0.6.14"
44

55
[deps]
66
ApproxFunBase = "fbd15aa5-315a-5a7d-a8a4-24992e37be05"
@@ -20,7 +20,7 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
2020
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
2121

2222
[compat]
23-
ApproxFunBase = "0.7.71"
23+
ApproxFunBase = "0.8"
2424
ApproxFunBaseTest = "0.1"
2525
Aqua = "0.5"
2626
BandedMatrices = "0.16, 0.17"

src/Spaces/Jacobi/JacobiOperators.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Derivative(J::Jacobi) = ConcreteDerivative(J,1)
99
else
1010
d = domain(J)
1111
v = [ConcreteDerivative(Jacobi(J.b+i-1, J.a+i-1, d)) for i in k:-1:1]
12-
DerivativeWrapper(TimesOperator(v), J, k)
12+
DerivativeWrapper(TimesOperator(v), k, J)
1313
end
1414
end
1515
@static if VERSION >= v"1.8"
@@ -49,14 +49,14 @@ function Integral(J::Jacobi,k::Number)
4949
@assert k > 0 "order of integral must be > 0"
5050
if k > 1
5151
Q=Integral(J,1)
52-
IntegralWrapper(TimesOperator(Integral(rangespace(Q),k-1),Q),J,k)
52+
IntegralWrapper(TimesOperator(Integral(rangespace(Q),k-1),Q),k,J)
5353
elseif J.a > 0 && J.b > 0 # we have a simple definition
5454
ConcreteIntegral(J,1)
5555
else # convert and then integrate
5656
sp=Jacobi(J.b+1,J.a+1,domain(J))
5757
C=Conversion(J,sp)
5858
Q=Integral(sp,1)
59-
IntegralWrapper(TimesOperator(Q,C),J,1)
59+
IntegralWrapper(TimesOperator(Q,C),1,J)
6060
end
6161
end
6262

src/Spaces/PolynomialSpace.jl

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,8 @@ hasconversion(a::NormalizedPolynomialSpace,b::PolynomialSpace) = hasconversion(a
531531
hasconversion(a::NormalizedPolynomialSpace,b::NormalizedPolynomialSpace) = hasconversion(a.space,b)
532532

533533
function isdiag(D::DerivativeWrapper{<:Operator, <:NormalizedPolynomialSpace})
534-
sp = D.space
535-
csp = _stripnorm(sp)
534+
sp = domainspace(D)
535+
csp = canonicalspace(sp)
536536
isdiag(Derivative(csp, D.order))
537537
end
538538

@@ -572,10 +572,5 @@ function Multiplication(f::Fun{<:NormalizedPolynomialSpace}, sp::NormalizedPolyn
572572
Multiplication(fc, sp)
573573
end
574574

575-
function Derivative(sp::NormalizedPolynomialSpace, k::Number)
576-
assert_integer(k)
577-
csp=canonicalspace(sp)
578-
D = Derivative(csp,k)
579-
C = ConcreteConversion(sp,csp)
580-
DerivativeWrapper(TimesOperator(D, C), sp, k)
581-
end
575+
ApproxFunBase.hasconcreteconversion_canonical(
576+
@nospecialize(::NormalizedPolynomialSpace), @nospecialize(_)) = true

0 commit comments

Comments
 (0)