Skip to content

ibab/rust-ad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-ad

Automatic differentiation library for rust. Currently only supports first order forward AD.

Example

Calculate gradient of exp(x/y^2) at (1, 2):

let result = ad::grad(|x| { Float::exp(x[0] / Float::powi(x[1], 2)) }, vec![1.0, 2.0]);
println!("Out: {}", result);
// Out: [0.321006, -0.321006]

About

Automatic differentiation library for rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages