Pickles_types.Vector
Vectors for Pickles
module T : sig ... end
type ('a, 'n) vec = ( 'a, 'n ) t
module L : sig ... end
module type Nat_intf = Nat.Intf
module type S = sig ... end
module type VECTOR = sig ... end
module With_version (N : Nat.Intf) : sig ... end
val typ :
( 'a, 'b, 'c ) Snarky_backendless.Typ.t ->
'd Nat.nat ->
( ( 'a, 'd ) vec, ( 'b, 'd ) vec, 'c ) Snarky_backendless.Typ.t
val typ' :
( ( 'var, 'value, 'f ) Snarky_backendless.Typ.t, 'n ) t ->
( ( 'var, 'n ) t, ( 'value, 'n ) t, 'f ) Snarky_backendless.Typ.t
val of_list : 'a list -> 'a e
val to_list : ( 'a, 'n ) t -> 'a list
val sexp_of_t :
( 'a -> Ppx_sexp_conv_lib.Sexp.t ) ->
'b ->
( 'a, 'c ) t ->
Ppx_sexp_conv_lib.Sexp.t
zip v1 v2
combines together vectors v1
and v2
of length 'b
.
val mapn :
'xs 'y 'n. ( 'xs, 'n ) Hlist0.H1_1(T).t ->
f:( 'xs Hlist0.HlistId.t -> 'y ) ->
( 'y, 'n ) t
val to_array : ( 'a, 'b ) t -> 'a array
val foldi : ( 'a, 'b ) t -> f:( int -> 'c -> 'a -> 'c ) -> init:'c -> 'c
val fold : ( 'a, 'n ) t -> f:( 'acc -> 'a -> 'acc ) -> init:'acc -> 'acc
val reduce_exn : ( 'a, 'n ) t -> f:( 'a -> 'a -> 'a ) -> 'a
val iter : ( 'a, 'n ) t -> f:( 'a -> unit ) -> unit
val iteri : ( 'a, 'n ) t -> f:( int -> 'a -> unit ) -> unit
val for_all : ( 'a, 'n ) t -> f:( 'a -> bool ) -> bool
val split :
( 'a, 'n_m ) t ->
( 'n, 'm, 'n_m ) Nat.Adds.t ->
( 'a, 'n ) t * ( 'a, 'm ) t
val append :
( 'a, 'n ) vec ->
( 'a, 'm ) vec ->
( 'n, 'm, 'n_m ) Nat.Adds.t ->
( 'a, 'n_m ) vec