[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2006-04-20 (09:42) |
From: | Damien Doligez <damien.doligez@i...> |
Subject: | Re: [Caml-list] Re: Bigarray.c_layout |
On 2006-04-14, at 20:07, Florent Monnier wrote: > In the library I use the elements are ordered like this in the 1dim > C array: > 01 02 03 04 05 06 > 07 08 09 10 11 12 > 13 14 15 16 17 18 > 19 20 21 22 23 24 > > but with the c_layout of big array the datas are ordered like this : > 01 05 09 13 17 21 > 02 06 10 14 18 22 > 03 07 11 15 19 23 > 04 08 12 16 20 24 Looks like you need to use fortran_layout, and shift the indices by 1 to translate between 0-based and 1-based. -- Damien