Skip to content

Commit

Permalink
Eigen: disable CholmodSupport & SPQRSupport.
Browse files Browse the repository at this point in the history
Signed-off-by: furby™ <[email protected]>
  • Loading branch information
furby-tm committed Sep 13, 2024
1 parent f8cbd6b commit e1733f4
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 16 deletions.
4 changes: 4 additions & 0 deletions Sources/Eigen/include/Eigen/CholmodSupport
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#ifndef EIGEN_CHOLMODSUPPORT_MODULE_H
#define EIGEN_CHOLMODSUPPORT_MODULE_H

#if 0

#include "SparseCore"

#include "src/Core/util/DisableStupidWarnings.h"
Expand Down Expand Up @@ -46,5 +48,7 @@ extern "C" {

#include "src/Core/util/ReenableStupidWarnings.h"

#endif // 0

#endif // EIGEN_CHOLMODSUPPORT_MODULE_H

4 changes: 4 additions & 0 deletions Sources/Eigen/include/Eigen/SPQRSupport
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#ifndef EIGEN_SPQRSUPPORT_MODULE_H
#define EIGEN_SPQRSUPPORT_MODULE_H

#if 0

#include "SparseCore"

#include "src/Core/util/DisableStupidWarnings.h"
Expand Down Expand Up @@ -36,4 +38,6 @@

#include "src/Core/util/ReenableStupidWarnings.h"

#endif // 0

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef EIGEN_CHOLMODSUPPORT_H
#define EIGEN_CHOLMODSUPPORT_H

#if 0

// IWYU pragma: private
#include "./InternalHeaderCheck.h"

Expand Down Expand Up @@ -682,4 +684,6 @@ class CholmodDecomposition : public CholmodBase<MatrixType_, UpLo_, CholmodDecom

} // end namespace Eigen

#endif // 0

#endif // EIGEN_CHOLMODSUPPORT_H
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#ifndef EIGEN_SUITESPARSEQRSUPPORT_H
#define EIGEN_SUITESPARSEQRSUPPORT_H

#if 0

// IWYU pragma: private
#include "./InternalHeaderCheck.h"

Expand Down Expand Up @@ -335,4 +337,7 @@ struct SPQRMatrixQTransposeReturnType{
};

}// End namespace Eigen

#endif // 0

#endif
17 changes: 16 additions & 1 deletion Sources/Eigen/include/Eigen/src/misc/lapacke.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,22 @@ typedef lapack_logical (*LAPACK_Z_SELECT1) ( const lapack_complex_double* );
typedef lapack_logical (*LAPACK_Z_SELECT2)
( const lapack_complex_double*, const lapack_complex_double* );

#include "lapacke_mangling.h"
#ifndef LAPACK_HEADER_INCLUDED
#define LAPACK_HEADER_INCLUDED

#ifndef LAPACK_GLOBAL
#if defined(LAPACK_GLOBAL_PATTERN_LC) || defined(ADD_)
#define LAPACK_GLOBAL(lcname,UCNAME) lcname##_
#elif defined(LAPACK_GLOBAL_PATTERN_UC) || defined(UPPER)
#define LAPACK_GLOBAL(lcname,UCNAME) UCNAME
#elif defined(LAPACK_GLOBAL_PATTERN_MC) || defined(NOCHANGE)
#define LAPACK_GLOBAL(lcname,UCNAME) lcname
#else
#define LAPACK_GLOBAL(lcname,UCNAME) lcname##_
#endif
#endif

#endif

#define LAPACK_lsame LAPACK_GLOBAL(lsame,LSAME)
lapack_logical LAPACK_lsame( char* ca, char* cb,
Expand Down
15 changes: 0 additions & 15 deletions Sources/Eigen/include/Eigen/src/misc/lapacke_mangling.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,2 @@
#ifndef LAPACK_HEADER_INCLUDED
#define LAPACK_HEADER_INCLUDED

#ifndef LAPACK_GLOBAL
#if defined(LAPACK_GLOBAL_PATTERN_LC) || defined(ADD_)
#define LAPACK_GLOBAL(lcname,UCNAME) lcname##_
#elif defined(LAPACK_GLOBAL_PATTERN_UC) || defined(UPPER)
#define LAPACK_GLOBAL(lcname,UCNAME) UCNAME
#elif defined(LAPACK_GLOBAL_PATTERN_MC) || defined(NOCHANGE)
#define LAPACK_GLOBAL(lcname,UCNAME) lcname
#else
#define LAPACK_GLOBAL(lcname,UCNAME) lcname##_
#endif
#endif

#endif

0 comments on commit e1733f4

Please sign in to comment.