module CCArray1:sig..end
status: deprecated
type'aprinter =Format.formatter -> 'a -> unit
type'asequence =('a -> unit) -> unit
type'aor_error =[ `Error of string | `Ok of 'a ]
typerandom =Random.State.t
typejson =[ `Assoc of (string * json) list
| `Bool of bool
| `Float of float
| `Int of int
| `List of json list
| `Null
| `String of string ]
type'ato_json ='a -> json
type'aof_json =json -> 'a or_error
type ('a, 'b, [< `R | `W ]) t
'a with C representation of type b'
with permissions 'permtype('a, 'b, [< `R | `W ])array_ =('a, 'b, [< `R | `W ] as 'c) t
exception WrongDimension
val make : ?x:'a ->
kind:('a, 'b) Bigarray.kind -> int -> ('a, 'b, [< `R | `W ]) tx : optional element to fill every slotkind : the kind of bigarrayval make_int : int -> (int, Bigarray.int_elt, [< `R | `W ]) t
val make_char : int -> (char, Bigarray.int8_unsigned_elt, [< `R | `W ]) t
val make_int8s : int -> (int, Bigarray.int8_signed_elt, [< `R | `W ]) t
val make_int8u : int -> (int, Bigarray.int8_unsigned_elt, [< `R | `W ]) t
val make_int16s : int -> (int, Bigarray.int16_signed_elt, [< `R | `W ]) t
val make_int16u : int -> (int, Bigarray.int16_unsigned_elt, [< `R | `W ]) t
val make_int32 : int -> (int32, Bigarray.int32_elt, [< `R | `W ]) t
val make_int64 : int -> (int64, Bigarray.int64_elt, [< `R | `W ]) t
val make_native : int -> (nativeint, Bigarray.nativeint_elt, [< `R | `W ]) t
val make_float32 : int -> (float, Bigarray.float32_elt, [< `R | `W ]) t
val make_float64 : int -> (float, Bigarray.float64_elt, [< `R | `W ]) t
val make_complex32 : int -> (Complex.t, Bigarray.complex32_elt, [< `R | `W ]) t
val make_complex64 : int -> (Complex.t, Bigarray.complex64_elt, [< `R | `W ]) t
val init : kind:('a, 'b) Bigarray.kind ->
f:(int -> 'a) -> int -> ('a, 'b, [< `R | `W ]) tval of_bigarray : ('a, 'b, Bigarray.c_layout) Bigarray.Array1.t ->
('a, 'b, [< `R | `W ]) tval to_bigarray : ('a, 'b, [ `R | `W ]) t ->
('a, 'b, Bigarray.c_layout) Bigarray.Array1.tval ro : ('a, 'b, [< `R | `W > `R ]) t -> ('a, 'b, [ `R ]) tval wo : ('a, 'b, [< `R | `W > `W ]) t -> ('a, 'b, [ `W ]) tval length : ('a, 'b, [< `R | `W > `R ]) t -> intval set : ('a, 'b, [< `R | `W > `W ]) t -> int -> 'a -> unitval get : ('a, 'b, [< `R | `W > `R ]) t -> int -> 'aval fill : ('a, 'b, [< `R | `W > `W ]) t -> 'a -> unitfill a x fills a with xval sub : ('a, 'b, [< `R | `W ] as 'c) t ->
int -> int -> ('a, 'b, 'c) tsub a i len takes the slice of length len starting at offset ival blit : ('a, 'b, [< `R | `W > `R ]) t ->
('a, 'b, [< `R | `W > `W ]) t -> unitval copy : ('a, 'b, [< `R | `W > `R ]) t -> ('a, 'b, [< `R | `W ]) tval iter : f:('a -> unit) -> ('a, 'b, [< `R | `W > `R ]) t -> unititer a ~f calls f v where get a i = v for each i < length a.
It iterates on all bits in increasing orderval iteri : f:(int -> 'a -> unit) -> ('a, 'b, [< `R | `W > `R ]) t -> unititeri a ~f calls f i v where get a i = v for each i < length a.
It iterates on all elements in increasing orderval foldi : ('b -> int -> 'a -> 'b) -> 'b -> ('a, 'c, [< `R | `W > `R ]) t -> 'b
val for_all : f:('a -> bool) -> ('a, 'b, [< `R | `W > `R ]) t -> bool
val exists : f:('a -> bool) -> ('a, 'b, [< `R | `W > `R ]) t -> bool
val pp : 'a printer ->
('a, 'b, [< `R | `W > `R ]) t printermodule Bool:sig..end
val map : ?res:('a, 'b, [< `R | `W > `W ] as 'c) t ->
f:('a -> 'a) ->
('a, 'b, [< `R | `W > `R ]) t -> ('a, 'b, 'c) t
val map2 : ?res:('a, 'b, [< `R | `W > `W ] as 'c) t ->
f:('a -> 'a2 -> 'a) ->
('a, 'b, [< `R | `W > `R ]) t ->
('a2, 'd, [< `R | `W > `R ]) t -> ('a, 'b, 'c) t
val append : ?res:('a, 'b, [< `R | `W > `W ] as 'c) t ->
('a, 'b, [< `R | `W > `R ]) t ->
('a, 'b, [< `R | `W > `R ]) t -> ('a, 'b, 'c) tappend a b ~into assumes length a + length b = length into and
copies a and b side by side in intoWrongDimension if dimensions do not matchval filter : ?res:(Bigarray.int8_unsigned_elt, [< `R | `W > `W ] as 'c) Bool.t ->
f:('a -> bool) ->
('a, 'b, [< `R | `W > `R ]) t ->
(Bigarray.int8_unsigned_elt, 'c) Bool.t
module type S =sig..end
module Int:Swith type elt = int
module Float:Swith type elt = float
val to_list : ('a, 'b, [< `R | `W > `R ]) t -> 'a list
val to_array : ('a, 'b, [< `R | `W > `R ]) t -> 'a array
val to_seq : ('a, 'b, [< `R | `W > `R ]) t -> 'a sequence
val of_array : kind:('a, 'b) Bigarray.kind -> 'a array -> ('a, 'b, [< `R | `W ]) tval to_yojson : 'a to_json ->
('a, 'b, [< `R | `W > `R ]) t to_json
val of_yojson : kind:('a, 'b) Bigarray.kind ->
'a of_json -> ('a, 'b, [< `R | `W ]) t of_json
val int_to_yojson : int to_json
val int_of_yojson : int of_json
val float_to_yojson : float to_json
val float_of_yojson : float of_jsonmodule View:sig..end