GestureRecognitionToolkit  Version: 1.0 Revision: 04-03-15
The Gesture Recognition Toolkit (GRT) is a cross-platform, open-source, c++ machine learning library for real-time gesture recognition.
Cholesky.h
Go to the documentation of this file.
1 
10 /*
11  GRT MIT License
12  Copyright (c) <2012> <Nicholas Gillian, Media Lab, MIT>
13 
14  Permission is hereby granted, free of charge, to any person obtaining a copy of this software
15  and associated documentation files (the "Software"), to deal in the Software without restriction,
16  including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
17  and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
18  subject to the following conditions:
19 
20  The above copyright notice and this permission notice shall be included in all copies or substantial
21  portions of the Software.
22 
23  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
24  LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28  */
29 
30 #ifndef GRT_CHOLESKY_HEADER
31 #define GRT_CHOLESKY_HEADER
32 #include "GRTCommon.h"
33 
34 namespace GRT {
35 
36 class Cholesky{
37 public:
38  Cholesky();
40  bool solve(VectorDouble &b,VectorDouble &x);
41  bool elmult(VectorDouble &y,VectorDouble &b);
42  bool elsolve(VectorDouble &b,VectorDouble &y);
43  bool inverse(Matrix<double> &ainv);
44  double logdet();
45 
46  bool getSuccess(){ return success; }
47 
48  unsigned int N;
49  bool success;
50  Matrix<double> el;
51 
52  DebugLog debugLog;
53  ErrorLog errorLog;
54  WarningLog warningLog;
55 
56 };
57 
58 }//End of namespace GRT
59 
60 #endif //GRT_CHOLESKY_HEADER
Definition: AdaBoost.cpp:25