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
# Automatic Differentiation Modes

`ad_trait` supports three primary modes of differentiation, each with its own strengths and weaknesses.

## Summary Table

| Mode | Type | Speed (Few Inputs) | Speed (Many Inputs) | Precision |
| :--- | :--- | :--- | :--- | :--- |
| **Forward-Mode** | Exact | Very Fast | Slow | Exact |
| **Reverse-Mode** | Exact | Moderate | Very Fast | Exact |
| **Hessian AD** | Exact | Moderate | Slow | Exact |
| **Finite Differencing** | Approx | Fast | Very Slow | Low |

In the following chapters, we will explore each of these modes in detail.