package owl-opt

  1. Overview
  2. Docs

Example:

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.

module type PT = sig ... end

input module type to functors that make optimisation modules such as Owl_opt.D.Adam.Make

module Single : sig ... end

module for single paramter a

module Pair : sig ... end

module for pair paramters (a1,a2)

OCaml

Innovation. Community. Security.