Previous Next Up Title Contents General Index Functions Index Bookshelf

ALLOCATION D'UNE MATRICE 2D DE RÉELS

talloc_float_matrix


SEQUENCE D'APPEL

Pfloat **talloc_float_matrix (num_x, num_y)

PARAMETRES EN ENTREE

Pint	num_x;
Pint	num_y;

ARGUMENTS

num_x
1ère dimension de la matrice.
num_y
2ème dimension de la matrice.

EFFET

Cette fonction alloue une matrice 2D de réels utilisable directement dans une structure de donnée de maillage 2D.

Exemple 1 d'utilisation

Tscalar2D_data mesh_data;
mesh_data.rectangular.s = talloc_float_matrix (15,25);
mesh_data.rectangular.s[10][15] = 10.0;

Exemple 2 d'utilisation

Tscalar2D_data mesh_data;
Pfloat **s;
s = talloc_float_matrix (15,25);
s[10][15] = 10.0;
mesh_data.rectangular.s = s;


Previous Next Up Title Contents General Index Functions Index Bookshelf