Page 1 of 1

Dlasq3: parameters listed as outputs depend on input value

PostPosted: Wed Nov 04, 2015 3:17 pm
by btracey
In Dlasq3, the iter count returned from the function depends on the input value given. The iter parameter in the documentation is listed as a pure output, but it is never initialized before "iter = iter + 1" on line 338. Smilarly, nDiv is never initialized before "ndiv = ndiv + ( n0-i0+2 )" on line 337. It seems like either the documentation should be fixed to reflect this or the values should be initialized before they are used.

Re: Dlasq3: parameters listed as outputs depend on input val

PostPosted: Fri Nov 13, 2015 2:15 pm
by Julien Langou
Hi Tracey, you are correct, these variables are counters and they are incremented by LASQ3 and they should be initialized before calling LASQ3, so they should be IN/OUT. We have just updated the documentation. Thanks! Julien.