Skip to content

Commit

Permalink
STYLE: Replace NumericTraits<unsigned int>::ZeroValue() with 0U
Browse files Browse the repository at this point in the history
Style improvement within the default-constructor of
`GradientDescentLineSearchOptimizer`, suggested by Mihail Isakov.
  • Loading branch information
N-Dekker committed Feb 13, 2024
1 parent 030d626 commit 5d746cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ GradientDescentLineSearchOptimizerv4Template<
TInternalComputationValueType>::GradientDescentLineSearchOptimizerv4Template()
{
this->m_MaximumLineSearchIterations = 20;
this->m_LineSearchIterations = NumericTraits<unsigned int>::ZeroValue();
this->m_LineSearchIterations = 0U;
this->m_LowerLimit = itk::NumericTraits<TInternalComputationValueType>::ZeroValue();
this->m_UpperLimit = 5.0;
this->m_Phi = 1.618034;
Expand Down

0 comments on commit 5d746cc

Please sign in to comment.