This method should resize the vector to the specified size. The method is not required, but if it is not present all Output vectors must be pre-allocated prior to calling the NAG function.
This method may be called in two circumstances:
Prior to calling the algorithmic engine in order to allocate an Output vector.
After the call to the algorithmic engine when the amount of useful data held in the vector is less that its original size, i.e. the Output vector is oversized. This tends to come about if most of the vector is used as workspace and only the first n1 elements contain useful information. If resize is called in this circumstance then the vector should be resized, preserving the contents. There is no requirement to resize in this situation, it is purely for convenience.