File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 185
185
186
186
function perform_step! (cache:: LevenbergMarquardtCache{true} )
187
187
@unpack fu1, f, make_new_J = cache
188
- if _iszero (fu1)
188
+ if iszero (fu1)
189
189
cache. force_stop = true
190
190
return nothing
191
191
end
256
256
257
257
function perform_step! (cache:: LevenbergMarquardtCache{false} )
258
258
@unpack fu1, f, make_new_J = cache
259
- if _iszero (fu1)
259
+ if iszero (fu1)
260
260
cache. force_stop = true
261
261
return nothing
262
262
end
Original file line number Diff line number Diff line change 129
129
concrete_jac (_) = nothing
130
130
concrete_jac (:: AbstractNewtonAlgorithm{CJ} ) where {CJ} = CJ
131
131
132
- # Circumventing https://github.com/SciML/RecursiveArrayTools.jl/issues/277
133
- _iszero (x) = iszero (x)
134
- _iszero (x:: ArrayPartition ) = all (_iszero, x. x)
135
-
136
132
_mutable_zero (x) = zero (x)
137
133
_mutable_zero (x:: SArray ) = MArray (x)
138
134
You can’t perform that action at this time.
0 commit comments