2 // Produces ICE 980519.
3 // Test case from Dirk Engelmann <Dirk.Engelmann@IWR.Uni-Heidelberg.De>
7 // allocate memory for vector
10 inline T* alloc(const int aWidth)
20 // allocate memory for matrix
22 T** alloc(const int aWidth,const int aHeight)
25 T **mat = vector::alloc<T*>(aHeight);
26 T *data = vector::alloc<T> (aWidth*aHeight);
28 for (int i=0; i<aHeight; i++)
29 mat[i] = &data[aWidth*i];
39 double **m=matrix::alloc<double>(10,20);