adfa5456 commited on
Commit
56ba8bc
·
verified ·
1 Parent(s): 42b9c42

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. include/eigen/Eigen/Cholesky +45 -0
  2. include/eigen/Eigen/CholmodSupport +48 -0
  3. include/eigen/Eigen/Core +385 -0
  4. include/eigen/Eigen/Dense +7 -0
  5. include/eigen/Eigen/Eigen +2 -0
  6. include/eigen/Eigen/Eigenvalues +60 -0
  7. include/eigen/Eigen/Geometry +59 -0
  8. include/eigen/Eigen/Householder +29 -0
  9. include/eigen/Eigen/IterativeLinearSolvers +48 -0
  10. include/eigen/Eigen/Jacobi +32 -0
  11. include/eigen/Eigen/KLUSupport +41 -0
  12. include/eigen/Eigen/LU +47 -0
  13. include/eigen/Eigen/MetisSupport +35 -0
  14. include/eigen/Eigen/OrderingMethods +70 -0
  15. include/eigen/Eigen/PaStiXSupport +49 -0
  16. include/eigen/Eigen/PardisoSupport +35 -0
  17. include/eigen/Eigen/QR +50 -0
  18. include/eigen/Eigen/QtAlignedMalloc +39 -0
  19. include/eigen/Eigen/SPQRSupport +34 -0
  20. include/eigen/Eigen/SVD +50 -0
  21. include/eigen/Eigen/Sparse +34 -0
  22. include/eigen/Eigen/SparseCholesky +37 -0
  23. include/eigen/Eigen/SparseCore +69 -0
  24. include/eigen/Eigen/SparseLU +48 -0
  25. include/eigen/Eigen/SparseQR +36 -0
  26. include/eigen/Eigen/StdDeque +27 -0
  27. include/eigen/Eigen/StdList +26 -0
  28. include/eigen/Eigen/StdVector +27 -0
  29. include/eigen/Eigen/SuperLUSupport +64 -0
  30. include/eigen/Eigen/UmfPackSupport +40 -0
  31. include/eigen/ci/CTest2JUnit.xsl +120 -0
  32. include/eigen/ci/README.md +12 -0
  33. include/eigen/ci/build.linux.gitlab-ci.yml +334 -0
  34. include/eigen/ci/build.windows.gitlab-ci.yml +116 -0
  35. include/eigen/ci/checkformat.gitlab-ci.yml +10 -0
  36. include/eigen/ci/common.gitlab-ci.yml +40 -0
  37. include/eigen/ci/deploy.gitlab-ci.yml +41 -0
  38. include/eigen/ci/smoketests.gitlab-ci.yml +107 -0
  39. include/eigen/ci/test.linux.gitlab-ci.yml +430 -0
  40. include/eigen/ci/test.windows.gitlab-ci.yml +110 -0
  41. include/eigen/demos/CMakeLists.txt +13 -0
  42. include/eigen/lapack/cholesky.cpp +72 -0
  43. include/eigen/lapack/clacgv.f +116 -0
  44. include/eigen/lapack/cladiv.f +97 -0
  45. include/eigen/lapack/clarfg.f +203 -0
  46. include/eigen/lapack/complex_single.cpp +18 -0
  47. include/eigen/lapack/dlapy3.f +111 -0
  48. include/eigen/lapack/dlarfb.f +762 -0
  49. include/eigen/lapack/dlarfg.f +196 -0
  50. include/eigen/lapack/dlarft.f +326 -0
