Module Owl_opt.Prms
Example:
module Prms = struct
type 'a t = {a: 'a; b: 'a} [@@deriving prms]
endPrms has type PT. The user defines the desired paramter record 'a t and [@@deriving prms] derives the corresponding functions map, map2, iter, and iter2.
module type PT = sig ... endinput module type to functors that make optimisation modules such as
Owl_opt.D.Adam.Make
module Single : sig ... endmodule for single paramter
a
module Pair : sig ... endmodule for pair paramters
(a1,a2)