I have an integer 2d matrix NUMI and a 3d double matrix called PROB
.
Here the 2 allocation:
int main ( int argc, char* argv[]){
double ***PROB;
int **NUMI;
NUMI = (int **)malloc((dim)*sizeof(int *));
PROB = (double ***)malloc((dim)*sizeof(double**));
...
for( i = 0; i < n ; i++){
PROB[ACT][ACTSTART][i] = value;
NUMI[i][i]= value2;
}
}
How many rows and cols has
NUMI
? Is adim x dim matrix
???PROB
is a 3d matrix...here the allocation isdim x dim x dim
?