Previous Next Up Title Contents Index Functions Index Top Library

ALLOCATION OF 2D MATRIX OF FLOATS

talloc_float_matrix


CALL SEQUENCE

Pfloat **talloc_float_matrix (num_x,num_y)

INPUT PARAMETERS

Pint	num_x;
Pint	num_y;

ARGUMENTS

num_x
1st dimension of the matrix.
num_y
2nd dimension of the matrix.

EFFECT

This function allocates a 2D matrix of float usefull for 2D PHIGURE data mesh.

Example 1

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

Example 2

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 Index Functions Index Top Library