Skip to content

Commit

Permalink
fixed index (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
sshin23 authored Nov 6, 2024
1 parent 1357ec6 commit fad75fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nlp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,8 @@ end
@inbounds @inline offset0(a::C, i) where {C<:ConstraintAug} = offset0(a.f, a.itr, i)
@inbounds @inline offset0(f::F, itr, i) where {P<:Pair,F<:SIMDFunction{P}} =
f.o0 + f.f.first(itr[i], nothing)
@inbounds @inline offset0(f::F, itr, i) where {I <: Integer, P<:Pair{I},F<:SIMDFunction{P}} =
f.o0 + f.f.first
@inbounds @inline offset0(f::F, itr, i) where {T<:Tuple,P<:Pair{T},F<:SIMDFunction{P}} =
f.o0 + idxx(coord(itr, i, f.f.first), Base.size(itr))

Expand Down

0 comments on commit fad75fe

Please sign in to comment.