![]() |
Blitz Support : |
From: Tim.Pepper_at_[hidden]
Date: 2004-08-18 06:06:02
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
_________________________________________________________________
Notice of Confidentiality
This transmission contains information that may be confidential and that may also be privileged. Unless you are the intended recipient of the message (or authorised to receive it for the intended recipient) you may not copy, forward, or otherwise use it, or disclose it or its contents to anyone else. If you have received this transmission in error please notify us immediately and delete it from your system. Please contact the sender if you have any problems with this email.
In the UK, Watson Wyatt LLP is authorised and regulated by the Financial Services Authority and is a member of the General Insurance Standards Council. The services of Watson Wyatt in Ireland are provided by Watson Wyatt LLP, a limited liability partnership incorporated under English Law, with the exception of services which are provided as a Multi-Agency Intermediary, which for regulatory purposes, are provided by Watson Wyatt Partners, which is regulated by the Irish Financial Services Regulatory Authority, on behalf of Watson Wyatt LLP.
_________________________________________________________________