Dynamic-Calibration/utils/YALMIP-master/extras/pennlp_funhess.m

10 lines
204 B
Mathematica
Raw Permalink Normal View History

2019-12-18 11:25:45 +00:00
function [nnz,row, col, val] = pennlp_funhess(x)
H = datasaver(3,x);
H = reshape(H,sqrt(length(H)),sqrt(length(H)));
[row,col,val] = find(tril(H));
nnz = length(val);
row = row';
col = col';
val = val';