File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
lib/SciMLJacobianOperators/src Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -410,24 +410,24 @@ function Base.copy(J::JacobianOperator)
410410 J. jvp_op,
411411 J. vjp_op,
412412 copy (J. size),
413- isnothing ( J. input_cache) ? nothing : copy (J. input_cache),
414- isnothing ( J. output_cache) ? nohting : copy (J. output_cache)
413+ J. input_cache === nothing ? nothing : copy (J. input_cache),
414+ J. output_cache === nothing ? nohting : copy (J. output_cache)
415415 )
416416end
417417
418418function Base. copy (J:: StatefulJacobianOperator )
419419 return StatefulJacobianOperator (
420420 copy (J. jac_op),
421- isnothing ( J. u) ? nothing : copy (J. u),
422- isnothing ( J. p) ? nothing : copy (J. p)
421+ J. u === nothing ? nothing : copy (J. u),
422+ J. p === nothing ? nothing : copy (J. p)
423423 )
424424end
425425
426426function Base. copy (J:: StatefulJacobianNormalFormOperator )
427427 return StatefulJacobianNormalFormOperator (
428- isnothing ( J. vjp_operator) ? nothing : copy (J. vjp_operator),
429- isnothing ( J. jvp_operator) ? nothing : copy (J. jvp_operator),
430- isnothing ( J. cache) ? nothing : copy (J. cache)
428+ J. vjp_operator === nothing ? nothing : copy (J. vjp_operator),
429+ J. jvp_operator === nothing ? nothing : copy (J. jvp_operator),
430+ J. cache === nothing ? nothing : copy (J. cache)
431431 )
432432
433433end
You can’t perform that action at this time.
0 commit comments