10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-11-15 02:23:39 +01:00
QCaml/CI/Phase.mli

23 lines
469 B
OCaml
Raw Normal View History

2019-02-15 13:48:48 +01:00
type t =
| Pos
| Neg
val of_nperm : int -> t
(** Returns the phase obtained by a given number of permuations. *)
2019-02-18 15:39:26 +01:00
val to_nperm : t -> int
(** Converts the phase to [1] or [0] permutations. *)
2019-02-18 19:45:41 +01:00
val add : t -> t -> t
(** Add a given phase to an existing phase. *)
2019-02-15 16:25:47 +01:00
val add_nperm : t -> int -> t
(** Add to an existing phase a given number of permutations. *)
2019-02-18 19:45:41 +01:00
val neg : t -> t
(** Negate the phase. *)
2019-02-15 13:48:48 +01:00
2019-02-16 10:21:54 +01:00
(** {1 Printers} *)
2019-02-15 13:48:48 +01:00
val pp_phase : Format.formatter -> t -> unit