Module Core_kernel.Uniform_array

Same semantics as 'a Array.t, except it's guaranteed that the representation array is not tagged with Double_array_tag, the tag for float arrays. This means it's safer to use in the presence of Obj.magic, but it's slower than normal Array if you use it with floats.

It can often be faster than Array if you use it with non-floats.

type 'a t

See Core.Array for comments.

include sig ... end
val t_of_sexp : (Sexplib.Sexp.t ‑> 'a) ‑> Sexplib.Sexp.t ‑> 'a t
val sexp_of_t : ('a ‑> Sexplib.Sexp.t) ‑> 'a t ‑> Sexplib.Sexp.t
val bin_read_t : 'a Bin_prot.Read.reader ‑> 'a t Bin_prot.Read.reader
val bin_size_t : 'a Bin_prot.Size.sizer ‑> 'a t Bin_prot.Size.sizer
val bin_write_t : 'a Bin_prot.Write.writer ‑> 'a t Bin_prot.Write.writer
val bin_shape_t : Bin_prot.Shape.t ‑> Bin_prot.Shape.t
val empty : _ t
val create : len:Core_kernel__.Import.int ‑> 'a ‑> 'a t
val init : Core_kernel__.Import.int ‑> f:(Core_kernel__.Import.int ‑> 'a) ‑> 'a t
val length : 'a t ‑> Core_kernel__.Import.int
val get : 'a t ‑> Core_kernel__.Import.int ‑> 'a
val unsafe_get : 'a t ‑> Core_kernel__.Import.int ‑> 'a
val set : 'a t ‑> Core_kernel__.Import.int ‑> 'a ‑> Core_kernel__.Import.unit
val unsafe_set : 'a t ‑> Core_kernel__.Import.int ‑> 'a ‑> Core_kernel__.Import.unit
val map : 'a t ‑> f:('a ‑> 'b) ‑> 'b t
val iter : 'a t ‑> f:('a ‑> Core_kernel__.Import.unit) ‑> Core_kernel__.Import.unit
val of_array : 'a Core_kernel__.Import.array ‑> 'a t
val to_array : 'a t ‑> 'a Core_kernel__.Import.array

to_array t returns a fresh array with the same contents as t, rather than returning a reference to the underlying array.

val of_list : 'a Core_kernel__.Import.list ‑> 'a t
val to_list : 'a t ‑> 'a Core_kernel__.Import.list
include Blit.S1 with type t := a t
type 'a t
val blit : ('a t'a tBase.Blit_intf.blit
val blito : ('a t'a tBase.Blit_intf.blito
val unsafe_blit : ('a t'a tBase.Blit_intf.blit
val sub : ('a t'a tBase.Blit_intf.sub
val subo : ('a t'a tBase.Blit_intf.subo
val copy : 'a t ‑> 'a t