Skip to content

Commit

Permalink
Workaround type inference issues on Julia master
Browse files Browse the repository at this point in the history
  • Loading branch information
jipolanco committed Nov 6, 2020
1 parent b2c1015 commit 899a565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BSplines/BSplines.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export
evaluate!,
support

using LazyArrays: ApplyArray
using LazyArrays: Vcat
using StaticArrays: @SVector

using ..DifferentialOps
Expand Down
2 changes: 1 addition & 1 deletion src/BSplines/knots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function augment_knots(knots::AbstractVector{T}, ::BSplineOrder{k}) where {T,k}
# a lazy array.
t_left = @SVector fill(first(knots), k - 1)
t_right = @SVector fill(last(knots), k - 1)
ApplyArray(vcat, t_left, knots, t_right)
Vcat(t_left, knots, t_right)
end

@inline augment_knots(knots, k::Integer) = augment_knots(knots, BSplineOrder(k))
Expand Down

0 comments on commit 899a565

Please sign in to comment.