summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorArielG-NV <159081215+ArielG-NV@users.noreply.github.com>2025-06-03 12:01:07 -0700
committerGitHub <noreply@github.com>2025-06-03 19:01:07 +0000
commitff4017fec51e0cc7e867338ddeb52373ec37a591 (patch)
tree6f2bc50215554d4dafc0104e9ea1d380de8de224 /docs
parent446cf08b06eee9907e2eaf9df9dc01bc895904c8 (diff)
Fix grammer for auto-diff doc (#7215)
1. "here, $$f$$ here has" => "here, $$f$$ has" 2. $f$ ==> $$f$$ * $f$ does not render on website, works on vscode
Diffstat (limited to 'docs')
-rw-r--r--docs/user-guide/07-autodiff.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/user-guide/07-autodiff.md b/docs/user-guide/07-autodiff.md
index ef60da4a5..2752500a7 100644
--- a/docs/user-guide/07-autodiff.md
+++ b/docs/user-guide/07-autodiff.md
@@ -29,7 +29,7 @@ As an example, consider a polynomial function
$$ f(x, y) = x^3 + x^2 - y $$
-Here, $$f$$ here has 1 output and 2 inputs. $$Df$$ is therefore the row matrix:
+Here, $$f$$ has 1 output and 2 inputs. $$Df$$ is therefore the row matrix:
$$ Df(x, y) = [\frac{\partial f}{\partial x}, \frac{\partial f}{\partial y}] = [3x^2 + 2x, -1] $$
@@ -56,7 +56,7 @@ There are two basic ways to compute this product:
2. the vector-Jacobian product $$ \langle \mathbf{v}^T, D\mathbf{f}(\mathbf{x}) \rangle $$, also called reverse-mode autodiff, and can be computed using `bwd_diff` operator in Slang. From a linear algebra perspective, this is the transpose of the forward-mode operator.
#### Propagating derivatives with forward-mode auto-diff
-The products described above allow the _propagation_ of derivatives forward and backward through the function $f$
+The products described above allow the _propagation_ of derivatives forward and backward through the function $$f$$
The forward-mode derivative (Jacobian-vector product) can convert a derivative of the inputs to a derivative of the outputs.
For example, let's say inputs $$\mathbf{x}$$ depend on some scalar $$\theta$$, and $$\frac{\partial \mathbf{x}}{\partial \theta}$$ is a vector of partial derivatives describing that dependency.