int **imatrix | (min_row, max_row, min_col, max_col) |
double **matrix | (min_row, max_row, min_col, max_col) |
void *free_imatrix | (im, min, max) |
void free_matrix | (m, min, max) |
int | min_row | The minimum row index. |
int | max_row | The maximum row index. |
int | min_col | The minimum column index. |
int | max_col | The maximum column index. |
int | **im | A matrix of integers. |
double | **m | A matrix of doubles. |
int *v, i, j; v = matrix (1, m, n); for (i = 1; i <= n; i++) { for (j = 1; j <= m; j++); { v[j][i] = j + i*m; } }
The imatrix function can be used to allocate an integer matrix, matrix to allocate a matrix of doubles. The free_... function speak for themselves.
This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998