SHOGUN  v3.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
invCov.h
Go to the documentation of this file.
1 /* This program is free software: you can redistribute it and/or modify
2  * it under the terms of the GNU General Public License as published by
3  * the Free Software Foundation, either version 3 of the License, or
4  * (at your option) any later version.
5  *
6  * This program is distributed in the hope that it will be useful,
7  * but WITHOUT ANY WARRANTY; without even the implied warranty of
8  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9  * GNU General Public License for more details.
10  *
11  * You should have received a copy of the GNU General Public License
12  * along with this program. If not, see <http://www.gnu.org/licenses/>.
13  *
14  * Copyright (C) 2009 - 2012 Jun Liu and Jieping Ye
15  */
16 
17 #ifndef INVCOV_SLEP
18 #define INVCOV_SLEP
19 
20 #include <stdlib.h>
21 #include <stdio.h>
22 #include <time.h>
23 #include <math.h>
24 
25 /*
26  * A: n x n
27  * x: n x 1
28  * Ax: n x 1
29  *
30  * Perform the task of Ax= A* x,
31  * where the ith row and column in A, and ith row in x
32  * are undefined, so that in Ax, the ith row has no meaning
33  */
34 void m_Ax(double *Ax, double *A, double *x, int n, int ith);
35 
36 int lassoCD(double *Theta, double *W, double *S, double lambda, int n,
37  int ith, int flag, int maxIter, double fGap, double xGap);
38 
39 void invCov(double *Theta, double *W, double *S, double lambda,
40  double sum_S, int n,
41  int LassoMaxIter, double fGap,
42  double xGap, /*for the Lasso (inner iteration)*/
43  int maxIter, double xtol); /*for the outer iteration*/
44 
45 #endif /* ----- #ifndef INVCOV_SLEP ----- */

SHOGUN Machine Learning Toolbox - Documentation