package tezos-benchmark

  1. Overview
  2. Docs
type t
type basis = t
val is_empty : t -> bool
val compare : t -> t -> int
val equal : t -> t -> bool
val zero : t
val add : t -> t -> t
val smul : Tezos_benchmark.Sparse_vec.R.t -> t -> t
val neg : t -> t
val fold : (basis -> Tezos_benchmark.Sparse_vec.R.t -> 'b -> 'b) -> t -> 'b -> 'b
val iter : (basis -> Tezos_benchmark.Sparse_vec.R.t -> unit) -> t -> unit
val find_map : (basis -> Tezos_benchmark.Sparse_vec.R.t -> 'res option) -> t -> 'res option
val set : t -> basis -> Tezos_benchmark.Sparse_vec.R.t -> t
val get_exn : t -> basis -> Tezos_benchmark.Sparse_vec.R.t
val get_opt : t -> basis -> Tezos_benchmark.Sparse_vec.R.t option
val get : t -> basis -> Tezos_benchmark.Sparse_vec.R.t

Returns zero if basis is not found in t.

val swap : t -> basis -> basis -> t
val of_list : (basis * Tezos_benchmark.Sparse_vec.R.t) list -> t
val to_list : t -> (basis * Tezos_benchmark.Sparse_vec.R.t) list
val pp : pp_basis:(Stdlib.Format.formatter -> basis -> unit) -> pp_element: (Stdlib.Format.formatter -> Tezos_benchmark.Sparse_vec.R.t -> unit) -> Stdlib.Format.formatter -> t -> unit
module Op : sig ... end
OCaml

Innovation. Community. Security.