Skip to content

Commit 0639bb8

Browse files
committed
fix evaluartion
1 parent f44636b commit 0639bb8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/triangle.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ getindex(P::JacobiTriangle, xy::SVector{2}, JR::BlockOneTo) =
569569
# Clenshaw
570570
###
571571

572-
function getindex(f::ApplyVector{T,typeof(*),<:Tuple{JacobiTriangle,AbstractVector}}, xy::SVector{2}) where T
572+
function getindex(f::ApplyQuasiVector{T,typeof(*),<:Tuple{JacobiTriangle,AbstractVector}}, xy::SVector{2})::T where T
573573
P,c∞ = arguments(f)
574574
c = paddeddata(c∞)
575575
N = blocksize(c,1)
@@ -605,7 +605,7 @@ function getindex(f::ApplyVector{T,typeof(*),<:Tuple{JacobiTriangle,AbstractVect
605605
γ1[1]
606606
end
607607

608-
getindex(f::ApplyVector{T,typeof(*),<:Tuple{JacobiTriangle,AbstractVector}}, xys::AbstractArray{<:SVector{2}}) where T =
608+
getindex(f::ApplyQuasiVector{T,typeof(*),<:Tuple{JacobiTriangle,AbstractVector}}, xys::AbstractArray{<:SVector{2}}) where T =
609609
[f[xy] for xy in xys]
610610

611611
# getindex(f::Expansion{T,<:JacobiTriangle}, x::AbstractVector{<:Number}) where T =

test/test_triangle.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ import MultivariateOrthogonalPolynomials: tri_forwardrecurrence, grid, TriangleR
5252
xy = SVector(0.1,0.2)
5353
c = PseudoBlockVector([1; Zeros(∞)], (axes(P,2),))
5454
f = P*c
55-
@test f[xy] == 1.0
55+
@test @inferred(f[xy]) == 1.0
5656
c = PseudoBlockVector([1:3; Zeros(∞)], (axes(P,2),))
5757
f = P*c
5858
@test f[xy] P[xy,1:3]'*(1:3)

0 commit comments

Comments
 (0)