Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Owl_opt.Prms
SourceExample:
module Prms = struct
type 'a t = {a: 'a; b: 'a} [@@deriving prms]
end
Prms
has type PT
. The user defines the desired paramter record 'a t
and [@@deriving prms]
derives the corresponding functions map, map2, iter, and iter2.
input module type to functors that make optimisation modules such as Owl_opt.D.Adam.Make