Closed talassio closed 3 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.
nlls_solve
inform%resvec
inform%gradvec
dealloc
alloc
Rationale: If user chooses to use nlls_iterate instead of nlls_solve then resvec and gradvec are of no much use.
nlls_iterate
https://github.com/talassio/RALFit/blob/2fdbe9b5570941578046ec092a1935384fc856ca/libRALFit/src/ral_nlls_internal.f90#L887-L905
Note @tyronerees: nlls_test stringent test uses these arrays for testing... Is it possible to remove these elements and replace/update the test?
nlls_test
Request to push up to
nlls_solve
the allocation and filling ofinform%resvec
andinform%gradvec
, so to avoiddealloc
's andalloc
's at each iteration.Rationale: If user chooses to use
nlls_iterate
instead ofnlls_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