![]() |
Blitz Support : |
From: Zane Dodson (zdodson_at_[hidden])
Date: 2004-08-16 10:41:47
On Mon, Aug 16, 2004 at 09:46:23AM -0500, Virgilio, Vincent wrote:
| Hi Olivier,
|
| There is Array<double, 2>.data(), which should return double*. I
| frequently use this to cast around Blitz++ data in MPI buffers, sans
| copy.
|
| Vince Virgilio
Be careful to understand storage ordering and contiguity of the array
when using the data() method in this way. The `isStorageContiguous()'
method is helpful here.
See sections 2.4 and 2.6.2 of the documentation at
http://www.oonumerics.org/blitz/manual/Frames.html
for a discussion of storage orders, indexing, subarrays, and slicing.
Best regards,
-- Zane Dodson