ralna / RALFit

A non-linear least squares solver
Other
25 stars 6 forks source link

Wrong weight vector size (Bug) #118

Open as-amd opened 1 month ago

as-amd commented 1 month ago

C Example 2 illustrates the use of weights, but the length of this vector is n=2 instead of the correct number ( # of residuals) m=5. Re: https://github.com/ralna/RALFit/blob/47f740a5894cbd04b9ac7d837bca7a34cc12bb61/libRALFit/example/C/nlls_example2.c#L94C11-L94C21.

Issues comes up when compiling in debug mode (ASAN)

NB: This is fixed in a PR to be pushed.