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
|
|
|
|