2.2.0 online doc typo
linzha0 opened this issue · comments
Lin Zhao (he/him/his) commented
Hi, I just realized there are some typos for 2.2.0 online document, for example hello world:
CostFunction* cost_function =
new AutoDiffCostFunction<CostFunctor, 1, 1>();
However, the right one should be:
CostFunction* cost_function =
new AutoDiffCostFunction<CostFunctor, 1, 1>(new CostFunctor);
I installed version 2.2.0 on my Ubuntu 22.04 and built the document, it's right, just the online doc somehow is wrong.
Sameer Agarwal commented
The latest update to ceres eliminates the need to instantiate the functor.
…On Wed, Feb 14, 2024 at 11:10 AM linzha0 ***@***.***> wrote:
Hi, I just realized there are some typos for 2.2.0 online document, for
example hello world
<http://ceres-solver.org/nnls_tutorial.html#hello-world>:
CostFunction* cost_function =
new AutoDiffCostFunction<CostFunctor, 1, 1>();
However, the right one should be:
CostFunction* cost_function =
new AutoDiffCostFunction<CostFunctor, 1, 1>(new CostFunctor);
I installed version 2.2.0 on my Ubuntu 22.04 and built the document, it's
right, just the online doc somehow is wrong.
—
Reply to this email directly, view it on GitHub
<#1051>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANCABIMLI7E532I4MGCXKTYTUDZZAVCNFSM6AAAAABDI3X7I2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZTKMBRGQZTMMI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
Lin Zhao (he/him/his) commented
thanks for the information.