ViSP  2.8.0
vpLevenbergMarquartd.h
1 /****************************************************************************
2  *
3  * $Id: vpLevenbergMarquartd.h 4056 2013-01-05 13:04:42Z fspindle $
4  *
5  * This file is part of the ViSP software.
6  * Copyright (C) 2005 - 2013 by INRIA. All rights reserved.
7  *
8  * This software is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * ("GPL") version 2 as published by the Free Software Foundation.
11  * See the file LICENSE.txt at the root directory of this source
12  * distribution for additional information about the GNU GPL.
13  *
14  * For using ViSP with software that can not be combined with the GNU
15  * GPL, please contact INRIA about acquiring a ViSP Professional
16  * Edition License.
17  *
18  * See http://www.irisa.fr/lagadic/visp/visp.html for more information.
19  *
20  * This software was developed at:
21  * INRIA Rennes - Bretagne Atlantique
22  * Campus Universitaire de Beaulieu
23  * 35042 Rennes Cedex
24  * France
25  * http://www.irisa.fr/lagadic
26  *
27  * If you have questions regarding the use of this file, please contact
28  * INRIA at visp@inria.fr
29  *
30  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
31  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
32  *
33  *
34  * Description:
35  * Levenberg Marquartd.
36  *
37  * Authors:
38  * Eric Marchand
39  * Francois Chaumette
40  *
41  *****************************************************************************/
42 
43 
44 #ifndef vpLevenbergMarquartd_h
45 #define vpLevenbergMarquartd_h
46 
47 #include <visp/vpConfig.h>
48 #include <visp/vpMath.h>
49 
50 #include <stdio.h>
51 #include <errno.h>
52 #include <math.h>
53 #include <stdlib.h>
54 #include <float.h>
55 
56 int VISP_EXPORT
57 qrsolv (int n, double *r, int ldr, int *ipvt, double *diag,
58  double *qtb, double *x, double *sdiag, double *wa) ;
59 
60 double VISP_EXPORT
61 enorm (const double *x, int n);
62 
63 int VISP_EXPORT
64 lmpar(int n, double *r, int ldr, int *ipvt, double *diag, double *qtb,
65  double *delta, double *par, double *x, double *sdiag, double *wa1,
66  double *wa2);
67 
68 double VISP_EXPORT
69 pythag (double a, double b);
70 
71 int VISP_EXPORT
72 qrfac(int m, int n, double *a, int lda, int *pivot, int *ipvt,
73  int lipvt, double *rdiag, double *acnorm, double *wa);
74 
75 int VISP_EXPORT
76 qrsolv (int n, double *r, int ldr, int *ipvt, double *diag, double *qtb,
77  double *x, double *sdiag, double *wa);
78 
79 int VISP_EXPORT
80 lmder (void (*ptr_fcn)(int m, int n, double *xc, double *fvecc,
81  double *jac, int ldfjac, int iflag),
82  int m, int n, double *x,
83  double *fvec, double *fjac, int ldfjac, double ftol, double xtol,
84  double gtol, unsigned int maxfev, double *diag, int mode,
85  const double factor, int nprint, int *info, unsigned int *nfev,
86  int *njev, int *ipvt, double *qtf, double *wa1, double *wa2,
87  double *wa3, double *wa4);
88 
89 int VISP_EXPORT
90 lmder1 (void (*ptr_fcn)(int m, int n, double *xc, double *fvecc,
91  double *jac, int ldfjac, int iflag),
92  int m, int n, double *x, double *fvec, double *fjac,
93  int ldfjac, double tol, int *info, int *ipvt, int lwa, double *wa);
94 
95 
96 #endif
97 
98 /*
99  * Local variables:
100  * c-basic-offset: 2
101  * End:
102  */
103