qp2/ocaml/Gto.mli

21 lines
485 B
OCaml
Raw Permalink Normal View History

2019-01-25 11:39:31 +01:00
exception GTO_Read_Failure of string
exception End_Of_Basis
type fmt =
| Gamess
| Gaussian
type t =
2021-05-21 16:42:48 +02:00
{ sym : Angmom.t ;
2019-01-25 11:39:31 +01:00
lc : (GaussianPrimitive.t * Qptypes.AO_coef.t) list;
} [@@deriving sexp]
(** Create from a list of GaussianPrimitive.t * Qptypes.AO_coef.t *)
val of_prim_coef_list :
(GaussianPrimitive.t * Qptypes.AO_coef.t) list -> t
(** Read from a file *)
val read_one : in_channel -> t
(** Convert to string for printing *)
val to_string : ?fmt:fmt -> t -> string