Skip to content

Commit

Permalink
Giving up using Julia v1.5 keyword new feature to maintain 1.0+ compa…
Browse files Browse the repository at this point in the history
…tability.
  • Loading branch information
liuyxpp committed Aug 20, 2020
1 parent 4f8cdd7 commit ed65081
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "CubicHermiteSpline"
uuid = "2338ea46-7d83-48cf-b44e-cf8e0b5b9cc1"
authors = ["liuyxpp <[email protected]>"]
version = "0.2.1"
version = "0.2.2"

[deps]
ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197"
Expand Down
4 changes: 2 additions & 2 deletions src/CubicHermiteSpline.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ function _interp(spl::CubicHermiteSplineInterpolation, v; grad=false)
return grad ? (r/h) : r
end

(spl::CubicHermiteSplineInterpolation)(v::Real; grad=false) = _interp(spl, v; grad)
(spl::CubicHermiteSplineInterpolation)(x::AbstractVector; grad=false) = spl.(x; grad)
(spl::CubicHermiteSplineInterpolation)(v::Real; grad=false) = _interp(spl, v; grad=grad)
(spl::CubicHermiteSplineInterpolation)(x::AbstractVector; grad=false) = spl.(x; grad=grad)

# handy methods
interp(spl::CubicHermiteSplineInterpolation, p) = spl(p)
Expand Down

0 comments on commit ed65081

Please sign in to comment.