Skip to content

Commit a48f495

Browse files
authored
Fix indexing ConcreteEvaluation with AbstractRange (#488)
* fix indexing ConcreteEvaluation with AbstractRange * version bump to v0.8.36
1 parent 6f0cf81 commit a48f495

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunBase"
22
uuid = "fbd15aa5-315a-5a7d-a8a4-24992e37be05"
3-
version = "0.8.35"
3+
version = "0.8.36"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

src/Operators/functionals/Evaluation.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ function getindex(D::ConcreteEvaluation,k::Integer)
8787
strictconvert(eltype(D), v)
8888
end
8989

90+
getindex(D::ConcreteEvaluation, r::AbstractRange) = [D[j] for j in r]
91+
9092
boundaryfn(x::typeof(rightendpoint)) = x
9193
boundaryfn(x::typeof(leftendpoint)) = x
9294
boundaryfn(x::Boundary) = isleftendpoint(x) ? leftendpoint : rightendpoint

0 commit comments

Comments
 (0)