g2o
csparse_helper.h
Go to the documentation of this file.
1 // g2o - General Graph Optimization
2 // Copyright (C) 2011 R. Kuemmerle, G. Grisetti, W. Burgard
3 //
4 // g2o is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as published
6 // by the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // g2o is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 
17 #ifndef G2O_CSPARSE_HELPER_H
18 #define G2O_CSPARSE_HELPER_H
19 
20 #ifndef NCOMPLEX
21 #define NCOMPLEX
22 #endif
23 #include <cs.h>
24 
26 
27 namespace g2o {
28 
29  namespace csparse_extension {
30 
34 G2O_CSPARSE_EXTENSION_API bool writeCs2Octave(const char* filename, const cs* A, bool upperTriangular = true);
35 
36 // our extensions to csparse
37 G2O_CSPARSE_EXTENSION_API csn* cs_chol_workspace (const cs *A, const css *S, int* cin, double* xin);
38 G2O_CSPARSE_EXTENSION_API int cs_cholsolsymb(const cs *A, double *b, const css* S, double* workspace, int* work);
39 
40 } // end namespace
41 } // end namespace
42 
43 #endif
int cs_cholsolsymb(const cs *A, double *b, const css *S, double *x, int *work)
#define G2O_CSPARSE_EXTENSION_API
csn * cs_chol_workspace(const cs *A, const css *S, int *cin, double *xin)
bool writeCs2Octave(const char *filename, const cs *A, bool upperTriangular)