2014-10-26 17:29:11 +01:00
|
|
|
type t = Bit.t list
|
|
|
|
|
|
|
|
(** The zero bit list *)
|
|
|
|
val zero : Qptypes.N_int_number.t -> t
|
|
|
|
|
|
|
|
(** Convert to a string for printing *)
|
|
|
|
val to_string : t -> string
|
|
|
|
|
2016-02-19 21:04:27 +01:00
|
|
|
(** Read from a string *)
|
2014-11-03 15:37:02 +01:00
|
|
|
val of_string : ?zero:char -> ?one:char -> string -> t
|
|
|
|
|
2016-02-19 21:04:27 +01:00
|
|
|
(** Read from a string with the ++-- notation *)
|
|
|
|
val of_string_mp : string -> t
|
|
|
|
|
2014-10-26 17:29:11 +01:00
|
|
|
(** int64 conversion functions *)
|
|
|
|
|
|
|
|
val of_int64 : int64 -> t
|
|
|
|
val to_int64 : t -> int64
|
|
|
|
|
2016-02-19 21:04:27 +01:00
|
|
|
val of_int64_list : int64 list -> t
|
2016-02-22 23:33:30 +01:00
|
|
|
val of_int64_array : int64 array -> t
|
2016-02-19 21:04:27 +01:00
|
|
|
val to_int64_list : t -> int64 list
|
|
|
|
val to_int64_array : t -> int64 array
|
2014-10-26 17:29:11 +01:00
|
|
|
|
|
|
|
(** Get the number of needed int64 elements to encode the bit list *)
|
|
|
|
val n_int_of_mo_tot_num : int -> Qptypes.N_int_number.t
|
|
|
|
|
|
|
|
(** Conversion to MO numbers *)
|
|
|
|
val to_mo_number_list : t -> Qptypes.MO_number.t list
|
|
|
|
val of_mo_number_list :
|
|
|
|
Qptypes.N_int_number.t -> Qptypes.MO_number.t list -> t
|
|
|
|
|
|
|
|
(** Logical operators *)
|
|
|
|
val and_operator : t -> t -> t
|
|
|
|
val xor_operator : t -> t -> t
|
|
|
|
val or_operator : t -> t -> t
|
|
|
|
val not_operator : t -> t
|
|
|
|
|
|
|
|
(** Count the number of bits set to one *)
|
|
|
|
val popcnt : t -> int
|