Sparse_vec.Make
module M : Mavryk_base.TzPervasives.Map.S
type t = R.t M.t
type basis = M.key
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 : R.t -> t -> t
val neg : t -> t
val fold : (basis -> R.t -> 'b -> 'b) -> t -> 'b -> 'b
val iter : (basis -> R.t -> unit) -> t -> unit
val find_map : (basis -> R.t -> 'res option) -> t -> 'res option
val set : t -> basis -> R.t -> t
val get_exn : t -> basis -> R.t
val get_opt : t -> basis -> R.t option
val get : t -> basis -> R.t
Returns zero if basis is not found in t.
zero
basis
t
val swap : t -> basis -> basis -> t
val of_list : (basis * R.t) list -> t
val to_list : t -> (basis * R.t) list
val pp : pp_basis:(Stdlib.Format.formatter -> basis -> unit) -> pp_element:(Stdlib.Format.formatter -> R.t -> unit) -> Stdlib.Format.formatter -> t -> unit
module Op : sig ... end