Skip to content

modular-implicits/autodiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library for forward differentation using the Num module available in imp

As an example you can write arbitrary functions on numbers:

let alg {N : Floating} (x : N.t) : N.t = N.exp x;;

(* You can then use this with the d data-type to forward differentiate *)

let (value, diff) = (alg (idD (2.)))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages