#include <string.h>#include <stdlib.h>#include "machine.h"#include "MALLOC.h"Include dependency graph for dmtree.c:

Go to the source code of this file.
Functions | |
| void | cerro () |
| void C2F() | dmtree (int *i0, int *la1, int *lp1, int *ls1, int *m, int *n, int *pred, int *w) |
| void cerro | ( | ) |
Definition at line 13 of file dmtree.c.
References cerro(), f(), F2C(), FREE, g, i, ind, int, m, MALLOC, n, NULL, w, and z.
00015 { 00016 int i,nndim; 00017 int *alphi,*beta,*f,*g,*ind,*pred1; 00018 double *z,*zsom; 00019 int isize,dsize; 00020 isize = sizeof(int); dsize = sizeof(double); 00021 00022 nndim = 2 * *n; 00023 if ((alphi = (int *)MALLOC(nndim * isize)) == NULL) { 00024 cerro("Running out of memory"); 00025 return; 00026 } 00027 if ((beta = (int *)MALLOC(nndim * isize)) == NULL) { 00028 cerro("Running out of memory"); 00029 return; 00030 } 00031 if ((f = (int *)MALLOC(nndim * isize)) == NULL) { 00032 cerro("Running out of memory"); 00033 return; 00034 } 00035 if ((g = (int *)MALLOC(nndim * isize)) == NULL) { 00036 cerro("Running out of memory"); 00037 return; 00038 } 00039 if ((ind = (int *)MALLOC(nndim * isize)) == NULL) { 00040 cerro("Running out of memory"); 00041 return; 00042 } 00043 if ((pred1 = (int *)MALLOC(nndim * isize)) == NULL) { 00044 cerro("Running out of memory"); 00045 return; 00046 } 00047 if ((z = (double *)MALLOC(nndim * dsize)) == NULL) { 00048 cerro("Running out of memory"); 00049 return; 00050 } 00051 if ((zsom = (double *)MALLOC(nndim * dsize)) == NULL) { 00052 cerro("Running out of memory"); 00053 return; 00054 } 00055 00056 F2C(arbor)(alphi,beta,f,g,i0,ind,la1,lp1,ls1,m,n,&nndim,pred1,w,z,zsom); 00057 00058 for (i = 0; i < *n; i++) pred[i] = pred1[i]; 00059 00060 FREE(alphi); FREE(beta); FREE(f); FREE(g); FREE(ind); 00061 FREE(pred1); FREE(z); FREE(zsom); 00062 }
Here is the call graph for this function:

1.5.1