简体   繁体   中英

Compute Hessian matrix for functions that involve matrix in matlab

Is it possible to compute the numerical hessian matrix for this function with respect to W_i , C , epsilon_i easily Matlab? I have computed a hessian by manually take a derivative, but I want to verify if my result is correct.

W = Nx1;
X = NxM;
X_i = Nx1;
y = 1xM;
C = 1x1;

这个功能

DERIVEST on the file exchange has a function for doing this. There are also tips for doing this eg in Section 18 of this tutorial , or many other places .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM