mirror of
https://gitlab.com/scemama/QCaml.git
synced 2024-11-19 12:32:21 +01:00
8 lines
210 B
OCaml
8 lines
210 B
OCaml
let create ?(temp_dir="/dev/shm") data_type size_array =
|
|
let result =
|
|
Bigarray.Genarray.create data_type Bigarray.fortran_layout size_array
|
|
in
|
|
Bigarray.Genarray.fill result 0.;
|
|
result
|
|
|