i
or i:j
, where i
is the row element and j
the column element.h = EDist.hess(2:4:1,2,3,4,5);
If the needed element position index is one, we can drop the argument:g = exp.grad(1:5);
or g = exp.grad(5);
, h = log.hess(1:1:3)
or h = log.hess(3);
, and hess(i,j) = betareg.hess(ord(i):ord(j):expr1,expr2,expr3);
Hessian
to write the Hessian to a GDX file.