next up previous contents
Next: ``getallPsis'' Up: Packaging Previous: Packaging

``d3tensor'' and ``free_d3tensor''

double ***d3tensor(long nrl,long nrh,long ncl,long nch,long ndl,long ndh)
Return value:

Input:

void free_d3tensor(double ***t,
                   long nrl,long nrh,long ncl,long nch,long ndl,long ndh)
Input:

To store the values for each wave function tex2html_wrap_inline367 , we need a three-dimensional, double-precision array (with indices n, tex2html_wrap_inline369 , k). Numerical recipes has routines to handle such objects for normal floating point, but not double precision. Generalize the Numerical Recipes utility routines ``f3tensor'' and ``free_f3tensor'' to double precision by replacing all occurrences of float with double, thereby producing routines with the two prototypes above.



Tomas Arias
Fri Mar 3 11:23:54 EST 2000