Allocate memory for a four dimensional array.
The GCLgrid library uses a contiguous block of memory to hold
arrays and uses C pointers to create the indexing needed for
standard C style subscripting.
A contiguous block is used in preference to a potentially
millions of malloc calls if the array were built in pieces.
This function creates a 4d array in this manner.
- Source:
- gclgrid.h:1440
- Author:
- unascribed
- Version:
- unknown
- Params:
n1
| size of index 1 of array.
|
n2
| size of index 2 of array.
|
n3
| size of index 3 of array.
|
n4
| size of index 4 of array.
|
- Code:
public extern "C" double * * * * create_4dgrid_contiguous ( | int n1 , |
| int n2 , |
| int n3 , |
| int n4 ) |