Hi there
We are making use of Blitz in an application that we are writing. We are trying to make careful use of memory and need to know what various elements of the array descriptor are. We have managed to get some output from the descriptor and would like to know what each element is please:
We have created arrays e.g.:
Array<int, 1> y1d(2);
Array<int, 7> y7d(2,3,4,5,6,7,8);
And have printed out the descriptors using the following code:
size = sizeof(y1d);
pUInt = (unsigned int*)&y1d;
cout << "Size of array descriptor: " << size << endl;
for (unsigned int *ptr = pUInt; ptr < pUInt+size/4; ptr++)
cout << *ptr << " ";
cout << endl << endl;
size = sizeof(y7d);
pUInt = (unsigned int*)&y7d;
cout << "Size of array descriptor: " << size << endl;
for (unsigned int *ptr = pUInt; ptr < pUInt+size/4; ptr++)
cout << *ptr << " ";
cout << endl << endl;
and get the following output:
Size of array descriptor: 32
115288184 115288104 0 1 0 2 1 0
Size of array descriptor: 132
120520808 115325664 6 5 4 3 2 1 0 16843009 65793 0 0 0 0 0 0 0 2 3 4 5 6 7 8 20160 6720 1680 336 56 8 1 0
Could you please let us know what each element is? i.e. is 120520808 the end memory address? Etc
Many thanks,
Tim Pepper