UCFD_SPARSE  v1.0
Documentation
Loading...
Searching...
No Matches
arrays.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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...
 

Function Documentation

◆ dealloc_2d()

void dealloc_2d ( void **  mat)

Deallocate 2D array.

Parameters
mat2D array

Definition at line 93 of file arrays.c.

Here is the caller graph for this function:

◆ dealloc_3d()

void dealloc_3d ( void ***  mat)

Deallocate 3D array.

Parameters
mat3D array

Definition at line 104 of file arrays.c.

Here is the caller graph for this function:

◆ malloc_2d()

void ** malloc_2d ( const size_t  rows,
const size_t  cols,
const size_t  T 
)

Allocate 2D array.

Parameters
rowsnumber of rows
colsnumber of columns
Tsize of data

Definition at line 33 of file arrays.c.

Here is the caller graph for this function:

◆ 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
rowsnumber of rows
colsnumber of columns
depthdepth length, equals with z-direction elements
Tsize of data

Definition at line 52 of file arrays.c.

Here is the caller graph for this function: