http://ocaml.xyz/chapter/slicing.html
The syntax is quite verbose. Anyway to make it better with macros ? Coming from number crunching world makes me wish that the syntax for list and arrays in OCaml were swapped.
On a different note, I hope Owl allows flexibility over memory layout in future. Inter-operating with Fortran is often necessary. Besides that, compile time reshaping n-dimensinal-arrays is very useful for having efficient code. As far as I know Julia can do this with macros, may be without macros too.
> OCaml’s Bigarray can further use kind GADT to specify the
> number type, precision, and memory layout. In Owl, I only
> keep the first two but fix the last one because Owl only
> uses C-layout, or Row-based layout in its implementation.
> See the type definition in Ndarray module.