Version française
Home     About     Download     Resources     Contact us    
Browse thread
Bigarray and polymorphic functions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: matthieu.dubuget <matthieu.dubuget@l...>
Subject: Bigarray and polymorphic functions
Is it possible to write polymorphic functions with Bigarray's
as argument?

Something like

let p b =
 match Array1.kind b with
   int8_signed -> "first case"
  |int8_unsigned -> "second case"
  | _ -> assert false

but which could compile?

After some tries, I was not able to find any solution.

Salutations

Matthieu

Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)