Skip to content

Commit 154eeba

Browse files
authored
AbstractVectors in WeightSpacePlan points (#392)
1 parent bd77b87 commit 154eeba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Spaces/Spaces.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,18 @@ points(sp::WeightSpace,n) = points(sp.space,n)
144144
weight(S::WeightSpace, x...) = error("Override `weight(::$S, $x)`")
145145

146146

147-
struct WeightSpacePlan{S,P,T,V}
147+
struct WeightSpacePlan{S,P,T,V,PTS<:AbstractVector{T},WT<:AbstractVector{V}}
148148
space::S
149149
plan::P
150-
points::Vector{T}
151-
weights::Vector{V}
150+
points::PTS
151+
weights::WT
152152
end
153153

154-
struct IWeightSpacePlan{S,P,T,V}
154+
struct IWeightSpacePlan{S,P,T,V,PTS<:AbstractVector{T},WT<:AbstractVector{V}}
155155
space::S
156156
plan::P
157-
points::Vector{T}
158-
weights::Vector{V}
157+
points::PTS
158+
weights::WT
159159
end
160160

161161
function plan_transform(S::WeightSpace,vals::AbstractVector)

0 commit comments

Comments
 (0)