10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-11-06 22:23:42 +01:00
QCaml/Parallel_serial/SharedMemory.ml

8 lines
210 B
OCaml
Raw Permalink Normal View History

2019-04-02 13:54:16 +02:00
let create ?(temp_dir="/dev/shm") data_type size_array =
2019-12-02 14:58:48 +01:00
let result =
Bigarray.Genarray.create data_type Bigarray.fortran_layout size_array
in
Bigarray.Genarray.fill result 0.;
result
2019-04-02 13:54:16 +02:00