Skip to content

Commit

Permalink
Improve inference in dss_transform
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskawczynski committed Sep 12, 2024
1 parent 1f51ca3 commit 429ea73
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Topologies/dss_transform.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ end
dss_transform(Base.tail(arg), local_geometry, weight)...,
)
end
@inline dss_transform(
arg::Tuple{Any},
local_geometry::Geometry.LocalGeometry,
weight,
) = (dss_transform(first(arg), local_geometry, weight))
@inline function dss_transform(
arg::NamedTuple{names},
local_geometry::Geometry.LocalGeometry,
Expand Down

0 comments on commit 429ea73

Please sign in to comment.