package ocaml-base-compiler

  1. Overview
  2. Docs
type ('a, 'b, 'c) t
val create : ('a, 'b) kind -> 'c layout -> int array -> ('a, 'b, 'c) t
val num_dims : ('a, 'b, 'c) t -> int
val dims : ('a, 'b, 'c) t -> int array
val nth_dim : ('a, 'b, 'c) t -> int -> int
val kind : ('a, 'b, 'c) t -> ('a, 'b) kind
val layout : ('a, 'b, 'c) t -> 'c layout
val change_layout : ('a, 'b, 'c) t -> 'd layout -> ('a, 'b, 'd) t
val size_in_bytes : ('a, 'b, 'c) t -> int
val get : ('a, 'b, 'c) t -> int array -> 'a
val set : ('a, 'b, 'c) t -> int array -> 'a -> unit
val sub_left : ('a, 'b, c_layout) t -> int -> int -> ('a, 'b, c_layout) t
val sub_right : ('a, 'b, fortran_layout) t -> int -> int -> ('a, 'b, fortran_layout) t
val slice_left : ('a, 'b, c_layout) t -> int array -> ('a, 'b, c_layout) t
val slice_right : ('a, 'b, fortran_layout) t -> int array -> ('a, 'b, fortran_layout) t
val blit : ('a, 'b, 'c) t -> ('a, 'b, 'c) t -> unit
val fill : ('a, 'b, 'c) t -> 'a -> unit
val map_file : Unix.file_descr -> ?pos:int64 -> ('a, 'b) kind -> 'c layout -> bool -> int array -> ('a, 'b, 'c) t
OCaml

Innovation. Community. Security.