Skip to content

Commit 39b1cbd

Browse files
authored
Ensure special evaluation is at leftendpoint/rightendpoint (#60)
* Ensure special evaluation is at leftendpoint/rightendpoint * compat cutoff on ApproxFunBase * import isrightendpoint
1 parent ff856b0 commit 39b1cbd

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunSingularities"
22
uuid = "f8fcb915-6b99-5be2-b79a-d6dbef8e6e7e"
3-
version = "0.3.8"
3+
version = "0.3.9"
44

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

1515
[compat]
16-
ApproxFunBase = "0.7.43, 0.8"
16+
ApproxFunBase = "0.8.16"
1717
ApproxFunBaseTest = "0.1"
1818
ApproxFunOrthogonalPolynomials = "0.2.3, 0.3, 0.4, 0.5, 0.6"
1919
Aqua = "0.5"

src/ApproxFunSingularities.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import ApproxFunBase: Fun, SumSpace, SubSpace, WeightSpace, NoSpace,
2525
coefficients, isconvertible, SpaceOperator, cfstype, mobius, roots,
2626
splitatroots, domaintype, rangetype, weight, isapproxinteger,
2727
dotu, components, promoterangespace, ∞, gamma,
28-
assert_integer, SpecialEvalPtType, isleftendpoint, evaluation_point
28+
assert_integer, SpecialEvalPtType, isleftendpoint, isrightendpoint, evaluation_point
2929

3030
import ApproxFunOrthogonalPolynomials: order
3131

src/JacobiWeightOperators.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,13 @@ defaultConversion(A::JacobiWeight{<:Any,<:IntervalOrSegmentDomain},
339339
## Evaluation
340340

341341
function getindex(op::ConcreteEvaluation{<:JacobiWeight,<:SpecialEvalPtType}, kr::AbstractRange)
342-
if isleftendpoint(evaluation_point(op))
342+
x = evaluation_point(op)
343+
if isleftendpoint(x)
343344
_getindex_eval_leftendpoint(op, kr)
344-
else
345+
elseif isrightendpoint(x)
345346
_getindex_eval_rightendpoint(op, kr)
347+
else
348+
throw(ArgumentError("Evaluation is supported only at the leftendpoint/rightendpoint of the domain"))
346349
end
347350
end
348351

0 commit comments

Comments
 (0)