[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48570] branches/smoke2/extern/Eigen3: Recommit Eigen3 from trunk
Daniel Genrich
daniel.genrich at gmx.net
Wed Jul 4 00:44:26 CEST 2012
Revision: 48570
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48570
Author: genscher
Date: 2012-07-03 22:44:25 +0000 (Tue, 03 Jul 2012)
Log Message:
-----------
Recommit Eigen3 from trunk
Added Paths:
-----------
branches/smoke2/extern/Eigen3/Eigen/
branches/smoke2/extern/Eigen3/Eigen/Array
branches/smoke2/extern/Eigen3/Eigen/Cholesky
branches/smoke2/extern/Eigen3/Eigen/Core
branches/smoke2/extern/Eigen3/Eigen/Dense
branches/smoke2/extern/Eigen3/Eigen/Eigen
branches/smoke2/extern/Eigen3/Eigen/Eigen2Support
branches/smoke2/extern/Eigen3/Eigen/Eigenvalues
branches/smoke2/extern/Eigen3/Eigen/Geometry
branches/smoke2/extern/Eigen3/Eigen/Householder
branches/smoke2/extern/Eigen3/Eigen/Jacobi
branches/smoke2/extern/Eigen3/Eigen/LU
branches/smoke2/extern/Eigen3/Eigen/LeastSquares
branches/smoke2/extern/Eigen3/Eigen/QR
branches/smoke2/extern/Eigen3/Eigen/QtAlignedMalloc
branches/smoke2/extern/Eigen3/Eigen/SVD
branches/smoke2/extern/Eigen3/Eigen/Sparse
branches/smoke2/extern/Eigen3/Eigen/StdDeque
branches/smoke2/extern/Eigen3/Eigen/StdList
branches/smoke2/extern/Eigen3/Eigen/StdVector
branches/smoke2/extern/Eigen3/Eigen/src/
branches/smoke2/extern/Eigen3/Eigen/src/Cholesky/
branches/smoke2/extern/Eigen3/Eigen/src/Cholesky/LDLT.h
branches/smoke2/extern/Eigen3/Eigen/src/Cholesky/LLT.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/
branches/smoke2/extern/Eigen3/Eigen/src/Core/Array.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/ArrayBase.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/ArrayWrapper.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Assign.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/BandMatrix.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Block.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/BooleanRedux.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/CommaInitializer.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/CwiseBinaryOp.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/CwiseNullaryOp.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/CwiseUnaryOp.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/CwiseUnaryView.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/DenseBase.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/DenseCoeffsBase.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/DenseStorage.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Diagonal.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/DiagonalMatrix.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/DiagonalProduct.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Dot.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/EigenBase.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Flagged.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/ForceAlignedAccess.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Functors.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Fuzzy.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/GenericPacketMath.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/GlobalFunctions.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/IO.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Map.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/MapBase.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/MathFunctions.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Matrix.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/MatrixBase.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/NestByValue.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/NoAlias.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/NumTraits.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/PermutationMatrix.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/PlainObjectBase.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Product.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/ProductBase.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Random.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Redux.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Replicate.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/ReturnByValue.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Reverse.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Select.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/SelfAdjointView.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/SelfCwiseBinaryOp.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/SolveTriangular.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/StableNorm.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Stride.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Swap.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Transpose.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Transpositions.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/TriangularMatrix.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/VectorBlock.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/VectorwiseOp.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/Visitor.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/arch/
branches/smoke2/extern/Eigen3/Eigen/src/Core/arch/AltiVec/
branches/smoke2/extern/Eigen3/Eigen/src/Core/arch/AltiVec/Complex.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/arch/AltiVec/PacketMath.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/arch/Default/
branches/smoke2/extern/Eigen3/Eigen/src/Core/arch/Default/Settings.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/arch/NEON/
branches/smoke2/extern/Eigen3/Eigen/src/Core/arch/NEON/Complex.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/arch/NEON/PacketMath.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/arch/SSE/
branches/smoke2/extern/Eigen3/Eigen/src/Core/arch/SSE/Complex.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/arch/SSE/MathFunctions.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/arch/SSE/PacketMath.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/products/
branches/smoke2/extern/Eigen3/Eigen/src/Core/products/CoeffBasedProduct.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/products/GeneralMatrixMatrix.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/products/GeneralMatrixVector.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/products/Parallelizer.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/products/SelfadjointMatrixVector.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/products/SelfadjointProduct.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/products/SelfadjointRank2Update.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/products/TriangularMatrixMatrix.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/products/TriangularMatrixVector.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/products/TriangularSolverMatrix.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/products/TriangularSolverVector.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/util/
branches/smoke2/extern/Eigen3/Eigen/src/Core/util/BlasUtil.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/util/Constants.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/util/DisableStupidWarnings.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/util/ForwardDeclarations.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/util/Macros.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/util/Memory.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/util/Meta.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/util/ReenableStupidWarnings.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/util/StaticAssert.h
branches/smoke2/extern/Eigen3/Eigen/src/Core/util/XprHelper.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Block.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Cwise.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/CwiseOperators.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Geometry/
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Geometry/AlignedBox.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Geometry/All.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Geometry/AngleAxis.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Geometry/Hyperplane.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Geometry/ParametrizedLine.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Geometry/Quaternion.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Geometry/Rotation2D.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Geometry/RotationBase.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Geometry/Scaling.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Geometry/Transform.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Geometry/Translation.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/LU.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Lazy.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/LeastSquares.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Macros.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/MathFunctions.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Memory.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Meta.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/Minor.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/QR.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/SVD.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/TriangularSolver.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigen2Support/VectorBlock.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigenvalues/
branches/smoke2/extern/Eigen3/Eigen/src/Eigenvalues/ComplexEigenSolver.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigenvalues/ComplexSchur.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigenvalues/EigenSolver.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigenvalues/EigenvaluesCommon.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigenvalues/HessenbergDecomposition.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigenvalues/RealSchur.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h
branches/smoke2/extern/Eigen3/Eigen/src/Eigenvalues/Tridiagonalization.h
branches/smoke2/extern/Eigen3/Eigen/src/Geometry/
branches/smoke2/extern/Eigen3/Eigen/src/Geometry/AlignedBox.h
branches/smoke2/extern/Eigen3/Eigen/src/Geometry/AngleAxis.h
branches/smoke2/extern/Eigen3/Eigen/src/Geometry/EulerAngles.h
branches/smoke2/extern/Eigen3/Eigen/src/Geometry/Homogeneous.h
branches/smoke2/extern/Eigen3/Eigen/src/Geometry/Hyperplane.h
branches/smoke2/extern/Eigen3/Eigen/src/Geometry/OrthoMethods.h
branches/smoke2/extern/Eigen3/Eigen/src/Geometry/ParametrizedLine.h
branches/smoke2/extern/Eigen3/Eigen/src/Geometry/Quaternion.h
branches/smoke2/extern/Eigen3/Eigen/src/Geometry/Rotation2D.h
branches/smoke2/extern/Eigen3/Eigen/src/Geometry/RotationBase.h
branches/smoke2/extern/Eigen3/Eigen/src/Geometry/Scaling.h
branches/smoke2/extern/Eigen3/Eigen/src/Geometry/Transform.h
branches/smoke2/extern/Eigen3/Eigen/src/Geometry/Translation.h
branches/smoke2/extern/Eigen3/Eigen/src/Geometry/Umeyama.h
branches/smoke2/extern/Eigen3/Eigen/src/Geometry/arch/
branches/smoke2/extern/Eigen3/Eigen/src/Geometry/arch/Geometry_SSE.h
branches/smoke2/extern/Eigen3/Eigen/src/Householder/
branches/smoke2/extern/Eigen3/Eigen/src/Householder/BlockHouseholder.h
branches/smoke2/extern/Eigen3/Eigen/src/Householder/Householder.h
branches/smoke2/extern/Eigen3/Eigen/src/Householder/HouseholderSequence.h
branches/smoke2/extern/Eigen3/Eigen/src/Jacobi/
branches/smoke2/extern/Eigen3/Eigen/src/Jacobi/Jacobi.h
branches/smoke2/extern/Eigen3/Eigen/src/LU/
branches/smoke2/extern/Eigen3/Eigen/src/LU/Determinant.h
branches/smoke2/extern/Eigen3/Eigen/src/LU/FullPivLU.h
branches/smoke2/extern/Eigen3/Eigen/src/LU/Inverse.h
branches/smoke2/extern/Eigen3/Eigen/src/LU/PartialPivLU.h
branches/smoke2/extern/Eigen3/Eigen/src/LU/arch/
branches/smoke2/extern/Eigen3/Eigen/src/LU/arch/Inverse_SSE.h
branches/smoke2/extern/Eigen3/Eigen/src/QR/
branches/smoke2/extern/Eigen3/Eigen/src/QR/ColPivHouseholderQR.h
branches/smoke2/extern/Eigen3/Eigen/src/QR/FullPivHouseholderQR.h
branches/smoke2/extern/Eigen3/Eigen/src/QR/HouseholderQR.h
branches/smoke2/extern/Eigen3/Eigen/src/SVD/
branches/smoke2/extern/Eigen3/Eigen/src/SVD/JacobiSVD.h
branches/smoke2/extern/Eigen3/Eigen/src/SVD/UpperBidiagonalization.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/AmbiVector.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/CompressedStorage.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/CoreIterators.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/DynamicSparseMatrix.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/MappedSparseMatrix.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseAssign.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseBlock.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseCwiseBinaryOp.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseCwiseUnaryOp.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseDenseProduct.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseDiagonalProduct.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseDot.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseFuzzy.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseMatrix.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseMatrixBase.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseProduct.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseRedux.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseSelfAdjointView.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseSparseProduct.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseTranspose.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseTriangularView.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseUtil.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseVector.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/SparseView.h
branches/smoke2/extern/Eigen3/Eigen/src/Sparse/TriangularSolver.h
branches/smoke2/extern/Eigen3/Eigen/src/StlSupport/
branches/smoke2/extern/Eigen3/Eigen/src/StlSupport/StdDeque.h
branches/smoke2/extern/Eigen3/Eigen/src/StlSupport/StdList.h
branches/smoke2/extern/Eigen3/Eigen/src/StlSupport/StdVector.h
branches/smoke2/extern/Eigen3/Eigen/src/StlSupport/details.h
branches/smoke2/extern/Eigen3/Eigen/src/misc/
branches/smoke2/extern/Eigen3/Eigen/src/misc/Image.h
branches/smoke2/extern/Eigen3/Eigen/src/misc/Kernel.h
branches/smoke2/extern/Eigen3/Eigen/src/misc/Solve.h
branches/smoke2/extern/Eigen3/Eigen/src/plugins/
branches/smoke2/extern/Eigen3/Eigen/src/plugins/ArrayCwiseBinaryOps.h
branches/smoke2/extern/Eigen3/Eigen/src/plugins/ArrayCwiseUnaryOps.h
branches/smoke2/extern/Eigen3/Eigen/src/plugins/BlockMethods.h
branches/smoke2/extern/Eigen3/Eigen/src/plugins/CommonCwiseBinaryOps.h
branches/smoke2/extern/Eigen3/Eigen/src/plugins/CommonCwiseUnaryOps.h
branches/smoke2/extern/Eigen3/Eigen/src/plugins/MatrixCwiseBinaryOps.h
branches/smoke2/extern/Eigen3/Eigen/src/plugins/MatrixCwiseUnaryOps.h
Added: branches/smoke2/extern/Eigen3/Eigen/Array
===================================================================
--- branches/smoke2/extern/Eigen3/Eigen/Array (rev 0)
+++ branches/smoke2/extern/Eigen3/Eigen/Array 2012-07-03 22:44:25 UTC (rev 48570)
@@ -0,0 +1,11 @@
+#ifndef EIGEN_ARRAY_MODULE_H
+#define EIGEN_ARRAY_MODULE_H
+
+// include Core first to handle Eigen2 support macros
+#include "Core"
+
+#ifndef EIGEN2_SUPPORT
+ #error The Eigen/Array header does no longer exist in Eigen3. All that functionality has moved to Eigen/Core.
+#endif
+
+#endif // EIGEN_ARRAY_MODULE_H
Added: branches/smoke2/extern/Eigen3/Eigen/Cholesky
===================================================================
--- branches/smoke2/extern/Eigen3/Eigen/Cholesky (rev 0)
+++ branches/smoke2/extern/Eigen3/Eigen/Cholesky 2012-07-03 22:44:25 UTC (rev 48570)
@@ -0,0 +1,33 @@
+#ifndef EIGEN_CHOLESKY_MODULE_H
+#define EIGEN_CHOLESKY_MODULE_H
+
+#include "Core"
+
+#include "src/Core/util/DisableStupidWarnings.h"
+
+namespace Eigen {
+
+/** \defgroup Cholesky_Module Cholesky module
+ *
+ *
+ *
+ * This module provides two variants of the Cholesky decomposition for selfadjoint (hermitian) matrices.
+ * Those decompositions are accessible via the following MatrixBase methods:
+ * - MatrixBase::llt(),
+ * - MatrixBase::ldlt()
+ *
+ * \code
+ * #include <Eigen/Cholesky>
+ * \endcode
+ */
+
+#include "src/misc/Solve.h"
+#include "src/Cholesky/LLT.h"
+#include "src/Cholesky/LDLT.h"
+
+} // namespace Eigen
+
+#include "src/Core/util/ReenableStupidWarnings.h"
+
+#endif // EIGEN_CHOLESKY_MODULE_H
+/* vim: set filetype=cpp et sw=2 ts=2 ai: */
Added: branches/smoke2/extern/Eigen3/Eigen/Core
===================================================================
--- branches/smoke2/extern/Eigen3/Eigen/Core (rev 0)
+++ branches/smoke2/extern/Eigen3/Eigen/Core 2012-07-03 22:44:25 UTC (rev 48570)
@@ -0,0 +1,360 @@
+// This file is part of Eigen, a lightweight C++ template library
+// for linear algebra.
+//
+// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud at inria.fr>
+// Copyright (C) 2007-2011 Benoit Jacob <jacob.benoit.1 at gmail.com>
+//
+// Eigen is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 3 of the License, or (at your option) any later version.
+//
+// Alternatively, you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as
+// published by the Free Software Foundation; either version 2 of
+// the License, or (at your option) any later version.
+//
+// Eigen is distributed in the hope that it will be useful, but WITHOUT ANY
+// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License or the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License and a copy of the GNU General Public License along with
+// Eigen. If not, see <http://www.gnu.org/licenses/>.
+
+#ifndef EIGEN_CORE_H
+#define EIGEN_CORE_H
+
+// first thing Eigen does: stop the compiler from committing suicide
+#include "src/Core/util/DisableStupidWarnings.h"
+
+// then include this file where all our macros are defined. It's really important to do it first because
+// it's where we do all the alignment settings (platform detection and honoring the user's will if he
+// defined e.g. EIGEN_DONT_ALIGN) so it needs to be done before we do anything with vectorization.
+#include "src/Core/util/Macros.h"
+
+// if alignment is disabled, then disable vectorization. Note: EIGEN_ALIGN is the proper check, it takes into
+// account both the user's will (EIGEN_DONT_ALIGN) and our own platform checks
+#if !EIGEN_ALIGN
+ #ifndef EIGEN_DONT_VECTORIZE
+ #define EIGEN_DONT_VECTORIZE
+ #endif
+#endif
+
+#ifdef _MSC_VER
+ #include <malloc.h> // for _aligned_malloc -- need it regardless of whether vectorization is enabled
+ #if (_MSC_VER >= 1500) // 2008 or later
+ // Remember that usage of defined() in a #define is undefined by the standard.
+ // a user reported that in 64-bit mode, MSVC doesn't care to define _M_IX86_FP.
+ #if (defined(_M_IX86_FP) && (_M_IX86_FP >= 2)) || defined(_M_X64)
+ #define EIGEN_SSE2_ON_MSVC_2008_OR_LATER
+ #endif
+ #endif
+#else
+ // Remember that usage of defined() in a #define is undefined by the standard
+ #if (defined __SSE2__) && ( (!defined __GNUC__) || EIGEN_GNUC_AT_LEAST(4,2) )
+ #define EIGEN_SSE2_ON_NON_MSVC_BUT_NOT_OLD_GCC
+ #endif
+#endif
+
+#ifndef EIGEN_DONT_VECTORIZE
+
+ #if defined (EIGEN_SSE2_ON_NON_MSVC_BUT_NOT_OLD_GCC) || defined(EIGEN_SSE2_ON_MSVC_2008_OR_LATER)
+
+ // Defines symbols for compile-time detection of which instructions are
+ // used.
+ // EIGEN_VECTORIZE_YY is defined if and only if the instruction set YY is used
+ #define EIGEN_VECTORIZE
+ #define EIGEN_VECTORIZE_SSE
+ #define EIGEN_VECTORIZE_SSE2
+
+ // Detect sse3/ssse3/sse4:
+ // gcc and icc defines __SSE3__, ...
+ // there is no way to know about this on msvc. You can define EIGEN_VECTORIZE_SSE* if you
+ // want to force the use of those instructions with msvc.
+ #ifdef __SSE3__
+ #define EIGEN_VECTORIZE_SSE3
+ #endif
+ #ifdef __SSSE3__
+ #define EIGEN_VECTORIZE_SSSE3
+ #endif
+ #ifdef __SSE4_1__
+ #define EIGEN_VECTORIZE_SSE4_1
+ #endif
+ #ifdef __SSE4_2__
+ #define EIGEN_VECTORIZE_SSE4_2
+ #endif
+
+ // include files
+
+ // This extern "C" works around a MINGW-w64 compilation issue
+ // https://sourceforge.net/tracker/index.php?func=detail&aid=3018394&group_id=202880&atid=983354
+ // In essence, intrin.h is included by windows.h and also declares intrinsics (just as emmintrin.h etc. below do).
+ // However, intrin.h uses an extern "C" declaration, and g++ thus complains of duplicate declarations
+ // with conflicting linkage. The linkage for intrinsics doesn't matter, but at that stage the compiler doesn't know;
+ // so, to avoid compile errors when windows.h is included after Eigen/Core, ensure intrinsics are extern "C" here too.
+ // notice that since these are C headers, the extern "C" is theoretically needed anyways.
+ extern "C" {
+ #include <emmintrin.h>
+ #include <xmmintrin.h>
+ #ifdef EIGEN_VECTORIZE_SSE3
+ #include <pmmintrin.h>
+ #endif
+ #ifdef EIGEN_VECTORIZE_SSSE3
+ #include <tmmintrin.h>
+ #endif
+ #ifdef EIGEN_VECTORIZE_SSE4_1
+ #include <smmintrin.h>
+ #endif
+ #ifdef EIGEN_VECTORIZE_SSE4_2
+ #include <nmmintrin.h>
+ #endif
+ } // end extern "C"
+ #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
+ #elif defined __ARM_NEON__
+ #define EIGEN_VECTORIZE
+ #define EIGEN_VECTORIZE_NEON
+ #include <arm_neon.h>
+ #endif
+#endif
+
+#if (defined _OPENMP) && (!defined EIGEN_DONT_PARALLELIZE)
+ #define EIGEN_HAS_OPENMP
+#endif
+
+#ifdef EIGEN_HAS_OPENMP
+#include <omp.h>
+#endif
+
+// MSVC for windows mobile does not have the errno.h file
+#if !(defined(_MSC_VER) && defined(_WIN32_WCE))
+#define EIGEN_HAS_ERRNO
+#endif
+
+#ifdef EIGEN_HAS_ERRNO
+#include <cerrno>
+#endif
+#include <cstddef>
+#include <cstdlib>
+#include <cmath>
+#include <complex>
+#include <cassert>
+#include <functional>
+#include <iosfwd>
+#include <cstring>
+#include <string>
+#include <limits>
+#include <climits> // for CHAR_BIT
+// for min/max:
+#include <algorithm>
+
+// for outputting debug info
+#ifdef EIGEN_DEBUG_ASSIGN
+#include <iostream>
+#endif
+
+// required for __cpuid, needs to be included after cmath
+#if defined(_MSC_VER) && (defined(_M_IX86)||defined(_M_X64))
+ #include <intrin.h>
+#endif
+
+#if defined(_CPPUNWIND) || defined(__EXCEPTIONS)
+ #define EIGEN_EXCEPTIONS
+#endif
+
+#ifdef EIGEN_EXCEPTIONS
+ #include <new>
+#endif
+
+// defined in bits/termios.h
+#undef B0
+
+/** \brief Namespace containing all symbols from the %Eigen library. */
+namespace Eigen {
+
+inline static const char *SimdInstructionSetsInUse(void) {
+#if defined(EIGEN_VECTORIZE_SSE4_2)
+ return "SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2";
+#elif defined(EIGEN_VECTORIZE_SSE4_1)
+ return "SSE, SSE2, SSE3, SSSE3, SSE4.1";
+#elif defined(EIGEN_VECTORIZE_SSSE3)
+ return "SSE, SSE2, SSE3, SSSE3";
+#elif defined(EIGEN_VECTORIZE_SSE3)
+ return "SSE, SSE2, SSE3";
+#elif defined(EIGEN_VECTORIZE_SSE2)
+ return "SSE, SSE2";
+#elif defined(EIGEN_VECTORIZE_ALTIVEC)
+ return "AltiVec";
+#elif defined(EIGEN_VECTORIZE_NEON)
+ return "ARM NEON";
+#else
+ return "None";
+#endif
+}
+
+#define STAGE10_FULL_EIGEN2_API 10
+#define STAGE20_RESOLVE_API_CONFLICTS 20
+#define STAGE30_FULL_EIGEN3_API 30
+#define STAGE40_FULL_EIGEN3_STRICTNESS 40
+#define STAGE99_NO_EIGEN2_SUPPORT 99
+
+#if defined EIGEN2_SUPPORT_STAGE40_FULL_EIGEN3_STRICTNESS
+ #define EIGEN2_SUPPORT
+ #define EIGEN2_SUPPORT_STAGE STAGE40_FULL_EIGEN3_STRICTNESS
+#elif defined EIGEN2_SUPPORT_STAGE30_FULL_EIGEN3_API
+ #define EIGEN2_SUPPORT
+ #define EIGEN2_SUPPORT_STAGE STAGE30_FULL_EIGEN3_API
+#elif defined EIGEN2_SUPPORT_STAGE20_RESOLVE_API_CONFLICTS
+ #define EIGEN2_SUPPORT
+ #define EIGEN2_SUPPORT_STAGE STAGE20_RESOLVE_API_CONFLICTS
+#elif defined EIGEN2_SUPPORT_STAGE10_FULL_EIGEN2_API
+ #define EIGEN2_SUPPORT
+ #define EIGEN2_SUPPORT_STAGE STAGE10_FULL_EIGEN2_API
+#elif defined EIGEN2_SUPPORT
+ // default to stage 3, that's what it's always meant
+ #define EIGEN2_SUPPORT_STAGE30_FULL_EIGEN3_API
+ #define EIGEN2_SUPPORT_STAGE STAGE30_FULL_EIGEN3_API
+#else
+ #define EIGEN2_SUPPORT_STAGE STAGE99_NO_EIGEN2_SUPPORT
+#endif
+
+#ifdef EIGEN2_SUPPORT
+#undef minor
+#endif
+
+// we use size_t frequently and we'll never remember to prepend it with std:: everytime just to
+// ensure QNX/QCC support
+using std::size_t;
+// gcc 4.6.0 wants std:: for ptrdiff_t
+using std::ptrdiff_t;
+
+/** \defgroup Core_Module Core module
+ * This is the main module of Eigen providing dense matrix and vector support
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list