2008-03-26 17:13:11 +08:00
|
|
|
#ifndef EIGEN_CORE_H
|
|
|
|
#define EIGEN_CORE_H
|
|
|
|
|
2008-05-08 16:12:52 +08:00
|
|
|
#define EIGEN_WIP_PRODUCT
|
|
|
|
|
2008-05-12 16:12:40 +08:00
|
|
|
#ifdef __GNUC__
|
|
|
|
#define EIGEN_GNUC_AT_LEAST(x,y) (__GNUC__>=x && __GNUC_MINOR__>=y) || __GNUC__>x
|
|
|
|
#else
|
|
|
|
#define EIGEN_GNUC_AT_LEAST(x,y) false
|
2008-05-03 20:21:23 +08:00
|
|
|
#endif
|
2008-05-12 16:12:40 +08:00
|
|
|
|
|
|
|
#ifndef EIGEN_DONT_VECTORIZE
|
|
|
|
#if (defined __SSE2__) && ( (!defined __GNUC__) || EIGEN_GNUC_AT_LEAST(4,2) )
|
|
|
|
#define EIGEN_VECTORIZE
|
|
|
|
#define EIGEN_VECTORIZE_SSE
|
|
|
|
#include <emmintrin.h>
|
|
|
|
#include <xmmintrin.h>
|
|
|
|
#ifdef __SSE3__
|
|
|
|
#include <pmmintrin.h>
|
|
|
|
#endif
|
2008-05-12 18:23:09 +08:00
|
|
|
#ifdef __SSSE3__
|
|
|
|
#include <tmmintrin.h>
|
|
|
|
#endif
|
2008-05-12 16:12:40 +08:00
|
|
|
#elif (defined __ALTIVEC__)
|
|
|
|
#define EIGEN_VECTORIZE
|
|
|
|
#define EIGEN_VECTORIZE_ALTIVEC
|
|
|
|
#include <altivec.h>
|
|
|
|
// We _need_ to #undef bool as it's defined in <altivec.h> for some reason.
|
|
|
|
#undef bool
|
|
|
|
#endif
|
2008-04-10 20:34:22 +08:00
|
|
|
#endif
|
2008-04-10 17:41:13 +08:00
|
|
|
|
2008-05-03 20:21:23 +08:00
|
|
|
#include <cstdlib>
|
2008-05-05 18:23:29 +08:00
|
|
|
#include <cmath>
|
|
|
|
#include <complex>
|
|
|
|
#include <cassert>
|
|
|
|
#include <iostream>
|
2008-05-03 20:21:23 +08:00
|
|
|
|
2008-05-02 21:30:12 +08:00
|
|
|
#ifdef EIGEN_VECTORIZE
|
|
|
|
// it seems we cannot assume posix_memalign is defined in the stdlib header
|
|
|
|
extern "C" int posix_memalign (void **, size_t, size_t) throw ();
|
|
|
|
#endif
|
|
|
|
|
2007-12-29 00:20:00 +08:00
|
|
|
namespace Eigen {
|
|
|
|
|
2008-04-10 17:41:13 +08:00
|
|
|
#include "src/Core/util/Macros.h"
|
|
|
|
#include "src/Core/util/Constants.h"
|
2008-04-10 17:01:28 +08:00
|
|
|
#include "src/Core/util/ForwardDeclarations.h"
|
2008-04-10 17:41:13 +08:00
|
|
|
#include "src/Core/util/Meta.h"
|
|
|
|
|
2007-12-29 00:20:00 +08:00
|
|
|
#include "src/Core/NumTraits.h"
|
|
|
|
#include "src/Core/MathFunctions.h"
|
2008-05-12 16:30:42 +08:00
|
|
|
#include "src/Core/DummyPacketMath.h"
|
|
|
|
|
2008-05-06 01:19:47 +08:00
|
|
|
#if defined EIGEN_VECTORIZE_SSE
|
2008-05-12 16:30:42 +08:00
|
|
|
#include "src/Core/arch/SSE/PacketMath.h"
|
2008-05-06 01:19:47 +08:00
|
|
|
#elif defined EIGEN_VECTORIZE_ALTIVEC
|
2008-05-12 16:30:42 +08:00
|
|
|
#include "src/Core/arch/AltiVec/PacketMath.h"
|
2008-05-06 01:19:47 +08:00
|
|
|
#endif
|
|
|
|
|
2008-05-13 01:34:46 +08:00
|
|
|
#ifndef EIGEN_CACHEFRIENDLY_PRODUCT_THRESHOLD
|
|
|
|
#define EIGEN_CACHEFRIENDLY_PRODUCT_THRESHOLD 16
|
|
|
|
#endif
|
|
|
|
|
2008-04-09 20:31:55 +08:00
|
|
|
#include "src/Core/Functors.h"
|
2007-12-29 00:20:00 +08:00
|
|
|
#include "src/Core/MatrixBase.h"
|
|
|
|
#include "src/Core/Coeffs.h"
|
2008-04-10 17:01:28 +08:00
|
|
|
#include "src/Core/Assign.h"
|
2008-02-29 18:55:53 +08:00
|
|
|
#include "src/Core/MatrixStorage.h"
|
2007-12-29 00:20:00 +08:00
|
|
|
#include "src/Core/Matrix.h"
|
2008-04-01 00:20:06 +08:00
|
|
|
#include "src/Core/Lazy.h"
|
2008-04-05 19:10:54 +08:00
|
|
|
#include "src/Core/Temporary.h"
|
2008-02-29 22:35:14 +08:00
|
|
|
#include "src/Core/CwiseBinaryOp.h"
|
2008-03-03 18:52:44 +08:00
|
|
|
#include "src/Core/CwiseUnaryOp.h"
|
2008-04-25 02:35:39 +08:00
|
|
|
#include "src/Core/CwiseNullaryOp.h"
|
2008-05-12 18:23:09 +08:00
|
|
|
#if (defined EIGEN_WIP_PRODUCT)
|
2008-05-05 18:23:29 +08:00
|
|
|
#include "src/Core/ProductWIP.h"
|
|
|
|
#else
|
2008-01-11 15:16:18 +08:00
|
|
|
#include "src/Core/Product.h"
|
2008-05-05 18:23:29 +08:00
|
|
|
#endif
|
2007-12-29 00:20:00 +08:00
|
|
|
#include "src/Core/Block.h"
|
|
|
|
#include "src/Core/Minor.h"
|
|
|
|
#include "src/Core/Transpose.h"
|
|
|
|
#include "src/Core/Dot.h"
|
|
|
|
#include "src/Core/DiagonalMatrix.h"
|
|
|
|
#include "src/Core/DiagonalCoeffs.h"
|
2008-03-16 22:36:25 +08:00
|
|
|
#include "src/Core/Redux.h"
|
|
|
|
#include "src/Core/Visitor.h"
|
2007-12-29 00:20:00 +08:00
|
|
|
#include "src/Core/Fuzzy.h"
|
|
|
|
#include "src/Core/Map.h"
|
|
|
|
#include "src/Core/IO.h"
|
2008-01-15 21:55:47 +08:00
|
|
|
#include "src/Core/Swap.h"
|
2008-03-09 03:02:24 +08:00
|
|
|
#include "src/Core/CommaInitializer.h"
|
2008-04-27 02:26:05 +08:00
|
|
|
#include "src/Core/Triangular.h"
|
2008-04-27 03:20:26 +08:00
|
|
|
#include "src/Core/TriangularAssign.h"
|
2007-12-29 00:20:00 +08:00
|
|
|
|
|
|
|
} // namespace Eigen
|
2008-03-03 18:52:44 +08:00
|
|
|
|
2008-03-26 17:13:11 +08:00
|
|
|
#endif // EIGEN_CORE_H
|