caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Damien Doligez <damien.doligez@inria.fr>
To: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Re: Bigarray.c_layout
Date: Thu, 20 Apr 2006 11:42:05 +0200	[thread overview]
Message-ID: <9B63C7CE-6D35-4E5E-B838-94AF9753C0F7@inria.fr> (raw)
In-Reply-To: <200604142007.54690.fmonnier@linux-nantes.fr.eu.org>


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


  reply	other threads:[~2006-04-20  9:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-14 14:04 Bigarray.c_layout Florent Monnier
     [not found] ` <20060414.193255.24118599.debian00@tiscali.fr>
2006-04-14 18:07   ` Bigarray.c_layout Florent Monnier
2006-04-20  9:42     ` Damien Doligez [this message]
2006-04-20 14:03       ` [Caml-list] Bigarray.c_layout Florent Monnier
2006-04-20 21:14         ` Remi Vanicat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9B63C7CE-6D35-4E5E-B838-94AF9753C0F7@inria.fr \
    --to=damien.doligez@inria.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).