Skip to content

Commit

Permalink
STYLE: Add constexpr to supportSize in BSplineDeformableTransform
Browse files Browse the repository at this point in the history
`SizeType::Filled(SplineOrder + 1)` can be evaluated at compile-time.
  • Loading branch information
N-Dekker authored and hjmjohnson committed Nov 11, 2024
1 parent 7b72f00 commit dab1987
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ BSplineDeformableTransform<TParametersValueType, VDimension, VSplineOrder>::Comp
// Zero all components of jacobian
jacobian.SetSize(SpaceDimension, this->GetNumberOfParameters());
jacobian.Fill(0.0);
auto supportSize = SizeType::Filled(SplineOrder + 1);
constexpr auto supportSize = SizeType::Filled(SplineOrder + 1);

ContinuousIndexType index =
this->m_CoefficientImages[0]
Expand Down

0 comments on commit dab1987

Please sign in to comment.