Closed Octachron closed 7 years ago
As discussed in #2 , this PR implements a set of functions
val to_bigarray[N]: 'c Bigarray.layout -> ('a,'b) Bigarray.kind -> packed_array[N] -> ('a,'b,'c) Bigarray.Array[N].t option
which unpacks a packed array if it underlyng type matches the kind and layout arguments and returns None otherwise. I am not sure if these names are ideal, so please feel free to rename those liberally.
kind
layout
None
Thanks for the PR!
As discussed in #2 , this PR implements a set of functions
which unpacks a packed array if it underlyng type matches the
kind
andlayout
arguments and returnsNone
otherwise. I am not sure if these names are ideal, so please feel free to rename those liberally.