include/eigen/Eigen/Cholesky ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_CHOLESKY_MODULE_H
9
+ #define EIGEN_CHOLESKY_MODULE_H
10
+
11
+ #include "Core"
12
+ #include "Jacobi"
13
+
14
+ #include "src/Core/util/DisableStupidWarnings.h"
15
+
16
+ /** \defgroup Cholesky_Module Cholesky module
17
+ *
18
+ *
19
+ *
20
+ * This module provides two variants of the Cholesky decomposition for selfadjoint (hermitian) matrices.
21
+ * Those decompositions are also accessible via the following methods:
22
+ * - MatrixBase::llt()
23
+ * - MatrixBase::ldlt()
24
+ * - SelfAdjointView::llt()
25
+ * - SelfAdjointView::ldlt()
26
+ *
27
+ * \code
28
+ * #include <Eigen/Cholesky>
29
+ * \endcode
30
+ */
31
+
32
+ #include "src/Cholesky/LLT.h"
33
+ #include "src/Cholesky/LDLT.h"
34
+ #ifdef EIGEN_USE_LAPACKE
35
+ #ifdef EIGEN_USE_MKL
36
+ #include "mkl_lapacke.h"
37
+ #else
38
+ #include "src/misc/lapacke.h"
39
+ #endif
40
+ #include "src/Cholesky/LLT_LAPACKE.h"
41
+ #endif
42
+
43
+ #include "src/Core/util/ReenableStupidWarnings.h"
44
+
45
+ #endif // EIGEN_CHOLESKY_MODULE_H
include/eigen/Eigen/CholmodSupport ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_CHOLMODSUPPORT_MODULE_H
9
+ #define EIGEN_CHOLMODSUPPORT_MODULE_H
10
+
11
+ #include "SparseCore"
12
+
13
+ #include "src/Core/util/DisableStupidWarnings.h"
14
+
15
+ extern "C" {
16
+ #include <cholmod.h>
17
+ }
18
+
19
+ /** \ingroup Support_modules
20
+ * \defgroup CholmodSupport_Module CholmodSupport module
21
+ *
22
+ * This module provides an interface to the Cholmod library which is part of the <a href="http://www.suitesparse.com">suitesparse</a> package.
23
+ * It provides the two following main factorization classes:
24
+ * - class CholmodSupernodalLLT: a supernodal LLT Cholesky factorization.
25
+ * - class CholmodDecomposition: a general L(D)LT Cholesky factorization with automatic or explicit runtime selection of the underlying factorization method (supernodal or simplicial).
26
+ *
27
+ * For the sake of completeness, this module also propose the two following classes:
28
+ * - class CholmodSimplicialLLT
29
+ * - class CholmodSimplicialLDLT
30
+ * Note that these classes does not bring any particular advantage compared to the built-in
31
+ * SimplicialLLT and SimplicialLDLT factorization classes.
32
+ *
33
+ * \code
34
+ * #include <Eigen/CholmodSupport>
35
+ * \endcode
36
+ *
37
+ * In order to use this module, the cholmod headers must be accessible from the include paths, and your binary must be linked to the cholmod library and its dependencies.
38
+ * The dependencies depend on how cholmod has been compiled.
39
+ * For a cmake based project, you can use our FindCholmod.cmake module to help you in this task.
40
+ *
41
+ */
42
+
43
+ #include "src/CholmodSupport/CholmodSupport.h"
44
+
45
+ #include "src/Core/util/ReenableStupidWarnings.h"
46
+
47
+ #endif // EIGEN_CHOLMODSUPPORT_MODULE_H
48
+
include/eigen/Eigen/Core ADDED
@@ -0,0 +1,385 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
5
+ // Copyright (C) 2007-2011 Benoit Jacob <jacob.benoit.1@gmail.com>
6
+ //
7
+ // This Source Code Form is subject to the terms of the Mozilla
8
+ // Public License v. 2.0. If a copy of the MPL was not distributed
9
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
10
+
11
+ #ifndef EIGEN_CORE_H
12
+ #define EIGEN_CORE_H
13
+
14
+ // first thing Eigen does: stop the compiler from reporting useless warnings.
15
+ #include "src/Core/util/DisableStupidWarnings.h"
16
+
17
+ // then include this file where all our macros are defined. It's really important to do it first because
18
+ // it's where we do all the compiler/OS/arch detections and define most defaults.
19
+ #include "src/Core/util/Macros.h"
20
+
21
+ // This detects SSE/AVX/NEON/etc. and configure alignment settings
22
+ #include "src/Core/util/ConfigureVectorization.h"
23
+
24
+ // We need cuda_runtime.h/hip_runtime.h to ensure that
25
+ // the EIGEN_USING_STD macro works properly on the device side
26
+ #if defined(EIGEN_CUDACC)
27
+ #include <cuda_runtime.h>
28
+ #elif defined(EIGEN_HIPCC)
29
+ #include <hip/hip_runtime.h>
30
+ #endif
31
+
32
+
33
+ #ifdef EIGEN_EXCEPTIONS
34
+ #include <new>
35
+ #endif
36
+
37
+ // Disable the ipa-cp-clone optimization flag with MinGW 6.x or newer (enabled by default with -O3)
38
+ // See http://eigen.tuxfamily.org/bz/show_bug.cgi?id=556 for details.
39
+ #if EIGEN_COMP_MINGW && EIGEN_GNUC_AT_LEAST(4,6) && EIGEN_GNUC_AT_MOST(5,5)
40
+ #pragma GCC optimize ("-fno-ipa-cp-clone")
41
+ #endif
42
+
43
+ // Prevent ICC from specializing std::complex operators that silently fail
44
+ // on device. This allows us to use our own device-compatible specializations
45
+ // instead.
46
+ #if defined(EIGEN_COMP_ICC) && defined(EIGEN_GPU_COMPILE_PHASE) \
47
+ && !defined(_OVERRIDE_COMPLEX_SPECIALIZATION_)
48
+ #define _OVERRIDE_COMPLEX_SPECIALIZATION_ 1
49
+ #endif
50
+ #include <complex>
51
+
52
+ // this include file manages BLAS and MKL related macros
53
+ // and inclusion of their respective header files
54
+ #include "src/Core/util/MKL_support.h"
55
+
56
+
57
+ #if defined(EIGEN_HAS_CUDA_FP16) || defined(EIGEN_HAS_HIP_FP16)
58
+ #define EIGEN_HAS_GPU_FP16
59
+ #endif
60
+
61
+ #if defined(EIGEN_HAS_CUDA_BF16) || defined(EIGEN_HAS_HIP_BF16)
62
+ #define EIGEN_HAS_GPU_BF16
63
+ #endif
64
+
65
+ #if (defined _OPENMP) && (!defined EIGEN_DONT_PARALLELIZE)
66
+ #define EIGEN_HAS_OPENMP
67
+ #endif
68
+
69
+ #ifdef EIGEN_HAS_OPENMP
70
+ #include <omp.h>
71
+ #endif
72
+
73
+ // MSVC for windows mobile does not have the errno.h file
74
+ #if !(EIGEN_COMP_MSVC && EIGEN_OS_WINCE) && !EIGEN_COMP_ARM
75
+ #define EIGEN_HAS_ERRNO
76
+ #endif
77
+
78
+ #ifdef EIGEN_HAS_ERRNO
79
+ #include <cerrno>
80
+ #endif
81
+ #include <cstddef>
82
+ #include <cstdlib>
83
+ #include <cmath>
84
+ #include <cassert>
85
+ #include <functional>
86
+ #ifndef EIGEN_NO_IO
87
+ #include <sstream>
88
+ #include <iosfwd>
89
+ #endif
90
+ #include <cstring>
91
+ #include <string>
92
+ #include <limits>
93
+ #include <climits> // for CHAR_BIT
94
+ // for min/max:
95
+ #include <algorithm>
96
+
97
+ #if EIGEN_HAS_CXX11
98
+ #include <array>
99
+ #endif
100
+
101
+ // for std::is_nothrow_move_assignable
102
+ #ifdef EIGEN_INCLUDE_TYPE_TRAITS
103
+ #include <type_traits>
104
+ #endif
105
+
106
+ // for outputting debug info
107
+ #ifdef EIGEN_DEBUG_ASSIGN
108
+ #include <iostream>
109
+ #endif
110
+
111
+ // required for __cpuid, needs to be included after cmath
112
+ // also required for _BitScanReverse on Windows on ARM
113
+ #if EIGEN_COMP_MSVC && (EIGEN_ARCH_i386_OR_x86_64 || EIGEN_ARCH_ARM64) && !EIGEN_OS_WINCE
114
+ #include <intrin.h>
115
+ #endif
116
+
117
+ #if defined(EIGEN_USE_SYCL)
118
+ #undef min
119
+ #undef max
120
+ #undef isnan
121
+ #undef isinf
122
+ #undef isfinite
123
+ #include <CL/sycl.hpp>
124
+ #include <map>
125
+ #include <memory>
126
+ #include <utility>
127
+ #include <thread>
128
+ #ifndef EIGEN_SYCL_LOCAL_THREAD_DIM0
129
+ #define EIGEN_SYCL_LOCAL_THREAD_DIM0 16
130
+ #endif
131
+ #ifndef EIGEN_SYCL_LOCAL_THREAD_DIM1
132
+ #define EIGEN_SYCL_LOCAL_THREAD_DIM1 16
133
+ #endif
134
+ #endif
135
+
136
+
137
+ #if defined EIGEN2_SUPPORT_STAGE40_FULL_EIGEN3_STRICTNESS || defined EIGEN2_SUPPORT_STAGE30_FULL_EIGEN3_API || defined EIGEN2_SUPPORT_STAGE20_RESOLVE_API_CONFLICTS || defined EIGEN2_SUPPORT_STAGE10_FULL_EIGEN2_API || defined EIGEN2_SUPPORT
138
+ // This will generate an error message:
139
+ #error Eigen2-support is only available up to version 3.2. Please go to "http://eigen.tuxfamily.org/index.php?title=Eigen2" for further information
140
+ #endif
141
+
142
+ namespace Eigen {
143
+
144
+ // we use size_t frequently and we'll never remember to prepend it with std:: every time just to
145
+ // ensure QNX/QCC support
146
+ using std::size_t;
147
+ // gcc 4.6.0 wants std:: for ptrdiff_t
148
+ using std::ptrdiff_t;
149
+
150
+ }
151
+
152
+ /** \defgroup Core_Module Core module
153
+ * This is the main module of Eigen providing dense matrix and vector support
154
+ * (both fixed and dynamic size) with all the features corresponding to a BLAS library
155
+ * and much more...
156
+ *
157
+ * \code
158
+ * #include <Eigen/Core>
159
+ * \endcode
160
+ */
161
+
162
+ #include "src/Core/util/Constants.h"
163
+ #include "src/Core/util/Meta.h"
164
+ #include "src/Core/util/ForwardDeclarations.h"
165
+ #include "src/Core/util/StaticAssert.h"
166
+ #include "src/Core/util/XprHelper.h"
167
+ #include "src/Core/util/Memory.h"
168
+ #include "src/Core/util/IntegralConstant.h"
169
+ #include "src/Core/util/SymbolicIndex.h"
170
+
171
+ #include "src/Core/NumTraits.h"
172
+ #include "src/Core/MathFunctions.h"
173
+ #include "src/Core/GenericPacketMath.h"
174
+ #include "src/Core/MathFunctionsImpl.h"
175
+ #include "src/Core/arch/Default/ConjHelper.h"
176
+ // Generic half float support
177
+ #include "src/Core/arch/Default/Half.h"
178
+ #include "src/Core/arch/Default/BFloat16.h"
179
+ #include "src/Core/arch/Default/TypeCasting.h"
180
+ #include "src/Core/arch/Default/GenericPacketMathFunctionsFwd.h"
181
+
182
+ #if defined EIGEN_VECTORIZE_AVX512
183
+ #include "src/Core/arch/SSE/PacketMath.h"
184
+ #include "src/Core/arch/SSE/TypeCasting.h"
185
+ #include "src/Core/arch/SSE/Complex.h"
186
+ #include "src/Core/arch/AVX/PacketMath.h"
187
+ #include "src/Core/arch/AVX/TypeCasting.h"
188
+ #include "src/Core/arch/AVX/Complex.h"
189
+ #include "src/Core/arch/AVX512/PacketMath.h"
190
+ #include "src/Core/arch/AVX512/TypeCasting.h"
191
+ #include "src/Core/arch/AVX512/Complex.h"
192
+ #include "src/Core/arch/SSE/MathFunctions.h"
193
+ #include "src/Core/arch/AVX/MathFunctions.h"
194
+ #include "src/Core/arch/AVX512/MathFunctions.h"
195
+ #elif defined EIGEN_VECTORIZE_AVX
196
+ // Use AVX for floats and doubles, SSE for integers
197
+ #include "src/Core/arch/SSE/PacketMath.h"
198
+ #include "src/Core/arch/SSE/TypeCasting.h"
199
+ #include "src/Core/arch/SSE/Complex.h"
200
+ #include "src/Core/arch/AVX/PacketMath.h"
201
+ #include "src/Core/arch/AVX/TypeCasting.h"
202
+ #include "src/Core/arch/AVX/Complex.h"
203
+ #include "src/Core/arch/SSE/MathFunctions.h"
204
+ #include "src/Core/arch/AVX/MathFunctions.h"
205
+ #elif defined EIGEN_VECTORIZE_SSE
206
+ #include "src/Core/arch/SSE/PacketMath.h"
207
+ #include "src/Core/arch/SSE/TypeCasting.h"
208
+ #include "src/Core/arch/SSE/MathFunctions.h"
209
+ #include "src/Core/arch/SSE/Complex.h"
210
+ #elif defined(EIGEN_VECTORIZE_ALTIVEC) || defined(EIGEN_VECTORIZE_VSX)
211
+ #include "src/Core/arch/AltiVec/PacketMath.h"
212
+ #include "src/Core/arch/AltiVec/MathFunctions.h"
213
+ #include "src/Core/arch/AltiVec/Complex.h"
214
+ #elif defined EIGEN_VECTORIZE_NEON
215
+ #include "src/Core/arch/NEON/PacketMath.h"
216
+ #include "src/Core/arch/NEON/TypeCasting.h"
217
+ #include "src/Core/arch/NEON/MathFunctions.h"
218
+ #include "src/Core/arch/NEON/Complex.h"
219
+ #elif defined EIGEN_VECTORIZE_SVE
220
+ #include "src/Core/arch/SVE/PacketMath.h"
221
+ #include "src/Core/arch/SVE/TypeCasting.h"
222
+ #include "src/Core/arch/SVE/MathFunctions.h"
223
+ #elif defined EIGEN_VECTORIZE_ZVECTOR
224
+ #include "src/Core/arch/ZVector/PacketMath.h"
225
+ #include "src/Core/arch/ZVector/MathFunctions.h"
226
+ #include "src/Core/arch/ZVector/Complex.h"
227
+ #elif defined EIGEN_VECTORIZE_MSA
228
+ #include "src/Core/arch/MSA/PacketMath.h"
229
+ #include "src/Core/arch/MSA/MathFunctions.h"
230
+ #include "src/Core/arch/MSA/Complex.h"
231
+ #endif
232
+
233
+ #if defined EIGEN_VECTORIZE_GPU
234
+ #include "src/Core/arch/GPU/PacketMath.h"
235
+ #include "src/Core/arch/GPU/MathFunctions.h"
236
+ #include "src/Core/arch/GPU/TypeCasting.h"
237
+ #endif
238
+
239
+ #if defined(EIGEN_USE_SYCL)
240
+ #include "src/Core/arch/SYCL/SyclMemoryModel.h"
241
+ #include "src/Core/arch/SYCL/InteropHeaders.h"
242
+ #if !defined(EIGEN_DONT_VECTORIZE_SYCL)
243
+ #include "src/Core/arch/SYCL/PacketMath.h"
244
+ #include "src/Core/arch/SYCL/MathFunctions.h"
245
+ #include "src/Core/arch/SYCL/TypeCasting.h"
246
+ #endif
247
+ #endif
248
+
249
+ #include "src/Core/arch/Default/Settings.h"
250
+ // This file provides generic implementations valid for scalar as well
251
+ #include "src/Core/arch/Default/GenericPacketMathFunctions.h"
252
+
253
+ #include "src/Core/functors/TernaryFunctors.h"
254
+ #include "src/Core/functors/BinaryFunctors.h"
255
+ #include "src/Core/functors/UnaryFunctors.h"
256
+ #include "src/Core/functors/NullaryFunctors.h"
257
+ #include "src/Core/functors/StlFunctors.h"
258
+ #include "src/Core/functors/AssignmentFunctors.h"
259
+
260
+ // Specialized functors to enable the processing of complex numbers
261
+ // on CUDA devices
262
+ #ifdef EIGEN_CUDACC
263
+ #include "src/Core/arch/CUDA/Complex.h"
264
+ #endif
265
+
266
+ #include "src/Core/util/IndexedViewHelper.h"
267
+ #include "src/Core/util/ReshapedHelper.h"
268
+ #include "src/Core/ArithmeticSequence.h"
269
+ #ifndef EIGEN_NO_IO
270
+ #include "src/Core/IO.h"
271
+ #endif
272
+ #include "src/Core/DenseCoeffsBase.h"
273
+ #include "src/Core/DenseBase.h"
274
+ #include "src/Core/MatrixBase.h"
275
+ #include "src/Core/EigenBase.h"
276
+
277
+ #include "src/Core/Product.h"
278
+ #include "src/Core/CoreEvaluators.h"
279
+ #include "src/Core/AssignEvaluator.h"
280
+
281
+ #ifndef EIGEN_PARSED_BY_DOXYGEN // work around Doxygen bug triggered by Assign.h r814874
282
+ // at least confirmed with Doxygen 1.5.5 and 1.5.6
283
+ #include "src/Core/Assign.h"
284
+ #endif
285
+
286
+ #include "src/Core/ArrayBase.h"
287
+ #include "src/Core/util/BlasUtil.h"
288
+ #include "src/Core/DenseStorage.h"
289
+ #include "src/Core/NestByValue.h"
290
+
291
+ // #include "src/Core/ForceAlignedAccess.h"
292
+
293
+ #include "src/Core/ReturnByValue.h"
294
+ #include "src/Core/NoAlias.h"
295
+ #include "src/Core/PlainObjectBase.h"
296
+ #include "src/Core/Matrix.h"
297
+ #include "src/Core/Array.h"
298
+ #include "src/Core/CwiseTernaryOp.h"
299
+ #include "src/Core/CwiseBinaryOp.h"
300
+ #include "src/Core/CwiseUnaryOp.h"
301
+ #include "src/Core/CwiseNullaryOp.h"
302
+ #include "src/Core/CwiseUnaryView.h"
303
+ #include "src/Core/SelfCwiseBinaryOp.h"
304
+ #include "src/Core/Dot.h"
305
+ #include "src/Core/StableNorm.h"
306
+ #include "src/Core/Stride.h"
307
+ #include "src/Core/MapBase.h"
308
+ #include "src/Core/Map.h"
309
+ #include "src/Core/Ref.h"
310
+ #include "src/Core/Block.h"
311
+ #include "src/Core/VectorBlock.h"
312
+ #include "src/Core/IndexedView.h"
313
+ #include "src/Core/Reshaped.h"
314
+ #include "src/Core/Transpose.h"
315
+ #include "src/Core/DiagonalMatrix.h"
316
+ #include "src/Core/Diagonal.h"
317
+ #include "src/Core/DiagonalProduct.h"
318
+ #include "src/Core/Redux.h"
319
+ #include "src/Core/Visitor.h"
320
+ #include "src/Core/Fuzzy.h"
321
+ #include "src/Core/Swap.h"
322
+ #include "src/Core/CommaInitializer.h"
323
+ #include "src/Core/GeneralProduct.h"
324
+ #include "src/Core/Solve.h"
325
+ #include "src/Core/Inverse.h"
326
+ #include "src/Core/SolverBase.h"
327
+ #include "src/Core/PermutationMatrix.h"
328
+ #include "src/Core/Transpositions.h"
329
+ #include "src/Core/TriangularMatrix.h"
330
+ #include "src/Core/SelfAdjointView.h"
331
+ #include "src/Core/products/GeneralBlockPanelKernel.h"
332
+ #include "src/Core/products/Parallelizer.h"
333
+ #include "src/Core/ProductEvaluators.h"
334
+ #include "src/Core/products/GeneralMatrixVector.h"
335
+ #include "src/Core/products/GeneralMatrixMatrix.h"
336
+ #include "src/Core/SolveTriangular.h"
337
+ #include "src/Core/products/GeneralMatrixMatrixTriangular.h"
338
+ #include "src/Core/products/SelfadjointMatrixVector.h"
339
+ #include "src/Core/products/SelfadjointMatrixMatrix.h"
340
+ #include "src/Core/products/SelfadjointProduct.h"
341
+ #include "src/Core/products/SelfadjointRank2Update.h"
342
+ #include "src/Core/products/TriangularMatrixVector.h"
343
+ #include "src/Core/products/TriangularMatrixMatrix.h"
344
+ #include "src/Core/products/TriangularSolverMatrix.h"
345
+ #include "src/Core/products/TriangularSolverVector.h"
346
+ #include "src/Core/BandMatrix.h"
347
+ #include "src/Core/CoreIterators.h"
348
+ #include "src/Core/ConditionEstimator.h"
349
+
350
+ #if defined(EIGEN_VECTORIZE_VSX)
351
+ #include "src/Core/arch/AltiVec/MatrixProduct.h"
352
+ #elif defined EIGEN_VECTORIZE_NEON
353
+ #include "src/Core/arch/NEON/GeneralBlockPanelKernel.h"
354
+ #endif
355
+
356
+ #include "src/Core/BooleanRedux.h"
357
+ #include "src/Core/Select.h"
358
+ #include "src/Core/VectorwiseOp.h"
359
+ #include "src/Core/PartialReduxEvaluator.h"
360
+ #include "src/Core/Random.h"
361
+ #include "src/Core/Replicate.h"
362
+ #include "src/Core/Reverse.h"
363
+ #include "src/Core/ArrayWrapper.h"
364
+ #include "src/Core/StlIterators.h"
365
+
366
+ #ifdef EIGEN_USE_BLAS
367
+ #include "src/Core/products/GeneralMatrixMatrix_BLAS.h"
368
+ #include "src/Core/products/GeneralMatrixVector_BLAS.h"
369
+ #include "src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h"
370
+ #include "src/Core/products/SelfadjointMatrixMatrix_BLAS.h"
371
+ #include "src/Core/products/SelfadjointMatrixVector_BLAS.h"
372
+ #include "src/Core/products/TriangularMatrixMatrix_BLAS.h"
373
+ #include "src/Core/products/TriangularMatrixVector_BLAS.h"
374
+ #include "src/Core/products/TriangularSolverMatrix_BLAS.h"
375
+ #endif // EIGEN_USE_BLAS
376
+
377
+ #ifdef EIGEN_USE_MKL_VML
378
+ #include "src/Core/Assign_MKL.h"
379
+ #endif
380
+
381
+ #include "src/Core/GlobalFunctions.h"
382
+
383
+ #include "src/Core/util/ReenableStupidWarnings.h"
384
+
385
+ #endif // EIGEN_CORE_H
include/eigen/Eigen/Dense ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ #include "Core"
2
+ #include "LU"
3
+ #include "Cholesky"
4
+ #include "QR"
5
+ #include "SVD"
6
+ #include "Geometry"
7
+ #include "Eigenvalues"
include/eigen/Eigen/Eigen ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ #include "Dense"
2
+ #include "Sparse"
include/eigen/Eigen/Eigenvalues ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_EIGENVALUES_MODULE_H
9
+ #define EIGEN_EIGENVALUES_MODULE_H
10
+
11
+ #include "Core"
12
+
13
+ #include "Cholesky"
14
+ #include "Jacobi"
15
+ #include "Householder"
16
+ #include "LU"
17
+ #include "Geometry"
18
+
19
+ #include "src/Core/util/DisableStupidWarnings.h"
20
+
21
+ /** \defgroup Eigenvalues_Module Eigenvalues module
22
+ *
23
+ *
24
+ *
25
+ * This module mainly provides various eigenvalue solvers.
26
+ * This module also provides some MatrixBase methods, including:
27
+ * - MatrixBase::eigenvalues(),
28
+ * - MatrixBase::operatorNorm()
29
+ *
30
+ * \code
31
+ * #include <Eigen/Eigenvalues>
32
+ * \endcode
33
+ */
34
+
35
+ #include "src/misc/RealSvd2x2.h"
36
+ #include "src/Eigenvalues/Tridiagonalization.h"
37
+ #include "src/Eigenvalues/RealSchur.h"
38
+ #include "src/Eigenvalues/EigenSolver.h"
39
+ #include "src/Eigenvalues/SelfAdjointEigenSolver.h"
40
+ #include "src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h"
41
+ #include "src/Eigenvalues/HessenbergDecomposition.h"
42
+ #include "src/Eigenvalues/ComplexSchur.h"
43
+ #include "src/Eigenvalues/ComplexEigenSolver.h"
44
+ #include "src/Eigenvalues/RealQZ.h"
45
+ #include "src/Eigenvalues/GeneralizedEigenSolver.h"
46
+ #include "src/Eigenvalues/MatrixBaseEigenvalues.h"
47
+ #ifdef EIGEN_USE_LAPACKE
48
+ #ifdef EIGEN_USE_MKL
49
+ #include "mkl_lapacke.h"
50
+ #else
51
+ #include "src/misc/lapacke.h"
52
+ #endif
53
+ #include "src/Eigenvalues/RealSchur_LAPACKE.h"
54
+ #include "src/Eigenvalues/ComplexSchur_LAPACKE.h"
55
+ #include "src/Eigenvalues/SelfAdjointEigenSolver_LAPACKE.h"
56
+ #endif
57
+
58
+ #include "src/Core/util/ReenableStupidWarnings.h"
59
+
60
+ #endif // EIGEN_EIGENVALUES_MODULE_H
include/eigen/Eigen/Geometry ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_GEOMETRY_MODULE_H
9
+ #define EIGEN_GEOMETRY_MODULE_H
10
+
11
+ #include "Core"
12
+
13
+ #include "SVD"
14
+ #include "LU"
15
+ #include <limits>
16
+
17
+ #include "src/Core/util/DisableStupidWarnings.h"
18
+
19
+ /** \defgroup Geometry_Module Geometry module
20
+ *
21
+ * This module provides support for:
22
+ * - fixed-size homogeneous transformations
23
+ * - translation, scaling, 2D and 3D rotations
24
+ * - \link Quaternion quaternions \endlink
25
+ * - cross products (\ref MatrixBase::cross, \ref MatrixBase::cross3)
26
+ * - orthognal vector generation (\ref MatrixBase::unitOrthogonal)
27
+ * - some linear components: \link ParametrizedLine parametrized-lines \endlink and \link Hyperplane hyperplanes \endlink
28
+ * - \link AlignedBox axis aligned bounding boxes \endlink
29
+ * - \link umeyama least-square transformation fitting \endlink
30
+ *
31
+ * \code
32
+ * #include <Eigen/Geometry>
33
+ * \endcode
34
+ */
35
+
36
+ #include "src/Geometry/OrthoMethods.h"
37
+ #include "src/Geometry/EulerAngles.h"
38
+
39
+ #include "src/Geometry/Homogeneous.h"
40
+ #include "src/Geometry/RotationBase.h"
41
+ #include "src/Geometry/Rotation2D.h"
42
+ #include "src/Geometry/Quaternion.h"
43
+ #include "src/Geometry/AngleAxis.h"
44
+ #include "src/Geometry/Transform.h"
45
+ #include "src/Geometry/Translation.h"
46
+ #include "src/Geometry/Scaling.h"
47
+ #include "src/Geometry/Hyperplane.h"
48
+ #include "src/Geometry/ParametrizedLine.h"
49
+ #include "src/Geometry/AlignedBox.h"
50
+ #include "src/Geometry/Umeyama.h"
51
+
52
+ // Use the SSE optimized version whenever possible.
53
+ #if (defined EIGEN_VECTORIZE_SSE) || (defined EIGEN_VECTORIZE_NEON)
54
+ #include "src/Geometry/arch/Geometry_SIMD.h"
55
+ #endif
56
+
57
+ #include "src/Core/util/ReenableStupidWarnings.h"
58
+
59
+ #endif // EIGEN_GEOMETRY_MODULE_H
include/eigen/Eigen/Householder ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_HOUSEHOLDER_MODULE_H
9
+ #define EIGEN_HOUSEHOLDER_MODULE_H
10
+
11
+ #include "Core"
12
+
13
+ #include "src/Core/util/DisableStupidWarnings.h"
14
+
15
+ /** \defgroup Householder_Module Householder module
16
+ * This module provides Householder transformations.
17
+ *
18
+ * \code
19
+ * #include <Eigen/Householder>
20
+ * \endcode
21
+ */
22
+
23
+ #include "src/Householder/Householder.h"
24
+ #include "src/Householder/HouseholderSequence.h"
25
+ #include "src/Householder/BlockHouseholder.h"
26
+
27
+ #include "src/Core/util/ReenableStupidWarnings.h"
28
+
29
+ #endif // EIGEN_HOUSEHOLDER_MODULE_H
include/eigen/Eigen/IterativeLinearSolvers ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_ITERATIVELINEARSOLVERS_MODULE_H
9
+ #define EIGEN_ITERATIVELINEARSOLVERS_MODULE_H
10
+
11
+ #include "SparseCore"
12
+ #include "OrderingMethods"
13
+
14
+ #include "src/Core/util/DisableStupidWarnings.h"
15
+
16
+ /**
17
+ * \defgroup IterativeLinearSolvers_Module IterativeLinearSolvers module
18
+ *
19
+ * This module currently provides iterative methods to solve problems of the form \c A \c x = \c b, where \c A is a squared matrix, usually very large and sparse.
20
+ * Those solvers are accessible via the following classes:
21
+ * - ConjugateGradient for selfadjoint (hermitian) matrices,
22
+ * - LeastSquaresConjugateGradient for rectangular least-square problems,
23
+ * - BiCGSTAB for general square matrices.
24
+ *
25
+ * These iterative solvers are associated with some preconditioners:
26
+ * - IdentityPreconditioner - not really useful
27
+ * - DiagonalPreconditioner - also called Jacobi preconditioner, work very well on diagonal dominant matrices.
28
+ * - IncompleteLUT - incomplete LU factorization with dual thresholding
29
+ *
30
+ * Such problems can also be solved using the direct sparse decomposition modules: SparseCholesky, CholmodSupport, UmfPackSupport, SuperLUSupport.
31
+ *
32
+ \code
33
+ #include <Eigen/IterativeLinearSolvers>
34
+ \endcode
35
+ */
36
+
37
+ #include "src/IterativeLinearSolvers/SolveWithGuess.h"
38
+ #include "src/IterativeLinearSolvers/IterativeSolverBase.h"
39
+ #include "src/IterativeLinearSolvers/BasicPreconditioners.h"
40
+ #include "src/IterativeLinearSolvers/ConjugateGradient.h"
41
+ #include "src/IterativeLinearSolvers/LeastSquareConjugateGradient.h"
42
+ #include "src/IterativeLinearSolvers/BiCGSTAB.h"
43
+ #include "src/IterativeLinearSolvers/IncompleteLUT.h"
44
+ #include "src/IterativeLinearSolvers/IncompleteCholesky.h"
45
+
46
+ #include "src/Core/util/ReenableStupidWarnings.h"
47
+
48
+ #endif // EIGEN_ITERATIVELINEARSOLVERS_MODULE_H
include/eigen/Eigen/Jacobi ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_JACOBI_MODULE_H
9
+ #define EIGEN_JACOBI_MODULE_H
10
+
11
+ #include "Core"
12
+
13
+ #include "src/Core/util/DisableStupidWarnings.h"
14
+
15
+ /** \defgroup Jacobi_Module Jacobi module
16
+ * This module provides Jacobi and Givens rotations.
17
+ *
18
+ * \code
19
+ * #include <Eigen/Jacobi>
20
+ * \endcode
21
+ *
22
+ * In addition to listed classes, it defines the two following MatrixBase methods to apply a Jacobi or Givens rotation:
23
+ * - MatrixBase::applyOnTheLeft()
24
+ * - MatrixBase::applyOnTheRight().
25
+ */
26
+
27
+ #include "src/Jacobi/Jacobi.h"
28
+
29
+ #include "src/Core/util/ReenableStupidWarnings.h"
30
+
31
+ #endif // EIGEN_JACOBI_MODULE_H
32
+
include/eigen/Eigen/KLUSupport ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_KLUSUPPORT_MODULE_H
9
+ #define EIGEN_KLUSUPPORT_MODULE_H
10
+
11
+ #include <Eigen/SparseCore>
12
+
13
+ #include <Eigen/src/Core/util/DisableStupidWarnings.h>
14
+
15
+ extern "C" {
16
+ #include <btf.h>
17
+ #include <klu.h>
18
+ }
19
+
20
+ /** \ingroup Support_modules
21
+ * \defgroup KLUSupport_Module KLUSupport module
22
+ *
23
+ * This module provides an interface to the KLU library which is part of the <a href="http://www.suitesparse.com">suitesparse</a> package.
24
+ * It provides the following factorization class:
25
+ * - class KLU: a sparse LU factorization, well-suited for circuit simulation.
26
+ *
27
+ * \code
28
+ * #include <Eigen/KLUSupport>
29
+ * \endcode
30
+ *
31
+ * In order to use this module, the klu and btf headers must be accessible from the include paths, and your binary must be linked to the klu library and its dependencies.
32
+ * The dependencies depend on how umfpack has been compiled.
33
+ * For a cmake based project, you can use our FindKLU.cmake module to help you in this task.
34
+ *
35
+ */
36
+
37
+ #include "src/KLUSupport/KLUSupport.h"
38
+
39
+ #include <Eigen/src/Core/util/ReenableStupidWarnings.h>
40
+
41
+ #endif // EIGEN_KLUSUPPORT_MODULE_H
include/eigen/Eigen/LU ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_LU_MODULE_H
9
+ #define EIGEN_LU_MODULE_H
10
+
11
+ #include "Core"
12
+
13
+ #include "src/Core/util/DisableStupidWarnings.h"
14
+
15
+ /** \defgroup LU_Module LU module
16
+ * This module includes %LU decomposition and related notions such as matrix inversion and determinant.
17
+ * This module defines the following MatrixBase methods:
18
+ * - MatrixBase::inverse()
19
+ * - MatrixBase::determinant()
20
+ *
21
+ * \code
22
+ * #include <Eigen/LU>
23
+ * \endcode
24
+ */
25
+
26
+ #include "src/misc/Kernel.h"
27
+ #include "src/misc/Image.h"
28
+ #include "src/LU/FullPivLU.h"
29
+ #include "src/LU/PartialPivLU.h"
30
+ #ifdef EIGEN_USE_LAPACKE
31
+ #ifdef EIGEN_USE_MKL
32
+ #include "mkl_lapacke.h"
33
+ #else
34
+ #include "src/misc/lapacke.h"
35
+ #endif
36
+ #include "src/LU/PartialPivLU_LAPACKE.h"
37
+ #endif
38
+ #include "src/LU/Determinant.h"
39
+ #include "src/LU/InverseImpl.h"
40
+
41
+ #if defined EIGEN_VECTORIZE_SSE || defined EIGEN_VECTORIZE_NEON
42
+ #include "src/LU/arch/InverseSize4.h"
43
+ #endif
44
+
45
+ #include "src/Core/util/ReenableStupidWarnings.h"
46
+
47
+ #endif // EIGEN_LU_MODULE_H
include/eigen/Eigen/MetisSupport ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_METISSUPPORT_MODULE_H
9
+ #define EIGEN_METISSUPPORT_MODULE_H
10
+
11
+ #include "SparseCore"
12
+
13
+ #include "src/Core/util/DisableStupidWarnings.h"
14
+
15
+ extern "C" {
16
+ #include <metis.h>
17
+ }
18
+
19
+
20
+ /** \ingroup Support_modules
21
+ * \defgroup MetisSupport_Module MetisSupport module
22
+ *
23
+ * \code
24
+ * #include <Eigen/MetisSupport>
25
+ * \endcode
26
+ * This module defines an interface to the METIS reordering package (http://glaros.dtc.umn.edu/gkhome/views/metis).
27
+ * It can be used just as any other built-in method as explained in \link OrderingMethods_Module here. \endlink
28
+ */
29
+
30
+
31
+ #include "src/MetisSupport/MetisSupport.h"
32
+
33
+ #include "src/Core/util/ReenableStupidWarnings.h"
34
+
35
+ #endif // EIGEN_METISSUPPORT_MODULE_H
include/eigen/Eigen/OrderingMethods ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_ORDERINGMETHODS_MODULE_H
9
+ #define EIGEN_ORDERINGMETHODS_MODULE_H
10
+
11
+ #include "SparseCore"
12
+
13
+ #include "src/Core/util/DisableStupidWarnings.h"
14
+
15
+ /**
16
+ * \defgroup OrderingMethods_Module OrderingMethods module
17
+ *
18
+ * This module is currently for internal use only
19
+ *
20
+ * It defines various built-in and external ordering methods for sparse matrices.
21
+ * They are typically used to reduce the number of elements during
22
+ * the sparse matrix decomposition (LLT, LU, QR).
23
+ * Precisely, in a preprocessing step, a permutation matrix P is computed using
24
+ * those ordering methods and applied to the columns of the matrix.
25
+ * Using for instance the sparse Cholesky decomposition, it is expected that
26
+ * the nonzeros elements in LLT(A*P) will be much smaller than that in LLT(A).
27
+ *
28
+ *
29
+ * Usage :
30
+ * \code
31
+ * #include <Eigen/OrderingMethods>
32
+ * \endcode
33
+ *
34
+ * A simple usage is as a template parameter in the sparse decomposition classes :
35
+ *
36
+ * \code
37
+ * SparseLU<MatrixType, COLAMDOrdering<int> > solver;
38
+ * \endcode
39
+ *
40
+ * \code
41
+ * SparseQR<MatrixType, COLAMDOrdering<int> > solver;
42
+ * \endcode
43
+ *
44
+ * It is possible as well to call directly a particular ordering method for your own purpose,
45
+ * \code
46
+ * AMDOrdering<int> ordering;
47
+ * PermutationMatrix<Dynamic, Dynamic, int> perm;
48
+ * SparseMatrix<double> A;
49
+ * //Fill the matrix ...
50
+ *
51
+ * ordering(A, perm); // Call AMD
52
+ * \endcode
53
+ *
54
+ * \note Some of these methods (like AMD or METIS), need the sparsity pattern
55
+ * of the input matrix to be symmetric. When the matrix is structurally unsymmetric,
56
+ * Eigen computes internally the pattern of \f$A^T*A\f$ before calling the method.
57
+ * If your matrix is already symmetric (at leat in structure), you can avoid that
58
+ * by calling the method with a SelfAdjointView type.
59
+ *
60
+ * \code
61
+ * // Call the ordering on the pattern of the lower triangular matrix A
62
+ * ordering(A.selfadjointView<Lower>(), perm);
63
+ * \endcode
64
+ */
65
+
66
+ #include "src/OrderingMethods/Amd.h"
67
+ #include "src/OrderingMethods/Ordering.h"
68
+ #include "src/Core/util/ReenableStupidWarnings.h"
69
+
70
+ #endif // EIGEN_ORDERINGMETHODS_MODULE_H
include/eigen/Eigen/PaStiXSupport ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_PASTIXSUPPORT_MODULE_H
9
+ #define EIGEN_PASTIXSUPPORT_MODULE_H
10
+
11
+ #include "SparseCore"
12
+
13
+ #include "src/Core/util/DisableStupidWarnings.h"
14
+
15
+ extern "C" {
16
+ #include <pastix_nompi.h>
17
+ #include <pastix.h>
18
+ }
19
+
20
+ #ifdef complex
21
+ #undef complex
22
+ #endif
23
+
24
+ /** \ingroup Support_modules
25
+ * \defgroup PaStiXSupport_Module PaStiXSupport module
26
+ *
27
+ * This module provides an interface to the <a href="http://pastix.gforge.inria.fr/">PaSTiX</a> library.
28
+ * PaSTiX is a general \b supernodal, \b parallel and \b opensource sparse solver.
29
+ * It provides the two following main factorization classes:
30
+ * - class PastixLLT : a supernodal, parallel LLt Cholesky factorization.
31
+ * - class PastixLDLT: a supernodal, parallel LDLt Cholesky factorization.
32
+ * - class PastixLU : a supernodal, parallel LU factorization (optimized for a symmetric pattern).
33
+ *
34
+ * \code
35
+ * #include <Eigen/PaStiXSupport>
36
+ * \endcode
37
+ *
38
+ * In order to use this module, the PaSTiX headers must be accessible from the include paths, and your binary must be linked to the PaSTiX library and its dependencies.
39
+ * This wrapper resuires PaStiX version 5.x compiled without MPI support.
40
+ * The dependencies depend on how PaSTiX has been compiled.
41
+ * For a cmake based project, you can use our FindPaSTiX.cmake module to help you in this task.
42
+ *
43
+ */
44
+
45
+ #include "src/PaStiXSupport/PaStiXSupport.h"
46
+
47
+ #include "src/Core/util/ReenableStupidWarnings.h"
48
+
49
+ #endif // EIGEN_PASTIXSUPPORT_MODULE_H
include/eigen/Eigen/PardisoSupport ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_PARDISOSUPPORT_MODULE_H
9
+ #define EIGEN_PARDISOSUPPORT_MODULE_H
10
+
11
+ #include "SparseCore"
12
+
13
+ #include "src/Core/util/DisableStupidWarnings.h"
14
+
15
+ #include <mkl_pardiso.h>
16
+
17
+ /** \ingroup Support_modules
18
+ * \defgroup PardisoSupport_Module PardisoSupport module
19
+ *
20
+ * This module brings support for the Intel(R) MKL PARDISO direct sparse solvers.
21
+ *
22
+ * \code
23
+ * #include <Eigen/PardisoSupport>
24
+ * \endcode
25
+ *
26
+ * In order to use this module, the MKL headers must be accessible from the include paths, and your binary must be linked to the MKL library and its dependencies.
27
+ * See this \ref TopicUsingIntelMKL "page" for more information on MKL-Eigen integration.
28
+ *
29
+ */
30
+
31
+ #include "src/PardisoSupport/PardisoSupport.h"
32
+
33
+ #include "src/Core/util/ReenableStupidWarnings.h"
34
+
35
+ #endif // EIGEN_PARDISOSUPPORT_MODULE_H
include/eigen/Eigen/QR ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_QR_MODULE_H
9
+ #define EIGEN_QR_MODULE_H
10
+
11
+ #include "Core"
12
+
13
+ #include "Cholesky"
14
+ #include "Jacobi"
15
+ #include "Householder"
16
+
17
+ #include "src/Core/util/DisableStupidWarnings.h"
18
+
19
+ /** \defgroup QR_Module QR module
20
+ *
21
+ *
22
+ *
23
+ * This module provides various QR decompositions
24
+ * This module also provides some MatrixBase methods, including:
25
+ * - MatrixBase::householderQr()
26
+ * - MatrixBase::colPivHouseholderQr()
27
+ * - MatrixBase::fullPivHouseholderQr()
28
+ *
29
+ * \code
30
+ * #include <Eigen/QR>
31
+ * \endcode
32
+ */
33
+
34
+ #include "src/QR/HouseholderQR.h"
35
+ #include "src/QR/FullPivHouseholderQR.h"
36
+ #include "src/QR/ColPivHouseholderQR.h"
37
+ #include "src/QR/CompleteOrthogonalDecomposition.h"
38
+ #ifdef EIGEN_USE_LAPACKE
39
+ #ifdef EIGEN_USE_MKL
40
+ #include "mkl_lapacke.h"
41
+ #else
42
+ #include "src/misc/lapacke.h"
43
+ #endif
44
+ #include "src/QR/HouseholderQR_LAPACKE.h"
45
+ #include "src/QR/ColPivHouseholderQR_LAPACKE.h"
46
+ #endif
47
+
48
+ #include "src/Core/util/ReenableStupidWarnings.h"
49
+
50
+ #endif // EIGEN_QR_MODULE_H
include/eigen/Eigen/QtAlignedMalloc ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_QTMALLOC_MODULE_H
9
+ #define EIGEN_QTMALLOC_MODULE_H
10
+
11
+ #include "Core"
12
+
13
+ #if (!EIGEN_MALLOC_ALREADY_ALIGNED)
14
+
15
+ #include "src/Core/util/DisableStupidWarnings.h"
16
+
17
+ void *qMalloc(std::size_t size)
18
+ {
19
+ return Eigen::internal::aligned_malloc(size);
20
+ }
21
+
22
+ void qFree(void *ptr)
23
+ {
24
+ Eigen::internal::aligned_free(ptr);
25
+ }
26
+
27
+ void *qRealloc(void *ptr, std::size_t size)
28
+ {
29
+ void* newPtr = Eigen::internal::aligned_malloc(size);
30
+ std::memcpy(newPtr, ptr, size);
31
+ Eigen::internal::aligned_free(ptr);
32
+ return newPtr;
33
+ }
34
+
35
+ #include "src/Core/util/ReenableStupidWarnings.h"
36
+
37
+ #endif
38
+
39
+ #endif // EIGEN_QTMALLOC_MODULE_H
include/eigen/Eigen/SPQRSupport ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_SPQRSUPPORT_MODULE_H
9
+ #define EIGEN_SPQRSUPPORT_MODULE_H
10
+
11
+ #include "SparseCore"
12
+
13
+ #include "src/Core/util/DisableStupidWarnings.h"
14
+
15
+ #include "SuiteSparseQR.hpp"
16
+
17
+ /** \ingroup Support_modules
18
+ * \defgroup SPQRSupport_Module SuiteSparseQR module
19
+ *
20
+ * This module provides an interface to the SPQR library, which is part of the <a href="http://www.suitesparse.com">suitesparse</a> package.
21
+ *
22
+ * \code
23
+ * #include <Eigen/SPQRSupport>
24
+ * \endcode
25
+ *
26
+ * In order to use this module, the SPQR headers must be accessible from the include paths, and your binary must be linked to the SPQR library and its dependencies (Cholmod, AMD, COLAMD,...).
27
+ * For a cmake based project, you can use our FindSPQR.cmake and FindCholmod.Cmake modules
28
+ *
29
+ */
30
+
31
+ #include "src/CholmodSupport/CholmodSupport.h"
32
+ #include "src/SPQRSupport/SuiteSparseQRSupport.h"
33
+
34
+ #endif
include/eigen/Eigen/SVD ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_SVD_MODULE_H
9
+ #define EIGEN_SVD_MODULE_H
10
+
11
+ #include "QR"
12
+ #include "Householder"
13
+ #include "Jacobi"
14
+
15
+ #include "src/Core/util/DisableStupidWarnings.h"
16
+
17
+ /** \defgroup SVD_Module SVD module
18
+ *
19
+ *
20
+ *
21
+ * This module provides SVD decomposition for matrices (both real and complex).
22
+ * Two decomposition algorithms are provided:
23
+ * - JacobiSVD implementing two-sided Jacobi iterations is numerically very accurate, fast for small matrices, but very slow for larger ones.
24
+ * - BDCSVD implementing a recursive divide & conquer strategy on top of an upper-bidiagonalization which remains fast for large problems.
25
+ * These decompositions are accessible via the respective classes and following MatrixBase methods:
26
+ * - MatrixBase::jacobiSvd()
27
+ * - MatrixBase::bdcSvd()
28
+ *
29
+ * \code
30
+ * #include <Eigen/SVD>
31
+ * \endcode
32
+ */
33
+
34
+ #include "src/misc/RealSvd2x2.h"
35
+ #include "src/SVD/UpperBidiagonalization.h"
36
+ #include "src/SVD/SVDBase.h"
37
+ #include "src/SVD/JacobiSVD.h"
38
+ #include "src/SVD/BDCSVD.h"
39
+ #if defined(EIGEN_USE_LAPACKE) && !defined(EIGEN_USE_LAPACKE_STRICT)
40
+ #ifdef EIGEN_USE_MKL
41
+ #include "mkl_lapacke.h"
42
+ #else
43
+ #include "src/misc/lapacke.h"
44
+ #endif
45
+ #include "src/SVD/JacobiSVD_LAPACKE.h"
46
+ #endif
47
+
48
+ #include "src/Core/util/ReenableStupidWarnings.h"
49
+
50
+ #endif // EIGEN_SVD_MODULE_H
include/eigen/Eigen/Sparse ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_SPARSE_MODULE_H
9
+ #define EIGEN_SPARSE_MODULE_H
10
+
11
+ /** \defgroup Sparse_Module Sparse meta-module
12
+ *
13
+ * Meta-module including all related modules:
14
+ * - \ref SparseCore_Module
15
+ * - \ref OrderingMethods_Module
16
+ * - \ref SparseCholesky_Module
17
+ * - \ref SparseLU_Module
18
+ * - \ref SparseQR_Module
19
+ * - \ref IterativeLinearSolvers_Module
20
+ *
21
+ \code
22
+ #include <Eigen/Sparse>
23
+ \endcode
24
+ */
25
+
26
+ #include "SparseCore"
27
+ #include "OrderingMethods"
28
+ #include "SparseCholesky"
29
+ #include "SparseLU"
30
+ #include "SparseQR"
31
+ #include "IterativeLinearSolvers"
32
+
33
+ #endif // EIGEN_SPARSE_MODULE_H
34
+
include/eigen/Eigen/SparseCholesky ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // Copyright (C) 2008-2013 Gael Guennebaud <gael.guennebaud@inria.fr>
5
+ //
6
+ // This Source Code Form is subject to the terms of the Mozilla
7
+ // Public License v. 2.0. If a copy of the MPL was not distributed
8
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+
10
+ #ifndef EIGEN_SPARSECHOLESKY_MODULE_H
11
+ #define EIGEN_SPARSECHOLESKY_MODULE_H
12
+
13
+ #include "SparseCore"
14
+ #include "OrderingMethods"
15
+
16
+ #include "src/Core/util/DisableStupidWarnings.h"
17
+
18
+ /**
19
+ * \defgroup SparseCholesky_Module SparseCholesky module
20
+ *
21
+ * This module currently provides two variants of the direct sparse Cholesky decomposition for selfadjoint (hermitian) matrices.
22
+ * Those decompositions are accessible via the following classes:
23
+ * - SimplicialLLt,
24
+ * - SimplicialLDLt
25
+ *
26
+ * Such problems can also be solved using the ConjugateGradient solver from the IterativeLinearSolvers module.
27
+ *
28
+ * \code
29
+ * #include <Eigen/SparseCholesky>
30
+ * \endcode
31
+ */
32
+
33
+ #include "src/SparseCholesky/SimplicialCholesky.h"
34
+ #include "src/SparseCholesky/SimplicialCholesky_impl.h"
35
+ #include "src/Core/util/ReenableStupidWarnings.h"
36
+
37
+ #endif // EIGEN_SPARSECHOLESKY_MODULE_H
include/eigen/Eigen/SparseCore ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_SPARSECORE_MODULE_H
9
+ #define EIGEN_SPARSECORE_MODULE_H
10
+
11
+ #include "Core"
12
+
13
+ #include "src/Core/util/DisableStupidWarnings.h"
14
+
15
+ #include <vector>
16
+ #include <map>
17
+ #include <cstdlib>
18
+ #include <cstring>
19
+ #include <algorithm>
20
+
21
+ /**
22
+ * \defgroup SparseCore_Module SparseCore module
23
+ *
24
+ * This module provides a sparse matrix representation, and basic associated matrix manipulations
25
+ * and operations.
26
+ *
27
+ * See the \ref TutorialSparse "Sparse tutorial"
28
+ *
29
+ * \code
30
+ * #include <Eigen/SparseCore>
31
+ * \endcode
32
+ *
33
+ * This module depends on: Core.
34
+ */
35
+
36
+ #include "src/SparseCore/SparseUtil.h"
37
+ #include "src/SparseCore/SparseMatrixBase.h"
38
+ #include "src/SparseCore/SparseAssign.h"
39
+ #include "src/SparseCore/CompressedStorage.h"
40
+ #include "src/SparseCore/AmbiVector.h"
41
+ #include "src/SparseCore/SparseCompressedBase.h"
42
+ #include "src/SparseCore/SparseMatrix.h"
43
+ #include "src/SparseCore/SparseMap.h"
44
+ #include "src/SparseCore/MappedSparseMatrix.h"
45
+ #include "src/SparseCore/SparseVector.h"
46
+ #include "src/SparseCore/SparseRef.h"
47
+ #include "src/SparseCore/SparseCwiseUnaryOp.h"
48
+ #include "src/SparseCore/SparseCwiseBinaryOp.h"
49
+ #include "src/SparseCore/SparseTranspose.h"
50
+ #include "src/SparseCore/SparseBlock.h"
51
+ #include "src/SparseCore/SparseDot.h"
52
+ #include "src/SparseCore/SparseRedux.h"
53
+ #include "src/SparseCore/SparseView.h"
54
+ #include "src/SparseCore/SparseDiagonalProduct.h"
55
+ #include "src/SparseCore/ConservativeSparseSparseProduct.h"
56
+ #include "src/SparseCore/SparseSparseProductWithPruning.h"
57
+ #include "src/SparseCore/SparseProduct.h"
58
+ #include "src/SparseCore/SparseDenseProduct.h"
59
+ #include "src/SparseCore/SparseSelfAdjointView.h"
60
+ #include "src/SparseCore/SparseTriangularView.h"
61
+ #include "src/SparseCore/TriangularSolver.h"
62
+ #include "src/SparseCore/SparsePermutation.h"
63
+ #include "src/SparseCore/SparseFuzzy.h"
64
+ #include "src/SparseCore/SparseSolverBase.h"
65
+
66
+ #include "src/Core/util/ReenableStupidWarnings.h"
67
+
68
+ #endif // EIGEN_SPARSECORE_MODULE_H
69
+
include/eigen/Eigen/SparseLU ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // Copyright (C) 2012 Désiré Nuentsa-Wakam <desire.nuentsa_wakam@inria.fr>
5
+ // Copyright (C) 2012 Gael Guennebaud <gael.guennebaud@inria.fr>
6
+ //
7
+ // This Source Code Form is subject to the terms of the Mozilla
8
+ // Public License v. 2.0. If a copy of the MPL was not distributed
9
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
10
+
11
+ #ifndef EIGEN_SPARSELU_MODULE_H
12
+ #define EIGEN_SPARSELU_MODULE_H
13
+
14
+ #include "SparseCore"
15
+
16
+ /**
17
+ * \defgroup SparseLU_Module SparseLU module
18
+ * This module defines a supernodal factorization of general sparse matrices.
19
+ * The code is fully optimized for supernode-panel updates with specialized kernels.
20
+ * Please, see the documentation of the SparseLU class for more details.
21
+ */
22
+
23
+ // Ordering interface
24
+ #include "OrderingMethods"
25
+
26
+ #include "src/Core/util/DisableStupidWarnings.h"
27
+
28
+ #include "src/SparseLU/SparseLU_Structs.h"
29
+ #include "src/SparseLU/SparseLU_SupernodalMatrix.h"
30
+ #include "src/SparseLU/SparseLUImpl.h"
31
+ #include "src/SparseCore/SparseColEtree.h"
32
+ #include "src/SparseLU/SparseLU_Memory.h"
33
+ #include "src/SparseLU/SparseLU_heap_relax_snode.h"
34
+ #include "src/SparseLU/SparseLU_relax_snode.h"
35
+ #include "src/SparseLU/SparseLU_pivotL.h"
36
+ #include "src/SparseLU/SparseLU_panel_dfs.h"
37
+ #include "src/SparseLU/SparseLU_kernel_bmod.h"
38
+ #include "src/SparseLU/SparseLU_panel_bmod.h"
39
+ #include "src/SparseLU/SparseLU_column_dfs.h"
40
+ #include "src/SparseLU/SparseLU_column_bmod.h"
41
+ #include "src/SparseLU/SparseLU_copy_to_ucol.h"
42
+ #include "src/SparseLU/SparseLU_pruneL.h"
43
+ #include "src/SparseLU/SparseLU_Utils.h"
44
+ #include "src/SparseLU/SparseLU.h"
45
+
46
+ #include "src/Core/util/ReenableStupidWarnings.h"
47
+
48
+ #endif // EIGEN_SPARSELU_MODULE_H
include/eigen/Eigen/SparseQR ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_SPARSEQR_MODULE_H
9
+ #define EIGEN_SPARSEQR_MODULE_H
10
+
11
+ #include "SparseCore"
12
+ #include "OrderingMethods"
13
+ #include "src/Core/util/DisableStupidWarnings.h"
14
+
15
+ /** \defgroup SparseQR_Module SparseQR module
16
+ * \brief Provides QR decomposition for sparse matrices
17
+ *
18
+ * This module provides a simplicial version of the left-looking Sparse QR decomposition.
19
+ * The columns of the input matrix should be reordered to limit the fill-in during the
20
+ * decomposition. Built-in methods (COLAMD, AMD) or external methods (METIS) can be used to this end.
21
+ * See the \link OrderingMethods_Module OrderingMethods\endlink module for the list
22
+ * of built-in and external ordering methods.
23
+ *
24
+ * \code
25
+ * #include <Eigen/SparseQR>
26
+ * \endcode
27
+ *
28
+ *
29
+ */
30
+
31
+ #include "src/SparseCore/SparseColEtree.h"
32
+ #include "src/SparseQR/SparseQR.h"
33
+
34
+ #include "src/Core/util/ReenableStupidWarnings.h"
35
+
36
+ #endif
include/eigen/Eigen/StdDeque ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr>
5
+ // Copyright (C) 2009 Hauke Heibel <hauke.heibel@googlemail.com>
6
+ //
7
+ // This Source Code Form is subject to the terms of the Mozilla
8
+ // Public License v. 2.0. If a copy of the MPL was not distributed
9
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
10
+
11
+ #ifndef EIGEN_STDDEQUE_MODULE_H
12
+ #define EIGEN_STDDEQUE_MODULE_H
13
+
14
+ #include "Core"
15
+ #include <deque>
16
+
17
+ #if EIGEN_COMP_MSVC && EIGEN_OS_WIN64 && (EIGEN_MAX_STATIC_ALIGN_BYTES<=16) /* MSVC auto aligns up to 16 bytes in 64 bit builds */
18
+
19
+ #define EIGEN_DEFINE_STL_DEQUE_SPECIALIZATION(...)
20
+
21
+ #else
22
+
23
+ #include "src/StlSupport/StdDeque.h"
24
+
25
+ #endif
26
+
27
+ #endif // EIGEN_STDDEQUE_MODULE_H
include/eigen/Eigen/StdList ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // Copyright (C) 2009 Hauke Heibel <hauke.heibel@googlemail.com>
5
+ //
6
+ // This Source Code Form is subject to the terms of the Mozilla
7
+ // Public License v. 2.0. If a copy of the MPL was not distributed
8
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+
10
+ #ifndef EIGEN_STDLIST_MODULE_H
11
+ #define EIGEN_STDLIST_MODULE_H
12
+
13
+ #include "Core"
14
+ #include <list>
15
+
16
+ #if EIGEN_COMP_MSVC && EIGEN_OS_WIN64 && (EIGEN_MAX_STATIC_ALIGN_BYTES<=16) /* MSVC auto aligns up to 16 bytes in 64 bit builds */
17
+
18
+ #define EIGEN_DEFINE_STL_LIST_SPECIALIZATION(...)
19
+
20
+ #else
21
+
22
+ #include "src/StlSupport/StdList.h"
23
+
24
+ #endif
25
+
26
+ #endif // EIGEN_STDLIST_MODULE_H
include/eigen/Eigen/StdVector ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr>
5
+ // Copyright (C) 2009 Hauke Heibel <hauke.heibel@googlemail.com>
6
+ //
7
+ // This Source Code Form is subject to the terms of the Mozilla
8
+ // Public License v. 2.0. If a copy of the MPL was not distributed
9
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
10
+
11
+ #ifndef EIGEN_STDVECTOR_MODULE_H
12
+ #define EIGEN_STDVECTOR_MODULE_H
13
+
14
+ #include "Core"
15
+ #include <vector>
16
+
17
+ #if EIGEN_COMP_MSVC && EIGEN_OS_WIN64 && (EIGEN_MAX_STATIC_ALIGN_BYTES<=16) /* MSVC auto aligns up to 16 bytes in 64 bit builds */
18
+
19
+ #define EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(...)
20
+
21
+ #else
22
+
23
+ #include "src/StlSupport/StdVector.h"
24
+
25
+ #endif
26
+
27
+ #endif // EIGEN_STDVECTOR_MODULE_H
include/eigen/Eigen/SuperLUSupport ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_SUPERLUSUPPORT_MODULE_H
9
+ #define EIGEN_SUPERLUSUPPORT_MODULE_H
10
+
11
+ #include "SparseCore"
12
+
13
+ #include "src/Core/util/DisableStupidWarnings.h"
14
+
15
+ #ifdef EMPTY
16
+ #define EIGEN_EMPTY_WAS_ALREADY_DEFINED
17
+ #endif
18
+
19
+ typedef int int_t;
20
+ #include <slu_Cnames.h>
21
+ #include <supermatrix.h>
22
+ #include <slu_util.h>
23
+
24
+ // slu_util.h defines a preprocessor token named EMPTY which is really polluting,
25
+ // so we remove it in favor of a SUPERLU_EMPTY token.
26
+ // If EMPTY was already defined then we don't undef it.
27
+
28
+ #if defined(EIGEN_EMPTY_WAS_ALREADY_DEFINED)
29
+ # undef EIGEN_EMPTY_WAS_ALREADY_DEFINED
30
+ #elif defined(EMPTY)
31
+ # undef EMPTY
32
+ #endif
33
+
34
+ #define SUPERLU_EMPTY (-1)
35
+
36
+ namespace Eigen { struct SluMatrix; }
37
+
38
+ /** \ingroup Support_modules
39
+ * \defgroup SuperLUSupport_Module SuperLUSupport module
40
+ *
41
+ * This module provides an interface to the <a href="http://crd-legacy.lbl.gov/~xiaoye/SuperLU/">SuperLU</a> library.
42
+ * It provides the following factorization class:
43
+ * - class SuperLU: a supernodal sequential LU factorization.
44
+ * - class SuperILU: a supernodal sequential incomplete LU factorization (to be used as a preconditioner for iterative methods).
45
+ *
46
+ * \warning This wrapper requires at least versions 4.0 of SuperLU. The 3.x versions are not supported.
47
+ *
48
+ * \warning When including this module, you have to use SUPERLU_EMPTY instead of EMPTY which is no longer defined because it is too polluting.
49
+ *
50
+ * \code
51
+ * #include <Eigen/SuperLUSupport>
52
+ * \endcode
53
+ *
54
+ * In order to use this module, the superlu headers must be accessible from the include paths, and your binary must be linked to the superlu library and its dependencies.
55
+ * The dependencies depend on how superlu has been compiled.
56
+ * For a cmake based project, you can use our FindSuperLU.cmake module to help you in this task.
57
+ *
58
+ */
59
+
60
+ #include "src/SuperLUSupport/SuperLUSupport.h"
61
+
62
+ #include "src/Core/util/ReenableStupidWarnings.h"
63
+
64
+ #endif // EIGEN_SUPERLUSUPPORT_MODULE_H
include/eigen/Eigen/UmfPackSupport ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // This Source Code Form is subject to the terms of the Mozilla
5
+ // Public License v. 2.0. If a copy of the MPL was not distributed
6
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+
8
+ #ifndef EIGEN_UMFPACKSUPPORT_MODULE_H
9
+ #define EIGEN_UMFPACKSUPPORT_MODULE_H
10
+
11
+ #include "SparseCore"
12
+
13
+ #include "src/Core/util/DisableStupidWarnings.h"
14
+
15
+ extern "C" {
16
+ #include <umfpack.h>
17
+ }
18
+
19
+ /** \ingroup Support_modules
20
+ * \defgroup UmfPackSupport_Module UmfPackSupport module
21
+ *
22
+ * This module provides an interface to the UmfPack library which is part of the <a href="http://www.suitesparse.com">suitesparse</a> package.
23
+ * It provides the following factorization class:
24
+ * - class UmfPackLU: a multifrontal sequential LU factorization.
25
+ *
26
+ * \code
27
+ * #include <Eigen/UmfPackSupport>
28
+ * \endcode
29
+ *
30
+ * In order to use this module, the umfpack headers must be accessible from the include paths, and your binary must be linked to the umfpack library and its dependencies.
31
+ * The dependencies depend on how umfpack has been compiled.
32
+ * For a cmake based project, you can use our FindUmfPack.cmake module to help you in this task.
33
+ *
34
+ */
35
+
36
+ #include "src/UmfPackSupport/UmfPackSupport.h"
37
+
38
+ #include "src/Core/util/ReenableStupidWarnings.h"
39
+
40
+ #endif // EIGEN_UMFPACKSUPPORT_MODULE_H
include/eigen/ci/CTest2JUnit.xsl ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
2
+ <xsl:output method="xml" indent="yes"/>
3
+ <xsl:template match="/Site">
4
+ <xsl:variable name="Name"><xsl:value-of select="@Name"/></xsl:variable>
5
+ <xsl:variable name="Hostname"><xsl:value-of select="@Hostname"/></xsl:variable>
6
+ <xsl:variable name="TestCount"><xsl:value-of select="count(//TestList/Test)"/> </xsl:variable>
7
+ <xsl:variable name="ErrorCount"><xsl:value-of select="count(//TestList/Test[@Status='error'])"/> </xsl:variable>
8
+ <xsl:variable name="FailureCount"><xsl:value-of select="count(//Testing/Test[@Status='failed'])"/> </xsl:variable>
9
+ <testsuite name="{$Name}" hostname="{$Hostname}" errors="0" failures="{$FailureCount}" tests="{$TestCount}">
10
+ <xsl:variable name="BuildName"><xsl:value-of select="@BuildName"/></xsl:variable>
11
+ <xsl:variable name="BuildStamp"><xsl:value-of select="@BuildStamp"/></xsl:variable>
12
+ <xsl:variable name="Generator"><xsl:value-of select="@Generator"/></xsl:variable>
13
+ <xsl:variable name="CompilerName"><xsl:value-of select="@CompilerName"/></xsl:variable>
14
+ <xsl:variable name="OSName"><xsl:value-of select="@OSName"/></xsl:variable>
15
+ <xsl:variable name="OSRelease"><xsl:value-of select="@OSRelease"/></xsl:variable>
16
+ <xsl:variable name="OSVersion"><xsl:value-of select="@OSVersion"/></xsl:variable>
17
+ <xsl:variable name="OSPlatform"><xsl:value-of select="@OSPlatform"/></xsl:variable>
18
+ <xsl:variable name="Is64Bits"><xsl:value-of select="@Is64Bits"/></xsl:variable>
19
+ <xsl:variable name="VendorString"><xsl:value-of select="@VendorString"/></xsl:variable>
20
+ <xsl:variable name="VendorID"><xsl:value-of select="@VendorID"/></xsl:variable>
21
+ <xsl:variable name="FamilyID"><xsl:value-of select="@FamilyID"/></xsl:variable>
22
+ <xsl:variable name="ModelID"><xsl:value-of select="@ModelID"/></xsl:variable>
23
+ <xsl:variable name="ProcessorCacheSize"><xsl:value-of select="@ProcessorCacheSize"/></xsl:variable>
24
+ <xsl:variable name="NumberOfLogicalCPU"><xsl:value-of select="@NumberOfLogicalCPU"/></xsl:variable>
25
+ <xsl:variable name="NumberOfPhysicalCPU"><xsl:value-of select="@NumberOfPhysicalCPU"/></xsl:variable>
26
+ <xsl:variable name="TotalVirtualMemory"><xsl:value-of select="@TotalVirtualMemory"/></xsl:variable>
27
+ <xsl:variable name="TotalPhysicalMemory"><xsl:value-of select="@TotalPhysicalMemory"/></xsl:variable>
28
+ <xsl:variable name="LogicalProcessorsPerPhysical"><xsl:value-of select="@LogicalProcessorsPerPhysical"/></xsl:variable>
29
+ <xsl:variable name="ProcessorClockFrequency"><xsl:value-of select="@ProcessorClockFrequency"/></xsl:variable>
30
+ <properties>
31
+ <property name="BuildName" value="{$BuildName}" />
32
+ <property name="BuildStamp" value="{$BuildStamp}" />
33
+ <property name="Name" value="{$Name}" />
34
+ <property name="Generator" value="{$Generator}" />
35
+ <property name="CompilerName" value="{$CompilerName}" />
36
+ <property name="OSName" value="{$OSName}" />
37
+ <property name="Hostname" value="{$Hostname}" />
38
+ <property name="OSRelease" value="{$OSRelease}" />
39
+ <property name="OSVersion" value="{$OSVersion}" />
40
+ <property name="OSPlatform" value="{$OSPlatform}" />
41
+ <property name="Is64Bits" value="{$Is64Bits}" />
42
+ <property name="VendorString" value="{$VendorString}" />
43
+ <property name="VendorID" value="{$VendorID}" />
44
+ <property name="FamilyID" value="{$FamilyID}" />
45
+ <property name="ModelID" value="{$ModelID}" />
46
+ <property name="ProcessorCacheSize" value="{$ProcessorCacheSize}" />
47
+ <property name="NumberOfLogicalCPU" value="{$NumberOfLogicalCPU}" />
48
+ <property name="NumberOfPhysicalCPU" value="{$NumberOfPhysicalCPU}" />
49
+ <property name="TotalVirtualMemory" value="{$TotalVirtualMemory}" />
50
+ <property name="TotalPhysicalMemory" value="{$TotalPhysicalMemory}" />
51
+ <property name="LogicalProcessorsPerPhysical" value="{$LogicalProcessorsPerPhysical}" />
52
+ <property name="ProcessorClockFrequency" value="{$ProcessorClockFrequency}" />
53
+ </properties>
54
+ <xsl:apply-templates select="Testing/Test"/>
55
+
56
+ <system-out>
57
+ BuildName: <xsl:value-of select="$BuildName" />
58
+ BuildStamp: <xsl:value-of select="$BuildStamp" />
59
+ Name: <xsl:value-of select="$Name" />
60
+ Generator: <xsl:value-of select="$Generator" />
61
+ CompilerName: <xsl:value-of select="$CompilerName" />
62
+ OSName: <xsl:value-of select="$OSName" />
63
+ Hostname: <xsl:value-of select="$Hostname" />
64
+ OSRelease: <xsl:value-of select="$OSRelease" />
65
+ OSVersion: <xsl:value-of select="$OSVersion" />
66
+ OSPlatform: <xsl:value-of select="$OSPlatform" />
67
+ Is64Bits: <xsl:value-of select="$Is64Bits" />
68
+ VendorString: <xsl:value-of select="$VendorString" />
69
+ VendorID: <xsl:value-of select="$VendorID" />
70
+ FamilyID: <xsl:value-of select="$FamilyID" />
71
+ ModelID: <xsl:value-of select="$ModelID" />
72
+ ProcessorCacheSize: <xsl:value-of select="$ProcessorCacheSize" />
73
+ NumberOfLogicalCPU: <xsl:value-of select="$NumberOfLogicalCPU" />
74
+ NumberOfPhysicalCPU: <xsl:value-of select="$NumberOfPhysicalCPU" />
75
+ TotalVirtualMemory: <xsl:value-of select="$TotalVirtualMemory" />
76
+ TotalPhysicalMemory: <xsl:value-of select="$TotalPhysicalMemory" />
77
+ LogicalProcessorsPerPhysical: <xsl:value-of select="$LogicalProcessorsPerPhysical" />
78
+ ProcessorClockFrequency: <xsl:value-of select="$ProcessorClockFrequency" />
79
+ </system-out>
80
+ </testsuite>
81
+ </xsl:template>
82
+
83
+ <xsl:template match="Testing/Test">
84
+ <xsl:variable name="testcasename"><xsl:value-of select= "Name"/></xsl:variable>
85
+ <xsl:variable name="testclassname"><xsl:value-of select= " concat('this', substring(Path,2))"/></xsl:variable>
86
+ <xsl:variable name="exectime">
87
+ <xsl:for-each select="Results/NamedMeasurement">
88
+ <xsl:if test="@name = 'Execution Time'">
89
+ <xsl:value-of select="."/>
90
+ </xsl:if>
91
+ </xsl:for-each>
92
+ </xsl:variable>
93
+
94
+ <testcase name="{$testcasename}" classname="{$testclassname}" time="{$exectime}">
95
+ <xsl:if test="@Status = 'passed'">
96
+ </xsl:if>
97
+ <xsl:if test="@Status = 'failed'">
98
+ <xsl:variable name="failtype">
99
+ <xsl:for-each select="Results/NamedMeasurement">
100
+ <xsl:if test="@name = 'Exit Code'">
101
+ <xsl:value-of select="."/>
102
+ </xsl:if>
103
+ </xsl:for-each>
104
+ </xsl:variable>
105
+ <xsl:variable name="failcode">
106
+ <xsl:for-each select="Results/NamedMeasurement">
107
+ <xsl:if test="@name = 'Exit Value'">
108
+ <xsl:value-of select="."/>
109
+ </xsl:if>
110
+ </xsl:for-each>
111
+ </xsl:variable>
112
+ <failure message="{$failtype} ({$failcode})"><xsl:value-of select="Results/Measurement/Value/text()" /></failure>
113
+ </xsl:if>
114
+ <xsl:if test="@Status = 'notrun'">
115
+ <skipped><xsl:value-of select="Results/Measurement/Value/text()" /></skipped>
116
+ </xsl:if>
117
+ </testcase>
118
+ </xsl:template>
119
+
120
+ </xsl:stylesheet>
include/eigen/ci/README.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Eigen CI infrastructure
2
+
3
+ Eigen's CI infrastructure uses three stages:
4
+ 1. A `checkformat` stage to verify MRs satisfy proper formatting style, as
5
+ defined by `clang-format`.
6
+ 2. A `build` stage to build the unit-tests.
7
+ 3. A `test` stage to run the unit-tests.
8
+
9
+ For merge requests, only a small subset of tests are built/run, and only on a
10
+ small subset of platforms. This is to reduce our overall testing infrastructure
11
+ resource usage. In addition, we have nightly jobs that build and run the full
12
+ suite of tests on most officially supported platforms.
include/eigen/ci/build.linux.gitlab-ci.yml ADDED
@@ -0,0 +1,334 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base configuration for linux cross-compilation.
2
+ .build:linux:cross:
3
+ extends: .common:linux:cross
4
+ stage: build
5
+ variables:
6
+ EIGEN_CI_BUILD_TARGET: buildtests
7
+ script:
8
+ - . ci/scripts/build.linux.script.sh
9
+ tags:
10
+ - saas-linux-2xlarge-amd64
11
+ rules:
12
+ - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_NAMESPACE == "libeigen"
13
+ - if: $CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_NAMESPACE == "libeigen"
14
+ - if: $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_NAMESPACE == "libeigen"
15
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_PROJECT_NAMESPACE == "libeigen" && $CI_MERGE_REQUEST_LABELS =~ "/all-tests/"
16
+ cache:
17
+ key: "$CI_JOB_NAME_SLUG-$CI_COMMIT_REF_SLUG-BUILD"
18
+ paths:
19
+ - ${EIGEN_CI_BUILDDIR}/
20
+
21
+ ######## x86-64 ################################################################
22
+
23
+ .build:linux:cross:x86-64:
24
+ extends: .build:linux:cross
25
+ variables:
26
+ EIGEN_CI_TARGET_ARCH: x86_64
27
+ EIGEN_CI_CROSS_TARGET_TRIPLE: x86_64-linux-gnu
28
+
29
+ # GCC-6 (minimum on Ubuntu 18.04)
30
+ build:linux:cross:x86-64:gcc-6:default:
31
+ extends: .build:linux:cross:x86-64
32
+ image: ubuntu:18.04
33
+ variables:
34
+ EIGEN_CI_C_COMPILER: gcc-6
35
+ EIGEN_CI_CXX_COMPILER: g++-6
36
+ EIGEN_CI_CROSS_INSTALL: g++-6-x86-64-linux-gnu
37
+ EIGEN_CI_CROSS_C_COMPILER: x86_64-linux-gnu-gcc-6
38
+ EIGEN_CI_CROSS_CXX_COMPILER: x86_64-linux-gnu-g++-6
39
+
40
+ # GCC-10 (stable recent version)
41
+ build:linux:cross:x86-64:gcc-10:default:
42
+ extends: .build:linux:cross:x86-64
43
+ variables:
44
+ EIGEN_CI_C_COMPILER: gcc-10
45
+ EIGEN_CI_CXX_COMPILER: g++-10
46
+ EIGEN_CI_CROSS_INSTALL: g++-10-x86-64-linux-gnu
47
+ EIGEN_CI_CROSS_C_COMPILER: x86_64-linux-gnu-gcc-10
48
+ EIGEN_CI_CROSS_CXX_COMPILER: x86_64-linux-gnu-g++-10
49
+
50
+ build:linux:cross:x86-64:gcc-10:cxx03:
51
+ extends: build:linux:cross:x86-64:gcc-10:default
52
+ variables:
53
+ EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_CXX11=off"
54
+
55
+ build:linux:cross:x86-64:gcc-10:avx:
56
+ extends: build:linux:cross:x86-64:gcc-10:default
57
+ variables:
58
+ EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX=on"
59
+
60
+ build:linux:cross:x86-64:gcc-10:avx2:
61
+ extends: build:linux:cross:x86-64:gcc-10:default
62
+ variables:
63
+ EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX2=on"
64
+
65
+ build:linux:cross:x86-64:gcc-10:avx512dq:
66
+ extends: build:linux:cross:x86-64:gcc-10:default
67
+ variables:
68
+ EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX512DQ=on"
69
+
70
+ # Clang-6 (minimum on Ubuntu 20.04)
71
+ build:linux:cross:x86-64:clang-6:default:
72
+ extends: .build:linux:cross:x86-64
73
+ image: ubuntu:20.04
74
+ variables:
75
+ EIGEN_CI_INSTALL: g++-8 clang-6.0 lld-6.0
76
+ EIGEN_CI_C_COMPILER: clang-6.0
77
+ EIGEN_CI_CXX_COMPILER: clang++-6.0
78
+ EIGEN_CI_CROSS_INSTALL: g++-8-x86-64-linux-gnu clang-6.0 lld-6.0
79
+ EIGEN_CI_ADDITIONAL_ARGS: -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=lld-6.0
80
+
81
+ # Clang-12 (stable recent version)
82
+ build:linux:cross:x86-64:clang-12:default:
83
+ extends: .build:linux:cross:x86-64
84
+ variables:
85
+ EIGEN_CI_INSTALL: clang-12
86
+ EIGEN_CI_C_COMPILER: clang-12
87
+ EIGEN_CI_CXX_COMPILER: clang++-12
88
+ EIGEN_CI_CROSS_INSTALL: g++-10-x86-64-linux-gnu clang-12
89
+
90
+ build:linux:cross:x86-64:clang-12:avx:
91
+ extends: build:linux:cross:x86-64:clang-12:default
92
+ variables:
93
+ EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX=on"
94
+
95
+ build:linux:cross:x86-64:clang-12:avx2:
96
+ extends: build:linux:cross:x86-64:clang-12:default
97
+ variables:
98
+ EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX2=on"
99
+
100
+ build:linux:cross:x86-64:clang-12:avx512dq:
101
+ extends: build:linux:cross:x86-64:clang-12:default
102
+ variables:
103
+ EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX512DQ=on"
104
+
105
+ build:linux:docs:
106
+ extends: .build:linux:cross
107
+ variables:
108
+ EIGEN_CI_TARGET_ARCH: any
109
+ EIGEN_CI_BUILD_TARGET: doc
110
+ EIGEN_CI_INSTALL: ca-certificates clang flex python3 bison graphviz
111
+ EIGEN_CI_C_COMPILER: clang
112
+ EIGEN_CI_CXX_COMPILER: clang++
113
+ EIGEN_CI_BEFORE_SCRIPT: ". ci/scripts/build_and_install_doxygen.sh Release_1_13_2"
114
+ rules:
115
+ - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_NAMESPACE == "libeigen"
116
+ - if: $CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_NAMESPACE == "libeigen"
117
+ - if: $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_NAMESPACE == "libeigen"
118
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_PROJECT_NAMESPACE == "libeigen" && $CI_MERGE_REQUEST_LABELS =~ "/all-tests/"
119
+
120
+ # # Sanitizers (Disabled because ASAN hangs and MSAN requires instrumented libc++)
121
+ # build:linux:cross:x86-64:clang-12:default:asan:
122
+ # extends: build:linux:cross:x86-64:clang-12:default
123
+ # variables:
124
+ # EIGEN_CI_ADDITIONAL_ARGS:
125
+ # -DEIGEN_TEST_CUSTOM_CXX_FLAGS=-fsanitize=address,undefined
126
+ # -DEIGEN_TEST_CUSTOM_LINKER_FLAGS=-fsanitize=address,undefined
127
+
128
+ # build:linux:cross:x86-64:clang-12:default:msan:
129
+ # extends: build:linux:cross:x86-64:clang-12:default
130
+ # variables:
131
+ # EIGEN_CI_ADDITIONAL_ARGS:
132
+ # -DEIGEN_TEST_CUSTOM_CXX_FLAGS=-fsanitize=memory
133
+ # -DEIGEN_TEST_CUSTOM_LINKER_FLAGS=-fsanitize=memory
134
+
135
+ ######## CUDA ##################################################################
136
+
137
+ .build:linux:cuda:
138
+ extends: .build:linux:cross:x86-64
139
+ variables:
140
+ # Additional flags passed to the cuda compiler.
141
+ EIGEN_CI_CUDA_CXX_FLAGS: ""
142
+ # Compute architectures present in the GitLab CI runners.
143
+ EIGEN_CI_CUDA_COMPUTE_ARCH: "50;75"
144
+ EIGEN_CI_BUILD_TARGET: buildtests_gpu
145
+ EIGEN_CI_TEST_CUDA_CLANG: "off"
146
+ EIGEN_CI_ADDITIONAL_ARGS:
147
+ -DEIGEN_TEST_CUDA=on
148
+ -DEIGEN_CUDA_CXX_FLAGS=${EIGEN_CI_CUDA_CXX_FLAGS}
149
+ -DEIGEN_CUDA_COMPUTE_ARCH=${EIGEN_CI_CUDA_COMPUTE_ARCH}
150
+ -DEIGEN_TEST_CUDA_CLANG=${EIGEN_CI_TEST_CUDA_CLANG}
151
+ tags:
152
+ # Build on regular linux to limit GPU cost.
153
+ - saas-linux-2xlarge-amd64
154
+
155
+ # NVidia no longer provides docker images < CUDA 11.0.3.
156
+ # # GCC-7, CUDA-9.2
157
+ # build:linux:cuda-9.2:gcc-7:
158
+ # extends: .build:linux:cuda
159
+ # image: nvidia/cuda:9.2-devel-ubuntu18.04
160
+ # variables:
161
+ # # cuda 9.2 doesn't support sm_75, so lower to 70.
162
+ # EIGEN_CI_CUDA_COMPUTE_ARCH: "50;70"
163
+ # EIGEN_CI_C_COMPILER: gcc-7
164
+ # EIGEN_CI_CXX_COMPILER: g++-7
165
+
166
+ # # Clang-10, CUDA-9.2
167
+ # build:linux:cuda-9.2:clang-10:
168
+ # extends: build:linux:cuda-9.2:gcc-7
169
+ # variables:
170
+ # EIGEN_CI_C_COMPILER: clang-10
171
+ # EIGEN_CI_CXX_COMPILER: clang++-10
172
+ # EIGEN_CI_TEST_CUDA_CLANG: "on"
173
+
174
+ # # GCC-8, CUDA-10.2
175
+ # build:linux:cuda-10.2:gcc-8:
176
+ # extends: .build:linux:cuda
177
+ # image: nvidia/cuda:10.2-devel-ubuntu18.04
178
+ # variables:
179
+ # EIGEN_CI_C_COMPILER: gcc-8
180
+ # EIGEN_CI_CXX_COMPILER: g++-8
181
+
182
+ # # Clang-10, CUDA-10.2
183
+ # build:linux:cuda-10.2:clang-10:
184
+ # extends: build:linux:cuda-10.2:gcc-8
185
+ # variables:
186
+ # EIGEN_CI_C_COMPILER: clang-10
187
+ # EIGEN_CI_CXX_COMPILER: clang++-10
188
+ # EIGEN_CI_TEST_CUDA_CLANG: "on"
189
+
190
+ # GCC-10, CUDA-11.4
191
+ build:linux:cuda-11.4:gcc-10:
192
+ extends: .build:linux:cuda
193
+ image: nvidia/cuda:11.4.3-devel-ubuntu20.04
194
+ variables:
195
+ EIGEN_CI_C_COMPILER: gcc-10
196
+ EIGEN_CI_CXX_COMPILER: g++-10
197
+
198
+ # Clang-12, CUDA-11.4
199
+ build:linux:cuda-11.4:clang-12:
200
+ extends: build:linux:cuda-11.4:gcc-10
201
+ variables:
202
+ EIGEN_CI_C_COMPILER: clang-12
203
+ EIGEN_CI_CXX_COMPILER: clang++-12
204
+ EIGEN_CI_TEST_CUDA_CLANG: "on"
205
+
206
+ # GCC-10, CUDA-12.2
207
+ build:linux:cuda-12.2:gcc-10:
208
+ extends: .build:linux:cuda
209
+ image: nvidia/cuda:12.2.0-devel-ubuntu20.04
210
+ variables:
211
+ EIGEN_CI_C_COMPILER: gcc-10
212
+ EIGEN_CI_CXX_COMPILER: g++-10
213
+
214
+ # Clang-12, CUDA-12.2
215
+ build:linux:cuda-12.2:clang-12:
216
+ extends: build:linux:cuda-12.2:gcc-10
217
+ variables:
218
+ EIGEN_CI_C_COMPILER: clang-12
219
+ EIGEN_CI_CXX_COMPILER: clang++-12
220
+ EIGEN_CI_TEST_CUDA_CLANG: "on"
221
+
222
+ # ######## HIP ###################################################################
223
+ # Note: these are currently build-only, until we get an AMD-supported runner.
224
+
225
+ # ROCm HIP
226
+ build:linux:rocm-latest:gcc-10:
227
+ extends: .build:linux:cross
228
+ image: rocm/dev-ubuntu-24.04:latest
229
+ variables:
230
+ EIGEN_CI_C_COMPILER: gcc-10
231
+ EIGEN_CI_CXX_COMPILER: g++-10
232
+ EIGEN_CI_BUILD_TARGET: buildtests_gpu
233
+ EIGEN_CI_ADDITIONAL_ARGS: -DEIGEN_TEST_HIP=on
234
+
235
+ ######## Arm ###################################################################
236
+
237
+ .build:linux:cross:arm:
238
+ extends: .build:linux:cross
239
+ variables:
240
+ EIGEN_CI_TARGET_ARCH: arm
241
+ EIGEN_CI_CROSS_TARGET_TRIPLE: arm-linux-gnueabihf
242
+ EIGEN_CI_ADDITIONAL_ARGS: >
243
+ -DEIGEN_TEST_CUSTOM_CXX_FLAGS=-march=armv7-a;-mfpu=neon-vfpv4
244
+ -DCMAKE_SYSTEM_NAME=Linux
245
+ -DCMAKE_CROSSCOMPILING_EMULATOR=qemu-arm-static;-L;/usr/arm-linux-gnueabihf
246
+
247
+ build:linux:cross:arm:gcc-10:default:
248
+ extends: .build:linux:cross:arm
249
+ variables:
250
+ EIGEN_CI_CROSS_INSTALL: g++-10-arm-linux-gnueabihf qemu-user-static
251
+ EIGEN_CI_CROSS_C_COMPILER: arm-linux-gnueabihf-gcc-10
252
+ EIGEN_CI_CROSS_CXX_COMPILER: arm-linux-gnueabihf-g++-10
253
+
254
+ build:linux:cross:arm:clang-12:default:
255
+ extends: .build:linux:cross:arm
256
+ variables:
257
+ EIGEN_CI_INSTALL: clang-12
258
+ EIGEN_CI_C_COMPILER: clang-12
259
+ EIGEN_CI_CXX_COMPILER: clang++-12
260
+ EIGEN_CI_CROSS_INSTALL: g++-10-arm-linux-gnueabihf clang-12 qemu-user-static
261
+
262
+ ######## aarch64 ###############################################################
263
+
264
+ .build:linux:cross:aarch64:
265
+ extends: .build:linux:cross
266
+ variables:
267
+ EIGEN_CI_TARGET_ARCH: aarch64
268
+ EIGEN_CI_CROSS_TARGET_TRIPLE: aarch64-linux-gnu
269
+ EIGEN_CI_ADDITIONAL_ARGS: -DEIGEN_TEST_CUSTOM_CXX_FLAGS=-march=armv8.2-a+fp16
270
+ tags:
271
+ - saas-linux-large-arm64
272
+
273
+ build:linux:cross:aarch64:gcc-10:default:
274
+ extends: .build:linux:cross:aarch64
275
+ variables:
276
+ EIGEN_CI_C_COMPILER: gcc-10
277
+ EIGEN_CI_CXX_COMPILER: g++-10
278
+ EIGEN_CI_CROSS_INSTALL: g++-10-aarch64-linux-gnu
279
+ EIGEN_CI_CROSS_C_COMPILER: aarch64-linux-gnu-gcc-10
280
+ EIGEN_CI_CROSS_CXX_COMPILER: aarch64-linux-gnu-g++-10
281
+
282
+ build:linux:cross:aarch64:clang-12:default:
283
+ extends: .build:linux:cross:aarch64
284
+ variables:
285
+ EIGEN_CI_INSTALL: clang-12
286
+ EIGEN_CI_C_COMPILER: clang-12
287
+ EIGEN_CI_CXX_COMPILER: clang++-12
288
+ EIGEN_CI_CROSS_INSTALL: g++-10-aarch64-linux-gnu clang-12
289
+
290
+ ######## ppc64le ###############################################################
291
+
292
+ .build:linux:cross:ppc64le:
293
+ extends: .build:linux:cross
294
+ image: ubuntu:24.04
295
+ variables:
296
+ EIGEN_CI_TARGET_ARCH: ppc64le
297
+ EIGEN_CI_CROSS_TARGET_TRIPLE: powerpc64le-linux-gnu
298
+ EIGEN_CI_ADDITIONAL_ARGS: >-
299
+ -DCMAKE_SYSTEM_NAME=Linux
300
+ -DCMAKE_CROSSCOMPILING_EMULATOR=qemu-ppc64le-static;-L;/usr/powerpc64le-linux-gnu
301
+
302
+ build:linux:cross:ppc64le:gcc-14:default:
303
+ extends: .build:linux:cross:ppc64le
304
+ variables:
305
+ EIGEN_CI_CROSS_INSTALL: g++-14-powerpc64le-linux-gnu qemu-user-static
306
+ EIGEN_CI_CROSS_C_COMPILER: powerpc64le-linux-gnu-gcc-14
307
+ EIGEN_CI_CROSS_CXX_COMPILER: powerpc64le-linux-gnu-g++-14
308
+
309
+ build:linux:cross:ppc64le:clang-16:default:
310
+ extends: .build:linux:cross:ppc64le
311
+ variables:
312
+ EIGEN_CI_C_COMPILER: clang-16
313
+ EIGEN_CI_CXX_COMPILER: clang++-16
314
+ EIGEN_CI_CROSS_INSTALL: g++-14-powerpc64le-linux-gnu clang-16 qemu-user-static
315
+
316
+ ######## MR Smoke Tests ########################################################
317
+
318
+ build:linux:cross:x86-64:gcc-10:default:smoketest:
319
+ extends: build:linux:cross:x86-64:gcc-10:default
320
+ variables:
321
+ EIGEN_CI_BUILD_TARGET: buildsmoketests
322
+ rules:
323
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event"
324
+ tags:
325
+ - saas-linux-small-amd64
326
+
327
+ build:linux:cross:x86-64:clang-12:default:smoketest:
328
+ extends: build:linux:cross:x86-64:clang-12:default
329
+ variables:
330
+ EIGEN_CI_BUILD_TARGET: buildsmoketests
331
+ rules:
332
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event"
333
+ tags:
334
+ - saas-linux-small-amd64
include/eigen/ci/build.windows.gitlab-ci.yml ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base configuration for windows builds.
2
+ .build:windows:
3
+ extends: .common:windows
4
+ stage: build
5
+ variables:
6
+ EIGEN_CI_BUILD_TARGET: buildtests
7
+ # Reduce overall build size and compile time.
8
+ # Note: /d2ReducedOptimizeHugeFunctions is only available in VS 2019.
9
+ EIGEN_CI_TEST_CUSTOM_CXX_FLAGS: "/d2ReducedOptimizeHugeFunctions;/DEIGEN_STRONG_INLINE=inline;/Os"
10
+ script:
11
+ - ./ci/scripts/build.windows.script.ps1
12
+ tags:
13
+ - eigen-runner
14
+ - windows
15
+ - x86-64
16
+ rules:
17
+ - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_NAMESPACE == "libeigen"
18
+ - if: $CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_NAMESPACE == "libeigen"
19
+ - if: $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_NAMESPACE == "libeigen"
20
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_PROJECT_NAMESPACE == "libeigen" && $CI_MERGE_REQUEST_LABELS =~ "/all-tests/"
21
+
22
+ cache:
23
+ key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-BUILD"
24
+ paths:
25
+ - ${EIGEN_CI_BUILDDIR}/
26
+
27
+ ######### MSVC #################################################################
28
+
29
+ # MSVC 14.16 (VS 2017)
30
+ build:windows:x86-64:msvc-14.16:default:
31
+ extends: .build:windows
32
+ variables:
33
+ EIGEN_CI_MSVC_VER: "14.16"
34
+ # Override to remove unsupported /d2ReducedOptimizeHugeFunctions.
35
+ EIGEN_CI_TEST_CUSTOM_CXX_FLAGS: "/DEIGEN_STRONG_INLINE=inline;/Os"
36
+
37
+ # MSVC 14.29 (VS 2019)
38
+ build:windows:x86-64:msvc-14.29:default:
39
+ extends: .build:windows
40
+ variables:
41
+ EIGEN_CI_MSVC_VER: "14.29"
42
+
43
+ build:windows:x86-64:msvc-14.29:cxx03:
44
+ extends: build:windows:x86-64:msvc-14.29:default
45
+ variables:
46
+ EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_CXX11=off"
47
+
48
+ build:windows:x86-64:msvc-14.29:avx2:
49
+ extends: build:windows:x86-64:msvc-14.29:default
50
+ variables:
51
+ EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX2=on"
52
+
53
+ build:windows:x86-64:msvc-14.29:avx512dq:
54
+ extends: build:windows:x86-64:msvc-14.29:default
55
+ variables:
56
+ EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX512DQ=on"
57
+
58
+ ######### MSVC + CUDA ##########################################################
59
+ .build:windows:cuda:
60
+ extends: .build:windows
61
+ variables:
62
+ # Compute architectures present in the GitLab CI runners.
63
+ EIGEN_CI_CUDA_COMPUTE_ARCH: "50;75"
64
+ EIGEN_CI_BUILD_TARGET: buildtests_gpu
65
+ EIGEN_CI_ADDITIONAL_ARGS:
66
+ -DEIGEN_TEST_CUDA=on
67
+ -DEIGEN_CUDA_COMPUTE_ARCH=${EIGEN_CI_CUDA_COMPUTE_ARCH}
68
+ tags:
69
+ - eigen-runner
70
+ - windows
71
+ - x86-64
72
+ - cuda
73
+
74
+ # The CUDA 9.2 compiler crashes with an internal error.
75
+ # # MSVC 14.16 + CUDA 9.2
76
+ # build:windows:x86-64:cuda-9.2:msvc-14.16:
77
+ # extends: .build:windows:cuda
78
+ # variables:
79
+ # # CUDA 9.2 doesn't support sm_75.
80
+ # EIGEN_CI_CUDA_COMPUTE_ARCH: "50;70"
81
+ # # CUDA 9.2 only supports up to VS 2017.
82
+ # EIGEN_CI_MSVC_VER: "14.16"
83
+ # EIGEN_CI_TEST_CUSTOM_CXX_FLAGS: "/DEIGEN_STRONG_INLINE=inline;/Os"
84
+ # EIGEN_CI_BEFORE_SCRIPT: $$env:CUDA_PATH=$$env:CUDA_PATH_V9_2
85
+
86
+ # MSVC 14.29 + CUDA 10.2
87
+ build:windows:x86-64:cuda-10.2:msvc-14.29:
88
+ extends: .build:windows:cuda
89
+ variables:
90
+ EIGEN_CI_MSVC_VER: "14.29"
91
+ EIGEN_CI_BEFORE_SCRIPT: $$env:CUDA_PATH=$$env:CUDA_PATH_V10_2
92
+
93
+ # MSVC 14.29 + CUDA 11.4
94
+ build:windows:x86-64:cuda-11.4:msvc-14.29:
95
+ extends: .build:windows:cuda
96
+ variables:
97
+ EIGEN_CI_MSVC_VER: "14.29"
98
+ EIGEN_CI_BEFORE_SCRIPT: $$env:CUDA_PATH=$$env:CUDA_PATH_V11_4
99
+
100
+ ######## MR Smoke Tests ########################################################
101
+
102
+ # MSVC 14.29 64-bit (VS 2019)
103
+ build:windows:x86-64:msvc-14.29:avx512dq:smoketest:
104
+ extends: build:windows:x86-64:msvc-14.29:avx512dq
105
+ variables:
106
+ EIGEN_CI_BUILD_TARGET: buildsmoketests
107
+ rules:
108
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event"
109
+
110
+ # MSVC 14.29 32-bit (VS 2019)
111
+ build:windows:x86:msvc-14.29:avx512dq:smoketest:
112
+ extends: build:windows:x86-64:msvc-14.29:avx512dq:smoketest
113
+ variables:
114
+ EIGEN_CI_MSVC_ARCH: "x86"
115
+ rules:
116
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event"
include/eigen/ci/checkformat.gitlab-ci.yml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ checkformat:clangformat:
2
+ stage: checkformat
3
+ image: alpine:3.19
4
+ only:
5
+ - merge_requests
6
+ allow_failure: true
7
+ before_script:
8
+ - apk add --no-cache git clang17-extra-tools python3
9
+ script:
10
+ - git clang-format --diff --commit ${CI_MERGE_REQUEST_DIFF_BASE_SHA}
include/eigen/ci/common.gitlab-ci.yml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base configuration for linux builds and tests.
2
+ .common:linux:cross:
3
+ image: ubuntu:20.04
4
+ variables:
5
+ EIGEN_CI_TARGET_ARCH: ""
6
+ EIGEN_CI_ADDITIONAL_ARGS: ""
7
+ # If host matches target, use the following:
8
+ EIGEN_CI_C_COMPILER: ""
9
+ EIGEN_CI_CXX_COMPILER: ""
10
+ EIGEN_CI_INSTALL: "${EIGEN_CI_C_COMPILER} ${EIGEN_CI_CXX_COMPILER}"
11
+ # If host does not match the target, use the following:
12
+ EIGEN_CI_CROSS_TARGET_TRIPLE: ""
13
+ EIGEN_CI_CROSS_C_COMPILER: ${EIGEN_CI_C_COMPILER}
14
+ EIGEN_CI_CROSS_CXX_COMPILER: ${EIGEN_CI_CXX_COMPILER}
15
+ EIGEN_CI_CROSS_INSTALL: "${EIGEN_CI_CROSS_C_COMPILER} ${EIGEN_CI_CROSS_CXX_COMPILER}"
16
+ before_script:
17
+ # Call script in current shell - it sets up some environment variables.
18
+ - . ci/scripts/common.linux.before_script.sh
19
+ artifacts:
20
+ when: always
21
+ name: "$CI_JOB_NAME_SLUG-$CI_COMMIT_REF_SLUG"
22
+ paths:
23
+ - ${EIGEN_CI_BUILDDIR}/
24
+ expire_in: 5 days
25
+
26
+ # Base configuration for Windows builds and tests.
27
+ .common:windows:
28
+ variables:
29
+ EIGEN_CI_MSVC_ARCH: x64
30
+ EIGEN_CI_MSVC_VER: "14.29"
31
+ EIGEN_CI_ADDITIONAL_ARGS: ""
32
+ EIGEN_CI_BEFORE_SCRIPT: ""
33
+ before_script:
34
+ - . ci/scripts/common.windows.before_script.ps1
35
+ artifacts:
36
+ when: always
37
+ name: "$CI_JOB_NAME_SLUG-$CI_COMMIT_REF_NAME"
38
+ paths:
39
+ - ${EIGEN_CI_BUILDDIR}/
40
+ expire_in: 5 days
include/eigen/ci/deploy.gitlab-ci.yml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Push a nightly tag if the pipeline succeeded.
2
+ deploy:tag:nightly:
3
+ stage: deploy
4
+ image: alpine:edge
5
+ dependencies: []
6
+ before_script:
7
+ - apk add git
8
+ script:
9
+ - git tag -f nightly $CI_COMMIT_SHORT_SHA
10
+ - git push -f $EIGEN_CI_GIT_PUSH_URL tag nightly
11
+ tags:
12
+ - saas-linux-small-amd64
13
+ rules:
14
+ - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_NAMESPACE == "libeigen" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
15
+ - if: $CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_NAMESPACE == "libeigen" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
16
+
17
+ # Upload docs if pipeline succeeded.
18
+ deploy:docs:
19
+ stage: deploy
20
+ image: busybox
21
+ dependencies: [ build:linux:docs ]
22
+ variables:
23
+ PAGES_PREFIX: docs-nightly
24
+ script:
25
+ - echo "Deploying site to $CI_PAGES_URL"
26
+ - mv ${EIGEN_CI_BUILDDIR}/doc/html public
27
+ pages:
28
+ path_prefix: $PAGES_PREFIX
29
+ expire_in: never
30
+ artifacts:
31
+ name: "$CI_JOB_NAME_SLUG-$CI_COMMIT_REF_SLUG"
32
+ paths:
33
+ - public
34
+ tags:
35
+ - saas-linux-small-amd64
36
+ rules:
37
+ - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_NAMESPACE == "libeigen"
38
+ - if: $CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_NAMESPACE == "libeigen"
39
+ - if: $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_NAMESPACE == "libeigen"
40
+ variables:
41
+ PAGES_PREFIX: docs-$CI_COMMIT_REF_NAME
include/eigen/ci/smoketests.gitlab-ci.yml ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .buildsmoketests:linux:base:
2
+ stage: buildsmoketests
3
+ image: ubuntu:18.04
4
+ before_script:
5
+ - apt-get update -y
6
+ - apt-get install -y --no-install-recommends software-properties-common
7
+ - add-apt-repository -y ppa:ubuntu-toolchain-r/test
8
+ - apt-get update
9
+ - apt-get install --no-install-recommends -y ${EIGEN_CI_CXX_COMPILER}
10
+ ${EIGEN_CI_CC_COMPILER} cmake ninja-build
11
+ script:
12
+ - mkdir -p ${BUILDDIR} && cd ${BUILDDIR}
13
+ - CXX=${EIGEN_CI_CXX_COMPILER} CC=${EIGEN_CI_CC_COMPILER} cmake -G
14
+ ${EIGEN_CI_CMAKE_GENEATOR} -DEIGEN_TEST_CXX11=${EIGEN_TEST_CXX11}
15
+ ${EIGEN_CI_ADDITIONAL_ARGS} ..
16
+ - cmake --build . --target buildsmoketests
17
+ artifacts:
18
+ name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
19
+ paths:
20
+ - ${BUILDDIR}/
21
+ expire_in: 5 days
22
+ only:
23
+ - merge_requests
24
+
25
+ buildsmoketests:x86-64:linux:gcc-10:cxx11-off:
26
+ extends: .buildsmoketests:linux:base
27
+ variables:
28
+ EIGEN_CI_CXX_COMPILER: "g++-10"
29
+ EIGEN_CI_CC_COMPILER: "gcc-10"
30
+ EIGEN_TEST_CXX11: "off"
31
+
32
+ buildsmoketests:x86-64:linux:gcc-10:cxx11-on:
33
+ extends: .buildsmoketests:linux:base
34
+ variables:
35
+ EIGEN_CI_CXX_COMPILER: "g++-10"
36
+ EIGEN_CI_CC_COMPILER: "gcc-10"
37
+ EIGEN_TEST_CXX11: "on"
38
+
39
+ buildsmoketests:x86-64:linux:clang-10:cxx11-off:
40
+ extends: .buildsmoketests:linux:base
41
+ variables:
42
+ EIGEN_CI_CXX_COMPILER: "clang++-10"
43
+ EIGEN_CI_CC_COMPILER: "clang-10"
44
+ EIGEN_TEST_CXX11: "off"
45
+
46
+ buildsmoketests:x86-64:linux:clang-10:cxx11-on:
47
+ extends: .buildsmoketests:linux:base
48
+ variables:
49
+ EIGEN_CI_CXX_COMPILER: "clang++-10"
50
+ EIGEN_CI_CC_COMPILER: "clang-10"
51
+ EIGEN_TEST_CXX11: "on"
52
+
53
+ .smoketests:linux:base:
54
+ stage: smoketests
55
+ image: ubuntu:18.04
56
+ before_script:
57
+ - apt-get update -y
58
+ - apt-get install -y --no-install-recommends software-properties-common
59
+ - add-apt-repository -y ppa:ubuntu-toolchain-r/test
60
+ - apt-get update
61
+ - apt-get install --no-install-recommends -y ${EIGEN_CI_CXX_COMPILER}
62
+ ${EIGEN_CI_CC_COMPILER} cmake ninja-build xsltproc
63
+ script:
64
+ - export CXX=${EIGEN_CI_CXX_COMPILER}
65
+ - export CC=${EIGEN_CI_CC_COMPILER}
66
+ - cd ${BUILDDIR} && ctest --output-on-failure --no-compress-output
67
+ --build-no-clean -T test -L smoketest
68
+ after_script:
69
+ - apt-get update -y
70
+ - apt-get install --no-install-recommends -y xsltproc
71
+ - cd ${BUILDDIR}
72
+ - xsltproc ../ci/CTest2JUnit.xsl Testing/`head -n 1 < Testing/TAG`/Test.xml > "JUnitTestResults_$CI_JOB_ID.xml"
73
+ artifacts:
74
+ reports:
75
+ junit:
76
+ - ${BUILDDIR}/JUnitTestResults_$CI_JOB_ID.xml
77
+ expire_in: 5 days
78
+ only:
79
+ - merge_requests
80
+
81
+ smoketests:x86-64:linux:gcc-10:cxx11-off:
82
+ extends: .smoketests:linux:base
83
+ variables:
84
+ EIGEN_CI_CXX_COMPILER: g++-10
85
+ EIGEN_CI_CC_COMPILER: gcc-10
86
+ needs: [ "buildsmoketests:x86-64:linux:gcc-10:cxx11-off" ]
87
+
88
+ smoketests:x86-64:linux:gcc-10:cxx11-on:
89
+ extends: .smoketests:linux:base
90
+ variables:
91
+ EIGEN_CI_CXX_COMPILER: g++-10
92
+ EIGEN_CI_CC_COMPILER: gcc-10
93
+ needs: [ "buildsmoketests:x86-64:linux:gcc-10:cxx11-on" ]
94
+
95
+ smoketests:x86-64:linux:clang-10:cxx11-off:
96
+ extends: .smoketests:linux:base
97
+ variables:
98
+ EIGEN_CI_CXX_COMPILER: clang++-10
99
+ EIGEN_CI_CC_COMPILER: clang-10
100
+ needs: [ "buildsmoketests:x86-64:linux:clang-10:cxx11-off" ]
101
+
102
+ smoketests:x86-64:linux:clang-10:cxx11-on:
103
+ extends: .smoketests:linux:base
104
+ variables:
105
+ EIGEN_CI_CXX_COMPILER: clang++-10
106
+ EIGEN_CI_CC_COMPILER: clang-10
107
+ needs: [ "buildsmoketests:x86-64:linux:clang-10:cxx11-on" ]
include/eigen/ci/test.linux.gitlab-ci.yml ADDED
@@ -0,0 +1,430 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .test:linux:
2
+ extends: .common:linux:cross
3
+ stage: test
4
+ script:
5
+ - . ci/scripts/test.linux.script.sh
6
+ after_script:
7
+ - . ci/scripts/test.linux.after_script.sh
8
+ rules:
9
+ - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_NAMESPACE == "libeigen"
10
+ - if: $CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_NAMESPACE == "libeigen"
11
+ - if: $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_NAMESPACE == "libeigen"
12
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_PROJECT_NAMESPACE == "libeigen" && $CI_MERGE_REQUEST_LABELS =~ "/all-tests/"
13
+ tags:
14
+ - saas-linux-2xlarge-amd64
15
+
16
+ ##### x86-64 ###################################################################
17
+ .test:linux:x86-64:
18
+ extends: .test:linux
19
+ variables:
20
+ EIGEN_CI_TARGET_ARCH: x86_64
21
+ EIGEN_CI_CROSS_TARGET_TRIPLE: x86_64-linux-gnu
22
+
23
+ # GCC-6 (minimum on Ubuntu 18.04)
24
+ .test:linux:x86-64:gcc-6:default:
25
+ extends: .test:linux:x86-64
26
+ image: ubuntu:18.04
27
+ needs: [ build:linux:cross:x86-64:gcc-6:default ]
28
+ variables:
29
+ EIGEN_CI_INSTALL: g++-6
30
+
31
+ test:linux:x86-64:gcc-6:default:official:
32
+ extends: .test:linux:x86-64:gcc-6:default
33
+ variables:
34
+ EIGEN_CI_CTEST_LABEL: Official
35
+
36
+ test:linux:x86-64:gcc-6:default:unsupported:
37
+ extends: .test:linux:x86-64:gcc-6:default
38
+ variables:
39
+ EIGEN_CI_CTEST_LABEL: Unsupported
40
+
41
+ # GCC-10 (modern stable)
42
+ .test:linux:x86-64:gcc-10:default:
43
+ extends: .test:linux:x86-64
44
+ needs: [ build:linux:cross:x86-64:gcc-10:default ]
45
+ variables:
46
+ EIGEN_CI_INSTALL: g++-10
47
+
48
+ test:linux:x86-64:gcc-10:cxx03:
49
+ extends: .test:linux:x86-64:gcc-10:default
50
+ needs: [ build:linux:cross:x86-64:gcc-10:cxx03 ]
51
+
52
+ test:linux:x86-64:gcc-10:default:official:
53
+ extends: .test:linux:x86-64:gcc-10:default
54
+ variables:
55
+ EIGEN_CI_CTEST_LABEL: Official
56
+
57
+ test:linux:x86-64:gcc-10:default:unsupported:
58
+ extends: .test:linux:x86-64:gcc-10:default
59
+ variables:
60
+ EIGEN_CI_CTEST_LABEL: Unsupported
61
+
62
+ .test:linux:x86-64:gcc-10:avx:
63
+ extends: .test:linux:x86-64
64
+ needs: [ build:linux:cross:x86-64:gcc-10:avx ]
65
+ variables:
66
+ EIGEN_CI_INSTALL: g++-10
67
+
68
+ test:linux:x86-64:gcc-10:avx:official:
69
+ extends: .test:linux:x86-64:gcc-10:avx
70
+ variables:
71
+ EIGEN_CI_CTEST_LABEL: Official
72
+
73
+ test:linux:x86-64:gcc-10:avx:unsupported:
74
+ extends: .test:linux:x86-64:gcc-10:avx
75
+ variables:
76
+ EIGEN_CI_CTEST_LABEL: Unsupported
77
+
78
+ .test:linux:x86-64:gcc-10:avx2:
79
+ extends: .test:linux:x86-64
80
+ needs: [ build:linux:cross:x86-64:gcc-10:avx2 ]
81
+ variables:
82
+ EIGEN_CI_INSTALL: g++-10
83
+
84
+ test:linux:x86-64:gcc-10:avx2:official:
85
+ extends: .test:linux:x86-64:gcc-10:avx2
86
+ variables:
87
+ EIGEN_CI_CTEST_LABEL: Official
88
+
89
+ test:linux:x86-64:gcc-10:avx2:unsupported:
90
+ extends: .test:linux:x86-64:gcc-10:avx2
91
+ variables:
92
+ EIGEN_CI_CTEST_LABEL: Unsupported
93
+
94
+ .test:linux:x86-64:gcc-10:avx512dq:
95
+ extends: .test:linux:x86-64
96
+ needs: [ build:linux:cross:x86-64:gcc-10:avx512dq ]
97
+ variables:
98
+ EIGEN_CI_INSTALL: g++-10
99
+ tags:
100
+ - eigen-runner
101
+ - linux
102
+ - x86-64
103
+ - avx512
104
+
105
+ test:linux:x86-64:gcc-10:avx512dq:official:
106
+ extends: .test:linux:x86-64:gcc-10:avx512dq
107
+ variables:
108
+ EIGEN_CI_CTEST_LABEL: Official
109
+
110
+ test:linux:x86-64:gcc-10:avx512dq:unsupported:
111
+ extends: .test:linux:x86-64:gcc-10:avx512dq
112
+ variables:
113
+ EIGEN_CI_CTEST_LABEL: Unsupported
114
+
115
+ # Clang-6 (minimum on Ubuntu 20.04)
116
+ .test:linux:x86-64:clang-6:default:
117
+ extends: .test:linux:x86-64
118
+ image: ubuntu:20.04
119
+ needs: [ build:linux:cross:x86-64:clang-6:default ]
120
+ variables:
121
+ EIGEN_CI_INSTALL: g++-8 clang-6.0 lld-6.0
122
+
123
+ test:linux:x86-64:clang-6:default:official:
124
+ extends: .test:linux:x86-64:clang-6:default
125
+ variables:
126
+ EIGEN_CI_CTEST_LABEL: Official
127
+
128
+ test:linux:x86-64:clang-6:default:unsupported:
129
+ extends: .test:linux:x86-64:clang-6:default
130
+ variables:
131
+ EIGEN_CI_CTEST_LABEL: Unsupported
132
+
133
+ # Clang-12 (modern stable)
134
+ .test:linux:x86-64:clang-12:default:
135
+ extends: .test:linux:x86-64
136
+ needs: [ build:linux:cross:x86-64:clang-12:default ]
137
+ variables:
138
+ EIGEN_CI_INSTALL: clang-12
139
+
140
+ test:linux:x86-64:clang-12:default:official:
141
+ extends: .test:linux:x86-64:clang-12:default
142
+ variables:
143
+ EIGEN_CI_CTEST_LABEL: Official
144
+
145
+ test:linux:x86-64:clang-12:default:unsupported:
146
+ extends: .test:linux:x86-64:clang-12:default
147
+ variables:
148
+ EIGEN_CI_CTEST_LABEL: Unsupported
149
+
150
+ .test:linux:x86-64:clang-12:avx:
151
+ extends: .test:linux:x86-64
152
+ needs: [ build:linux:cross:x86-64:clang-12:avx ]
153
+ variables:
154
+ EIGEN_CI_INSTALL: clang-12
155
+
156
+ test:linux:x86-64:clang-12:avx:official:
157
+ extends: .test:linux:x86-64:clang-12:avx
158
+ variables:
159
+ EIGEN_CI_CTEST_LABEL: Official
160
+
161
+ test:linux:x86-64:clang-12:avx:unsupported:
162
+ extends: .test:linux:x86-64:clang-12:avx
163
+ variables:
164
+ EIGEN_CI_CTEST_LABEL: Unsupported
165
+
166
+ .test:linux:x86-64:clang-12:avx2:
167
+ extends: .test:linux:x86-64
168
+ needs: [ build:linux:cross:x86-64:clang-12:avx2 ]
169
+ variables:
170
+ EIGEN_CI_INSTALL: clang-12
171
+
172
+ test:linux:x86-64:clang-12:avx2:official:
173
+ extends: .test:linux:x86-64:clang-12:avx2
174
+ variables:
175
+ EIGEN_CI_CTEST_LABEL: Official
176
+
177
+ test:linux:x86-64:clang-12:avx2:unsupported:
178
+ extends: .test:linux:x86-64:clang-12:avx2
179
+ variables:
180
+ EIGEN_CI_CTEST_LABEL: Unsupported
181
+
182
+ .test:linux:x86-64:clang-12:avx512dq:
183
+ extends: .test:linux:x86-64
184
+ needs: [ build:linux:cross:x86-64:clang-12:avx512dq ]
185
+ variables:
186
+ EIGEN_CI_INSTALL: clang-12
187
+ tags:
188
+ - eigen-runner
189
+ - linux
190
+ - x86-64
191
+ - avx512
192
+
193
+ test:linux:x86-64:clang-12:avx512dq:official:
194
+ extends: .test:linux:x86-64:clang-12:avx512dq
195
+ variables:
196
+ EIGEN_CI_CTEST_LABEL: Official
197
+
198
+ test:linux:x86-64:clang-12:avx512dq:unsupported:
199
+ extends: .test:linux:x86-64:clang-12:avx512dq
200
+ variables:
201
+ EIGEN_CI_CTEST_LABEL: Unsupported
202
+
203
+ ##### CUDA #####################################################################
204
+ .test:linux:cuda:
205
+ extends: .test:linux
206
+ allow_failure: true
207
+ variables:
208
+ EIGEN_CI_CTEST_LABEL: gpu
209
+ tags:
210
+ - saas-linux-medium-amd64-gpu-standard
211
+
212
+ # NVidia no longer provides docker images < CUDA 11.0.3.
213
+ # # GCC-7, CUDA-9.2
214
+ # test:linux:cuda-9.2:gcc-7:
215
+ # extends: .test:linux:cuda
216
+ # image: nvidia/cuda:9.2-devel-ubuntu18.04
217
+ # needs: [ build:linux:cuda-9.2:gcc-7 ]
218
+ # variables:
219
+ # EIGEN_CI_CXX_COMPILER: g++-7
220
+ # EIGEN_CI_CC_COMPILER: gcc-7
221
+
222
+ # # Clang-10, CUDA-9.2
223
+ # test:linux:cuda-9.2:clang-10:
224
+ # extends: .test:linux:cuda
225
+ # image: nvidia/cuda:9.2-devel-ubuntu18.04
226
+ # needs: [ build:linux:cuda-9.2:clang-10 ]
227
+ # variables:
228
+ # EIGEN_CI_CXX_COMPILER: clang++-10
229
+ # EIGEN_CI_CC_COMPILER: clang-10
230
+
231
+ # # GCC-8, CUDA-10.2
232
+ # test:linux:cuda-10.2:gcc-8:
233
+ # extends: .test:linux:cuda
234
+ # image: nvidia/cuda:10.2-devel-ubuntu18.04
235
+ # needs: [ build:linux:cuda-10.2:gcc-8 ]
236
+ # variables:
237
+ # EIGEN_CI_CXX_COMPILER: g++-8
238
+ # EIGEN_CI_CC_COMPILER: gcc-8
239
+
240
+ # # Clang-10, CUDA-10.2
241
+ # test:linux:cuda-10.2:clang-10:
242
+ # extends: .test:linux:cuda
243
+ # image: nvidia/cuda:10.2-devel-ubuntu18.04
244
+ # needs: [ build:linux:cuda-10.2:clang-10 ]
245
+ # variables:
246
+ # EIGEN_CI_CXX_COMPILER: clang++-10
247
+ # EIGEN_CI_CC_COMPILER: clang-10
248
+
249
+ # GCC-10, CUDA-11.4
250
+ test:linux:cuda-11.4:gcc-10:
251
+ extends: .test:linux:cuda
252
+ image: nvidia/cuda:11.4.3-devel-ubuntu20.04
253
+ needs: [ build:linux:cuda-11.4:gcc-10 ]
254
+ variables:
255
+ EIGEN_CI_CXX_COMPILER: g++-10
256
+ EIGEN_CI_CC_COMPILER: gcc-10
257
+
258
+ # Clang-12, CUDA-11.4
259
+ test:linux:cuda-11.4:clang-12:
260
+ extends: .test:linux:cuda
261
+ image: nvidia/cuda:11.4.3-devel-ubuntu20.04
262
+ needs: [ build:linux:cuda-11.4:clang-12 ]
263
+ variables:
264
+ EIGEN_CI_CXX_COMPILER: clang++-12
265
+ EIGEN_CI_CC_COMPILER: clang-12
266
+
267
+ # GCC-10, CUDA-12.2
268
+ test:linux:cuda-12.2:gcc-10:
269
+ extends: .test:linux:cuda
270
+ image: nvidia/cuda:12.2.0-devel-ubuntu20.04
271
+ needs: [ build:linux:cuda-12.2:gcc-10 ]
272
+ variables:
273
+ EIGEN_CI_CXX_COMPILER: g++-10
274
+ EIGEN_CI_CC_COMPILER: gcc-10
275
+
276
+ # Clang-12, CUDA-12.2
277
+ test:linux:cuda-12.2:clang-12:
278
+ extends: .test:linux:cuda
279
+ image: nvidia/cuda:12.2.0-devel-ubuntu20.04
280
+ needs: [ build:linux:cuda-12.2:clang-12 ]
281
+ variables:
282
+ EIGEN_CI_CXX_COMPILER: clang++-12
283
+ EIGEN_CI_CC_COMPILER: clang-12
284
+
285
+ ##### arm ######################################################################
286
+
287
+ .test:linux:arm:
288
+ extends: .test:linux
289
+ variables:
290
+ EIGEN_CI_TARGET_ARCH: arm
291
+ EIGEN_CI_CROSS_TARGET_TRIPLE: arm-linux-gnueabihf
292
+ EIGEN_CI_CTEST_ARGS: --timeout 2000
293
+
294
+ .test:linux:arm:gcc-10:default:
295
+ extends: .test:linux:arm
296
+ needs: [ build:linux:cross:arm:gcc-10:default ]
297
+ variables:
298
+ EIGEN_CI_CROSS_INSTALL: g++-10-arm-linux-gnueabihf qemu-user-static
299
+
300
+ test:linux:arm:gcc-10:default:official:
301
+ extends: .test:linux:arm:gcc-10:default
302
+ variables:
303
+ EIGEN_CI_CTEST_LABEL: Official
304
+
305
+ test:linux:arm:gcc-10:default:unsupported:
306
+ extends: .test:linux:arm:gcc-10:default
307
+ variables:
308
+ EIGEN_CI_CTEST_LABEL: Unsupported
309
+
310
+ .test:linux:arm:clang-12:default:
311
+ extends: .test:linux:arm
312
+ needs: [ build:linux:cross:arm:clang-12:default ]
313
+ variables:
314
+ EIGEN_CI_CROSS_INSTALL: g++-10-arm-linux-gnueabihf clang-12 qemu-user-static
315
+
316
+ test:linux:arm:clang-12:default:official:
317
+ extends: .test:linux:arm:clang-12:default
318
+ variables:
319
+ EIGEN_CI_CTEST_LABEL: Official
320
+
321
+ test:linux:arm:clang-12:default:unsupported:
322
+ extends: .test:linux:arm:clang-12:default
323
+ variables:
324
+ EIGEN_CI_CTEST_LABEL: Unsupported
325
+
326
+ ##### aarch64 ##################################################################
327
+
328
+ .test:linux:aarch64:
329
+ extends: .test:linux
330
+ variables:
331
+ EIGEN_CI_TARGET_ARCH: aarch64
332
+ EIGEN_CI_CROSS_TARGET_TRIPLE: aarch64-linux-gnu
333
+ tags:
334
+ - saas-linux-large-arm64
335
+
336
+ .test:linux:aarch64:gcc-10:default:
337
+ extends: .test:linux:aarch64
338
+ needs: [ build:linux:cross:aarch64:gcc-10:default ]
339
+ variables:
340
+ EIGEN_CI_INSTALL: g++-10
341
+
342
+ test:linux:aarch64:gcc-10:default:official:
343
+ extends: .test:linux:aarch64:gcc-10:default
344
+ variables:
345
+ EIGEN_CI_CTEST_LABEL: Official
346
+
347
+ test:linux:aarch64:gcc-10:default:unsupported:
348
+ extends: .test:linux:aarch64:gcc-10:default
349
+ variables:
350
+ EIGEN_CI_CTEST_LABEL: Unsupported
351
+
352
+ .test:linux:aarch64:clang-12:default:
353
+ extends: .test:linux:aarch64
354
+ needs: [ build:linux:cross:aarch64:clang-12:default ]
355
+ variables:
356
+ EIGEN_CI_INSTALL: clang-12
357
+
358
+ test:linux:aarch64:clang-12:default:official:
359
+ extends: .test:linux:aarch64:clang-12:default
360
+ variables:
361
+ EIGEN_CI_CTEST_LABEL: Official
362
+
363
+ test:linux:aarch64:clang-12:default:unsupported:
364
+ extends: .test:linux:aarch64:clang-12:default
365
+ variables:
366
+ EIGEN_CI_CTEST_LABEL: Unsupported
367
+
368
+ ##### ppc64le ##################################################################
369
+
370
+ .test:linux:ppc64le:
371
+ extends: .test:linux
372
+ image: ubuntu:24.04
373
+ variables:
374
+ EIGEN_CI_TARGET_ARCH: ppc64le
375
+ EIGEN_CI_CROSS_TARGET_TRIPLE: powerpc64le-linux-gnu
376
+ EIGEN_CI_CTEST_ARGS: --timeout 2000
377
+
378
+ .test:linux:ppc64le:gcc-14:default:
379
+ extends: .test:linux:ppc64le
380
+ needs: [ build:linux:cross:ppc64le:gcc-14:default ]
381
+ variables:
382
+ EIGEN_CI_CROSS_INSTALL: g++-14-powerpc64le-linux-gnu qemu-user-static
383
+
384
+ test:linux:ppc64le:gcc-14:default:official:
385
+ extends: .test:linux:ppc64le:gcc-14:default
386
+ variables:
387
+ EIGEN_CI_CTEST_LABEL: Official
388
+
389
+ test:linux:ppc64le:gcc-14:default:unsupported:
390
+ extends: .test:linux:ppc64le:gcc-14:default
391
+ variables:
392
+ EIGEN_CI_CTEST_LABEL: Unsupported
393
+
394
+ .test:linux:ppc64le:clang-16:default:
395
+ extends: .test:linux:ppc64le
396
+ needs: [ build:linux:cross:ppc64le:clang-16:default ]
397
+ variables:
398
+ EIGEN_CI_CROSS_INSTALL: g++-14-powerpc64le-linux-gnu clang-16 qemu-user-static
399
+
400
+ test:linux:ppc64le:clang-16:default:official:
401
+ extends: .test:linux:ppc64le:clang-16:default
402
+ variables:
403
+ EIGEN_CI_CTEST_LABEL: Official
404
+
405
+ test:linux:ppc64le:clang-16:default:unsupported:
406
+ extends: .test:linux:ppc64le:clang-16:default
407
+ variables:
408
+ EIGEN_CI_CTEST_LABEL: Unsupported
409
+
410
+ ##### MR Smoke Tests ###########################################################
411
+
412
+ test:linux:x86-64:gcc-10:default:smoketest:
413
+ extends: .test:linux:x86-64:gcc-10:default
414
+ needs: [ build:linux:cross:x86-64:gcc-10:default:smoketest ]
415
+ variables:
416
+ EIGEN_CI_CTEST_LABEL: smoketest
417
+ rules:
418
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event"
419
+ tags:
420
+ - saas-linux-small-amd64
421
+
422
+ test:linux:x86-64:clang-12:default:smoketest:
423
+ extends: .test:linux:x86-64:clang-12:default
424
+ needs: [ build:linux:cross:x86-64:clang-12:default:smoketest ]
425
+ variables:
426
+ EIGEN_CI_CTEST_LABEL: smoketest
427
+ rules:
428
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event"
429
+ tags:
430
+ - saas-linux-small-amd64
include/eigen/ci/test.windows.gitlab-ci.yml ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .test:windows:
2
+ extends: .common:windows
3
+ stage: test
4
+ script:
5
+ - ./ci/scripts/test.windows.script.ps1
6
+ after_script:
7
+ - ./ci/scripts/test.windows.after_script.ps1
8
+ rules:
9
+ - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_NAMESPACE == "libeigen"
10
+ - if: $CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_NAMESPACE == "libeigen"
11
+ - if: $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_NAMESPACE == "libeigen"
12
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_PROJECT_NAMESPACE == "libeigen" && $CI_MERGE_REQUEST_LABELS =~ "/all-tests/"
13
+
14
+ tags:
15
+ - eigen-runner
16
+ - windows
17
+ - x86-64
18
+
19
+ ##### MSVC #####################################################################
20
+
21
+ # MSVC 14.16 (VS 2017)
22
+ .test:windows:x86-64:msvc-14.16:default:
23
+ extends: .test:windows
24
+ needs: [ build:windows:x86-64:msvc-14.16:default ]
25
+
26
+ test:windows:x86-64:msvc-14.16:default:official:
27
+ extends: .test:windows:x86-64:msvc-14.16:default
28
+ variables:
29
+ EIGEN_CI_CTEST_LABEL: Official
30
+
31
+ test:windows:x86-64:msvc-14.16:default:unsupported:
32
+ extends: .test:windows:x86-64:msvc-14.16:default
33
+ variables:
34
+ EIGEN_CI_CTEST_LABEL: Unsupported
35
+
36
+ # MSVC 14.29 (VS 2019)
37
+ .test:windows:x86-64:msvc-14.29:default:
38
+ extends: .test:windows
39
+ needs: [ build:windows:x86-64:msvc-14.29:default ]
40
+
41
+ test:windows:x86-64:msvc-14.29:default:official:
42
+ extends: .test:windows:x86-64:msvc-14.29:default
43
+ variables:
44
+ EIGEN_CI_CTEST_LABEL: Official
45
+
46
+ test:windows:x86-64:msvc-14.29:default:unsupported:
47
+ extends: .test:windows:x86-64:msvc-14.29:default
48
+ variables:
49
+ EIGEN_CI_CTEST_LABEL: Unsupported
50
+
51
+ .test:windows:x86-64:msvc-14.29:avx2:
52
+ extends: .test:windows
53
+ needs: [ build:windows:x86-64:msvc-14.29:avx2 ]
54
+
55
+ test:windows:x86-64:msvc-14.29:avx2:official:
56
+ extends: .test:windows:x86-64:msvc-14.29:avx2
57
+ variables:
58
+ EIGEN_CI_CTEST_LABEL: Official
59
+
60
+ test:windows:x86-64:msvc-14.29:avx2:unsupported:
61
+ extends: .test:windows:x86-64:msvc-14.29:avx2
62
+ variables:
63
+ EIGEN_CI_CTEST_LABEL: Unsupported
64
+
65
+ .test:windows:x86-64:msvc-14.29:avx512dq:
66
+ extends: .test:windows
67
+ needs: [ build:windows:x86-64:msvc-14.29:avx512dq ]
68
+ tags:
69
+ - eigen-runner
70
+ - windows
71
+ - x86-64
72
+ - avx512
73
+
74
+ test:windows:x86-64:msvc-14.29:avx512dq:official:
75
+ extends: .test:windows:x86-64:msvc-14.29:avx512dq
76
+ variables:
77
+ EIGEN_CI_CTEST_LABEL: Official
78
+
79
+ test:windows:x86-64:msvc-14.29:avx512dq:unsupported:
80
+ extends: .test:windows:x86-64:msvc-14.29:avx512dq
81
+ variables:
82
+ EIGEN_CI_CTEST_LABEL: Unsupported
83
+
84
+ ##### MSVC + CUDA ##############################################################
85
+ .test:windows:cuda:
86
+ extends: .test:windows
87
+ allow_failure: true
88
+ variables:
89
+ EIGEN_CI_CTEST_LABEL: gpu
90
+ tags:
91
+ - eigen-runner
92
+ - windows
93
+ - x86-64
94
+ - cuda
95
+
96
+ # The CUDA 9.2 compiler crashes with an internal error.
97
+ # # MSVC 14.16 + CUDA 9.2
98
+ # test:windows:x86-64:cuda-9.2:msvc-14.16:
99
+ # extends: .test:windows:cuda
100
+ # needs: [ build:windows:x86-64:cuda-9.2:msvc-14.16 ]
101
+
102
+ # MSVC 14.29 + CUDA 10.2
103
+ test:windows:x86-64:cuda-10.2:msvc-14.29:
104
+ extends: .test:windows:cuda
105
+ needs: [ build:windows:x86-64:cuda-10.2:msvc-14.29 ]
106
+
107
+ # MSVC 14.29 + CUDA 11.4
108
+ test:windows:x86-64:cuda-11.4:msvc-14.29:
109
+ extends: .test:windows:cuda
110
+ needs: [ build:windows:x86-64:cuda-11.4:msvc-14.29 ]
include/eigen/demos/CMakeLists.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ project(EigenDemos)
2
+
3
+ add_custom_target(demos)
4
+
5
+ if(NOT EIGEN_TEST_NOQT)
6
+ find_package(Qt4)
7
+ if(QT4_FOUND)
8
+ add_subdirectory(mandelbrot)
9
+ add_subdirectory(opengl)
10
+ else()
11
+ message(STATUS "Qt4 not found, so disabling the mandelbrot and opengl demos")
12
+ endif()
13
+ endif()
include/eigen/lapack/cholesky.cpp ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // Copyright (C) 2010-2011 Gael Guennebaud <gael.guennebaud@inria.fr>
5
+ //
6
+ // This Source Code Form is subject to the terms of the Mozilla
7
+ // Public License v. 2.0. If a copy of the MPL was not distributed
8
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+
10
+ #include "lapack_common.h"
11
+ #include <Eigen/Cholesky>
12
+
13
+ // POTRF computes the Cholesky factorization of a real symmetric positive definite matrix A.
14
+ EIGEN_LAPACK_FUNC(potrf,(char* uplo, int *n, RealScalar *pa, int *lda, int *info))
15
+ {
16
+ *info = 0;
17
+ if(UPLO(*uplo)==INVALID) *info = -1;
18
+ else if(*n<0) *info = -2;
19
+ else if(*lda<std::max(1,*n)) *info = -4;
20
+ if(*info!=0)
21
+ {
22
+ int e = -*info;
23
+ return xerbla_(SCALAR_SUFFIX_UP"POTRF", &e, 6);
24
+ }
25
+
26
+ Scalar* a = reinterpret_cast<Scalar*>(pa);
27
+ MatrixType A(a,*n,*n,*lda);
28
+ int ret;
29
+ if(UPLO(*uplo)==UP) ret = int(internal::llt_inplace<Scalar, Upper>::blocked(A));
30
+ else ret = int(internal::llt_inplace<Scalar, Lower>::blocked(A));
31
+
32
+ if(ret>=0)
33
+ *info = ret+1;
34
+
35
+ return 0;
36
+ }
37
+
38
+ // POTRS solves a system of linear equations A*X = B with a symmetric
39
+ // positive definite matrix A using the Cholesky factorization
40
+ // A = U**T*U or A = L*L**T computed by DPOTRF.
41
+ EIGEN_LAPACK_FUNC(potrs,(char* uplo, int *n, int *nrhs, RealScalar *pa, int *lda, RealScalar *pb, int *ldb, int *info))
42
+ {
43
+ *info = 0;
44
+ if(UPLO(*uplo)==INVALID) *info = -1;
45
+ else if(*n<0) *info = -2;
46
+ else if(*nrhs<0) *info = -3;
47
+ else if(*lda<std::max(1,*n)) *info = -5;
48
+ else if(*ldb<std::max(1,*n)) *info = -7;
49
+ if(*info!=0)
50
+ {
51
+ int e = -*info;
52
+ return xerbla_(SCALAR_SUFFIX_UP"POTRS", &e, 6);
53
+ }
54
+
55
+ Scalar* a = reinterpret_cast<Scalar*>(pa);
56
+ Scalar* b = reinterpret_cast<Scalar*>(pb);
57
+ MatrixType A(a,*n,*n,*lda);
58
+ MatrixType B(b,*n,*nrhs,*ldb);
59
+
60
+ if(UPLO(*uplo)==UP)
61
+ {
62
+ A.triangularView<Upper>().adjoint().solveInPlace(B);
63
+ A.triangularView<Upper>().solveInPlace(B);
64
+ }
65
+ else
66
+ {
67
+ A.triangularView<Lower>().solveInPlace(B);
68
+ A.triangularView<Lower>().adjoint().solveInPlace(B);
69
+ }
70
+
71
+ return 0;
72
+ }
include/eigen/lapack/clacgv.f ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *> \brief \b CLACGV
2
+ *
3
+ * =========== DOCUMENTATION ===========
4
+ *
5
+ * Online html documentation available at
6
+ * http://www.netlib.org/lapack/explore-html/
7
+ *
8
+ *> \htmlonly
9
+ *> Download CLACGV + dependencies
10
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/clacgv.f">
11
+ *> [TGZ]</a>
12
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/clacgv.f">
13
+ *> [ZIP]</a>
14
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/clacgv.f">
15
+ *> [TXT]</a>
16
+ *> \endhtmlonly
17
+ *
18
+ * Definition:
19
+ * ===========
20
+ *
21
+ * SUBROUTINE CLACGV( N, X, INCX )
22
+ *
23
+ * .. Scalar Arguments ..
24
+ * INTEGER INCX, N
25
+ * ..
26
+ * .. Array Arguments ..
27
+ * COMPLEX X( * )
28
+ * ..
29
+ *
30
+ *
31
+ *> \par Purpose:
32
+ * =============
33
+ *>
34
+ *> \verbatim
35
+ *>
36
+ *> CLACGV conjugates a complex vector of length N.
37
+ *> \endverbatim
38
+ *
39
+ * Arguments:
40
+ * ==========
41
+ *
42
+ *> \param[in] N
43
+ *> \verbatim
44
+ *> N is INTEGER
45
+ *> The length of the vector X. N >= 0.
46
+ *> \endverbatim
47
+ *>
48
+ *> \param[in,out] X
49
+ *> \verbatim
50
+ *> X is COMPLEX array, dimension
51
+ *> (1+(N-1)*abs(INCX))
52
+ *> On entry, the vector of length N to be conjugated.
53
+ *> On exit, X is overwritten with conjg(X).
54
+ *> \endverbatim
55
+ *>
56
+ *> \param[in] INCX
57
+ *> \verbatim
58
+ *> INCX is INTEGER
59
+ *> The spacing between successive elements of X.
60
+ *> \endverbatim
61
+ *
62
+ * Authors:
63
+ * ========
64
+ *
65
+ *> \author Univ. of Tennessee
66
+ *> \author Univ. of California Berkeley
67
+ *> \author Univ. of Colorado Denver
68
+ *> \author NAG Ltd.
69
+ *
70
+ *> \date November 2011
71
+ *
72
+ *> \ingroup complexOTHERauxiliary
73
+ *
74
+ * =====================================================================
75
+ SUBROUTINE CLACGV( N, X, INCX )
76
+ *
77
+ * -- LAPACK auxiliary routine (version 3.4.0) --
78
+ * -- LAPACK is a software package provided by Univ. of Tennessee, --
79
+ * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
80
+ * November 2011
81
+ *
82
+ * .. Scalar Arguments ..
83
+ INTEGER INCX, N
84
+ * ..
85
+ * .. Array Arguments ..
86
+ COMPLEX X( * )
87
+ * ..
88
+ *
89
+ * =====================================================================
90
+ *
91
+ * .. Local Scalars ..
92
+ INTEGER I, IOFF
93
+ * ..
94
+ * .. Intrinsic Functions ..
95
+ INTRINSIC CONJG
96
+ * ..
97
+ * .. Executable Statements ..
98
+ *
99
+ IF( INCX.EQ.1 ) THEN
100
+ DO 10 I = 1, N
101
+ X( I ) = CONJG( X( I ) )
102
+ 10 CONTINUE
103
+ ELSE
104
+ IOFF = 1
105
+ IF( INCX.LT.0 )
106
+ $ IOFF = 1 - ( N-1 )*INCX
107
+ DO 20 I = 1, N
108
+ X( IOFF ) = CONJG( X( IOFF ) )
109
+ IOFF = IOFF + INCX
110
+ 20 CONTINUE
111
+ END IF
112
+ RETURN
113
+ *
114
+ * End of CLACGV
115
+ *
116
+ END
include/eigen/lapack/cladiv.f ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *> \brief \b CLADIV
2
+ *
3
+ * =========== DOCUMENTATION ===========
4
+ *
5
+ * Online html documentation available at
6
+ * http://www.netlib.org/lapack/explore-html/
7
+ *
8
+ *> \htmlonly
9
+ *> Download CLADIV + dependencies
10
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/cladiv.f">
11
+ *> [TGZ]</a>
12
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/cladiv.f">
13
+ *> [ZIP]</a>
14
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/cladiv.f">
15
+ *> [TXT]</a>
16
+ *> \endhtmlonly
17
+ *
18
+ * Definition:
19
+ * ===========
20
+ *
21
+ * COMPLEX FUNCTION CLADIV( X, Y )
22
+ *
23
+ * .. Scalar Arguments ..
24
+ * COMPLEX X, Y
25
+ * ..
26
+ *
27
+ *
28
+ *> \par Purpose:
29
+ * =============
30
+ *>
31
+ *> \verbatim
32
+ *>
33
+ *> CLADIV := X / Y, where X and Y are complex. The computation of X / Y
34
+ *> will not overflow on an intermediary step unless the results
35
+ *> overflows.
36
+ *> \endverbatim
37
+ *
38
+ * Arguments:
39
+ * ==========
40
+ *
41
+ *> \param[in] X
42
+ *> \verbatim
43
+ *> X is COMPLEX
44
+ *> \endverbatim
45
+ *>
46
+ *> \param[in] Y
47
+ *> \verbatim
48
+ *> Y is COMPLEX
49
+ *> The complex scalars X and Y.
50
+ *> \endverbatim
51
+ *
52
+ * Authors:
53
+ * ========
54
+ *
55
+ *> \author Univ. of Tennessee
56
+ *> \author Univ. of California Berkeley
57
+ *> \author Univ. of Colorado Denver
58
+ *> \author NAG Ltd.
59
+ *
60
+ *> \date November 2011
61
+ *
62
+ *> \ingroup complexOTHERauxiliary
63
+ *
64
+ * =====================================================================
65
+ COMPLEX FUNCTION CLADIV( X, Y )
66
+ *
67
+ * -- LAPACK auxiliary routine (version 3.4.0) --
68
+ * -- LAPACK is a software package provided by Univ. of Tennessee, --
69
+ * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
70
+ * November 2011
71
+ *
72
+ * .. Scalar Arguments ..
73
+ COMPLEX X, Y
74
+ * ..
75
+ *
76
+ * =====================================================================
77
+ *
78
+ * .. Local Scalars ..
79
+ REAL ZI, ZR
80
+ * ..
81
+ * .. External Subroutines ..
82
+ EXTERNAL SLADIV
83
+ * ..
84
+ * .. Intrinsic Functions ..
85
+ INTRINSIC AIMAG, CMPLX, REAL
86
+ * ..
87
+ * .. Executable Statements ..
88
+ *
89
+ CALL SLADIV( REAL( X ), AIMAG( X ), REAL( Y ), AIMAG( Y ), ZR,
90
+ $ ZI )
91
+ CLADIV = CMPLX( ZR, ZI )
92
+ *
93
+ RETURN
94
+ *
95
+ * End of CLADIV
96
+ *
97
+ END
include/eigen/lapack/clarfg.f ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *> \brief \b CLARFG
2
+ *
3
+ * =========== DOCUMENTATION ===========
4
+ *
5
+ * Online html documentation available at
6
+ * http://www.netlib.org/lapack/explore-html/
7
+ *
8
+ *> \htmlonly
9
+ *> Download CLARFG + dependencies
10
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/clarfg.f">
11
+ *> [TGZ]</a>
12
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/clarfg.f">
13
+ *> [ZIP]</a>
14
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/clarfg.f">
15
+ *> [TXT]</a>
16
+ *> \endhtmlonly
17
+ *
18
+ * Definition:
19
+ * ===========
20
+ *
21
+ * SUBROUTINE CLARFG( N, ALPHA, X, INCX, TAU )
22
+ *
23
+ * .. Scalar Arguments ..
24
+ * INTEGER INCX, N
25
+ * COMPLEX ALPHA, TAU
26
+ * ..
27
+ * .. Array Arguments ..
28
+ * COMPLEX X( * )
29
+ * ..
30
+ *
31
+ *
32
+ *> \par Purpose:
33
+ * =============
34
+ *>
35
+ *> \verbatim
36
+ *>
37
+ *> CLARFG generates a complex elementary reflector H of order n, such
38
+ *> that
39
+ *>
40
+ *> H**H * ( alpha ) = ( beta ), H**H * H = I.
41
+ *> ( x ) ( 0 )
42
+ *>
43
+ *> where alpha and beta are scalars, with beta real, and x is an
44
+ *> (n-1)-element complex vector. H is represented in the form
45
+ *>
46
+ *> H = I - tau * ( 1 ) * ( 1 v**H ) ,
47
+ *> ( v )
48
+ *>
49
+ *> where tau is a complex scalar and v is a complex (n-1)-element
50
+ *> vector. Note that H is not hermitian.
51
+ *>
52
+ *> If the elements of x are all zero and alpha is real, then tau = 0
53
+ *> and H is taken to be the unit matrix.
54
+ *>
55
+ *> Otherwise 1 <= real(tau) <= 2 and abs(tau-1) <= 1 .
56
+ *> \endverbatim
57
+ *
58
+ * Arguments:
59
+ * ==========
60
+ *
61
+ *> \param[in] N
62
+ *> \verbatim
63
+ *> N is INTEGER
64
+ *> The order of the elementary reflector.
65
+ *> \endverbatim
66
+ *>
67
+ *> \param[in,out] ALPHA
68
+ *> \verbatim
69
+ *> ALPHA is COMPLEX
70
+ *> On entry, the value alpha.
71
+ *> On exit, it is overwritten with the value beta.
72
+ *> \endverbatim
73
+ *>
74
+ *> \param[in,out] X
75
+ *> \verbatim
76
+ *> X is COMPLEX array, dimension
77
+ *> (1+(N-2)*abs(INCX))
78
+ *> On entry, the vector x.
79
+ *> On exit, it is overwritten with the vector v.
80
+ *> \endverbatim
81
+ *>
82
+ *> \param[in] INCX
83
+ *> \verbatim
84
+ *> INCX is INTEGER
85
+ *> The increment between elements of X. INCX > 0.
86
+ *> \endverbatim
87
+ *>
88
+ *> \param[out] TAU
89
+ *> \verbatim
90
+ *> TAU is COMPLEX
91
+ *> The value tau.
92
+ *> \endverbatim
93
+ *
94
+ * Authors:
95
+ * ========
96
+ *
97
+ *> \author Univ. of Tennessee
98
+ *> \author Univ. of California Berkeley
99
+ *> \author Univ. of Colorado Denver
100
+ *> \author NAG Ltd.
101
+ *
102
+ *> \date November 2011
103
+ *
104
+ *> \ingroup complexOTHERauxiliary
105
+ *
106
+ * =====================================================================
107
+ SUBROUTINE CLARFG( N, ALPHA, X, INCX, TAU )
108
+ *
109
+ * -- LAPACK auxiliary routine (version 3.4.0) --
110
+ * -- LAPACK is a software package provided by Univ. of Tennessee, --
111
+ * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
112
+ * November 2011
113
+ *
114
+ * .. Scalar Arguments ..
115
+ INTEGER INCX, N
116
+ COMPLEX ALPHA, TAU
117
+ * ..
118
+ * .. Array Arguments ..
119
+ COMPLEX X( * )
120
+ * ..
121
+ *
122
+ * =====================================================================
123
+ *
124
+ * .. Parameters ..
125
+ REAL ONE, ZERO
126
+ PARAMETER ( ONE = 1.0E+0, ZERO = 0.0E+0 )
127
+ * ..
128
+ * .. Local Scalars ..
129
+ INTEGER J, KNT
130
+ REAL ALPHI, ALPHR, BETA, RSAFMN, SAFMIN, XNORM
131
+ * ..
132
+ * .. External Functions ..
133
+ REAL SCNRM2, SLAMCH, SLAPY3
134
+ COMPLEX CLADIV
135
+ EXTERNAL SCNRM2, SLAMCH, SLAPY3, CLADIV
136
+ * ..
137
+ * .. Intrinsic Functions ..
138
+ INTRINSIC ABS, AIMAG, CMPLX, REAL, SIGN
139
+ * ..
140
+ * .. External Subroutines ..
141
+ EXTERNAL CSCAL, CSSCAL
142
+ * ..
143
+ * .. Executable Statements ..
144
+ *
145
+ IF( N.LE.0 ) THEN
146
+ TAU = ZERO
147
+ RETURN
148
+ END IF
149
+ *
150
+ XNORM = SCNRM2( N-1, X, INCX )
151
+ ALPHR = REAL( ALPHA )
152
+ ALPHI = AIMAG( ALPHA )
153
+ *
154
+ IF( XNORM.EQ.ZERO .AND. ALPHI.EQ.ZERO ) THEN
155
+ *
156
+ * H = I
157
+ *
158
+ TAU = ZERO
159
+ ELSE
160
+ *
161
+ * general case
162
+ *
163
+ BETA = -SIGN( SLAPY3( ALPHR, ALPHI, XNORM ), ALPHR )
164
+ SAFMIN = SLAMCH( 'S' ) / SLAMCH( 'E' )
165
+ RSAFMN = ONE / SAFMIN
166
+ *
167
+ KNT = 0
168
+ IF( ABS( BETA ).LT.SAFMIN ) THEN
169
+ *
170
+ * XNORM, BETA may be inaccurate; scale X and recompute them
171
+ *
172
+ 10 CONTINUE
173
+ KNT = KNT + 1
174
+ CALL CSSCAL( N-1, RSAFMN, X, INCX )
175
+ BETA = BETA*RSAFMN
176
+ ALPHI = ALPHI*RSAFMN
177
+ ALPHR = ALPHR*RSAFMN
178
+ IF( ABS( BETA ).LT.SAFMIN )
179
+ $ GO TO 10
180
+ *
181
+ * New BETA is at most 1, at least SAFMIN
182
+ *
183
+ XNORM = SCNRM2( N-1, X, INCX )
184
+ ALPHA = CMPLX( ALPHR, ALPHI )
185
+ BETA = -SIGN( SLAPY3( ALPHR, ALPHI, XNORM ), ALPHR )
186
+ END IF
187
+ TAU = CMPLX( ( BETA-ALPHR ) / BETA, -ALPHI / BETA )
188
+ ALPHA = CLADIV( CMPLX( ONE ), ALPHA-BETA )
189
+ CALL CSCAL( N-1, ALPHA, X, INCX )
190
+ *
191
+ * If ALPHA is subnormal, it may lose relative accuracy
192
+ *
193
+ DO 20 J = 1, KNT
194
+ BETA = BETA*SAFMIN
195
+ 20 CONTINUE
196
+ ALPHA = BETA
197
+ END IF
198
+ *
199
+ RETURN
200
+ *
201
+ * End of CLARFG
202
+ *
203
+ END
include/eigen/lapack/complex_single.cpp ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is part of Eigen, a lightweight C++ template library
2
+ // for linear algebra.
3
+ //
4
+ // Copyright (C) 2009-2014 Gael Guennebaud <gael.guennebaud@inria.fr>
5
+ //
6
+ // This Source Code Form is subject to the terms of the Mozilla
7
+ // Public License v. 2.0. If a copy of the MPL was not distributed
8
+ // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+
10
+ #define SCALAR std::complex<float>
11
+ #define SCALAR_SUFFIX c
12
+ #define SCALAR_SUFFIX_UP "C"
13
+ #define REAL_SCALAR_SUFFIX s
14
+ #define ISCOMPLEX 1
15
+
16
+ #include "cholesky.cpp"
17
+ #include "lu.cpp"
18
+ #include "svd.cpp"
include/eigen/lapack/dlapy3.f ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *> \brief \b DLAPY3
2
+ *
3
+ * =========== DOCUMENTATION ===========
4
+ *
5
+ * Online html documentation available at
6
+ * http://www.netlib.org/lapack/explore-html/
7
+ *
8
+ *> \htmlonly
9
+ *> Download DLAPY3 + dependencies
10
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dlapy3.f">
11
+ *> [TGZ]</a>
12
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dlapy3.f">
13
+ *> [ZIP]</a>
14
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dlapy3.f">
15
+ *> [TXT]</a>
16
+ *> \endhtmlonly
17
+ *
18
+ * Definition:
19
+ * ===========
20
+ *
21
+ * DOUBLE PRECISION FUNCTION DLAPY3( X, Y, Z )
22
+ *
23
+ * .. Scalar Arguments ..
24
+ * DOUBLE PRECISION X, Y, Z
25
+ * ..
26
+ *
27
+ *
28
+ *> \par Purpose:
29
+ * =============
30
+ *>
31
+ *> \verbatim
32
+ *>
33
+ *> DLAPY3 returns sqrt(x**2+y**2+z**2), taking care not to cause
34
+ *> unnecessary overflow.
35
+ *> \endverbatim
36
+ *
37
+ * Arguments:
38
+ * ==========
39
+ *
40
+ *> \param[in] X
41
+ *> \verbatim
42
+ *> X is DOUBLE PRECISION
43
+ *> \endverbatim
44
+ *>
45
+ *> \param[in] Y
46
+ *> \verbatim
47
+ *> Y is DOUBLE PRECISION
48
+ *> \endverbatim
49
+ *>
50
+ *> \param[in] Z
51
+ *> \verbatim
52
+ *> Z is DOUBLE PRECISION
53
+ *> X, Y and Z specify the values x, y and z.
54
+ *> \endverbatim
55
+ *
56
+ * Authors:
57
+ * ========
58
+ *
59
+ *> \author Univ. of Tennessee
60
+ *> \author Univ. of California Berkeley
61
+ *> \author Univ. of Colorado Denver
62
+ *> \author NAG Ltd.
63
+ *
64
+ *> \date November 2011
65
+ *
66
+ *> \ingroup auxOTHERauxiliary
67
+ *
68
+ * =====================================================================
69
+ DOUBLE PRECISION FUNCTION DLAPY3( X, Y, Z )
70
+ *
71
+ * -- LAPACK auxiliary routine (version 3.4.0) --
72
+ * -- LAPACK is a software package provided by Univ. of Tennessee, --
73
+ * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
74
+ * November 2011
75
+ *
76
+ * .. Scalar Arguments ..
77
+ DOUBLE PRECISION X, Y, Z
78
+ * ..
79
+ *
80
+ * =====================================================================
81
+ *
82
+ * .. Parameters ..
83
+ DOUBLE PRECISION ZERO
84
+ PARAMETER ( ZERO = 0.0D0 )
85
+ * ..
86
+ * .. Local Scalars ..
87
+ DOUBLE PRECISION W, XABS, YABS, ZABS
88
+ * ..
89
+ * .. Intrinsic Functions ..
90
+ INTRINSIC ABS, MAX, SQRT
91
+ * ..
92
+ * .. Executable Statements ..
93
+ *
94
+ XABS = ABS( X )
95
+ YABS = ABS( Y )
96
+ ZABS = ABS( Z )
97
+ W = MAX( XABS, YABS, ZABS )
98
+ IF( W.EQ.ZERO ) THEN
99
+ * W can be zero for max(0,nan,0)
100
+ * adding all three entries together will make sure
101
+ * NaN will not disappear.
102
+ DLAPY3 = XABS + YABS + ZABS
103
+ ELSE
104
+ DLAPY3 = W*SQRT( ( XABS / W )**2+( YABS / W )**2+
105
+ $ ( ZABS / W )**2 )
106
+ END IF
107
+ RETURN
108
+ *
109
+ * End of DLAPY3
110
+ *
111
+ END
include/eigen/lapack/dlarfb.f ADDED
@@ -0,0 +1,762 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *> \brief \b DLARFB
2
+ *
3
+ * =========== DOCUMENTATION ===========
4
+ *
5
+ * Online html documentation available at
6
+ * http://www.netlib.org/lapack/explore-html/
7
+ *
8
+ *> \htmlonly
9
+ *> Download DLARFB + dependencies
10
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dlarfb.f">
11
+ *> [TGZ]</a>
12
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dlarfb.f">
13
+ *> [ZIP]</a>
14
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dlarfb.f">
15
+ *> [TXT]</a>
16
+ *> \endhtmlonly
17
+ *
18
+ * Definition:
19
+ * ===========
20
+ *
21
+ * SUBROUTINE DLARFB( SIDE, TRANS, DIRECT, STOREV, M, N, K, V, LDV,
22
+ * T, LDT, C, LDC, WORK, LDWORK )
23
+ *
24
+ * .. Scalar Arguments ..
25
+ * CHARACTER DIRECT, SIDE, STOREV, TRANS
26
+ * INTEGER K, LDC, LDT, LDV, LDWORK, M, N
27
+ * ..
28
+ * .. Array Arguments ..
29
+ * DOUBLE PRECISION C( LDC, * ), T( LDT, * ), V( LDV, * ),
30
+ * $ WORK( LDWORK, * )
31
+ * ..
32
+ *
33
+ *
34
+ *> \par Purpose:
35
+ * =============
36
+ *>
37
+ *> \verbatim
38
+ *>
39
+ *> DLARFB applies a real block reflector H or its transpose H**T to a
40
+ *> real m by n matrix C, from either the left or the right.
41
+ *> \endverbatim
42
+ *
43
+ * Arguments:
44
+ * ==========
45
+ *
46
+ *> \param[in] SIDE
47
+ *> \verbatim
48
+ *> SIDE is CHARACTER*1
49
+ *> = 'L': apply H or H**T from the Left
50
+ *> = 'R': apply H or H**T from the Right
51
+ *> \endverbatim
52
+ *>
53
+ *> \param[in] TRANS
54
+ *> \verbatim
55
+ *> TRANS is CHARACTER*1
56
+ *> = 'N': apply H (No transpose)
57
+ *> = 'T': apply H**T (Transpose)
58
+ *> \endverbatim
59
+ *>
60
+ *> \param[in] DIRECT
61
+ *> \verbatim
62
+ *> DIRECT is CHARACTER*1
63
+ *> Indicates how H is formed from a product of elementary
64
+ *> reflectors
65
+ *> = 'F': H = H(1) H(2) . . . H(k) (Forward)
66
+ *> = 'B': H = H(k) . . . H(2) H(1) (Backward)
67
+ *> \endverbatim
68
+ *>
69
+ *> \param[in] STOREV
70
+ *> \verbatim
71
+ *> STOREV is CHARACTER*1
72
+ *> Indicates how the vectors which define the elementary
73
+ *> reflectors are stored:
74
+ *> = 'C': Columnwise
75
+ *> = 'R': Rowwise
76
+ *> \endverbatim
77
+ *>
78
+ *> \param[in] M
79
+ *> \verbatim
80
+ *> M is INTEGER
81
+ *> The number of rows of the matrix C.
82
+ *> \endverbatim
83
+ *>
84
+ *> \param[in] N
85
+ *> \verbatim
86
+ *> N is INTEGER
87
+ *> The number of columns of the matrix C.
88
+ *> \endverbatim
89
+ *>
90
+ *> \param[in] K
91
+ *> \verbatim
92
+ *> K is INTEGER
93
+ *> The order of the matrix T (= the number of elementary
94
+ *> reflectors whose product defines the block reflector).
95
+ *> \endverbatim
96
+ *>
97
+ *> \param[in] V
98
+ *> \verbatim
99
+ *> V is DOUBLE PRECISION array, dimension
100
+ *> (LDV,K) if STOREV = 'C'
101
+ *> (LDV,M) if STOREV = 'R' and SIDE = 'L'
102
+ *> (LDV,N) if STOREV = 'R' and SIDE = 'R'
103
+ *> The matrix V. See Further Details.
104
+ *> \endverbatim
105
+ *>
106
+ *> \param[in] LDV
107
+ *> \verbatim
108
+ *> LDV is INTEGER
109
+ *> The leading dimension of the array V.
110
+ *> If STOREV = 'C' and SIDE = 'L', LDV >= max(1,M);
111
+ *> if STOREV = 'C' and SIDE = 'R', LDV >= max(1,N);
112
+ *> if STOREV = 'R', LDV >= K.
113
+ *> \endverbatim
114
+ *>
115
+ *> \param[in] T
116
+ *> \verbatim
117
+ *> T is DOUBLE PRECISION array, dimension (LDT,K)
118
+ *> The triangular k by k matrix T in the representation of the
119
+ *> block reflector.
120
+ *> \endverbatim
121
+ *>
122
+ *> \param[in] LDT
123
+ *> \verbatim
124
+ *> LDT is INTEGER
125
+ *> The leading dimension of the array T. LDT >= K.
126
+ *> \endverbatim
127
+ *>
128
+ *> \param[in,out] C
129
+ *> \verbatim
130
+ *> C is DOUBLE PRECISION array, dimension (LDC,N)
131
+ *> On entry, the m by n matrix C.
132
+ *> On exit, C is overwritten by H*C or H**T*C or C*H or C*H**T.
133
+ *> \endverbatim
134
+ *>
135
+ *> \param[in] LDC
136
+ *> \verbatim
137
+ *> LDC is INTEGER
138
+ *> The leading dimension of the array C. LDC >= max(1,M).
139
+ *> \endverbatim
140
+ *>
141
+ *> \param[out] WORK
142
+ *> \verbatim
143
+ *> WORK is DOUBLE PRECISION array, dimension (LDWORK,K)
144
+ *> \endverbatim
145
+ *>
146
+ *> \param[in] LDWORK
147
+ *> \verbatim
148
+ *> LDWORK is INTEGER
149
+ *> The leading dimension of the array WORK.
150
+ *> If SIDE = 'L', LDWORK >= max(1,N);
151
+ *> if SIDE = 'R', LDWORK >= max(1,M).
152
+ *> \endverbatim
153
+ *
154
+ * Authors:
155
+ * ========
156
+ *
157
+ *> \author Univ. of Tennessee
158
+ *> \author Univ. of California Berkeley
159
+ *> \author Univ. of Colorado Denver
160
+ *> \author NAG Ltd.
161
+ *
162
+ *> \date November 2011
163
+ *
164
+ *> \ingroup doubleOTHERauxiliary
165
+ *
166
+ *> \par Further Details:
167
+ * =====================
168
+ *>
169
+ *> \verbatim
170
+ *>
171
+ *> The shape of the matrix V and the storage of the vectors which define
172
+ *> the H(i) is best illustrated by the following example with n = 5 and
173
+ *> k = 3. The elements equal to 1 are not stored; the corresponding
174
+ *> array elements are modified but restored on exit. The rest of the
175
+ *> array is not used.
176
+ *>
177
+ *> DIRECT = 'F' and STOREV = 'C': DIRECT = 'F' and STOREV = 'R':
178
+ *>
179
+ *> V = ( 1 ) V = ( 1 v1 v1 v1 v1 )
180
+ *> ( v1 1 ) ( 1 v2 v2 v2 )
181
+ *> ( v1 v2 1 ) ( 1 v3 v3 )
182
+ *> ( v1 v2 v3 )
183
+ *> ( v1 v2 v3 )
184
+ *>
185
+ *> DIRECT = 'B' and STOREV = 'C': DIRECT = 'B' and STOREV = 'R':
186
+ *>
187
+ *> V = ( v1 v2 v3 ) V = ( v1 v1 1 )
188
+ *> ( v1 v2 v3 ) ( v2 v2 v2 1 )
189
+ *> ( 1 v2 v3 ) ( v3 v3 v3 v3 1 )
190
+ *> ( 1 v3 )
191
+ *> ( 1 )
192
+ *> \endverbatim
193
+ *>
194
+ * =====================================================================
195
+ SUBROUTINE DLARFB( SIDE, TRANS, DIRECT, STOREV, M, N, K, V, LDV,
196
+ $ T, LDT, C, LDC, WORK, LDWORK )
197
+ *
198
+ * -- LAPACK auxiliary routine (version 3.4.0) --
199
+ * -- LAPACK is a software package provided by Univ. of Tennessee, --
200
+ * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
201
+ * November 2011
202
+ *
203
+ * .. Scalar Arguments ..
204
+ CHARACTER DIRECT, SIDE, STOREV, TRANS
205
+ INTEGER K, LDC, LDT, LDV, LDWORK, M, N
206
+ * ..
207
+ * .. Array Arguments ..
208
+ DOUBLE PRECISION C( LDC, * ), T( LDT, * ), V( LDV, * ),
209
+ $ WORK( LDWORK, * )
210
+ * ..
211
+ *
212
+ * =====================================================================
213
+ *
214
+ * .. Parameters ..
215
+ DOUBLE PRECISION ONE
216
+ PARAMETER ( ONE = 1.0D+0 )
217
+ * ..
218
+ * .. Local Scalars ..
219
+ CHARACTER TRANST
220
+ INTEGER I, J, LASTV, LASTC
221
+ * ..
222
+ * .. External Functions ..
223
+ LOGICAL LSAME
224
+ INTEGER ILADLR, ILADLC
225
+ EXTERNAL LSAME, ILADLR, ILADLC
226
+ * ..
227
+ * .. External Subroutines ..
228
+ EXTERNAL DCOPY, DGEMM, DTRMM
229
+ * ..
230
+ * .. Executable Statements ..
231
+ *
232
+ * Quick return if possible
233
+ *
234
+ IF( M.LE.0 .OR. N.LE.0 )
235
+ $ RETURN
236
+ *
237
+ IF( LSAME( TRANS, 'N' ) ) THEN
238
+ TRANST = 'T'
239
+ ELSE
240
+ TRANST = 'N'
241
+ END IF
242
+ *
243
+ IF( LSAME( STOREV, 'C' ) ) THEN
244
+ *
245
+ IF( LSAME( DIRECT, 'F' ) ) THEN
246
+ *
247
+ * Let V = ( V1 ) (first K rows)
248
+ * ( V2 )
249
+ * where V1 is unit lower triangular.
250
+ *
251
+ IF( LSAME( SIDE, 'L' ) ) THEN
252
+ *
253
+ * Form H * C or H**T * C where C = ( C1 )
254
+ * ( C2 )
255
+ *
256
+ LASTV = MAX( K, ILADLR( M, K, V, LDV ) )
257
+ LASTC = ILADLC( LASTV, N, C, LDC )
258
+ *
259
+ * W := C**T * V = (C1**T * V1 + C2**T * V2) (stored in WORK)
260
+ *
261
+ * W := C1**T
262
+ *
263
+ DO 10 J = 1, K
264
+ CALL DCOPY( LASTC, C( J, 1 ), LDC, WORK( 1, J ), 1 )
265
+ 10 CONTINUE
266
+ *
267
+ * W := W * V1
268
+ *
269
+ CALL DTRMM( 'Right', 'Lower', 'No transpose', 'Unit',
270
+ $ LASTC, K, ONE, V, LDV, WORK, LDWORK )
271
+ IF( LASTV.GT.K ) THEN
272
+ *
273
+ * W := W + C2**T *V2
274
+ *
275
+ CALL DGEMM( 'Transpose', 'No transpose',
276
+ $ LASTC, K, LASTV-K,
277
+ $ ONE, C( K+1, 1 ), LDC, V( K+1, 1 ), LDV,
278
+ $ ONE, WORK, LDWORK )
279
+ END IF
280
+ *
281
+ * W := W * T**T or W * T
282
+ *
283
+ CALL DTRMM( 'Right', 'Upper', TRANST, 'Non-unit',
284
+ $ LASTC, K, ONE, T, LDT, WORK, LDWORK )
285
+ *
286
+ * C := C - V * W**T
287
+ *
288
+ IF( LASTV.GT.K ) THEN
289
+ *
290
+ * C2 := C2 - V2 * W**T
291
+ *
292
+ CALL DGEMM( 'No transpose', 'Transpose',
293
+ $ LASTV-K, LASTC, K,
294
+ $ -ONE, V( K+1, 1 ), LDV, WORK, LDWORK, ONE,
295
+ $ C( K+1, 1 ), LDC )
296
+ END IF
297
+ *
298
+ * W := W * V1**T
299
+ *
300
+ CALL DTRMM( 'Right', 'Lower', 'Transpose', 'Unit',
301
+ $ LASTC, K, ONE, V, LDV, WORK, LDWORK )
302
+ *
303
+ * C1 := C1 - W**T
304
+ *
305
+ DO 30 J = 1, K
306
+ DO 20 I = 1, LASTC
307
+ C( J, I ) = C( J, I ) - WORK( I, J )
308
+ 20 CONTINUE
309
+ 30 CONTINUE
310
+ *
311
+ ELSE IF( LSAME( SIDE, 'R' ) ) THEN
312
+ *
313
+ * Form C * H or C * H**T where C = ( C1 C2 )
314
+ *
315
+ LASTV = MAX( K, ILADLR( N, K, V, LDV ) )
316
+ LASTC = ILADLR( M, LASTV, C, LDC )
317
+ *
318
+ * W := C * V = (C1*V1 + C2*V2) (stored in WORK)
319
+ *
320
+ * W := C1
321
+ *
322
+ DO 40 J = 1, K
323
+ CALL DCOPY( LASTC, C( 1, J ), 1, WORK( 1, J ), 1 )
324
+ 40 CONTINUE
325
+ *
326
+ * W := W * V1
327
+ *
328
+ CALL DTRMM( 'Right', 'Lower', 'No transpose', 'Unit',
329
+ $ LASTC, K, ONE, V, LDV, WORK, LDWORK )
330
+ IF( LASTV.GT.K ) THEN
331
+ *
332
+ * W := W + C2 * V2
333
+ *
334
+ CALL DGEMM( 'No transpose', 'No transpose',
335
+ $ LASTC, K, LASTV-K,
336
+ $ ONE, C( 1, K+1 ), LDC, V( K+1, 1 ), LDV,
337
+ $ ONE, WORK, LDWORK )
338
+ END IF
339
+ *
340
+ * W := W * T or W * T**T
341
+ *
342
+ CALL DTRMM( 'Right', 'Upper', TRANS, 'Non-unit',
343
+ $ LASTC, K, ONE, T, LDT, WORK, LDWORK )
344
+ *
345
+ * C := C - W * V**T
346
+ *
347
+ IF( LASTV.GT.K ) THEN
348
+ *
349
+ * C2 := C2 - W * V2**T
350
+ *
351
+ CALL DGEMM( 'No transpose', 'Transpose',
352
+ $ LASTC, LASTV-K, K,
353
+ $ -ONE, WORK, LDWORK, V( K+1, 1 ), LDV, ONE,
354
+ $ C( 1, K+1 ), LDC )
355
+ END IF
356
+ *
357
+ * W := W * V1**T
358
+ *
359
+ CALL DTRMM( 'Right', 'Lower', 'Transpose', 'Unit',
360
+ $ LASTC, K, ONE, V, LDV, WORK, LDWORK )
361
+ *
362
+ * C1 := C1 - W
363
+ *
364
+ DO 60 J = 1, K
365
+ DO 50 I = 1, LASTC
366
+ C( I, J ) = C( I, J ) - WORK( I, J )
367
+ 50 CONTINUE
368
+ 60 CONTINUE
369
+ END IF
370
+ *
371
+ ELSE
372
+ *
373
+ * Let V = ( V1 )
374
+ * ( V2 ) (last K rows)
375
+ * where V2 is unit upper triangular.
376
+ *
377
+ IF( LSAME( SIDE, 'L' ) ) THEN
378
+ *
379
+ * Form H * C or H**T * C where C = ( C1 )
380
+ * ( C2 )
381
+ *
382
+ LASTV = MAX( K, ILADLR( M, K, V, LDV ) )
383
+ LASTC = ILADLC( LASTV, N, C, LDC )
384
+ *
385
+ * W := C**T * V = (C1**T * V1 + C2**T * V2) (stored in WORK)
386
+ *
387
+ * W := C2**T
388
+ *
389
+ DO 70 J = 1, K
390
+ CALL DCOPY( LASTC, C( LASTV-K+J, 1 ), LDC,
391
+ $ WORK( 1, J ), 1 )
392
+ 70 CONTINUE
393
+ *
394
+ * W := W * V2
395
+ *
396
+ CALL DTRMM( 'Right', 'Upper', 'No transpose', 'Unit',
397
+ $ LASTC, K, ONE, V( LASTV-K+1, 1 ), LDV,
398
+ $ WORK, LDWORK )
399
+ IF( LASTV.GT.K ) THEN
400
+ *
401
+ * W := W + C1**T*V1
402
+ *
403
+ CALL DGEMM( 'Transpose', 'No transpose',
404
+ $ LASTC, K, LASTV-K, ONE, C, LDC, V, LDV,
405
+ $ ONE, WORK, LDWORK )
406
+ END IF
407
+ *
408
+ * W := W * T**T or W * T
409
+ *
410
+ CALL DTRMM( 'Right', 'Lower', TRANST, 'Non-unit',
411
+ $ LASTC, K, ONE, T, LDT, WORK, LDWORK )
412
+ *
413
+ * C := C - V * W**T
414
+ *
415
+ IF( LASTV.GT.K ) THEN
416
+ *
417
+ * C1 := C1 - V1 * W**T
418
+ *
419
+ CALL DGEMM( 'No transpose', 'Transpose',
420
+ $ LASTV-K, LASTC, K, -ONE, V, LDV, WORK, LDWORK,
421
+ $ ONE, C, LDC )
422
+ END IF
423
+ *
424
+ * W := W * V2**T
425
+ *
426
+ CALL DTRMM( 'Right', 'Upper', 'Transpose', 'Unit',
427
+ $ LASTC, K, ONE, V( LASTV-K+1, 1 ), LDV,
428
+ $ WORK, LDWORK )
429
+ *
430
+ * C2 := C2 - W**T
431
+ *
432
+ DO 90 J = 1, K
433
+ DO 80 I = 1, LASTC
434
+ C( LASTV-K+J, I ) = C( LASTV-K+J, I ) - WORK(I, J)
435
+ 80 CONTINUE
436
+ 90 CONTINUE
437
+ *
438
+ ELSE IF( LSAME( SIDE, 'R' ) ) THEN
439
+ *
440
+ * Form C * H or C * H**T where C = ( C1 C2 )
441
+ *
442
+ LASTV = MAX( K, ILADLR( N, K, V, LDV ) )
443
+ LASTC = ILADLR( M, LASTV, C, LDC )
444
+ *
445
+ * W := C * V = (C1*V1 + C2*V2) (stored in WORK)
446
+ *
447
+ * W := C2
448
+ *
449
+ DO 100 J = 1, K
450
+ CALL DCOPY( LASTC, C( 1, N-K+J ), 1, WORK( 1, J ), 1 )
451
+ 100 CONTINUE
452
+ *
453
+ * W := W * V2
454
+ *
455
+ CALL DTRMM( 'Right', 'Upper', 'No transpose', 'Unit',
456
+ $ LASTC, K, ONE, V( LASTV-K+1, 1 ), LDV,
457
+ $ WORK, LDWORK )
458
+ IF( LASTV.GT.K ) THEN
459
+ *
460
+ * W := W + C1 * V1
461
+ *
462
+ CALL DGEMM( 'No transpose', 'No transpose',
463
+ $ LASTC, K, LASTV-K, ONE, C, LDC, V, LDV,
464
+ $ ONE, WORK, LDWORK )
465
+ END IF
466
+ *
467
+ * W := W * T or W * T**T
468
+ *
469
+ CALL DTRMM( 'Right', 'Lower', TRANS, 'Non-unit',
470
+ $ LASTC, K, ONE, T, LDT, WORK, LDWORK )
471
+ *
472
+ * C := C - W * V**T
473
+ *
474
+ IF( LASTV.GT.K ) THEN
475
+ *
476
+ * C1 := C1 - W * V1**T
477
+ *
478
+ CALL DGEMM( 'No transpose', 'Transpose',
479
+ $ LASTC, LASTV-K, K, -ONE, WORK, LDWORK, V, LDV,
480
+ $ ONE, C, LDC )
481
+ END IF
482
+ *
483
+ * W := W * V2**T
484
+ *
485
+ CALL DTRMM( 'Right', 'Upper', 'Transpose', 'Unit',
486
+ $ LASTC, K, ONE, V( LASTV-K+1, 1 ), LDV,
487
+ $ WORK, LDWORK )
488
+ *
489
+ * C2 := C2 - W
490
+ *
491
+ DO 120 J = 1, K
492
+ DO 110 I = 1, LASTC
493
+ C( I, LASTV-K+J ) = C( I, LASTV-K+J ) - WORK(I, J)
494
+ 110 CONTINUE
495
+ 120 CONTINUE
496
+ END IF
497
+ END IF
498
+ *
499
+ ELSE IF( LSAME( STOREV, 'R' ) ) THEN
500
+ *
501
+ IF( LSAME( DIRECT, 'F' ) ) THEN
502
+ *
503
+ * Let V = ( V1 V2 ) (V1: first K columns)
504
+ * where V1 is unit upper triangular.
505
+ *
506
+ IF( LSAME( SIDE, 'L' ) ) THEN
507
+ *
508
+ * Form H * C or H**T * C where C = ( C1 )
509
+ * ( C2 )
510
+ *
511
+ LASTV = MAX( K, ILADLC( K, M, V, LDV ) )
512
+ LASTC = ILADLC( LASTV, N, C, LDC )
513
+ *
514
+ * W := C**T * V**T = (C1**T * V1**T + C2**T * V2**T) (stored in WORK)
515
+ *
516
+ * W := C1**T
517
+ *
518
+ DO 130 J = 1, K
519
+ CALL DCOPY( LASTC, C( J, 1 ), LDC, WORK( 1, J ), 1 )
520
+ 130 CONTINUE
521
+ *
522
+ * W := W * V1**T
523
+ *
524
+ CALL DTRMM( 'Right', 'Upper', 'Transpose', 'Unit',
525
+ $ LASTC, K, ONE, V, LDV, WORK, LDWORK )
526
+ IF( LASTV.GT.K ) THEN
527
+ *
528
+ * W := W + C2**T*V2**T
529
+ *
530
+ CALL DGEMM( 'Transpose', 'Transpose',
531
+ $ LASTC, K, LASTV-K,
532
+ $ ONE, C( K+1, 1 ), LDC, V( 1, K+1 ), LDV,
533
+ $ ONE, WORK, LDWORK )
534
+ END IF
535
+ *
536
+ * W := W * T**T or W * T
537
+ *
538
+ CALL DTRMM( 'Right', 'Upper', TRANST, 'Non-unit',
539
+ $ LASTC, K, ONE, T, LDT, WORK, LDWORK )
540
+ *
541
+ * C := C - V**T * W**T
542
+ *
543
+ IF( LASTV.GT.K ) THEN
544
+ *
545
+ * C2 := C2 - V2**T * W**T
546
+ *
547
+ CALL DGEMM( 'Transpose', 'Transpose',
548
+ $ LASTV-K, LASTC, K,
549
+ $ -ONE, V( 1, K+1 ), LDV, WORK, LDWORK,
550
+ $ ONE, C( K+1, 1 ), LDC )
551
+ END IF
552
+ *
553
+ * W := W * V1
554
+ *
555
+ CALL DTRMM( 'Right', 'Upper', 'No transpose', 'Unit',
556
+ $ LASTC, K, ONE, V, LDV, WORK, LDWORK )
557
+ *
558
+ * C1 := C1 - W**T
559
+ *
560
+ DO 150 J = 1, K
561
+ DO 140 I = 1, LASTC
562
+ C( J, I ) = C( J, I ) - WORK( I, J )
563
+ 140 CONTINUE
564
+ 150 CONTINUE
565
+ *
566
+ ELSE IF( LSAME( SIDE, 'R' ) ) THEN
567
+ *
568
+ * Form C * H or C * H**T where C = ( C1 C2 )
569
+ *
570
+ LASTV = MAX( K, ILADLC( K, N, V, LDV ) )
571
+ LASTC = ILADLR( M, LASTV, C, LDC )
572
+ *
573
+ * W := C * V**T = (C1*V1**T + C2*V2**T) (stored in WORK)
574
+ *
575
+ * W := C1
576
+ *
577
+ DO 160 J = 1, K
578
+ CALL DCOPY( LASTC, C( 1, J ), 1, WORK( 1, J ), 1 )
579
+ 160 CONTINUE
580
+ *
581
+ * W := W * V1**T
582
+ *
583
+ CALL DTRMM( 'Right', 'Upper', 'Transpose', 'Unit',
584
+ $ LASTC, K, ONE, V, LDV, WORK, LDWORK )
585
+ IF( LASTV.GT.K ) THEN
586
+ *
587
+ * W := W + C2 * V2**T
588
+ *
589
+ CALL DGEMM( 'No transpose', 'Transpose',
590
+ $ LASTC, K, LASTV-K,
591
+ $ ONE, C( 1, K+1 ), LDC, V( 1, K+1 ), LDV,
592
+ $ ONE, WORK, LDWORK )
593
+ END IF
594
+ *
595
+ * W := W * T or W * T**T
596
+ *
597
+ CALL DTRMM( 'Right', 'Upper', TRANS, 'Non-unit',
598
+ $ LASTC, K, ONE, T, LDT, WORK, LDWORK )
599
+ *
600
+ * C := C - W * V
601
+ *
602
+ IF( LASTV.GT.K ) THEN
603
+ *
604
+ * C2 := C2 - W * V2
605
+ *
606
+ CALL DGEMM( 'No transpose', 'No transpose',
607
+ $ LASTC, LASTV-K, K,
608
+ $ -ONE, WORK, LDWORK, V( 1, K+1 ), LDV,
609
+ $ ONE, C( 1, K+1 ), LDC )
610
+ END IF
611
+ *
612
+ * W := W * V1
613
+ *
614
+ CALL DTRMM( 'Right', 'Upper', 'No transpose', 'Unit',
615
+ $ LASTC, K, ONE, V, LDV, WORK, LDWORK )
616
+ *
617
+ * C1 := C1 - W
618
+ *
619
+ DO 180 J = 1, K
620
+ DO 170 I = 1, LASTC
621
+ C( I, J ) = C( I, J ) - WORK( I, J )
622
+ 170 CONTINUE
623
+ 180 CONTINUE
624
+ *
625
+ END IF
626
+ *
627
+ ELSE
628
+ *
629
+ * Let V = ( V1 V2 ) (V2: last K columns)
630
+ * where V2 is unit lower triangular.
631
+ *
632
+ IF( LSAME( SIDE, 'L' ) ) THEN
633
+ *
634
+ * Form H * C or H**T * C where C = ( C1 )
635
+ * ( C2 )
636
+ *
637
+ LASTV = MAX( K, ILADLC( K, M, V, LDV ) )
638
+ LASTC = ILADLC( LASTV, N, C, LDC )
639
+ *
640
+ * W := C**T * V**T = (C1**T * V1**T + C2**T * V2**T) (stored in WORK)
641
+ *
642
+ * W := C2**T
643
+ *
644
+ DO 190 J = 1, K
645
+ CALL DCOPY( LASTC, C( LASTV-K+J, 1 ), LDC,
646
+ $ WORK( 1, J ), 1 )
647
+ 190 CONTINUE
648
+ *
649
+ * W := W * V2**T
650
+ *
651
+ CALL DTRMM( 'Right', 'Lower', 'Transpose', 'Unit',
652
+ $ LASTC, K, ONE, V( 1, LASTV-K+1 ), LDV,
653
+ $ WORK, LDWORK )
654
+ IF( LASTV.GT.K ) THEN
655
+ *
656
+ * W := W + C1**T * V1**T
657
+ *
658
+ CALL DGEMM( 'Transpose', 'Transpose',
659
+ $ LASTC, K, LASTV-K, ONE, C, LDC, V, LDV,
660
+ $ ONE, WORK, LDWORK )
661
+ END IF
662
+ *
663
+ * W := W * T**T or W * T
664
+ *
665
+ CALL DTRMM( 'Right', 'Lower', TRANST, 'Non-unit',
666
+ $ LASTC, K, ONE, T, LDT, WORK, LDWORK )
667
+ *
668
+ * C := C - V**T * W**T
669
+ *
670
+ IF( LASTV.GT.K ) THEN
671
+ *
672
+ * C1 := C1 - V1**T * W**T
673
+ *
674
+ CALL DGEMM( 'Transpose', 'Transpose',
675
+ $ LASTV-K, LASTC, K, -ONE, V, LDV, WORK, LDWORK,
676
+ $ ONE, C, LDC )
677
+ END IF
678
+ *
679
+ * W := W * V2
680
+ *
681
+ CALL DTRMM( 'Right', 'Lower', 'No transpose', 'Unit',
682
+ $ LASTC, K, ONE, V( 1, LASTV-K+1 ), LDV,
683
+ $ WORK, LDWORK )
684
+ *
685
+ * C2 := C2 - W**T
686
+ *
687
+ DO 210 J = 1, K
688
+ DO 200 I = 1, LASTC
689
+ C( LASTV-K+J, I ) = C( LASTV-K+J, I ) - WORK(I, J)
690
+ 200 CONTINUE
691
+ 210 CONTINUE
692
+ *
693
+ ELSE IF( LSAME( SIDE, 'R' ) ) THEN
694
+ *
695
+ * Form C * H or C * H**T where C = ( C1 C2 )
696
+ *
697
+ LASTV = MAX( K, ILADLC( K, N, V, LDV ) )
698
+ LASTC = ILADLR( M, LASTV, C, LDC )
699
+ *
700
+ * W := C * V**T = (C1*V1**T + C2*V2**T) (stored in WORK)
701
+ *
702
+ * W := C2
703
+ *
704
+ DO 220 J = 1, K
705
+ CALL DCOPY( LASTC, C( 1, LASTV-K+J ), 1,
706
+ $ WORK( 1, J ), 1 )
707
+ 220 CONTINUE
708
+ *
709
+ * W := W * V2**T
710
+ *
711
+ CALL DTRMM( 'Right', 'Lower', 'Transpose', 'Unit',
712
+ $ LASTC, K, ONE, V( 1, LASTV-K+1 ), LDV,
713
+ $ WORK, LDWORK )
714
+ IF( LASTV.GT.K ) THEN
715
+ *
716
+ * W := W + C1 * V1**T
717
+ *
718
+ CALL DGEMM( 'No transpose', 'Transpose',
719
+ $ LASTC, K, LASTV-K, ONE, C, LDC, V, LDV,
720
+ $ ONE, WORK, LDWORK )
721
+ END IF
722
+ *
723
+ * W := W * T or W * T**T
724
+ *
725
+ CALL DTRMM( 'Right', 'Lower', TRANS, 'Non-unit',
726
+ $ LASTC, K, ONE, T, LDT, WORK, LDWORK )
727
+ *
728
+ * C := C - W * V
729
+ *
730
+ IF( LASTV.GT.K ) THEN
731
+ *
732
+ * C1 := C1 - W * V1
733
+ *
734
+ CALL DGEMM( 'No transpose', 'No transpose',
735
+ $ LASTC, LASTV-K, K, -ONE, WORK, LDWORK, V, LDV,
736
+ $ ONE, C, LDC )
737
+ END IF
738
+ *
739
+ * W := W * V2
740
+ *
741
+ CALL DTRMM( 'Right', 'Lower', 'No transpose', 'Unit',
742
+ $ LASTC, K, ONE, V( 1, LASTV-K+1 ), LDV,
743
+ $ WORK, LDWORK )
744
+ *
745
+ * C1 := C1 - W
746
+ *
747
+ DO 240 J = 1, K
748
+ DO 230 I = 1, LASTC
749
+ C( I, LASTV-K+J ) = C( I, LASTV-K+J ) - WORK(I, J)
750
+ 230 CONTINUE
751
+ 240 CONTINUE
752
+ *
753
+ END IF
754
+ *
755
+ END IF
756
+ END IF
757
+ *
758
+ RETURN
759
+ *
760
+ * End of DLARFB
761
+ *
762
+ END
include/eigen/lapack/dlarfg.f ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *> \brief \b DLARFG
2
+ *
3
+ * =========== DOCUMENTATION ===========
4
+ *
5
+ * Online html documentation available at
6
+ * http://www.netlib.org/lapack/explore-html/
7
+ *
8
+ *> \htmlonly
9
+ *> Download DLARFG + dependencies
10
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dlarfg.f">
11
+ *> [TGZ]</a>
12
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dlarfg.f">
13
+ *> [ZIP]</a>
14
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dlarfg.f">
15
+ *> [TXT]</a>
16
+ *> \endhtmlonly
17
+ *
18
+ * Definition:
19
+ * ===========
20
+ *
21
+ * SUBROUTINE DLARFG( N, ALPHA, X, INCX, TAU )
22
+ *
23
+ * .. Scalar Arguments ..
24
+ * INTEGER INCX, N
25
+ * DOUBLE PRECISION ALPHA, TAU
26
+ * ..
27
+ * .. Array Arguments ..
28
+ * DOUBLE PRECISION X( * )
29
+ * ..
30
+ *
31
+ *
32
+ *> \par Purpose:
33
+ * =============
34
+ *>
35
+ *> \verbatim
36
+ *>
37
+ *> DLARFG generates a real elementary reflector H of order n, such
38
+ *> that
39
+ *>
40
+ *> H * ( alpha ) = ( beta ), H**T * H = I.
41
+ *> ( x ) ( 0 )
42
+ *>
43
+ *> where alpha and beta are scalars, and x is an (n-1)-element real
44
+ *> vector. H is represented in the form
45
+ *>
46
+ *> H = I - tau * ( 1 ) * ( 1 v**T ) ,
47
+ *> ( v )
48
+ *>
49
+ *> where tau is a real scalar and v is a real (n-1)-element
50
+ *> vector.
51
+ *>
52
+ *> If the elements of x are all zero, then tau = 0 and H is taken to be
53
+ *> the unit matrix.
54
+ *>
55
+ *> Otherwise 1 <= tau <= 2.
56
+ *> \endverbatim
57
+ *
58
+ * Arguments:
59
+ * ==========
60
+ *
61
+ *> \param[in] N
62
+ *> \verbatim
63
+ *> N is INTEGER
64
+ *> The order of the elementary reflector.
65
+ *> \endverbatim
66
+ *>
67
+ *> \param[in,out] ALPHA
68
+ *> \verbatim
69
+ *> ALPHA is DOUBLE PRECISION
70
+ *> On entry, the value alpha.
71
+ *> On exit, it is overwritten with the value beta.
72
+ *> \endverbatim
73
+ *>
74
+ *> \param[in,out] X
75
+ *> \verbatim
76
+ *> X is DOUBLE PRECISION array, dimension
77
+ *> (1+(N-2)*abs(INCX))
78
+ *> On entry, the vector x.
79
+ *> On exit, it is overwritten with the vector v.
80
+ *> \endverbatim
81
+ *>
82
+ *> \param[in] INCX
83
+ *> \verbatim
84
+ *> INCX is INTEGER
85
+ *> The increment between elements of X. INCX > 0.
86
+ *> \endverbatim
87
+ *>
88
+ *> \param[out] TAU
89
+ *> \verbatim
90
+ *> TAU is DOUBLE PRECISION
91
+ *> The value tau.
92
+ *> \endverbatim
93
+ *
94
+ * Authors:
95
+ * ========
96
+ *
97
+ *> \author Univ. of Tennessee
98
+ *> \author Univ. of California Berkeley
99
+ *> \author Univ. of Colorado Denver
100
+ *> \author NAG Ltd.
101
+ *
102
+ *> \date November 2011
103
+ *
104
+ *> \ingroup doubleOTHERauxiliary
105
+ *
106
+ * =====================================================================
107
+ SUBROUTINE DLARFG( N, ALPHA, X, INCX, TAU )
108
+ *
109
+ * -- LAPACK auxiliary routine (version 3.4.0) --
110
+ * -- LAPACK is a software package provided by Univ. of Tennessee, --
111
+ * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
112
+ * November 2011
113
+ *
114
+ * .. Scalar Arguments ..
115
+ INTEGER INCX, N
116
+ DOUBLE PRECISION ALPHA, TAU
117
+ * ..
118
+ * .. Array Arguments ..
119
+ DOUBLE PRECISION X( * )
120
+ * ..
121
+ *
122
+ * =====================================================================
123
+ *
124
+ * .. Parameters ..
125
+ DOUBLE PRECISION ONE, ZERO
126
+ PARAMETER ( ONE = 1.0D+0, ZERO = 0.0D+0 )
127
+ * ..
128
+ * .. Local Scalars ..
129
+ INTEGER J, KNT
130
+ DOUBLE PRECISION BETA, RSAFMN, SAFMIN, XNORM
131
+ * ..
132
+ * .. External Functions ..
133
+ DOUBLE PRECISION DLAMCH, DLAPY2, DNRM2
134
+ EXTERNAL DLAMCH, DLAPY2, DNRM2
135
+ * ..
136
+ * .. Intrinsic Functions ..
137
+ INTRINSIC ABS, SIGN
138
+ * ..
139
+ * .. External Subroutines ..
140
+ EXTERNAL DSCAL
141
+ * ..
142
+ * .. Executable Statements ..
143
+ *
144
+ IF( N.LE.1 ) THEN
145
+ TAU = ZERO
146
+ RETURN
147
+ END IF
148
+ *
149
+ XNORM = DNRM2( N-1, X, INCX )
150
+ *
151
+ IF( XNORM.EQ.ZERO ) THEN
152
+ *
153
+ * H = I
154
+ *
155
+ TAU = ZERO
156
+ ELSE
157
+ *
158
+ * general case
159
+ *
160
+ BETA = -SIGN( DLAPY2( ALPHA, XNORM ), ALPHA )
161
+ SAFMIN = DLAMCH( 'S' ) / DLAMCH( 'E' )
162
+ KNT = 0
163
+ IF( ABS( BETA ).LT.SAFMIN ) THEN
164
+ *
165
+ * XNORM, BETA may be inaccurate; scale X and recompute them
166
+ *
167
+ RSAFMN = ONE / SAFMIN
168
+ 10 CONTINUE
169
+ KNT = KNT + 1
170
+ CALL DSCAL( N-1, RSAFMN, X, INCX )
171
+ BETA = BETA*RSAFMN
172
+ ALPHA = ALPHA*RSAFMN
173
+ IF( ABS( BETA ).LT.SAFMIN )
174
+ $ GO TO 10
175
+ *
176
+ * New BETA is at most 1, at least SAFMIN
177
+ *
178
+ XNORM = DNRM2( N-1, X, INCX )
179
+ BETA = -SIGN( DLAPY2( ALPHA, XNORM ), ALPHA )
180
+ END IF
181
+ TAU = ( BETA-ALPHA ) / BETA
182
+ CALL DSCAL( N-1, ONE / ( ALPHA-BETA ), X, INCX )
183
+ *
184
+ * If ALPHA is subnormal, it may lose relative accuracy
185
+ *
186
+ DO 20 J = 1, KNT
187
+ BETA = BETA*SAFMIN
188
+ 20 CONTINUE
189
+ ALPHA = BETA
190
+ END IF
191
+ *
192
+ RETURN
193
+ *
194
+ * End of DLARFG
195
+ *
196
+ END
include/eigen/lapack/dlarft.f ADDED
@@ -0,0 +1,326 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *> \brief \b DLARFT
2
+ *
3
+ * =========== DOCUMENTATION ===========
4
+ *
5
+ * Online html documentation available at
6
+ * http://www.netlib.org/lapack/explore-html/
7
+ *
8
+ *> \htmlonly
9
+ *> Download DLARFT + dependencies
10
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dlarft.f">
11
+ *> [TGZ]</a>
12
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dlarft.f">
13
+ *> [ZIP]</a>
14
+ *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dlarft.f">
15
+ *> [TXT]</a>
16
+ *> \endhtmlonly
17
+ *
18
+ * Definition:
19
+ * ===========
20
+ *
21
+ * SUBROUTINE DLARFT( DIRECT, STOREV, N, K, V, LDV, TAU, T, LDT )
22
+ *
23
+ * .. Scalar Arguments ..
24
+ * CHARACTER DIRECT, STOREV
25
+ * INTEGER K, LDT, LDV, N
26
+ * ..
27
+ * .. Array Arguments ..
28
+ * DOUBLE PRECISION T( LDT, * ), TAU( * ), V( LDV, * )
29
+ * ..
30
+ *
31
+ *
32
+ *> \par Purpose:
33
+ * =============
34
+ *>
35
+ *> \verbatim
36
+ *>
37
+ *> DLARFT forms the triangular factor T of a real block reflector H
38
+ *> of order n, which is defined as a product of k elementary reflectors.
39
+ *>
40
+ *> If DIRECT = 'F', H = H(1) H(2) . . . H(k) and T is upper triangular;
41
+ *>
42
+ *> If DIRECT = 'B', H = H(k) . . . H(2) H(1) and T is lower triangular.
43
+ *>
44
+ *> If STOREV = 'C', the vector which defines the elementary reflector
45
+ *> H(i) is stored in the i-th column of the array V, and
46
+ *>
47
+ *> H = I - V * T * V**T
48
+ *>
49
+ *> If STOREV = 'R', the vector which defines the elementary reflector
50
+ *> H(i) is stored in the i-th row of the array V, and
51
+ *>
52
+ *> H = I - V**T * T * V
53
+ *> \endverbatim
54
+ *
55
+ * Arguments:
56
+ * ==========
57
+ *
58
+ *> \param[in] DIRECT
59
+ *> \verbatim
60
+ *> DIRECT is CHARACTER*1
61
+ *> Specifies the order in which the elementary reflectors are
62
+ *> multiplied to form the block reflector:
63
+ *> = 'F': H = H(1) H(2) . . . H(k) (Forward)
64
+ *> = 'B': H = H(k) . . . H(2) H(1) (Backward)
65
+ *> \endverbatim
66
+ *>
67
+ *> \param[in] STOREV
68
+ *> \verbatim
69
+ *> STOREV is CHARACTER*1
70
+ *> Specifies how the vectors which define the elementary
71
+ *> reflectors are stored (see also Further Details):
72
+ *> = 'C': columnwise
73
+ *> = 'R': rowwise
74
+ *> \endverbatim
75
+ *>
76
+ *> \param[in] N
77
+ *> \verbatim
78
+ *> N is INTEGER
79
+ *> The order of the block reflector H. N >= 0.
80
+ *> \endverbatim
81
+ *>
82
+ *> \param[in] K
83
+ *> \verbatim
84
+ *> K is INTEGER
85
+ *> The order of the triangular factor T (= the number of
86
+ *> elementary reflectors). K >= 1.
87
+ *> \endverbatim
88
+ *>
89
+ *> \param[in] V
90
+ *> \verbatim
91
+ *> V is DOUBLE PRECISION array, dimension
92
+ *> (LDV,K) if STOREV = 'C'
93
+ *> (LDV,N) if STOREV = 'R'
94
+ *> The matrix V. See further details.
95
+ *> \endverbatim
96
+ *>
97
+ *> \param[in] LDV
98
+ *> \verbatim
99
+ *> LDV is INTEGER
100
+ *> The leading dimension of the array V.
101
+ *> If STOREV = 'C', LDV >= max(1,N); if STOREV = 'R', LDV >= K.
102
+ *> \endverbatim
103
+ *>
104
+ *> \param[in] TAU
105
+ *> \verbatim
106
+ *> TAU is DOUBLE PRECISION array, dimension (K)
107
+ *> TAU(i) must contain the scalar factor of the elementary
108
+ *> reflector H(i).
109
+ *> \endverbatim
110
+ *>
111
+ *> \param[out] T
112
+ *> \verbatim
113
+ *> T is DOUBLE PRECISION array, dimension (LDT,K)
114
+ *> The k by k triangular factor T of the block reflector.
115
+ *> If DIRECT = 'F', T is upper triangular; if DIRECT = 'B', T is
116
+ *> lower triangular. The rest of the array is not used.
117
+ *> \endverbatim
118
+ *>
119
+ *> \param[in] LDT
120
+ *> \verbatim
121
+ *> LDT is INTEGER
122
+ *> The leading dimension of the array T. LDT >= K.
123
+ *> \endverbatim
124
+ *
125
+ * Authors:
126
+ * ========
127
+ *
128
+ *> \author Univ. of Tennessee
129
+ *> \author Univ. of California Berkeley
130
+ *> \author Univ. of Colorado Denver
131
+ *> \author NAG Ltd.
132
+ *
133
+ *> \date April 2012
134
+ *
135
+ *> \ingroup doubleOTHERauxiliary
136
+ *
137
+ *> \par Further Details:
138
+ * =====================
139
+ *>
140
+ *> \verbatim
141
+ *>
142
+ *> The shape of the matrix V and the storage of the vectors which define
143
+ *> the H(i) is best illustrated by the following example with n = 5 and
144
+ *> k = 3. The elements equal to 1 are not stored.
145
+ *>
146
+ *> DIRECT = 'F' and STOREV = 'C': DIRECT = 'F' and STOREV = 'R':
147
+ *>
148
+ *> V = ( 1 ) V = ( 1 v1 v1 v1 v1 )
149
+ *> ( v1 1 ) ( 1 v2 v2 v2 )
150
+ *> ( v1 v2 1 ) ( 1 v3 v3 )
151
+ *> ( v1 v2 v3 )
152
+ *> ( v1 v2 v3 )
153
+ *>
154
+ *> DIRECT = 'B' and STOREV = 'C': DIRECT = 'B' and STOREV = 'R':
155
+ *>
156
+ *> V = ( v1 v2 v3 ) V = ( v1 v1 1 )
157
+ *> ( v1 v2 v3 ) ( v2 v2 v2 1 )
158
+ *> ( 1 v2 v3 ) ( v3 v3 v3 v3 1 )
159
+ *> ( 1 v3 )
160
+ *> ( 1 )
161
+ *> \endverbatim
162
+ *>
163
+ * =====================================================================
164
+ SUBROUTINE DLARFT( DIRECT, STOREV, N, K, V, LDV, TAU, T, LDT )
165
+ *
166
+ * -- LAPACK auxiliary routine (version 3.4.1) --
167
+ * -- LAPACK is a software package provided by Univ. of Tennessee, --
168
+ * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
169
+ * April 2012
170
+ *
171
+ * .. Scalar Arguments ..
172
+ CHARACTER DIRECT, STOREV
173
+ INTEGER K, LDT, LDV, N
174
+ * ..
175
+ * .. Array Arguments ..
176
+ DOUBLE PRECISION T( LDT, * ), TAU( * ), V( LDV, * )
177
+ * ..
178
+ *
179
+ * =====================================================================
180
+ *
181
+ * .. Parameters ..
182
+ DOUBLE PRECISION ONE, ZERO
183
+ PARAMETER ( ONE = 1.0D+0, ZERO = 0.0D+0 )
184
+ * ..
185
+ * .. Local Scalars ..
186
+ INTEGER I, J, PREVLASTV, LASTV
187
+ * ..
188
+ * .. External Subroutines ..
189
+ EXTERNAL DGEMV, DTRMV
190
+ * ..
191
+ * .. External Functions ..
192
+ LOGICAL LSAME
193
+ EXTERNAL LSAME
194
+ * ..
195
+ * .. Executable Statements ..
196
+ *
197
+ * Quick return if possible
198
+ *
199
+ IF( N.EQ.0 )
200
+ $ RETURN
201
+ *
202
+ IF( LSAME( DIRECT, 'F' ) ) THEN
203
+ PREVLASTV = N
204
+ DO I = 1, K
205
+ PREVLASTV = MAX( I, PREVLASTV )
206
+ IF( TAU( I ).EQ.ZERO ) THEN
207
+ *
208
+ * H(i) = I
209
+ *
210
+ DO J = 1, I
211
+ T( J, I ) = ZERO
212
+ END DO
213
+ ELSE
214
+ *
215
+ * general case
216
+ *
217
+ IF( LSAME( STOREV, 'C' ) ) THEN
218
+ * Skip any trailing zeros.
219
+ DO LASTV = N, I+1, -1
220
+ IF( V( LASTV, I ).NE.ZERO ) EXIT
221
+ END DO
222
+ DO J = 1, I-1
223
+ T( J, I ) = -TAU( I ) * V( I , J )
224
+ END DO
225
+ J = MIN( LASTV, PREVLASTV )
226
+ *
227
+ * T(1:i-1,i) := - tau(i) * V(i:j,1:i-1)**T * V(i:j,i)
228
+ *
229
+ CALL DGEMV( 'Transpose', J-I, I-1, -TAU( I ),
230
+ $ V( I+1, 1 ), LDV, V( I+1, I ), 1, ONE,
231
+ $ T( 1, I ), 1 )
232
+ ELSE
233
+ * Skip any trailing zeros.
234
+ DO LASTV = N, I+1, -1
235
+ IF( V( I, LASTV ).NE.ZERO ) EXIT
236
+ END DO
237
+ DO J = 1, I-1
238
+ T( J, I ) = -TAU( I ) * V( J , I )
239
+ END DO
240
+ J = MIN( LASTV, PREVLASTV )
241
+ *
242
+ * T(1:i-1,i) := - tau(i) * V(1:i-1,i:j) * V(i,i:j)**T
243
+ *
244
+ CALL DGEMV( 'No transpose', I-1, J-I, -TAU( I ),
245
+ $ V( 1, I+1 ), LDV, V( I, I+1 ), LDV, ONE,
246
+ $ T( 1, I ), 1 )
247
+ END IF
248
+ *
249
+ * T(1:i-1,i) := T(1:i-1,1:i-1) * T(1:i-1,i)
250
+ *
251
+ CALL DTRMV( 'Upper', 'No transpose', 'Non-unit', I-1, T,
252
+ $ LDT, T( 1, I ), 1 )
253
+ T( I, I ) = TAU( I )
254
+ IF( I.GT.1 ) THEN
255
+ PREVLASTV = MAX( PREVLASTV, LASTV )
256
+ ELSE
257
+ PREVLASTV = LASTV
258
+ END IF
259
+ END IF
260
+ END DO
261
+ ELSE
262
+ PREVLASTV = 1
263
+ DO I = K, 1, -1
264
+ IF( TAU( I ).EQ.ZERO ) THEN
265
+ *
266
+ * H(i) = I
267
+ *
268
+ DO J = I, K
269
+ T( J, I ) = ZERO
270
+ END DO
271
+ ELSE
272
+ *
273
+ * general case
274
+ *
275
+ IF( I.LT.K ) THEN
276
+ IF( LSAME( STOREV, 'C' ) ) THEN
277
+ * Skip any leading zeros.
278
+ DO LASTV = 1, I-1
279
+ IF( V( LASTV, I ).NE.ZERO ) EXIT
280
+ END DO
281
+ DO J = I+1, K
282
+ T( J, I ) = -TAU( I ) * V( N-K+I , J )
283
+ END DO
284
+ J = MAX( LASTV, PREVLASTV )
285
+ *
286
+ * T(i+1:k,i) = -tau(i) * V(j:n-k+i,i+1:k)**T * V(j:n-k+i,i)
287
+ *
288
+ CALL DGEMV( 'Transpose', N-K+I-J, K-I, -TAU( I ),
289
+ $ V( J, I+1 ), LDV, V( J, I ), 1, ONE,
290
+ $ T( I+1, I ), 1 )
291
+ ELSE
292
+ * Skip any leading zeros.
293
+ DO LASTV = 1, I-1
294
+ IF( V( I, LASTV ).NE.ZERO ) EXIT
295
+ END DO
296
+ DO J = I+1, K
297
+ T( J, I ) = -TAU( I ) * V( J, N-K+I )
298
+ END DO
299
+ J = MAX( LASTV, PREVLASTV )
300
+ *
301
+ * T(i+1:k,i) = -tau(i) * V(i+1:k,j:n-k+i) * V(i,j:n-k+i)**T
302
+ *
303
+ CALL DGEMV( 'No transpose', K-I, N-K+I-J,
304
+ $ -TAU( I ), V( I+1, J ), LDV, V( I, J ), LDV,
305
+ $ ONE, T( I+1, I ), 1 )
306
+ END IF
307
+ *
308
+ * T(i+1:k,i) := T(i+1:k,i+1:k) * T(i+1:k,i)
309
+ *
310
+ CALL DTRMV( 'Lower', 'No transpose', 'Non-unit', K-I,
311
+ $ T( I+1, I+1 ), LDT, T( I+1, I ), 1 )
312
+ IF( I.GT.1 ) THEN
313
+ PREVLASTV = MIN( PREVLASTV, LASTV )
314
+ ELSE
315
+ PREVLASTV = LASTV
316
+ END IF
317
+ END IF
318
+ T( I, I ) = TAU( I )
319
+ END IF
320
+ END DO
321
+ END IF
322
+ RETURN
323
+ *
324
+ * End of DLARFT
325
+ *
326
+ END