19
19
#define LIBCADET_SPARSESOLVERINTERFACE_HPP_
20
20
21
21
#if defined(CADET_FORCE_MATLAB_UMFPACK) && defined(CADET_MATLABMEX)
22
- #include <stddef.h>
22
+ #include <stddef.h>
23
23
#endif
24
24
25
25
namespace cadet
@@ -30,25 +30,25 @@ namespace linalg
30
30
31
31
#if defined(CADET_FORCE_MATLAB_UMFPACK) && defined(CADET_MATLABMEX)
32
32
33
- // Matlab uses mwIndex = size_t for indexing sparse matrices.
34
- // Hence, it seems probable that size_t is also used for calling Matlab's own UMFPACK functions.
35
- // When building the MEX interface and CADET_FORCE_MATLAB_UMFPACK is set, we rely on Matlab's
36
- // UMFPACK version and use size_t for indexing.
33
+ // Matlab uses mwIndex = size_t for indexing sparse matrices.
34
+ // Hence, it seems probable that size_t is also used for calling Matlab's own UMFPACK functions.
35
+ // When building the MEX interface and CADET_FORCE_MATLAB_UMFPACK is set, we rely on Matlab's
36
+ // UMFPACK version and use size_t for indexing.
37
37
38
- // Note that this excludes using SuperLU (unless it is build with size_t as index type, which is not the default)
38
+ // Note that this excludes using SuperLU (unless it is build with size_t as index type, which is not the default)
39
39
40
- typedef size_t sparse_int_t;
40
+ typedef size_t sparse_int_t;
41
41
42
- // Always enable UMFPACK (Matlab distributes its own version), always disable SuperLU
43
- #define UMFPACK_FOUND
44
- #undef SUPERLU_FOUND
42
+ // Always enable UMFPACK (Matlab distributes its own version), always disable SuperLU
43
+ #define UMFPACK_FOUND
44
+ #undef SUPERLU_FOUND
45
45
46
46
#else
47
47
48
- typedef @SPARSE_INT_TYPE @ sparse_int_t;
48
+ typedef @SPARSE_INT_TYPE@ sparse_int_t;
49
49
50
- #cmakedefine UMFPACK_FOUND
51
- #cmakedefine SUPERLU_FOUND
50
+ #cmakedefine UMFPACK_FOUND
51
+ #cmakedefine SUPERLU_FOUND
52
52
53
53
#endif
54
54
0 commit comments