Skip to content

Commit

Permalink
Generalize integrand arg
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeingold committed Nov 25, 2024
1 parent d4a6268 commit 921b186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/specializations/Line.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function integral(

# Integrate f along the Line
differential(line, x) = t′(x) * _units(line(0))
integrand(x::AbstractVector) = f(line(t(x[1]))) * differential(line, x[1])
integrand(xs) = f(line(t(xs[1]))) * differential(line, xs[1])

# HCubature doesn't support functions that output Unitful Quantity types
# Establish the units that are output by f
Expand Down

0 comments on commit 921b186

Please sign in to comment.