Crates.io | ast_topology |
lib.rs | ast_topology |
version | 0.0.4 |
source | src |
created_at | 2020-12-23 07:34:31.135253 |
updated_at | 2020-12-26 05:15:46.148522 |
description | Differentiable programming for Rust |
homepage | |
repository | https://github.com/andrew-johnson-4/ast_topology |
max_upload_size | |
id | 326422 |
size | 17,425 |
Differentiable programming for Rust
This package is no more than sugar for existing Rust autograd libraries.
autograd!{
let x; let y;
let z = 2.*x*x + 3.*y + 1.;
assert_eq!(eval (dz/dy), Ok(3.0));
assert_eq!(eval [x=2.] (dz/dx), Ok(8.0));
assert_eq!(eval (ddz/dx), Ok(4.0));
};
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in ast_topology by you, shall be dual licensed under the MIT and Apache 2.0 license without any additional terms or conditions.
Code is dual licensed under either Apache or MIT Licenses.