Registry / utility / autodiff

autodiff

JSON →
library0.7.0rscratesunverified

An automatic differentiation library for Rust.

# Cargo.toml [dependencies] autodiff = "0.7.0"
INSTALL
IMPORT
SIG · AUTODIFF
A
autodiff
utilityrustv0.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

autodiff
use autodiff::autodiff;

Computes the derivative of a function using automatic differentiation.

use autodiff::autodiff; #[autodiff] fn f(x: f64) -> f64 { x.powi(2) } fn main() { let (y, dy) = f(3.0); println!("f(3) = {}, f'(3) = {}", y, dy); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.7.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
2
Resources
autodiff — cargo add autodiff · libregistry