zoharl3
zoharl3
In high contrast mode it looks a mess.
Looks like it's working. Not sure if perfectly, e.g. I can assign (or multiply) VectorXd to (by) VectorXdual, but not VectorXcd to (by) VectorXcdual. Maybe it needs casting or something;...
The answer is no. The dual var is probably maintaining some counting while diffing, so it can be shared across threads. Say we differentiate n (small) elements wrt to x...
Long story short, it's not really a thread-safety issue. I was only emphasizing the obvious: when differentiating wrt a dual var, then the dual var changes (it's not read-only; the...
My wording was careless--I used var as short for variable. I meant dual (or more specifically VectorXdual2nd), and I use only forward mode (reverse is too slow for my problem)....
Thanks for the tip.
I actually read #109 when I first thought about this, but when I posted, I couldn't find it at the time to cite it. While the subjects are similar, it...
This isn't urgent, and unfortunately, I couldn't afford spending time on this unless absolutely necessary (e.g. I'll calculate the Hessian manually before that). Currently, I solve many small problems, calculating...
So I'd consider: how would you go about implementing this feature (reusing the expression tree)? I haven't looked at the source code yet, but maybe some initial tips would mitigate...
I looked at it, and it seems doable. However, I'm not sure if it's what I'm looking for. I tried the reverse mode on a small model. It took around...