Skip to content

Commit 08b978e

Browse files
committed
Format code to pass formatting checks
1 parent f0854ac commit 08b978e

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/api/cpd.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ function _cpd_component_trace_info(rec::_CPDComponentTraceRecorder)
115115
component_trace_cost_rel_change_history = rec.cost_rel_change_history,
116116
component_trace_max_delta_history = rec.max_component_delta_history,
117117
component_trace_delta_history = rec.component_delta_history,
118-
component_trace_final_max_delta = isempty(rec.max_component_delta_history) ?
119-
NaN : rec.max_component_delta_history[end],
118+
component_trace_final_max_delta = isempty(rec.max_component_delta_history) ? NaN :
119+
rec.max_component_delta_history[end],
120120
)
121121
end
122122

src/solvers/abstract.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,8 @@ function _solver_retraction_method_unwrapped(M::ProductManifold, p)
380380
"Cannot derive solver retraction method: ProductManifold has $n factors but point has $(length(pparts)) parts.",
381381
),
382382
)
383-
methods = ntuple(i -> _default_component_retraction_method(M.manifolds[i], pparts[i]), n)
383+
methods =
384+
ntuple(i -> _default_component_retraction_method(M.manifolds[i], pparts[i]), n)
384385
return ManifoldsBase.ProductRetraction(methods)
385386
end
386387

src/solvers/rcg.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ _uses_segre_projection_transport_unwrapped(::Manifolds.Segre) = true
1111
_uses_segre_projection_transport_unwrapped(M::ProductManifold) =
1212
all(_uses_segre_projection_transport, M.manifolds)
1313
_uses_segre_projection_transport_unwrapped(M) =
14-
hasproperty(M, :native) ?
15-
_uses_segre_projection_transport(getproperty(M, :native)) : false
14+
hasproperty(M, :native) ? _uses_segre_projection_transport(getproperty(M, :native)) :
15+
false
1616

1717
function ManifoldsBase.vector_transport_to(
1818
M::Manifolds.Segre,

0 commit comments

Comments
 (0)