1 // Produces ICE 980519.
2 // Test case from Dirk Engelmann <Dirk.Engelmann@IWR.Uni-Heidelberg.De>
6 // allocate memory for vector
9 inline T* alloc(const int aWidth)
19 // allocate memory for matrix
21 T** alloc(const int aWidth,const int aHeight)
24 T **mat = vector::alloc<T*>(aHeight);
25 T *data = vector::alloc<T> (aWidth*aHeight);
27 for (int i=0; i<aHeight; i++)
28 mat[i] = &data[aWidth*i];
38 double **m=matrix::alloc<double>(10,20);