/usr/include/ITK-4.5/opt/lbfgsb.h is in libinsighttoolkit4-dev 4.5.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 | extern int v3p_netlib_setulb_(
v3p_netlib_integer v3p_netlib_const *n, /* dimension of the problem */
v3p_netlib_integer v3p_netlib_const *m, /* max num of metric corrections */
v3p_netlib_doublereal *x, /* IN: old approximation, OUT: new approximation */
v3p_netlib_doublereal v3p_netlib_const *l, /* lower bound on x */
v3p_netlib_doublereal v3p_netlib_const *u, /* upper bound on x */
v3p_netlib_integer v3p_netlib_const *nbd, /* type of bounds, see below */
v3p_netlib_doublereal *f, /* OUT: value of function at x */
v3p_netlib_doublereal *g, /* OUT: value of gradient at x */
v3p_netlib_doublereal v3p_netlib_const *factr, /* accruacy, see below */
v3p_netlib_doublereal v3p_netlib_const *pgtol, /* tolerance, see below */
v3p_netlib_doublereal *wa, /* working space (2m + 4)n + 12m^2 + 12m */
v3p_netlib_integer *iwa, /* working space 3n */
char *task, /* working space 60 chars, init to START */
v3p_netlib_integer v3p_netlib_const *iprint, /* output level, see below */
char *csave, /* working space 60 chars */
v3p_netlib_logical *lsave, /* working space 4 */
v3p_netlib_integer *isave, /* working space 44 */
v3p_netlib_doublereal *dsave /* working space 29 */
);
/*
* nbd is an integer array of dimension n.
* On entry nbd represents the type of bounds imposed on the
* variables, and must be specified as follows:
* nbd(i)=0 if x(i) is unbounded,
* 1 if x(i) has only a lower bound,
* 2 if x(i) has both lower and upper bounds, and
* 3 if x(i) has only an upper bound.
* On exit nbd is unchanged.
*
* factr is a double precision variable.
* On entry factr >= 0 is specified by the user. The iteration
* will stop when
*
* (f^k - f^{k+1})/max{|f^k|,|f^{k+1}|,1} <= factr*epsmch
*
* where epsmch is the machine precision, which is automatically
* generated by the code. Typical values for factr: 1.d+12 for
* low accuracy; 1.d+7 for moderate accuracy; 1.d+1 for extremely
* high accuracy.
* On exit factr is unchanged.
*
* pgtol is a double precision variable.
* On entry pgtol >= 0 is specified by the user. The iteration
* will stop when
*
* max{|proj g_i | i = 1, ..., n} <= pgtol
*
* where pg_i is the ith component of the projected gradient.
* On exit pgtol is unchanged.
*
* iprint is an integer variable that must be set by the user.
* It controls the frequency and type of output generated:
* iprint<0 no output is generated;
* iprint=0 print only one line at the last iteration;
* 0<iprint<99 print also f and |proj g| every iprint iterations;
* iprint=99 print details of every iteration except n-vectors;
* iprint=100 print also the changes of active set and final x;
* iprint>100 print details of every iteration including x and g;
* When iprint > 0, the file iterate.dat will be created to
* summarize the iteration.
*
*/
extern int v3p_netlib_mainlb_(
v3p_netlib_integer *n,
v3p_netlib_integer *m,
v3p_netlib_doublereal *x,
v3p_netlib_doublereal *l,
v3p_netlib_doublereal *u,
v3p_netlib_integer *nbd,
v3p_netlib_doublereal *f,
v3p_netlib_doublereal *g,
v3p_netlib_doublereal *factr,
v3p_netlib_doublereal *pgtol,
v3p_netlib_doublereal *ws,
v3p_netlib_doublereal *wy,
v3p_netlib_doublereal *sy,
v3p_netlib_doublereal *ss,
v3p_netlib_doublereal *wt,
v3p_netlib_doublereal *wn,
v3p_netlib_doublereal *snd,
v3p_netlib_doublereal *z__,
v3p_netlib_doublereal *r__,
v3p_netlib_doublereal *d__,
v3p_netlib_doublereal *t,
v3p_netlib_doublereal *xp,
v3p_netlib_doublereal *wa,
v3p_netlib_integer *index,
v3p_netlib_integer *iwhere,
v3p_netlib_integer *indx2,
char *task,
v3p_netlib_integer *iprint,
char *csave,
v3p_netlib_logical *lsave,
v3p_netlib_integer *isave,
v3p_netlib_doublereal *dsave,
v3p_netlib_ftnlen task_len,
v3p_netlib_ftnlen csave_len
);
extern int v3p_netlib_active_(
v3p_netlib_integer *n,
v3p_netlib_doublereal *l,
v3p_netlib_doublereal *u,
v3p_netlib_integer *nbd,
v3p_netlib_doublereal *x,
v3p_netlib_integer *iwhere,
v3p_netlib_integer *iprint,
v3p_netlib_logical *prjctd,
v3p_netlib_logical *cnstnd,
v3p_netlib_logical *boxed
);
extern int v3p_netlib_bmv_(
v3p_netlib_integer *m,
v3p_netlib_doublereal *sy,
v3p_netlib_doublereal *wt,
v3p_netlib_integer *col,
v3p_netlib_doublereal *v,
v3p_netlib_doublereal *p,
v3p_netlib_integer *info
);
extern int v3p_netlib_cauchy_(
v3p_netlib_integer *n,
v3p_netlib_doublereal *x,
v3p_netlib_doublereal *l,
v3p_netlib_doublereal *u,
v3p_netlib_integer *nbd,
v3p_netlib_doublereal *g,
v3p_netlib_integer *iorder,
v3p_netlib_integer *iwhere,
v3p_netlib_doublereal *t,
v3p_netlib_doublereal *d__,
v3p_netlib_doublereal *xcp,
v3p_netlib_integer *m,
v3p_netlib_doublereal *wy,
v3p_netlib_doublereal *ws,
v3p_netlib_doublereal *sy,
v3p_netlib_doublereal *wt,
v3p_netlib_doublereal *theta,
v3p_netlib_integer *col,
v3p_netlib_integer *head,
v3p_netlib_doublereal *p,
v3p_netlib_doublereal *c__,
v3p_netlib_doublereal *wbp,
v3p_netlib_doublereal *v,
v3p_netlib_integer *nseg,
v3p_netlib_integer *iprint,
v3p_netlib_doublereal *sbgnrm,
v3p_netlib_integer *info,
v3p_netlib_doublereal *epsmch
);
extern int v3p_netlib_cmprlb_(
v3p_netlib_integer *n,
v3p_netlib_integer *m,
v3p_netlib_doublereal *x,
v3p_netlib_doublereal *g,
v3p_netlib_doublereal *ws,
v3p_netlib_doublereal *wy,
v3p_netlib_doublereal *sy,
v3p_netlib_doublereal *wt,
v3p_netlib_doublereal *z__,
v3p_netlib_doublereal *r__,
v3p_netlib_doublereal *wa,
v3p_netlib_integer *index,
v3p_netlib_doublereal *theta,
v3p_netlib_integer *col,
v3p_netlib_integer *head,
v3p_netlib_integer *nfree,
v3p_netlib_logical *cnstnd,
v3p_netlib_integer *info
);
extern int v3p_netlib_errclb_(
v3p_netlib_integer *n,
v3p_netlib_integer *m,
v3p_netlib_doublereal *factr,
v3p_netlib_doublereal *l,
v3p_netlib_doublereal *u,
v3p_netlib_integer *nbd,
char *task,
v3p_netlib_integer *info,
v3p_netlib_integer *k,
v3p_netlib_ftnlen task_len
);
extern int v3p_netlib_formk_(
v3p_netlib_integer *n,
v3p_netlib_integer *nsub,
v3p_netlib_integer *ind,
v3p_netlib_integer *nenter,
v3p_netlib_integer *ileave,
v3p_netlib_integer *indx2,
v3p_netlib_integer *iupdat,
v3p_netlib_logical *updatd,
v3p_netlib_doublereal *wn,
v3p_netlib_doublereal *wn1,
v3p_netlib_integer *m,
v3p_netlib_doublereal *ws,
v3p_netlib_doublereal *wy,
v3p_netlib_doublereal *sy,
v3p_netlib_doublereal *theta,
v3p_netlib_integer *col,
v3p_netlib_integer *head,
v3p_netlib_integer *info
);
extern int v3p_netlib_formt_(
v3p_netlib_integer *m,
v3p_netlib_doublereal *wt,
v3p_netlib_doublereal *sy,
v3p_netlib_doublereal *ss,
v3p_netlib_integer *col,
v3p_netlib_doublereal *theta,
v3p_netlib_integer *info
);
extern int v3p_netlib_freev_(
v3p_netlib_integer *n,
v3p_netlib_integer *nfree,
v3p_netlib_integer *index,
v3p_netlib_integer *nenter,
v3p_netlib_integer *ileave,
v3p_netlib_integer *indx2,
v3p_netlib_integer *iwhere,
v3p_netlib_logical *wrk,
v3p_netlib_logical *updatd,
v3p_netlib_logical *cnstnd,
v3p_netlib_integer *iprint,
v3p_netlib_integer *iter
);
extern int v3p_netlib_hpsolb_(
v3p_netlib_integer *n,
v3p_netlib_doublereal *t,
v3p_netlib_integer *iorder,
v3p_netlib_integer *iheap
);
extern int v3p_netlib_lnsrlb_(
v3p_netlib_integer *n,
v3p_netlib_doublereal *l,
v3p_netlib_doublereal *u,
v3p_netlib_integer *nbd,
v3p_netlib_doublereal *x,
v3p_netlib_doublereal *f,
v3p_netlib_doublereal *fold,
v3p_netlib_doublereal *gd,
v3p_netlib_doublereal *gdold,
v3p_netlib_doublereal *g,
v3p_netlib_doublereal *d__,
v3p_netlib_doublereal *r__,
v3p_netlib_doublereal *t,
v3p_netlib_doublereal *z__,
v3p_netlib_doublereal *stp,
v3p_netlib_doublereal *dnorm,
v3p_netlib_doublereal *dtd,
v3p_netlib_doublereal *xstep,
v3p_netlib_doublereal *stpmx,
v3p_netlib_integer *iter,
v3p_netlib_integer *ifun,
v3p_netlib_integer *iback,
v3p_netlib_integer *nfgv,
v3p_netlib_integer *info,
char *task,
v3p_netlib_logical *boxed,
v3p_netlib_logical *cnstnd,
char *csave,
v3p_netlib_integer *isave,
v3p_netlib_doublereal *dsave,
v3p_netlib_ftnlen task_len,
v3p_netlib_ftnlen csave_len
);
extern int v3p_netlib_matupd_(
v3p_netlib_integer *n,
v3p_netlib_integer *m,
v3p_netlib_doublereal *ws,
v3p_netlib_doublereal *wy,
v3p_netlib_doublereal *sy,
v3p_netlib_doublereal *ss,
v3p_netlib_doublereal *d__,
v3p_netlib_doublereal *r__,
v3p_netlib_integer *itail,
v3p_netlib_integer *iupdat,
v3p_netlib_integer *col,
v3p_netlib_integer *head,
v3p_netlib_doublereal *theta,
v3p_netlib_doublereal *rr,
v3p_netlib_doublereal *dr,
v3p_netlib_doublereal *stp,
v3p_netlib_doublereal *dtd
);
extern int v3p_netlib_projgr_(
v3p_netlib_integer *n,
v3p_netlib_doublereal *l,
v3p_netlib_doublereal *u,
v3p_netlib_integer *nbd,
v3p_netlib_doublereal *x,
v3p_netlib_doublereal *g,
v3p_netlib_doublereal *sbgnrm
);
extern int v3p_netlib_subsm_(
v3p_netlib_integer *n,
v3p_netlib_integer *m,
v3p_netlib_integer *nsub,
v3p_netlib_integer *ind,
v3p_netlib_doublereal *l,
v3p_netlib_doublereal *u,
v3p_netlib_integer *nbd,
v3p_netlib_doublereal *x,
v3p_netlib_doublereal *d__,
v3p_netlib_doublereal *xp,
v3p_netlib_doublereal *ws,
v3p_netlib_doublereal *wy,
v3p_netlib_doublereal *theta,
v3p_netlib_doublereal *xx,
v3p_netlib_doublereal *gg,
v3p_netlib_integer *col,
v3p_netlib_integer *head,
v3p_netlib_integer *iword,
v3p_netlib_doublereal *wv,
v3p_netlib_doublereal *wn,
v3p_netlib_integer *iprint,
v3p_netlib_integer *info
);
extern int v3p_netlib_dcsrch_(
v3p_netlib_doublereal *f,
v3p_netlib_doublereal *g,
v3p_netlib_doublereal *stp,
v3p_netlib_doublereal *ftol,
v3p_netlib_doublereal *gtol,
v3p_netlib_doublereal *xtol,
v3p_netlib_doublereal *stpmin,
v3p_netlib_doublereal *stpmax,
char *task,
v3p_netlib_integer *isave,
v3p_netlib_doublereal *dsave,
v3p_netlib_ftnlen task_len
);
extern int v3p_netlib_dcstep_(
v3p_netlib_doublereal *stx,
v3p_netlib_doublereal *fx,
v3p_netlib_doublereal *dx,
v3p_netlib_doublereal *sty,
v3p_netlib_doublereal *fy,
v3p_netlib_doublereal *dy,
v3p_netlib_doublereal *stp,
v3p_netlib_doublereal *fp,
v3p_netlib_doublereal *dp,
v3p_netlib_logical *brackt,
v3p_netlib_doublereal *stpmin,
v3p_netlib_doublereal *stpmax
);
extern v3p_netlib_doublereal v3p_netlib_dpmeps_(
);
extern int v3p_netlib_dtrsl_(
v3p_netlib_doublereal *t,
v3p_netlib_integer *ldt,
v3p_netlib_integer *n,
v3p_netlib_doublereal *b,
v3p_netlib_integer *job,
v3p_netlib_integer *info
);
|