sig
type ('a, 'b, 'c) t = ('a, 'b, 'c) Bigarray.Array1.t
val create :
('a, 'b) BatBigarray.kind ->
'c BatBigarray.layout -> int -> ('a, 'b, 'c) BatBigarray.Array1.t
external dim : ('a, 'b, 'c) BatBigarray.Array1.t -> int = "%caml_ba_dim_1"
external kind :
('a, 'b, 'c) BatBigarray.Array1.t -> ('a, 'b) BatBigarray.kind
= "caml_ba_kind"
external layout :
('a, 'b, 'c) BatBigarray.Array1.t -> 'c BatBigarray.layout
= "caml_ba_layout"
val change_layout :
('a, 'b, 'c) BatBigarray.Array1.t ->
'd BatBigarray.layout -> ('a, 'b, 'd) BatBigarray.Array1.t
val size_in_bytes : ('a, 'b, 'c) BatBigarray.Array1.t -> int
external get : ('a, 'b, 'c) BatBigarray.Array1.t -> int -> 'a
= "%caml_ba_ref_1"
external set : ('a, 'b, 'c) BatBigarray.Array1.t -> int -> 'a -> unit
= "%caml_ba_set_1"
external sub :
('a, 'b, 'c) BatBigarray.Array1.t ->
int -> int -> ('a, 'b, 'c) BatBigarray.Array1.t = "caml_ba_sub"
val slice :
('a, 'b, 'c) BatBigarray.Array1.t ->
int -> ('a, 'b, 'c) BatBigarray.Array0.t
external blit :
('a, 'b, 'c) BatBigarray.Array1.t ->
('a, 'b, 'c) BatBigarray.Array1.t -> unit = "caml_ba_blit"
external fill : ('a, 'b, 'c) BatBigarray.Array1.t -> 'a -> unit
= "caml_ba_fill"
val of_array :
('a, 'b) BatBigarray.kind ->
'c BatBigarray.layout -> 'a array -> ('a, 'b, 'c) BatBigarray.Array1.t
val map_file :
Unix.file_descr ->
?pos:int64 ->
('a, 'b) BatBigarray.kind ->
'c BatBigarray.layout -> bool -> int -> ('a, 'b, 'c) BatBigarray.Array1.t
val enum : ('a, 'b, 'c) BatBigarray.Array1.t -> 'a BatEnum.t
val of_enum :
('a, 'b) BatBigarray.kind ->
'c BatBigarray.layout ->
'a BatEnum.t -> ('a, 'b, 'c) BatBigarray.Array1.t
val map :
('a -> 'b) ->
('b, 'c) Bigarray.kind ->
('a, 'd, 'e) BatBigarray.Array1.t -> ('b, 'c, 'e) BatBigarray.Array1.t
val mapi :
(int -> 'a -> 'b) ->
('b, 'c) Bigarray.kind ->
('a, 'd, 'e) BatBigarray.Array1.t -> ('b, 'c, 'e) BatBigarray.Array1.t
val modify : ('a -> 'a) -> ('a, 'b, 'c) BatBigarray.Array1.t -> unit
val modifyi :
(int -> 'a -> 'a) -> ('a, 'b, 'c) BatBigarray.Array1.t -> unit
val to_array : ('a, 'b, 'c) BatBigarray.Array1.t -> 'a array
external unsafe_get : ('a, 'b, 'c) BatBigarray.Array1.t -> int -> 'a
= "%caml_ba_unsafe_ref_1"
external unsafe_set :
('a, 'b, 'c) BatBigarray.Array1.t -> int -> 'a -> unit
= "%caml_ba_unsafe_set_1"
end