Explicitly construct the scalar for non-implicitly convertible types

Reference issue

What does this implement/fix?

Allow to use Eigen::SelfAdjointEigenSolver with custom types that do not support implicit conversion, e.g., ceres::Jet. The change is also consistent with the way other constants are constructed by the function.

Additional information

Merge request reports

Loading