Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Original bug ID: 6263
Status: closed (set by @damiendoligez on 2016-01-27T15:05:32Z)
Fixed in version: 4.03.0+dev / +beta1
Related to: #6064
Monitored by: @gasche @hcarty
val Bigarray.kind_byte_size : ('a, 'b) kind -> int
(** [kind_byte_size k] is the length in bytes of an elements stored in a bigarray of kind [k]. *)
is useful in various contexts and cannot be written without resorting to Obj.magic.
The text was updated successfully, but these errors were encountered:
Comment author: @dbuenzli
Btw exposing caml_ba_byte_size as :
val Bigarray.byte_size : ('a, 'b, 'c) t -> int
would be nice too.
Sorry, something went wrong.
Comment author: @yallop
#6064 makes it possible to write kind_byte_size and byte_size without Obj.magic.
Cool, but that's still a function that I already cut and pasted a few times now. You'll most likely need it as soon as you are interfacing polymorphic bigarrays with C code.
Comment author: @damiendoligez
See #236 (#236).
Fixed in trunk (commit 192ccd0).
No branches or pull requests