Skip to content

Commit

Permalink
Merge pull request #32 from JuliaAlgebra/inplace
Browse files Browse the repository at this point in the history
Remove some @propagate_inbounds statements
  • Loading branch information
saschatimme authored Dec 28, 2018
2 parents 164579d + 3122a17 commit 098d988
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/polynomial_system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ Evaluate the polynomial system `F` at `x` with parameters `p`.

@generated function _evaluate!(u, F::PolynomialSystem{N}, x...) where {N}
quote
Base.@_propagate_inbounds_meta
$((:(u[$i] = evaluate(F.polys[$i], x...)) for i=1:N)...)
u
end
Expand All @@ -191,7 +190,6 @@ Evaluate the polynomial system `F` at `x` with parameters `p` and store its resu
###########
@generated function _jacobian!(U, F::PolynomialSystem{N, NVars}, x...) where {N, NVars}
quote
Base.@_propagate_inbounds_meta
$(map(1:N) do i
quote
= _gradient(F.polys[$i], x...)
Expand Down Expand Up @@ -262,7 +260,6 @@ Evaluate the Jacobian of the polynomial system `F` at `x` with parameters `p`.

@generated function _evaluate_and_jacobian!(u, U, F::PolynomialSystem{N, NVars}, x...) where {N, NVars}
quote
Base.@_propagate_inbounds_meta
$(map(1:N) do i
quote
val, ∇ = _val_gradient(F.polys[$i], x...)
Expand Down Expand Up @@ -332,7 +329,6 @@ Evaluate the system `F` and its Jacobian at `x` with parameters `p`.

@generated function _differentiate_parameters!(U, F::PolynomialSystem{N, NVars, NParams}, x, p) where {N, NVars, NParams}
quote
Base.@_propagate_inbounds_meta
$(map(1:N) do i
quote
= _differentiate_parameters(F.polys[$i], x, p)
Expand Down

0 comments on commit 098d988

Please sign in to comment.