GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Matrix memory management functions. More...
#include <stdlib.h>
#include <grass/gis.h>
Go to the source code of this file.
Functions | |
double * | G_alloc_vector (size_t n) |
Vector matrix memory allocation. More... | |
double ** | G_alloc_matrix (int rows, int cols) |
Matrix memory allocation. More... | |
float * | G_alloc_fvector (size_t n) |
Floating point vector memory allocation. More... | |
float ** | G_alloc_fmatrix (int rows, int cols) |
Floating point matrix memory allocation. More... | |
void | G_free_vector (double *v) |
Vector memory deallocation. More... | |
void | G_free_fvector (float *v) |
Vector memory deallocation. More... | |
void | G_free_matrix (double **m) |
Matrix memory deallocation. More... | |
void | G_free_fmatrix (float **m) |
Floating point matrix memory deallocation. More... | |
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 dalloc.c.
float * G_alloc_fvector | ( | size_t | n | ) |
Matrix memory allocation.
Allocate a matrix of rows by cols doubles initialized to zero.
[in] | rows | number of rows in matrix |
[in] | cols | number of columns in matrix |
Definition at line 60 of file dalloc.c.
Referenced by G_math_Asp_to_A(), IL_interp_segments_2d(), IL_resample_interp_segments_2d(), and N_alloc_les_param().
double * G_alloc_vector | ( | size_t | n | ) |
Vector matrix memory allocation.
Allocate a vector (array) of n doubles initialized to zero.
[in] | n | size of vector to allocate |
Definition at line 41 of file dalloc.c.
Referenced by G_ludcmp(), G_math_pivot_create(), G_math_solver_gs(), G_math_solver_jacobi(), G_math_solver_lu(), G_math_solver_sparse_gs(), G_math_solver_sparse_jacobi(), IL_interp_segments_2d(), IL_matrix_create(), and IL_resample_interp_segments_2d().
void G_free_fmatrix | ( | float ** | m | ) |
void G_free_fvector | ( | float * | v | ) |
void G_free_matrix | ( | double ** | m | ) |
Matrix memory deallocation.
Deallocate a matrix of doubles.
[in,out] | m | matrix to free |
Definition at line 169 of file dalloc.c.
References G_free(), and NULL.
Referenced by N_free_les().
void G_free_vector | ( | double * | v | ) |
Vector memory deallocation.
Deallocate a vector (array) of doubles.
[in,out] | v | vector to free |
Definition at line 129 of file dalloc.c.
References G_free(), and NULL.
Referenced by G_ludcmp(), and G_math_pivot_create().