mirror of
https://gitlab.com/scemama/QCaml.git
synced 2024-09-01 17:23:41 +02: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
|
|
|