double** dmatrix(int nrl, int nrh, int ncl, int nch);
Allocate a double matrix with subscript range m[nrl..nrh][ncl..nch].
void free_dmatrix(double** a, int nrl, int nrh, int ncl);
Deallocate a double matrix allocated with dmatrix.
Parameters:
| a | Matrix to deallocate. |
|---|---|
| nrl | Low row index. |
| nrh | High row index. |
| ncl | Low column index. |
| nch | High column index. |
Returns:
Double matrix.
Header:
#include "matutils.h"