Eigne Matrix Class Library
Dependents: MPC_current_control HydraulicControlBoard_SW AHRS Test_ekf ... more
Core.h@0:13a5d365ba16, 2016-10-13 (annotated)
- Committer:
- ykuroda
- Date:
- Thu Oct 13 04:07:23 2016 +0000
- Revision:
- 0:13a5d365ba16
First commint, Eigne Matrix Class Library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ykuroda | 0:13a5d365ba16 | 1 | // This file is part of Eigen, a lightweight C++ template library |
ykuroda | 0:13a5d365ba16 | 2 | // for linear algebra. |
ykuroda | 0:13a5d365ba16 | 3 | // |
ykuroda | 0:13a5d365ba16 | 4 | // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> |
ykuroda | 0:13a5d365ba16 | 5 | // Copyright (C) 2007-2011 Benoit Jacob <jacob.benoit.1@gmail.com> |
ykuroda | 0:13a5d365ba16 | 6 | // |
ykuroda | 0:13a5d365ba16 | 7 | // This Source Code Form is subject to the terms of the Mozilla |
ykuroda | 0:13a5d365ba16 | 8 | // Public License v. 2.0. If a copy of the MPL was not distributed |
ykuroda | 0:13a5d365ba16 | 9 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. |
ykuroda | 0:13a5d365ba16 | 10 | |
ykuroda | 0:13a5d365ba16 | 11 | #ifndef EIGEN_CORE_H |
ykuroda | 0:13a5d365ba16 | 12 | #define EIGEN_CORE_H |
ykuroda | 0:13a5d365ba16 | 13 | |
ykuroda | 0:13a5d365ba16 | 14 | // first thing Eigen does: stop the compiler from committing suicide |
ykuroda | 0:13a5d365ba16 | 15 | #include "src/Core/util/DisableStupidWarnings.h" |
ykuroda | 0:13a5d365ba16 | 16 | |
ykuroda | 0:13a5d365ba16 | 17 | // then include this file where all our macros are defined. It's really important to do it first because |
ykuroda | 0:13a5d365ba16 | 18 | // it's where we do all the alignment settings (platform detection and honoring the user's will if he |
ykuroda | 0:13a5d365ba16 | 19 | // defined e.g. EIGEN_DONT_ALIGN) so it needs to be done before we do anything with vectorization. |
ykuroda | 0:13a5d365ba16 | 20 | #include "src/Core/util/Macros.h" |
ykuroda | 0:13a5d365ba16 | 21 | |
ykuroda | 0:13a5d365ba16 | 22 | // Disable the ipa-cp-clone optimization flag with MinGW 6.x or newer (enabled by default with -O3) |
ykuroda | 0:13a5d365ba16 | 23 | // See http://eigen.tuxfamily.org/bz/show_bug.cgi?id=556 for details. |
ykuroda | 0:13a5d365ba16 | 24 | #if defined(__MINGW32__) && EIGEN_GNUC_AT_LEAST(4,6) |
ykuroda | 0:13a5d365ba16 | 25 | #pragma GCC optimize ("-fno-ipa-cp-clone") |
ykuroda | 0:13a5d365ba16 | 26 | #endif |
ykuroda | 0:13a5d365ba16 | 27 | |
ykuroda | 0:13a5d365ba16 | 28 | #include <complex> |
ykuroda | 0:13a5d365ba16 | 29 | |
ykuroda | 0:13a5d365ba16 | 30 | // this include file manages BLAS and MKL related macros |
ykuroda | 0:13a5d365ba16 | 31 | // and inclusion of their respective header files |
ykuroda | 0:13a5d365ba16 | 32 | #include "src/Core/util/MKL_support.h" |
ykuroda | 0:13a5d365ba16 | 33 | |
ykuroda | 0:13a5d365ba16 | 34 | // if alignment is disabled, then disable vectorization. Note: EIGEN_ALIGN is the proper check, it takes into |
ykuroda | 0:13a5d365ba16 | 35 | // account both the user's will (EIGEN_DONT_ALIGN) and our own platform checks |
ykuroda | 0:13a5d365ba16 | 36 | #if !EIGEN_ALIGN |
ykuroda | 0:13a5d365ba16 | 37 | #ifndef EIGEN_DONT_VECTORIZE |
ykuroda | 0:13a5d365ba16 | 38 | #define EIGEN_DONT_VECTORIZE |
ykuroda | 0:13a5d365ba16 | 39 | #endif |
ykuroda | 0:13a5d365ba16 | 40 | #endif |
ykuroda | 0:13a5d365ba16 | 41 | |
ykuroda | 0:13a5d365ba16 | 42 | #ifdef _MSC_VER |
ykuroda | 0:13a5d365ba16 | 43 | #include <malloc.h> // for _aligned_malloc -- need it regardless of whether vectorization is enabled |
ykuroda | 0:13a5d365ba16 | 44 | #if (_MSC_VER >= 1500) // 2008 or later |
ykuroda | 0:13a5d365ba16 | 45 | // Remember that usage of defined() in a #define is undefined by the standard. |
ykuroda | 0:13a5d365ba16 | 46 | // a user reported that in 64-bit mode, MSVC doesn't care to define _M_IX86_FP. |
ykuroda | 0:13a5d365ba16 | 47 | #if (defined(_M_IX86_FP) && (_M_IX86_FP >= 2)) || defined(_M_X64) |
ykuroda | 0:13a5d365ba16 | 48 | #define EIGEN_SSE2_ON_MSVC_2008_OR_LATER |
ykuroda | 0:13a5d365ba16 | 49 | #endif |
ykuroda | 0:13a5d365ba16 | 50 | #endif |
ykuroda | 0:13a5d365ba16 | 51 | #else |
ykuroda | 0:13a5d365ba16 | 52 | // Remember that usage of defined() in a #define is undefined by the standard |
ykuroda | 0:13a5d365ba16 | 53 | #if (defined __SSE2__) && ( (!defined __GNUC__) || (defined __INTEL_COMPILER) || EIGEN_GNUC_AT_LEAST(4,2) ) |
ykuroda | 0:13a5d365ba16 | 54 | #define EIGEN_SSE2_ON_NON_MSVC_BUT_NOT_OLD_GCC |
ykuroda | 0:13a5d365ba16 | 55 | #endif |
ykuroda | 0:13a5d365ba16 | 56 | #endif |
ykuroda | 0:13a5d365ba16 | 57 | |
ykuroda | 0:13a5d365ba16 | 58 | #ifndef EIGEN_DONT_VECTORIZE |
ykuroda | 0:13a5d365ba16 | 59 | |
ykuroda | 0:13a5d365ba16 | 60 | #if defined (EIGEN_SSE2_ON_NON_MSVC_BUT_NOT_OLD_GCC) || defined(EIGEN_SSE2_ON_MSVC_2008_OR_LATER) |
ykuroda | 0:13a5d365ba16 | 61 | |
ykuroda | 0:13a5d365ba16 | 62 | // Defines symbols for compile-time detection of which instructions are |
ykuroda | 0:13a5d365ba16 | 63 | // used. |
ykuroda | 0:13a5d365ba16 | 64 | // EIGEN_VECTORIZE_YY is defined if and only if the instruction set YY is used |
ykuroda | 0:13a5d365ba16 | 65 | #define EIGEN_VECTORIZE |
ykuroda | 0:13a5d365ba16 | 66 | #define EIGEN_VECTORIZE_SSE |
ykuroda | 0:13a5d365ba16 | 67 | #define EIGEN_VECTORIZE_SSE2 |
ykuroda | 0:13a5d365ba16 | 68 | |
ykuroda | 0:13a5d365ba16 | 69 | // Detect sse3/ssse3/sse4: |
ykuroda | 0:13a5d365ba16 | 70 | // gcc and icc defines __SSE3__, ... |
ykuroda | 0:13a5d365ba16 | 71 | // there is no way to know about this on msvc. You can define EIGEN_VECTORIZE_SSE* if you |
ykuroda | 0:13a5d365ba16 | 72 | // want to force the use of those instructions with msvc. |
ykuroda | 0:13a5d365ba16 | 73 | #ifdef __SSE3__ |
ykuroda | 0:13a5d365ba16 | 74 | #define EIGEN_VECTORIZE_SSE3 |
ykuroda | 0:13a5d365ba16 | 75 | #endif |
ykuroda | 0:13a5d365ba16 | 76 | #ifdef __SSSE3__ |
ykuroda | 0:13a5d365ba16 | 77 | #define EIGEN_VECTORIZE_SSSE3 |
ykuroda | 0:13a5d365ba16 | 78 | #endif |
ykuroda | 0:13a5d365ba16 | 79 | #ifdef __SSE4_1__ |
ykuroda | 0:13a5d365ba16 | 80 | #define EIGEN_VECTORIZE_SSE4_1 |
ykuroda | 0:13a5d365ba16 | 81 | #endif |
ykuroda | 0:13a5d365ba16 | 82 | #ifdef __SSE4_2__ |
ykuroda | 0:13a5d365ba16 | 83 | #define EIGEN_VECTORIZE_SSE4_2 |
ykuroda | 0:13a5d365ba16 | 84 | #endif |
ykuroda | 0:13a5d365ba16 | 85 | |
ykuroda | 0:13a5d365ba16 | 86 | // include files |
ykuroda | 0:13a5d365ba16 | 87 | |
ykuroda | 0:13a5d365ba16 | 88 | // This extern "C" works around a MINGW-w64 compilation issue |
ykuroda | 0:13a5d365ba16 | 89 | // https://sourceforge.net/tracker/index.php?func=detail&aid=3018394&group_id=202880&atid=983354 |
ykuroda | 0:13a5d365ba16 | 90 | // In essence, intrin.h is included by windows.h and also declares intrinsics (just as emmintrin.h etc. below do). |
ykuroda | 0:13a5d365ba16 | 91 | // However, intrin.h uses an extern "C" declaration, and g++ thus complains of duplicate declarations |
ykuroda | 0:13a5d365ba16 | 92 | // with conflicting linkage. The linkage for intrinsics doesn't matter, but at that stage the compiler doesn't know; |
ykuroda | 0:13a5d365ba16 | 93 | // so, to avoid compile errors when windows.h is included after Eigen/Core, ensure intrinsics are extern "C" here too. |
ykuroda | 0:13a5d365ba16 | 94 | // notice that since these are C headers, the extern "C" is theoretically needed anyways. |
ykuroda | 0:13a5d365ba16 | 95 | extern "C" { |
ykuroda | 0:13a5d365ba16 | 96 | // In theory we should only include immintrin.h and not the other *mmintrin.h header files directly. |
ykuroda | 0:13a5d365ba16 | 97 | // Doing so triggers some issues with ICC. However old gcc versions seems to not have this file, thus: |
ykuroda | 0:13a5d365ba16 | 98 | #if defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 1110 |
ykuroda | 0:13a5d365ba16 | 99 | #include <immintrin.h> |
ykuroda | 0:13a5d365ba16 | 100 | #else |
ykuroda | 0:13a5d365ba16 | 101 | #include <emmintrin.h> |
ykuroda | 0:13a5d365ba16 | 102 | #include <xmmintrin.h> |
ykuroda | 0:13a5d365ba16 | 103 | #ifdef EIGEN_VECTORIZE_SSE3 |
ykuroda | 0:13a5d365ba16 | 104 | #include <pmmintrin.h> |
ykuroda | 0:13a5d365ba16 | 105 | #endif |
ykuroda | 0:13a5d365ba16 | 106 | #ifdef EIGEN_VECTORIZE_SSSE3 |
ykuroda | 0:13a5d365ba16 | 107 | #include <tmmintrin.h> |
ykuroda | 0:13a5d365ba16 | 108 | #endif |
ykuroda | 0:13a5d365ba16 | 109 | #ifdef EIGEN_VECTORIZE_SSE4_1 |
ykuroda | 0:13a5d365ba16 | 110 | #include <smmintrin.h> |
ykuroda | 0:13a5d365ba16 | 111 | #endif |
ykuroda | 0:13a5d365ba16 | 112 | #ifdef EIGEN_VECTORIZE_SSE4_2 |
ykuroda | 0:13a5d365ba16 | 113 | #include <nmmintrin.h> |
ykuroda | 0:13a5d365ba16 | 114 | #endif |
ykuroda | 0:13a5d365ba16 | 115 | #endif |
ykuroda | 0:13a5d365ba16 | 116 | } // end extern "C" |
ykuroda | 0:13a5d365ba16 | 117 | #elif defined __ALTIVEC__ |
ykuroda | 0:13a5d365ba16 | 118 | #define EIGEN_VECTORIZE |
ykuroda | 0:13a5d365ba16 | 119 | #define EIGEN_VECTORIZE_ALTIVEC |
ykuroda | 0:13a5d365ba16 | 120 | #include <altivec.h> |
ykuroda | 0:13a5d365ba16 | 121 | // We need to #undef all these ugly tokens defined in <altivec.h> |
ykuroda | 0:13a5d365ba16 | 122 | // => use __vector instead of vector |
ykuroda | 0:13a5d365ba16 | 123 | #undef bool |
ykuroda | 0:13a5d365ba16 | 124 | #undef vector |
ykuroda | 0:13a5d365ba16 | 125 | #undef pixel |
ykuroda | 0:13a5d365ba16 | 126 | #elif defined __ARM_NEON |
ykuroda | 0:13a5d365ba16 | 127 | #define EIGEN_VECTORIZE |
ykuroda | 0:13a5d365ba16 | 128 | #define EIGEN_VECTORIZE_NEON |
ykuroda | 0:13a5d365ba16 | 129 | #include <arm_neon.h> |
ykuroda | 0:13a5d365ba16 | 130 | #endif |
ykuroda | 0:13a5d365ba16 | 131 | #endif |
ykuroda | 0:13a5d365ba16 | 132 | |
ykuroda | 0:13a5d365ba16 | 133 | #if (defined _OPENMP) && (!defined EIGEN_DONT_PARALLELIZE) |
ykuroda | 0:13a5d365ba16 | 134 | #define EIGEN_HAS_OPENMP |
ykuroda | 0:13a5d365ba16 | 135 | #endif |
ykuroda | 0:13a5d365ba16 | 136 | |
ykuroda | 0:13a5d365ba16 | 137 | #ifdef EIGEN_HAS_OPENMP |
ykuroda | 0:13a5d365ba16 | 138 | #include <omp.h> |
ykuroda | 0:13a5d365ba16 | 139 | #endif |
ykuroda | 0:13a5d365ba16 | 140 | |
ykuroda | 0:13a5d365ba16 | 141 | // MSVC for windows mobile does not have the errno.h file |
ykuroda | 0:13a5d365ba16 | 142 | #if !(defined(_MSC_VER) && defined(_WIN32_WCE)) && !defined(__ARMCC_VERSION) |
ykuroda | 0:13a5d365ba16 | 143 | #define EIGEN_HAS_ERRNO |
ykuroda | 0:13a5d365ba16 | 144 | #endif |
ykuroda | 0:13a5d365ba16 | 145 | |
ykuroda | 0:13a5d365ba16 | 146 | #ifdef EIGEN_HAS_ERRNO |
ykuroda | 0:13a5d365ba16 | 147 | #include <cerrno> |
ykuroda | 0:13a5d365ba16 | 148 | #endif |
ykuroda | 0:13a5d365ba16 | 149 | #include <cstddef> |
ykuroda | 0:13a5d365ba16 | 150 | #include <cstdlib> |
ykuroda | 0:13a5d365ba16 | 151 | #include <cmath> |
ykuroda | 0:13a5d365ba16 | 152 | #include <cassert> |
ykuroda | 0:13a5d365ba16 | 153 | #include <functional> |
ykuroda | 0:13a5d365ba16 | 154 | #include <iosfwd> |
ykuroda | 0:13a5d365ba16 | 155 | #include <cstring> |
ykuroda | 0:13a5d365ba16 | 156 | #include <string> |
ykuroda | 0:13a5d365ba16 | 157 | #include <limits> |
ykuroda | 0:13a5d365ba16 | 158 | #include <climits> // for CHAR_BIT |
ykuroda | 0:13a5d365ba16 | 159 | // for min/max: |
ykuroda | 0:13a5d365ba16 | 160 | #include <algorithm> |
ykuroda | 0:13a5d365ba16 | 161 | |
ykuroda | 0:13a5d365ba16 | 162 | // for outputting debug info |
ykuroda | 0:13a5d365ba16 | 163 | #ifdef EIGEN_DEBUG_ASSIGN |
ykuroda | 0:13a5d365ba16 | 164 | #include <iostream> |
ykuroda | 0:13a5d365ba16 | 165 | #endif |
ykuroda | 0:13a5d365ba16 | 166 | |
ykuroda | 0:13a5d365ba16 | 167 | // required for __cpuid, needs to be included after cmath |
ykuroda | 0:13a5d365ba16 | 168 | #if defined(_MSC_VER) && (defined(_M_IX86)||defined(_M_X64)) && (!defined(_WIN32_WCE)) |
ykuroda | 0:13a5d365ba16 | 169 | #include <intrin.h> |
ykuroda | 0:13a5d365ba16 | 170 | #endif |
ykuroda | 0:13a5d365ba16 | 171 | |
ykuroda | 0:13a5d365ba16 | 172 | #if defined(_CPPUNWIND) || defined(__EXCEPTIONS) |
ykuroda | 0:13a5d365ba16 | 173 | #define EIGEN_EXCEPTIONS |
ykuroda | 0:13a5d365ba16 | 174 | #endif |
ykuroda | 0:13a5d365ba16 | 175 | |
ykuroda | 0:13a5d365ba16 | 176 | #ifdef EIGEN_EXCEPTIONS |
ykuroda | 0:13a5d365ba16 | 177 | #include <new> |
ykuroda | 0:13a5d365ba16 | 178 | #endif |
ykuroda | 0:13a5d365ba16 | 179 | |
ykuroda | 0:13a5d365ba16 | 180 | /** \brief Namespace containing all symbols from the %Eigen library. */ |
ykuroda | 0:13a5d365ba16 | 181 | namespace Eigen { |
ykuroda | 0:13a5d365ba16 | 182 | |
ykuroda | 0:13a5d365ba16 | 183 | inline static const char *SimdInstructionSetsInUse(void) { |
ykuroda | 0:13a5d365ba16 | 184 | #if defined(EIGEN_VECTORIZE_SSE4_2) |
ykuroda | 0:13a5d365ba16 | 185 | return "SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2"; |
ykuroda | 0:13a5d365ba16 | 186 | #elif defined(EIGEN_VECTORIZE_SSE4_1) |
ykuroda | 0:13a5d365ba16 | 187 | return "SSE, SSE2, SSE3, SSSE3, SSE4.1"; |
ykuroda | 0:13a5d365ba16 | 188 | #elif defined(EIGEN_VECTORIZE_SSSE3) |
ykuroda | 0:13a5d365ba16 | 189 | return "SSE, SSE2, SSE3, SSSE3"; |
ykuroda | 0:13a5d365ba16 | 190 | #elif defined(EIGEN_VECTORIZE_SSE3) |
ykuroda | 0:13a5d365ba16 | 191 | return "SSE, SSE2, SSE3"; |
ykuroda | 0:13a5d365ba16 | 192 | #elif defined(EIGEN_VECTORIZE_SSE2) |
ykuroda | 0:13a5d365ba16 | 193 | return "SSE, SSE2"; |
ykuroda | 0:13a5d365ba16 | 194 | #elif defined(EIGEN_VECTORIZE_ALTIVEC) |
ykuroda | 0:13a5d365ba16 | 195 | return "AltiVec"; |
ykuroda | 0:13a5d365ba16 | 196 | #elif defined(EIGEN_VECTORIZE_NEON) |
ykuroda | 0:13a5d365ba16 | 197 | return "ARM NEON"; |
ykuroda | 0:13a5d365ba16 | 198 | #else |
ykuroda | 0:13a5d365ba16 | 199 | return "None"; |
ykuroda | 0:13a5d365ba16 | 200 | #endif |
ykuroda | 0:13a5d365ba16 | 201 | } |
ykuroda | 0:13a5d365ba16 | 202 | |
ykuroda | 0:13a5d365ba16 | 203 | } // end namespace Eigen |
ykuroda | 0:13a5d365ba16 | 204 | |
ykuroda | 0:13a5d365ba16 | 205 | #define STAGE10_FULL_EIGEN2_API 10 |
ykuroda | 0:13a5d365ba16 | 206 | #define STAGE20_RESOLVE_API_CONFLICTS 20 |
ykuroda | 0:13a5d365ba16 | 207 | #define STAGE30_FULL_EIGEN3_API 30 |
ykuroda | 0:13a5d365ba16 | 208 | #define STAGE40_FULL_EIGEN3_STRICTNESS 40 |
ykuroda | 0:13a5d365ba16 | 209 | #define STAGE99_NO_EIGEN2_SUPPORT 99 |
ykuroda | 0:13a5d365ba16 | 210 | |
ykuroda | 0:13a5d365ba16 | 211 | #if defined EIGEN2_SUPPORT_STAGE40_FULL_EIGEN3_STRICTNESS |
ykuroda | 0:13a5d365ba16 | 212 | #define EIGEN2_SUPPORT |
ykuroda | 0:13a5d365ba16 | 213 | #define EIGEN2_SUPPORT_STAGE STAGE40_FULL_EIGEN3_STRICTNESS |
ykuroda | 0:13a5d365ba16 | 214 | #elif defined EIGEN2_SUPPORT_STAGE30_FULL_EIGEN3_API |
ykuroda | 0:13a5d365ba16 | 215 | #define EIGEN2_SUPPORT |
ykuroda | 0:13a5d365ba16 | 216 | #define EIGEN2_SUPPORT_STAGE STAGE30_FULL_EIGEN3_API |
ykuroda | 0:13a5d365ba16 | 217 | #elif defined EIGEN2_SUPPORT_STAGE20_RESOLVE_API_CONFLICTS |
ykuroda | 0:13a5d365ba16 | 218 | #define EIGEN2_SUPPORT |
ykuroda | 0:13a5d365ba16 | 219 | #define EIGEN2_SUPPORT_STAGE STAGE20_RESOLVE_API_CONFLICTS |
ykuroda | 0:13a5d365ba16 | 220 | #elif defined EIGEN2_SUPPORT_STAGE10_FULL_EIGEN2_API |
ykuroda | 0:13a5d365ba16 | 221 | #define EIGEN2_SUPPORT |
ykuroda | 0:13a5d365ba16 | 222 | #define EIGEN2_SUPPORT_STAGE STAGE10_FULL_EIGEN2_API |
ykuroda | 0:13a5d365ba16 | 223 | #elif defined EIGEN2_SUPPORT |
ykuroda | 0:13a5d365ba16 | 224 | // default to stage 3, that's what it's always meant |
ykuroda | 0:13a5d365ba16 | 225 | #define EIGEN2_SUPPORT_STAGE30_FULL_EIGEN3_API |
ykuroda | 0:13a5d365ba16 | 226 | #define EIGEN2_SUPPORT_STAGE STAGE30_FULL_EIGEN3_API |
ykuroda | 0:13a5d365ba16 | 227 | #else |
ykuroda | 0:13a5d365ba16 | 228 | #define EIGEN2_SUPPORT_STAGE STAGE99_NO_EIGEN2_SUPPORT |
ykuroda | 0:13a5d365ba16 | 229 | #endif |
ykuroda | 0:13a5d365ba16 | 230 | |
ykuroda | 0:13a5d365ba16 | 231 | #ifdef EIGEN2_SUPPORT |
ykuroda | 0:13a5d365ba16 | 232 | #undef minor |
ykuroda | 0:13a5d365ba16 | 233 | #endif |
ykuroda | 0:13a5d365ba16 | 234 | |
ykuroda | 0:13a5d365ba16 | 235 | // we use size_t frequently and we'll never remember to prepend it with std:: everytime just to |
ykuroda | 0:13a5d365ba16 | 236 | // ensure QNX/QCC support |
ykuroda | 0:13a5d365ba16 | 237 | using std::size_t; |
ykuroda | 0:13a5d365ba16 | 238 | // gcc 4.6.0 wants std:: for ptrdiff_t |
ykuroda | 0:13a5d365ba16 | 239 | using std::ptrdiff_t; |
ykuroda | 0:13a5d365ba16 | 240 | |
ykuroda | 0:13a5d365ba16 | 241 | /** \defgroup Core_Module Core module |
ykuroda | 0:13a5d365ba16 | 242 | * This is the main module of Eigen providing dense matrix and vector support |
ykuroda | 0:13a5d365ba16 | 243 | * (both fixed and dynamic size) with all the features corresponding to a BLAS library |
ykuroda | 0:13a5d365ba16 | 244 | * and much more... |
ykuroda | 0:13a5d365ba16 | 245 | * |
ykuroda | 0:13a5d365ba16 | 246 | * \code |
ykuroda | 0:13a5d365ba16 | 247 | * #include <Eigen/Core> |
ykuroda | 0:13a5d365ba16 | 248 | * \endcode |
ykuroda | 0:13a5d365ba16 | 249 | */ |
ykuroda | 0:13a5d365ba16 | 250 | |
ykuroda | 0:13a5d365ba16 | 251 | #include "src/Core/util/Constants.h" |
ykuroda | 0:13a5d365ba16 | 252 | #include "src/Core/util/ForwardDeclarations.h" |
ykuroda | 0:13a5d365ba16 | 253 | #include "src/Core/util/Meta.h" |
ykuroda | 0:13a5d365ba16 | 254 | #include "src/Core/util/StaticAssert.h" |
ykuroda | 0:13a5d365ba16 | 255 | #include "src/Core/util/XprHelper.h" |
ykuroda | 0:13a5d365ba16 | 256 | #include "src/Core/util/Memory.h" |
ykuroda | 0:13a5d365ba16 | 257 | |
ykuroda | 0:13a5d365ba16 | 258 | #include "src/Core/NumTraits.h" |
ykuroda | 0:13a5d365ba16 | 259 | #include "src/Core/MathFunctions.h" |
ykuroda | 0:13a5d365ba16 | 260 | #include "src/Core/GenericPacketMath.h" |
ykuroda | 0:13a5d365ba16 | 261 | |
ykuroda | 0:13a5d365ba16 | 262 | #if defined EIGEN_VECTORIZE_SSE |
ykuroda | 0:13a5d365ba16 | 263 | #include "src/Core/arch/SSE/PacketMath.h" |
ykuroda | 0:13a5d365ba16 | 264 | #include "src/Core/arch/SSE/MathFunctions.h" |
ykuroda | 0:13a5d365ba16 | 265 | #include "src/Core/arch/SSE/Complex.h" |
ykuroda | 0:13a5d365ba16 | 266 | #elif defined EIGEN_VECTORIZE_ALTIVEC |
ykuroda | 0:13a5d365ba16 | 267 | #include "src/Core/arch/AltiVec/PacketMath.h" |
ykuroda | 0:13a5d365ba16 | 268 | #include "src/Core/arch/AltiVec/Complex.h" |
ykuroda | 0:13a5d365ba16 | 269 | #elif defined EIGEN_VECTORIZE_NEON |
ykuroda | 0:13a5d365ba16 | 270 | #include "src/Core/arch/NEON/PacketMath.h" |
ykuroda | 0:13a5d365ba16 | 271 | #include "src/Core/arch/NEON/Complex.h" |
ykuroda | 0:13a5d365ba16 | 272 | #endif |
ykuroda | 0:13a5d365ba16 | 273 | |
ykuroda | 0:13a5d365ba16 | 274 | #include "src/Core/arch/Default/Settings.h" |
ykuroda | 0:13a5d365ba16 | 275 | |
ykuroda | 0:13a5d365ba16 | 276 | #include "src/Core/Functors.h" |
ykuroda | 0:13a5d365ba16 | 277 | #include "src/Core/DenseCoeffsBase.h" |
ykuroda | 0:13a5d365ba16 | 278 | #include "src/Core/DenseBase.h" |
ykuroda | 0:13a5d365ba16 | 279 | #include "src/Core/MatrixBase.h" |
ykuroda | 0:13a5d365ba16 | 280 | #include "src/Core/EigenBase.h" |
ykuroda | 0:13a5d365ba16 | 281 | |
ykuroda | 0:13a5d365ba16 | 282 | #ifndef EIGEN_PARSED_BY_DOXYGEN // work around Doxygen bug triggered by Assign.h r814874 |
ykuroda | 0:13a5d365ba16 | 283 | // at least confirmed with Doxygen 1.5.5 and 1.5.6 |
ykuroda | 0:13a5d365ba16 | 284 | #include "src/Core/Assign.h" |
ykuroda | 0:13a5d365ba16 | 285 | #endif |
ykuroda | 0:13a5d365ba16 | 286 | |
ykuroda | 0:13a5d365ba16 | 287 | #include "src/Core/util/BlasUtil.h" |
ykuroda | 0:13a5d365ba16 | 288 | #include "src/Core/DenseStorage.h" |
ykuroda | 0:13a5d365ba16 | 289 | #include "src/Core/NestByValue.h" |
ykuroda | 0:13a5d365ba16 | 290 | #include "src/Core/ForceAlignedAccess.h" |
ykuroda | 0:13a5d365ba16 | 291 | #include "src/Core/ReturnByValue.h" |
ykuroda | 0:13a5d365ba16 | 292 | #include "src/Core/NoAlias.h" |
ykuroda | 0:13a5d365ba16 | 293 | #include "src/Core/PlainObjectBase.h" |
ykuroda | 0:13a5d365ba16 | 294 | #include "src/Core/Matrix.h" |
ykuroda | 0:13a5d365ba16 | 295 | #include "src/Core/Array.h" |
ykuroda | 0:13a5d365ba16 | 296 | #include "src/Core/CwiseBinaryOp.h" |
ykuroda | 0:13a5d365ba16 | 297 | #include "src/Core/CwiseUnaryOp.h" |
ykuroda | 0:13a5d365ba16 | 298 | #include "src/Core/CwiseNullaryOp.h" |
ykuroda | 0:13a5d365ba16 | 299 | #include "src/Core/CwiseUnaryView.h" |
ykuroda | 0:13a5d365ba16 | 300 | #include "src/Core/SelfCwiseBinaryOp.h" |
ykuroda | 0:13a5d365ba16 | 301 | #include "src/Core/Dot.h" |
ykuroda | 0:13a5d365ba16 | 302 | #include "src/Core/StableNorm.h" |
ykuroda | 0:13a5d365ba16 | 303 | #include "src/Core/MapBase.h" |
ykuroda | 0:13a5d365ba16 | 304 | #include "src/Core/Stride.h" |
ykuroda | 0:13a5d365ba16 | 305 | #include "src/Core/Map.h" |
ykuroda | 0:13a5d365ba16 | 306 | #include "src/Core/Block.h" |
ykuroda | 0:13a5d365ba16 | 307 | #include "src/Core/VectorBlock.h" |
ykuroda | 0:13a5d365ba16 | 308 | #include "src/Core/Ref.h" |
ykuroda | 0:13a5d365ba16 | 309 | #include "src/Core/Transpose.h" |
ykuroda | 0:13a5d365ba16 | 310 | #include "src/Core/DiagonalMatrix.h" |
ykuroda | 0:13a5d365ba16 | 311 | #include "src/Core/Diagonal.h" |
ykuroda | 0:13a5d365ba16 | 312 | #include "src/Core/DiagonalProduct.h" |
ykuroda | 0:13a5d365ba16 | 313 | #include "src/Core/PermutationMatrix.h" |
ykuroda | 0:13a5d365ba16 | 314 | #include "src/Core/Transpositions.h" |
ykuroda | 0:13a5d365ba16 | 315 | #include "src/Core/Redux.h" |
ykuroda | 0:13a5d365ba16 | 316 | #include "src/Core/Visitor.h" |
ykuroda | 0:13a5d365ba16 | 317 | #include "src/Core/Fuzzy.h" |
ykuroda | 0:13a5d365ba16 | 318 | #include "src/Core/IO.h" |
ykuroda | 0:13a5d365ba16 | 319 | #include "src/Core/Swap.h" |
ykuroda | 0:13a5d365ba16 | 320 | #include "src/Core/CommaInitializer.h" |
ykuroda | 0:13a5d365ba16 | 321 | #include "src/Core/Flagged.h" |
ykuroda | 0:13a5d365ba16 | 322 | #include "src/Core/ProductBase.h" |
ykuroda | 0:13a5d365ba16 | 323 | #include "src/Core/GeneralProduct.h" |
ykuroda | 0:13a5d365ba16 | 324 | #include "src/Core/TriangularMatrix.h" |
ykuroda | 0:13a5d365ba16 | 325 | #include "src/Core/SelfAdjointView.h" |
ykuroda | 0:13a5d365ba16 | 326 | #include "src/Core/products/GeneralBlockPanelKernel.h" |
ykuroda | 0:13a5d365ba16 | 327 | #include "src/Core/products/Parallelizer.h" |
ykuroda | 0:13a5d365ba16 | 328 | #include "src/Core/products/CoeffBasedProduct.h" |
ykuroda | 0:13a5d365ba16 | 329 | #include "src/Core/products/GeneralMatrixVector.h" |
ykuroda | 0:13a5d365ba16 | 330 | #include "src/Core/products/GeneralMatrixMatrix.h" |
ykuroda | 0:13a5d365ba16 | 331 | #include "src/Core/SolveTriangular.h" |
ykuroda | 0:13a5d365ba16 | 332 | #include "src/Core/products/GeneralMatrixMatrixTriangular.h" |
ykuroda | 0:13a5d365ba16 | 333 | #include "src/Core/products/SelfadjointMatrixVector.h" |
ykuroda | 0:13a5d365ba16 | 334 | #include "src/Core/products/SelfadjointMatrixMatrix.h" |
ykuroda | 0:13a5d365ba16 | 335 | #include "src/Core/products/SelfadjointProduct.h" |
ykuroda | 0:13a5d365ba16 | 336 | #include "src/Core/products/SelfadjointRank2Update.h" |
ykuroda | 0:13a5d365ba16 | 337 | #include "src/Core/products/TriangularMatrixVector.h" |
ykuroda | 0:13a5d365ba16 | 338 | #include "src/Core/products/TriangularMatrixMatrix.h" |
ykuroda | 0:13a5d365ba16 | 339 | #include "src/Core/products/TriangularSolverMatrix.h" |
ykuroda | 0:13a5d365ba16 | 340 | #include "src/Core/products/TriangularSolverVector.h" |
ykuroda | 0:13a5d365ba16 | 341 | #include "src/Core/BandMatrix.h" |
ykuroda | 0:13a5d365ba16 | 342 | #include "src/Core/CoreIterators.h" |
ykuroda | 0:13a5d365ba16 | 343 | |
ykuroda | 0:13a5d365ba16 | 344 | #include "src/Core/BooleanRedux.h" |
ykuroda | 0:13a5d365ba16 | 345 | #include "src/Core/Select.h" |
ykuroda | 0:13a5d365ba16 | 346 | #include "src/Core/VectorwiseOp.h" |
ykuroda | 0:13a5d365ba16 | 347 | #include "src/Core/Random.h" |
ykuroda | 0:13a5d365ba16 | 348 | #include "src/Core/Replicate.h" |
ykuroda | 0:13a5d365ba16 | 349 | #include "src/Core/Reverse.h" |
ykuroda | 0:13a5d365ba16 | 350 | #include "src/Core/ArrayBase.h" |
ykuroda | 0:13a5d365ba16 | 351 | #include "src/Core/ArrayWrapper.h" |
ykuroda | 0:13a5d365ba16 | 352 | |
ykuroda | 0:13a5d365ba16 | 353 | #ifdef EIGEN_USE_BLAS |
ykuroda | 0:13a5d365ba16 | 354 | #include "src/Core/products/GeneralMatrixMatrix_MKL.h" |
ykuroda | 0:13a5d365ba16 | 355 | #include "src/Core/products/GeneralMatrixVector_MKL.h" |
ykuroda | 0:13a5d365ba16 | 356 | #include "src/Core/products/GeneralMatrixMatrixTriangular_MKL.h" |
ykuroda | 0:13a5d365ba16 | 357 | #include "src/Core/products/SelfadjointMatrixMatrix_MKL.h" |
ykuroda | 0:13a5d365ba16 | 358 | #include "src/Core/products/SelfadjointMatrixVector_MKL.h" |
ykuroda | 0:13a5d365ba16 | 359 | #include "src/Core/products/TriangularMatrixMatrix_MKL.h" |
ykuroda | 0:13a5d365ba16 | 360 | #include "src/Core/products/TriangularMatrixVector_MKL.h" |
ykuroda | 0:13a5d365ba16 | 361 | #include "src/Core/products/TriangularSolverMatrix_MKL.h" |
ykuroda | 0:13a5d365ba16 | 362 | #endif // EIGEN_USE_BLAS |
ykuroda | 0:13a5d365ba16 | 363 | |
ykuroda | 0:13a5d365ba16 | 364 | #ifdef EIGEN_USE_MKL_VML |
ykuroda | 0:13a5d365ba16 | 365 | #include "src/Core/Assign_MKL.h" |
ykuroda | 0:13a5d365ba16 | 366 | #endif |
ykuroda | 0:13a5d365ba16 | 367 | |
ykuroda | 0:13a5d365ba16 | 368 | #include "src/Core/GlobalFunctions.h" |
ykuroda | 0:13a5d365ba16 | 369 | |
ykuroda | 0:13a5d365ba16 | 370 | #include "src/Core/util/ReenableStupidWarnings.h" |
ykuroda | 0:13a5d365ba16 | 371 | |
ykuroda | 0:13a5d365ba16 | 372 | #ifdef EIGEN2_SUPPORT |
ykuroda | 0:13a5d365ba16 | 373 | #include "Eigen2Support" |
ykuroda | 0:13a5d365ba16 | 374 | #endif |
ykuroda | 0:13a5d365ba16 | 375 | |
ykuroda | 0:13a5d365ba16 | 376 | #endif // EIGEN_CORE_H |