Float_u.ArraySourceThe Array module provides some helpers that wrap common operations on floatarrays with appropriate boxing or unboxing to work with float#.
These functions are provided just for convenience. They are equivalent (in semantics and performance) to just using the same functions from the Float_array library and appropriate calls to to_float or of_float. The compiler should erase the extra boxing/unboxing steps either way.
include Array with type t = Float_array.t and type elt := float#include Array_getters_and_setters with type t := t and type elt := float#Identity no-op conversions between t and elt array. They are the same type at runtime.
include Core.Bin_prot.Binable.S with type t := tinclude Bin_prot.Binable.S_only_functions with type t := tinclude sig ... endThis function only needs implementation if t exposed to be a polymorphic variant. Despite what the type reads, this does *not* produce a function after reading; instead it takes the constructor tag (int) before reading and reads the rest of the variant t afterwards.