English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Bigarray question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-11-25 (20:06)
From: Dmitry Bely <dbely@m...>
Subject: Re: [Caml-list] Bigarray question
Thomas Fischbacher <Thomas.Fischbacher@Physik.Uni-Muenchen.DE> writes:

> As far as I can see from the documentation, it is not explicitly permitted 
> to change a once allocated bigarray data structure in such a way that one 
> replaces the data pointer by some other data pointer (while retaining 
> size and type). This would, however, be quite useful in some situations.

Is your bigarray a wrapper around some externally allocated data, created
via alloc_bigarray() C call? If yes, you can safely replace the data
pointer with another one via Caml-C interface. If not, why do you need that?

- Dmitry Bely