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
ANNOUNCE : libsndfile-ocaml alpha
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-01-02 (11:27)
From: Erik de Castro Lopo <mle+ocaml@m...>
Subject: Re: [Caml-list] ANNOUNCE : libsndfile-ocaml alpha
Vu Ngoc San wrote:

> I was thinking of using libsndfile in combination with the ocaml-gsl 
> (gnu scientific library), and the latter uses bigarray, afaik.

Now that is a useful data point.

However, I do notice that the Gsl_vector module has functions:

    val of_array : float array -> vector
    val to_array : vector -> float array

I also notice that the Gsl_vector functions are all of type:

   (float, Bigarray.float64_elt, Bigarray.c_layout) Bigarray.Array1.t

> I am just 
> wondering whether then it would be appropriate to have bigarrays from 
> libsndfile.

I was particularly interested if there was any utility to providing
functions for accessing shorts or ints. So far noone has come up with
a need for these.

It does however seem that it may be useful access to the data via
data via a bigarray of Bigarray.float64_elt elements.

  Erik de Castro Lopo
"Java is, in many ways, C++--." -- Michael Feldman