ralna / RALFit

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

Allocation of resvec and gradvec #27

Closed talassio closed 3 years ago

talassio commented 5 years ago

Request to push up to nlls_solve the allocation and filling of inform%resvec and inform%gradvec, so to avoid dealloc's and alloc's at each iteration.

Rationale: If user chooses to use nlls_iterate instead of nlls_solve then resvec and gradvec are of no much use.

https://github.com/talassio/RALFit/blob/2fdbe9b5570941578046ec092a1935384fc856ca/libRALFit/src/ral_nlls_internal.f90#L887-L905

talassio commented 5 years ago

Note @tyronerees: nlls_test stringent test uses these arrays for testing... Is it possible to remove these elements and replace/update the test?