Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Bigarray "mimic"
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-04-19 (13:21)
From: Markus Mottl <markus@o...>
Subject: Re: [Caml-list] Bigarray "mimic"
On Fri, 19 Apr 2002, Christophe TROESTLER wrote:
> Is there a way to create a Bigarray (resp. Array1, Array2, Array3)
> of the same type (especially layout) as a given one without resorting
> to some C routine (maybe with some Obj.magic ???) -- I do not want to
> copy the original array.

It's only a couple of days that I have reported this shortcoming, and
Xavier has already fixed it in the CVS. You can now query both the layout
and the kind by writing, e.g. "Array1.layout ar" or "Array1.kind ar"
as required for creating similar arrays.

Markus Mottl

Markus Mottl                                   
Austrian Research Institute
for Artificial Intelligence        
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: