2008-03-26 17:13:11 +08:00
|
|
|
#ifndef EIGEN_CORE_H
|
|
|
|
#define EIGEN_CORE_H
|
|
|
|
|
2008-08-28 23:28:23 +08:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma warning( disable : 4181 4244 )
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#define EIGEN_GNUC_AT_LEAST(x,y) ((__GNUC__>=x && __GNUC_MINOR__>=y) || __GNUC__>x)
|
|
|
|
#else
|
|
|
|
#define EIGEN_GNUC_AT_LEAST(x,y) 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#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
|
|
|
|
#ifdef __SSSE3__
|
|
|
|
#include <tmmintrin.h>
|
|
|
|
#endif
|
|
|
|
#elif (defined __ALTIVEC__)
|
|
|
|
#define EIGEN_VECTORIZE
|
|
|
|
#define EIGEN_VECTORIZE_ALTIVEC
|
|
|
|
#include <altivec.h>
|
|
|
|
// We _need_ to #undef all these ugly tokens defined in <altivec.h>
|
|
|
|
// => use __vector instead of vector
|
|
|
|
#undef bool
|
|
|
|
#undef vector
|
|
|
|
#undef pixel
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <cstdlib>
|
|
|
|
#include <cmath>
|
|
|
|
#include <complex>
|
|
|
|
#include <cassert>
|
|
|
|
#include <functional>
|
2008-05-05 18:23:29 +08:00
|
|
|
#include <iostream>
|
2008-08-03 23:44:06 +08:00
|
|
|
#include <cstring>
|
2008-08-21 21:17:21 +08:00
|
|
|
#include <string>
|
2008-05-03 20:21:23 +08:00
|
|
|
|
2007-12-29 00:20:00 +08:00
|
|
|
namespace Eigen {
|
|
|
|
|
2008-08-27 03:12:23 +08:00
|
|
|
/** \defgroup Core_Module Core module
|
2008-08-27 07:07:33 +08:00
|
|
|
* This is the main module of Eigen providing dense matrix and vector support
|
|
|
|
* (both fixed and dynamic size) with all the features corresponding to a BLAS library
|
|
|
|
* and much more...
|
2008-08-27 03:12:23 +08:00
|
|
|
*
|
|
|
|
* \code
|
|
|
|
* #include <Eigen/Core>
|
|
|
|
* \endcode
|
|
|
|
*/
|
|
|
|
|
2008-08-28 23:28:23 +08:00
|
|
|
#include "src/Core/util/Macros.h"
|
|
|
|
#include "src/Core/util/Constants.h"
|
|
|
|
#include "src/Core/util/ForwardDeclarations.h"
|
|
|
|
#include "src/Core/util/Meta.h"
|
|
|
|
#include "src/Core/util/XprHelper.h"
|
|
|
|
#include "src/Core/util/StaticAssert.h"
|
2008-08-27 03:12:23 +08:00
|
|
|
#include "src/Core/util/Memory.h"
|
2008-08-28 08:33:58 +08:00
|
|
|
|
2007-12-29 00:20:00 +08:00
|
|
|
#include "src/Core/NumTraits.h"
|
|
|
|
#include "src/Core/MathFunctions.h"
|
2008-08-27 03:12:23 +08:00
|
|
|
#include "src/Core/GenericPacketMath.h"
|
2008-05-12 16:30:42 +08:00
|
|
|
|
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-06-03 03:29:23 +08:00
|
|
|
#ifndef EIGEN_PARSED_BY_DOXYGEN // work around Doxygen bug triggered by Assign.h r814874
|
|
|
|
// at least confirmed with Doxygen 1.5.5 and 1.5.6
|
2008-04-10 17:01:28 +08:00
|
|
|
#include "src/Core/Assign.h"
|
2008-06-03 03:29:23 +08:00
|
|
|
#endif
|
2008-02-29 18:55:53 +08:00
|
|
|
#include "src/Core/MatrixStorage.h"
|
2008-05-28 13:14:16 +08:00
|
|
|
#include "src/Core/NestByValue.h"
|
2008-05-14 16:20:15 +08:00
|
|
|
#include "src/Core/Flagged.h"
|
2007-12-29 00:20:00 +08:00
|
|
|
#include "src/Core/Matrix.h"
|
2008-07-08 08:49:10 +08:00
|
|
|
#include "src/Core/Cwise.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-07-10 06:30:18 +08:00
|
|
|
#include "src/Core/Dot.h"
|
2008-05-28 12:38:16 +08:00
|
|
|
#include "src/Core/Product.h"
|
2008-06-15 19:54:18 +08:00
|
|
|
#include "src/Core/DiagonalProduct.h"
|
2008-08-10 04:06:25 +08:00
|
|
|
#include "src/Core/SolveTriangular.h"
|
2008-08-10 02:41:24 +08:00
|
|
|
#include "src/Core/MapBase.h"
|
|
|
|
#include "src/Core/Map.h"
|
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/DiagonalMatrix.h"
|
|
|
|
#include "src/Core/DiagonalCoeffs.h"
|
2008-06-23 18:32:48 +08:00
|
|
|
#include "src/Core/Sum.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/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-05-27 13:47:30 +08:00
|
|
|
#include "src/Core/Part.h"
|
2008-06-01 07:21:49 +08:00
|
|
|
#include "src/Core/CacheFriendlyProduct.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
|