PACKER presents a single interface to the general problem of selecting data or reshaping a multidimensional array. The same routine can handle data that is "really" vector, matrix, 3D, or even higher dimensions. PACKER also "knows about" the fact that some arrays have both a declared or maximal dimension, and a smaller "used" dimension, which affects how the data is stored in memory.
PACKER is most useful for problems like the following: suppose, at run time, I want to consider an array which is indexed by six indices (I,J,K,L,M,N). I want to be able to fix any subset of these indices, (say, I=K=L=N=1) and produce the selected subarray of all data which satisfies these constraints. PACKER can also handle cases where each index is allowed to vary over some specified range.
Files you may copy include:
The list of routines includes:
Return to the FORTRAN software page.