Skip to content

Commit

Permalink
Fix typo in pow, step
Browse files Browse the repository at this point in the history
  • Loading branch information
mewilhel committed Apr 30, 2020
1 parent d19c37e commit 13ccadc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/forward_operators/other.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ end
(xL >= 0.0) && (return 1.0, 0.0)
(x >= 0.0) ? (1.0, 0.0) : ((1.0 - (x/xL)), (-x/xL))
end
@inline function step_kernel(x::MC{N, T}, z::Interval{Float64}) where {N, T<:Union{NS,NV}}
@inline function step_kernel(x::MC{N, T}, z::Interval{Float64}) where {N, T<:Union{NS,MV}}
xL = x.Intv.lo
xU = x.Intv.hi
xLc = z.lo
Expand Down
2 changes: 1 addition & 1 deletion src/forward_operators/power.jl
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ function inv1(x::MC{N,T}, y::Interval{Float64}) where {N,T<:Union{NS,MV}}
cc_grad = mid_grad(x.cc_grad, x.cv_grad, cc_id)*dcc
cv_grad = mid_grad(x.cc_grad, x.cv_grad, cv_id)*dcv
cv, cc, cv_grad, cc_grad = cut(y.lo, y.hi, cv, cc, cv_grad, cc_grad)
return MC{N,NS}(cv, cc, y, cv_grad, cc_grad, x.cnst)
return MC{N,T}(cv, cc, y, cv_grad, cc_grad, x.cnst)
end
function inv1(x::MC{N,Diff}, y::Interval{Float64}) where N
midcc, cc_id = mid3(x.cc, x.cv, x.Intv.lo)
Expand Down

0 comments on commit 13ccadc

Please sign in to comment.