ad_trait 0.3.1

Easy to use, efficient, and highly flexible automatic differentiation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Examples

The `ad_trait` repository contains several examples that demonstrate the library in action.

## Built-in Examples

Check the `examples/` directory in the crate for standalone programs:
- `test.rs`: A general demonstration of forward and reverse AD.

## Regression Tests

The `tests/regression_tests.rs` file contains many examples of differentiating complex functions, including:
- Multi-variate polynomials.
- Matrix-vector multiplication.
- Jacobian calculations for multiple outputs.

These tests serve as an excellent reference for how to structure your own differentiable functions.