tmp update

This commit is contained in:
张壹 2022-02-17 16:47:20 +08:00
parent 9d31decd84
commit 24235f44ca

View File

@ -461,6 +461,7 @@ int lbfgs(
we assume the initial hessian matrix H_0 as the identity matrix.
*/
// 初始下降方向为梯度的反方向
// LBFGS中下降方向为 -1*H_k*g_k
if (param.orthantwise_c == 0.) {
vecncpy(d, g, n); //拷贝数组 并反号(乘-1
} else {