|
GRASS 8 Programmer's Manual 8.5.0(2026)-8d6ceba290
|
Matrix memory management functions. More...
#include <stdlib.h>#include <grass/gis.h>
Go to the source code of this file.
Functions | |
| int * | G_alloc_ivector (size_t n) |
| Vector matrix memory allocation. | |
| int ** | G_alloc_imatrix (int rows, int cols) |
| Matrix memory allocation. | |
| void | G_free_ivector (int *v) |
| Vector memory deallocation. | |
| void | G_free_imatrix (int **m) |
| Matrix memory deallocation. | |
Matrix memory management functions.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Definition in file ialloc.c.
| int ** G_alloc_imatrix | ( | int | rows, |
| int | cols ) |
Matrix memory allocation.
Allocate a matrix of rows by cols integers initialized to zero.
| [in] | rows | number of rows in matrix |
| [in] | cols | number of columns in matrix |
Definition at line 55 of file ialloc.c.
References G_alloc_imatrix().
Referenced by G_alloc_imatrix().
| int * G_alloc_ivector | ( | size_t | n | ) |
Vector matrix memory allocation.
Allocate a vector (array) of n integers initialized to zero.
| [in] | n | size of vector to allocate |
Definition at line 38 of file ialloc.c.
References G_alloc_ivector().
Referenced by G_alloc_ivector(), IL_interp_segments_2d(), IL_interp_segments_2d_parallel(), and IL_resample_interp_segments_2d().
| void G_free_imatrix | ( | int ** | m | ) |
Matrix memory deallocation.
Deallocate a matrix of integers.
| [in,out] | m | matrix to free |
Definition at line 96 of file ialloc.c.
References G_free(), G_free_imatrix(), and NULL.
Referenced by G_free_imatrix().
| void G_free_ivector | ( | int * | v | ) |
Vector memory deallocation.
Deallocate a vector (array) of integers.
| [in,out] | v | vector to free |
Definition at line 78 of file ialloc.c.
References G_free(), G_free_ivector(), and NULL.
Referenced by G_free_ivector().