9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-11-14 01:13:38 +01:00
qp2/ocaml/GaussianPrimitive.ml

18 lines
290 B
OCaml
Raw Normal View History

2019-01-25 11:39:31 +01:00
open Qptypes
2019-03-13 13:02:29 +01:00
open Sexplib.Std
2019-01-25 11:39:31 +01:00
type t =
2019-03-13 13:02:29 +01:00
{ sym : Symmetry.t ;
expo : AO_expo.t ;
} [@@deriving sexp]
2019-01-25 11:39:31 +01:00
let to_string p =
let { sym = s ; expo = e } = p in
Printf.sprintf "(%s, %22e)"
2019-03-13 13:02:29 +01:00
(Symmetry.to_string s)
(AO_expo.to_float e)
2019-01-25 11:39:31 +01:00
let of_sym_expo s e =
{ sym=s ; expo=e}