pcl icon indicating copy to clipboard operation
pcl copied to clipboard

Misleading comment

Open thallerod opened this issue 2 months ago • 2 comments

https://github.com/PointCloudLibrary/pcl/blob/a3fa3f147c1812808f960266de25db0c4e5aec90/registration/include/pcl/registration/impl/ndt.hpp#L150

This is the standard Newton step for both minimization and maximization. Whether the stationary point is a maximum or minimum depends on the Hessian’s definiteness.

thallerod avatar Sep 07 '26 19:09 thallerod

I will take this issue. Please assign it to me.

The comment at line 150 in ndt.hpp is misleading. It suggests that the Newton step applies to both minimization and maximization, but does not clarify the role of the Hessian's definiteness. I will update the comment to explain that the nature of the stationary point (maximum or minimum) depends on the definiteness of the Hessian matrix. This should make the comment more accurate and informative.

modelpath-dev avatar Sep 08 '26 11:09 modelpath-dev

I will take this issue. Please assign it to me.

The comment at line 150 in ndt.hpp is misleading. It suggests that the Newton step applies to both minimization and maximization, but does not clarify the role of the Hessian's definiteness. I will update the comment to explain that the nature of the stationary point (maximum or minimum) depends on the definiteness of the Hessian matrix. This should make the comment more accurate and informative.

@thallerod have already opened a PR as well, so you must find another issue to work on 👍

larshg avatar Sep 08 '26 13:09 larshg