0

Let

$$ f: \mathbb{R}^l \rightarrow{} \mathbb{R}^m\\[.7ex] h: \mathbb{R}^m \rightarrow{} \mathbb{R}^o$$

and let $$F = h \circ f \quad (F : \mathbb{R}^l \rightarrow{} \mathbb{R}^o)$$

I want to compute the Jacobian using Forward mode accumulation in one path.

I do understand the automatic differentiation way of working in the forward mode for simple cases.

So I think based on my knowledge if I want to compute $J_F$ using as many paths as I want I could do $\ (l\times m)$ paths. Since I am constrained with only one path, I start to get confused. I know I can do something with the initialization but it's very confused in my mind. Could you please help me to understand how to implement the forward mode just in one path using the Jacobian of $f$ and $h$ along the way?

Thanks

MarianD
  • 1,493
  • 2
  • 8
  • 17
lalaland
  • 131
  • 3

0 Answers0