Go to the source code of this file.
|
void ** | malloc_2d (const size_t rows, const size_t cols, const size_t T) |
| Allocate 2D array. More...
|
|
void *** | malloc_3d (const size_t rows, const size_t cols, const size_t depth, const size_t T) |
| Allocate 3D array. More...
|
|
void | dealloc_2d (void **mat) |
| Deallocate 2D array. More...
|
|
void | dealloc_3d (void ***mat) |
| Deallocate 3D array. More...
|
|
◆ dealloc_2d()
void dealloc_2d |
( |
void ** |
mat | ) |
|
Deallocate 2D array.
- Parameters
-
Definition at line 93 of file arrays.c.
◆ dealloc_3d()
void dealloc_3d |
( |
void *** |
mat | ) |
|
Deallocate 3D array.
- Parameters
-
Definition at line 104 of file arrays.c.
◆ malloc_2d()
void ** malloc_2d |
( |
const size_t |
rows, |
|
|
const size_t |
cols, |
|
|
const size_t |
T |
|
) |
| |
Allocate 2D array.
- Parameters
-
rows | number of rows |
cols | number of columns |
T | size of data |
Definition at line 33 of file arrays.c.
◆ malloc_3d()
void *** malloc_3d |
( |
const size_t |
rows, |
|
|
const size_t |
cols, |
|
|
const size_t |
depth, |
|
|
const size_t |
T |
|
) |
| |
Allocate 3D array.
- Parameters
-
rows | number of rows |
cols | number of columns |
depth | depth length, equals with z-direction elements |
T | size of data |
Definition at line 52 of file arrays.c.