mirror of
https://gitlab.com/scemama/QCaml.git
synced 2024-11-15 10:33:39 +01:00
13 lines
202 B
OCaml
13 lines
202 B
OCaml
|
type t =
|
||
|
| Pos
|
||
|
| Neg
|
||
|
|
||
|
let of_nperm nperm =
|
||
|
if (nperm land 1) = 1 then Neg
|
||
|
else Pos
|
||
|
|
||
|
let pp_phase ppf = function
|
||
|
| Pos -> Format.fprintf ppf "@[<h>+1@]"
|
||
|
| Neg -> Format.fprintf ppf "@[<h>-1@]"
|
||
|
|