This content has been marked as final. Show 2 replies
The amount needed for workspace is based on N, not NMAX. In the example we use NMAX, which provides more than is needed, and allows us to vary N up to the size of NMAX with no other changes.
For a real application, ensure that you provide at least 3*N+100, whether with a static array or dynamic allocation.
Exactly what I imagined. The NMAX provides more flexibility for function. No doubts now. Thanks.