Blitz logo

Blitz Support :

From: Olivier Saut (novocaine_at_[hidden])
Date: 2004-08-17 04:50:33


Zane Dodson wrote:
> 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.

I read that Blitz++ arrays are in row-major order and I want to split
the domain by rows so it should be the right order for it. I would have
not thought to check the contiguity of the array.

Thanks!
                        - Olivier