File tree 1 file changed +10
-6
lines changed 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -102,24 +102,28 @@ two calls to ``f`` to evaluate the gradient:
102
102
x_3 \\
103
103
x_4
104
104
\end{bmatrix}
105
-
106
- \vec{x}_{\epsilon} = \begin{bmatrix}
105
+ ```
106
+ 1st call:
107
+ ``` math
108
+ \to \vec{x}_{\epsilon} = \begin{bmatrix}
107
109
x_1 + \epsilon_1 \\
108
110
x_2 + \epsilon_2 \\
109
111
x_3 \\
110
112
x_4
111
113
\end{bmatrix}
112
114
\to
113
- f(\vec{x}_{\epsilon}) = f(\vec{x}) + \frac{\delta f(\vec{x})}{\delta x_1} \epsilon_1 + \frac{\delta f(\vec{x})}{\delta x_2} \epsilon_2
114
-
115
- \vec{x}_{\epsilon} = \begin{bmatrix}
115
+ f(\vec{x}_{\epsilon}) = f(\vec{x}) + \frac{\delta f(\vec{x})}{\delta x_1} \epsilon_1 + \frac{\delta f(\vec{x})}{\delta x_2} \epsilon_2,
116
+ ```
117
+ 2nd call:
118
+ ``` math
119
+ \to \vec{x}_{\epsilon} = \begin{bmatrix}
116
120
x_1 \\
117
121
x_2 \\
118
122
x_3 + \epsilon_1 \\
119
123
x_4 + \epsilon_2
120
124
\end{bmatrix}
121
125
\to
122
- f(\vec{x}_{\epsilon}) = f(\vec{x}) + \frac{\delta f(\vec{x})}{\delta x_3} \epsilon_1 + \frac{\delta f(\vec{x})}{\delta x_4} \epsilon_2
126
+ f(\vec{x}_{\epsilon}) = f(\vec{x}) + \frac{\delta f(\vec{x})}{\delta x_3} \epsilon_1 + \frac{\delta f(\vec{x})}{\delta x_4} \epsilon_2.
123
127
```
124
128
125
129
This seeding process is similar for Jacobians, so we won't rehash it here.
You can’t perform that action at this time.
0 commit comments