Issue an error in case of direct inclusion of internal headers.

This commit is contained in:
Rasmus Munk Larsen
2021-09-10 19:12:26 +00:00
parent 36402e281d
commit d7d0bf832d
494 changed files with 1050 additions and 52 deletions

View File

@@ -13,6 +13,8 @@
// This file contains many lightweight helper classes used to
// implement and control fast level 2 and level 3 BLAS-like routines.
#include "../InternalHeaderCheck.h"
namespace Eigen {
namespace internal {

View File

@@ -472,6 +472,8 @@
/** \brief Namespace containing all symbols from the %Eigen library. */
#include "../InternalHeaderCheck.h"
namespace Eigen {
inline static const char *SimdInstructionSetsInUse(void) {

View File

@@ -12,6 +12,8 @@
#ifndef EIGEN_CONSTANTS_H
#define EIGEN_CONSTANTS_H
#include "../InternalHeaderCheck.h"
namespace Eigen {
/** This value means that a positive quantity (e.g., a size) is not known at compile-time, and that instead the value is

View File

@@ -11,6 +11,8 @@
#ifndef EIGEN_FORWARDDECLARATIONS_H
#define EIGEN_FORWARDDECLARATIONS_H
#include "../InternalHeaderCheck.h"
namespace Eigen {
namespace internal {

View File

@@ -11,6 +11,8 @@
#ifndef EIGEN_INDEXED_VIEW_HELPER_H
#define EIGEN_INDEXED_VIEW_HELPER_H
#include "../InternalHeaderCheck.h"
namespace Eigen {
namespace internal {

View File

@@ -11,6 +11,8 @@
#ifndef EIGEN_INTEGRAL_CONSTANT_H
#define EIGEN_INTEGRAL_CONSTANT_H
#include "../InternalHeaderCheck.h"
namespace Eigen {
namespace internal {

View File

@@ -120,6 +120,8 @@
#include "../../misc/blas.h"
#endif
#include "../InternalHeaderCheck.h"
namespace Eigen {
typedef std::complex<double> dcomplex;

View File

@@ -11,6 +11,8 @@
#ifndef EIGEN_MACROS_H
#define EIGEN_MACROS_H
#include "../InternalHeaderCheck.h"
//------------------------------------------------------------------------------------------
// Eigen version and basic defaults
//------------------------------------------------------------------------------------------

View File

@@ -59,6 +59,8 @@
#endif
#include "../InternalHeaderCheck.h"
namespace Eigen {
namespace internal {

View File

@@ -11,6 +11,8 @@
#ifndef EIGEN_META_H
#define EIGEN_META_H
#include "../InternalHeaderCheck.h"
#if defined(EIGEN_GPU_COMPILE_PHASE)
#include <cfloat>
@@ -31,6 +33,7 @@
// Define portable (u)int{32,64} types
#if EIGEN_HAS_CXX11 || EIGEN_ICC_NEEDS_CSTDINT
#include <cstdint>
namespace Eigen {
namespace numext {
typedef std::uint8_t uint8_t;
@@ -47,6 +50,7 @@ typedef std::int64_t int64_t;
// Without c++11, all compilers able to compile Eigen also
// provide the C99 stdint.h header file.
#include <stdint.h>
namespace Eigen {
namespace numext {
typedef ::uint8_t uint8_t;

View File

@@ -11,6 +11,8 @@
#ifndef EIGEN_RESHAPED_HELPER_H
#define EIGEN_RESHAPED_HELPER_H
#include "../InternalHeaderCheck.h"
namespace Eigen {
enum AutoSize_t { AutoSize };

View File

@@ -10,6 +10,8 @@
#ifndef EIGEN_SYMBOLIC_INDEX_H
#define EIGEN_SYMBOLIC_INDEX_H
#include "../InternalHeaderCheck.h"
namespace Eigen {
/** \namespace Eigen::symbolic

View File

@@ -22,6 +22,8 @@
#define EIGEN_EMPTY_STRUCT_CTOR(X)
#endif
#include "../InternalHeaderCheck.h"
namespace Eigen {
namespace internal {