#include <stdio.h>
#include <stdlib.h>

typedef struct mdarray
   {
   int dimct;
   int *dim;
   double *val;
   } mdarray;