Registered Member
|
Hi all
does Eigen provide a way to calculate a numerical gradient matrix the way Matlab does with the gradient command? Matlab sample:
If not, is there some (clever) implementation of the Matlab diff functionality in Eigen? Regards vernal |
Registered Member
|
I don't think Eigen has something like Matlab's gradient. However, Matlab's diff can easily be translated into Eigen code:
|
Registered Member
|
Thank you! Do you know if this formulation in Eigen can be optimized by the compiler (using SSE etc.)?
|
Registered Member
|
If your matrices are dynamic-sized (as in MatrixXf) and large enough, Eigen will vectorize that.
Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list! |
Registered Member
|
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft