Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- include/eigen/Eigen/CholeskyAdded+45
- include/eigen/Eigen/CholmodSupportAdded+48
- include/eigen/Eigen/CoreAdded+385
- include/eigen/Eigen/DenseAdded+7
- include/eigen/Eigen/EigenAdded+2
- include/eigen/Eigen/EigenvaluesAdded+60
- include/eigen/Eigen/GeometryAdded+59
- include/eigen/Eigen/HouseholderAdded+29
- include/eigen/Eigen/IterativeLinearSolversAdded+48
- include/eigen/Eigen/JacobiAdded+32
- include/eigen/Eigen/KLUSupportAdded+41
- include/eigen/Eigen/LUAdded+47
- include/eigen/Eigen/MetisSupportAdded+35
- include/eigen/Eigen/OrderingMethodsAdded+70
- include/eigen/Eigen/PaStiXSupportAdded+49
- include/eigen/Eigen/PardisoSupportAdded+35
- include/eigen/Eigen/QRAdded+50
- include/eigen/Eigen/QtAlignedMallocAdded+39
- include/eigen/Eigen/SPQRSupportAdded+34
- include/eigen/Eigen/SVDAdded+50
- include/eigen/Eigen/SparseAdded+34
- include/eigen/Eigen/SparseCholeskyAdded+37
- include/eigen/Eigen/SparseCoreAdded+69
- include/eigen/Eigen/SparseLUAdded+48
- include/eigen/Eigen/SparseQRAdded+36
- include/eigen/Eigen/StdDequeAdded+27
- include/eigen/Eigen/StdListAdded+26
- include/eigen/Eigen/StdVectorAdded+27
- include/eigen/Eigen/SuperLUSupportAdded+64
- include/eigen/Eigen/UmfPackSupportAdded+40
- include/eigen/ci/CTest2JUnit.xslAdded+120
- include/eigen/ci/README.mdAdded+12
- include/eigen/ci/build.linux.gitlab-ci.ymlAdded+334
- include/eigen/ci/build.windows.gitlab-ci.ymlAdded+116
- include/eigen/ci/checkformat.gitlab-ci.ymlAdded+10
- include/eigen/ci/common.gitlab-ci.ymlAdded+40
- include/eigen/ci/deploy.gitlab-ci.ymlAdded+41
- include/eigen/ci/smoketests.gitlab-ci.ymlAdded+107
- include/eigen/ci/test.linux.gitlab-ci.ymlAdded+430
- include/eigen/ci/test.windows.gitlab-ci.ymlAdded+110
- include/eigen/demos/CMakeLists.txtAdded+13
- include/eigen/lapack/cholesky.cppAdded+72
- include/eigen/lapack/clacgv.fAdded+116
- include/eigen/lapack/cladiv.fAdded+97
- include/eigen/lapack/clarfg.fAdded+203
- include/eigen/lapack/complex_single.cppAdded+18
- include/eigen/lapack/dlapy3.fAdded+111
- include/eigen/lapack/dlarfb.fAdded+762
- include/eigen/lapack/dlarfg.fAdded+196
- include/eigen/lapack/dlarft.fAdded+326
123456789101112131415161718192021222324252627282930313233343536373839404142434445// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_CHOLESKY_MODULE_H#define EIGEN_CHOLESKY_MODULE_H
#include "Core"#include "Jacobi"
#include "src/Core/util/DisableStupidWarnings.h"
/** \defgroup Cholesky_Module Cholesky module * * * * This module provides two variants of the Cholesky decomposition for selfadjoint (hermitian) matrices. * Those decompositions are also accessible via the following methods: * - MatrixBase::llt() * - MatrixBase::ldlt() * - SelfAdjointView::llt() * - SelfAdjointView::ldlt() * * \code * #include <Eigen/Cholesky> * \endcode */
#include "src/Cholesky/LLT.h"#include "src/Cholesky/LDLT.h"#ifdef EIGEN_USE_LAPACKE#ifdef EIGEN_USE_MKL#include "mkl_lapacke.h"#else#include "src/misc/lapacke.h"#endif#include "src/Cholesky/LLT_LAPACKE.h"#endif
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_CHOLESKY_MODULE_H123456789101112131415161718192021222324252627282930313233343536373839404142434445464748// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_CHOLMODSUPPORT_MODULE_H#define EIGEN_CHOLMODSUPPORT_MODULE_H
#include "SparseCore"
#include "src/Core/util/DisableStupidWarnings.h"
extern "C" { #include <cholmod.h>}
/** \ingroup Support_modules * \defgroup CholmodSupport_Module CholmodSupport module * * This module provides an interface to the Cholmod library which is part of the <a href="http://www.suitesparse.com">suitesparse</a> package. * It provides the two following main factorization classes: * - class CholmodSupernodalLLT: a supernodal LLT Cholesky factorization. * - class CholmodDecomposition: a general L(D)LT Cholesky factorization with automatic or explicit runtime selection of the underlying factorization method (supernodal or simplicial). * * For the sake of completeness, this module also propose the two following classes: * - class CholmodSimplicialLLT * - class CholmodSimplicialLDLT * Note that these classes does not bring any particular advantage compared to the built-in * SimplicialLLT and SimplicialLDLT factorization classes. * * \code * #include <Eigen/CholmodSupport> * \endcode * * 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. * The dependencies depend on how cholmod has been compiled. * For a cmake based project, you can use our FindCholmod.cmake module to help you in this task. * */
#include "src/CholmodSupport/CholmodSupport.h"
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_CHOLMODSUPPORT_MODULE_H
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>// Copyright (C) 2007-2011 Benoit Jacob <jacob.benoit.1@gmail.com>//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_CORE_H#define EIGEN_CORE_H
// first thing Eigen does: stop the compiler from reporting useless warnings.#include "src/Core/util/DisableStupidWarnings.h"
// then include this file where all our macros are defined. It's really important to do it first because// it's where we do all the compiler/OS/arch detections and define most defaults.#include "src/Core/util/Macros.h"
// This detects SSE/AVX/NEON/etc. and configure alignment settings#include "src/Core/util/ConfigureVectorization.h"
// We need cuda_runtime.h/hip_runtime.h to ensure that// the EIGEN_USING_STD macro works properly on the device side#if defined(EIGEN_CUDACC) #include <cuda_runtime.h>#elif defined(EIGEN_HIPCC) #include <hip/hip_runtime.h>#endif
#ifdef EIGEN_EXCEPTIONS #include <new>#endif
// Disable the ipa-cp-clone optimization flag with MinGW 6.x or newer (enabled by default with -O3)// See http://eigen.tuxfamily.org/bz/show_bug.cgi?id=556 for details.#if EIGEN_COMP_MINGW && EIGEN_GNUC_AT_LEAST(4,6) && EIGEN_GNUC_AT_MOST(5,5) #pragma GCC optimize ("-fno-ipa-cp-clone")#endif
// Prevent ICC from specializing std::complex operators that silently fail// on device. This allows us to use our own device-compatible specializations// instead.#if defined(EIGEN_COMP_ICC) && defined(EIGEN_GPU_COMPILE_PHASE) \ && !defined(_OVERRIDE_COMPLEX_SPECIALIZATION_)#define _OVERRIDE_COMPLEX_SPECIALIZATION_ 1#endif#include <complex>
// this include file manages BLAS and MKL related macros// and inclusion of their respective header files#include "src/Core/util/MKL_support.h"
#if defined(EIGEN_HAS_CUDA_FP16) || defined(EIGEN_HAS_HIP_FP16) #define EIGEN_HAS_GPU_FP16#endif
#if defined(EIGEN_HAS_CUDA_BF16) || defined(EIGEN_HAS_HIP_BF16) #define EIGEN_HAS_GPU_BF16#endif
#if (defined _OPENMP) && (!defined EIGEN_DONT_PARALLELIZE) #define EIGEN_HAS_OPENMP#endif
#ifdef EIGEN_HAS_OPENMP#include <omp.h>#endif
// MSVC for windows mobile does not have the errno.h file#if !(EIGEN_COMP_MSVC && EIGEN_OS_WINCE) && !EIGEN_COMP_ARM#define EIGEN_HAS_ERRNO#endif
#ifdef EIGEN_HAS_ERRNO#include <cerrno>#endif#include <cstddef>#include <cstdlib>#include <cmath>#include <cassert>#include <functional>#ifndef EIGEN_NO_IO #include <sstream> #include <iosfwd>#endif#include <cstring>#include <string>#include <limits>#include <climits> // for CHAR_BIT// for min/max:#include <algorithm>
#if EIGEN_HAS_CXX11#include <array>#endif
// for std::is_nothrow_move_assignable#ifdef EIGEN_INCLUDE_TYPE_TRAITS#include <type_traits>#endif
// for outputting debug info#ifdef EIGEN_DEBUG_ASSIGN#include <iostream>#endif
// required for __cpuid, needs to be included after cmath// also required for _BitScanReverse on Windows on ARM#if EIGEN_COMP_MSVC && (EIGEN_ARCH_i386_OR_x86_64 || EIGEN_ARCH_ARM64) && !EIGEN_OS_WINCE #include <intrin.h>#endif
#if defined(EIGEN_USE_SYCL) #undef min #undef max #undef isnan #undef isinf #undef isfinite #include <CL/sycl.hpp> #include <map> #include <memory> #include <utility> #include <thread> #ifndef EIGEN_SYCL_LOCAL_THREAD_DIM0 #define EIGEN_SYCL_LOCAL_THREAD_DIM0 16 #endif #ifndef EIGEN_SYCL_LOCAL_THREAD_DIM1 #define EIGEN_SYCL_LOCAL_THREAD_DIM1 16 #endif#endif
#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// This will generate an error message:#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#endif
namespace Eigen {
// we use size_t frequently and we'll never remember to prepend it with std:: every time just to// ensure QNX/QCC supportusing std::size_t;// gcc 4.6.0 wants std:: for ptrdiff_tusing std::ptrdiff_t;
}
/** \defgroup Core_Module Core module * This is the main module of Eigen providing dense matrix and vector support * (both fixed and dynamic size) with all the features corresponding to a BLAS library * and much more... * * \code * #include <Eigen/Core> * \endcode */
#include "src/Core/util/Constants.h"#include "src/Core/util/Meta.h"#include "src/Core/util/ForwardDeclarations.h"#include "src/Core/util/StaticAssert.h"#include "src/Core/util/XprHelper.h"#include "src/Core/util/Memory.h"#include "src/Core/util/IntegralConstant.h"#include "src/Core/util/SymbolicIndex.h"
#include "src/Core/NumTraits.h"#include "src/Core/MathFunctions.h"#include "src/Core/GenericPacketMath.h"#include "src/Core/MathFunctionsImpl.h"#include "src/Core/arch/Default/ConjHelper.h"// Generic half float support#include "src/Core/arch/Default/Half.h"#include "src/Core/arch/Default/BFloat16.h"#include "src/Core/arch/Default/TypeCasting.h"#include "src/Core/arch/Default/GenericPacketMathFunctionsFwd.h"
#if defined EIGEN_VECTORIZE_AVX512 #include "src/Core/arch/SSE/PacketMath.h" #include "src/Core/arch/SSE/TypeCasting.h" #include "src/Core/arch/SSE/Complex.h" #include "src/Core/arch/AVX/PacketMath.h" #include "src/Core/arch/AVX/TypeCasting.h" #include "src/Core/arch/AVX/Complex.h" #include "src/Core/arch/AVX512/PacketMath.h" #include "src/Core/arch/AVX512/TypeCasting.h" #include "src/Core/arch/AVX512/Complex.h" #include "src/Core/arch/SSE/MathFunctions.h" #include "src/Core/arch/AVX/MathFunctions.h" #include "src/Core/arch/AVX512/MathFunctions.h"#elif defined EIGEN_VECTORIZE_AVX // Use AVX for floats and doubles, SSE for integers #include "src/Core/arch/SSE/PacketMath.h" #include "src/Core/arch/SSE/TypeCasting.h" #include "src/Core/arch/SSE/Complex.h" #include "src/Core/arch/AVX/PacketMath.h" #include "src/Core/arch/AVX/TypeCasting.h" #include "src/Core/arch/AVX/Complex.h" #include "src/Core/arch/SSE/MathFunctions.h" #include "src/Core/arch/AVX/MathFunctions.h"#elif defined EIGEN_VECTORIZE_SSE #include "src/Core/arch/SSE/PacketMath.h" #include "src/Core/arch/SSE/TypeCasting.h" #include "src/Core/arch/SSE/MathFunctions.h" #include "src/Core/arch/SSE/Complex.h"#elif defined(EIGEN_VECTORIZE_ALTIVEC) || defined(EIGEN_VECTORIZE_VSX) #include "src/Core/arch/AltiVec/PacketMath.h" #include "src/Core/arch/AltiVec/MathFunctions.h" #include "src/Core/arch/AltiVec/Complex.h"#elif defined EIGEN_VECTORIZE_NEON #include "src/Core/arch/NEON/PacketMath.h" #include "src/Core/arch/NEON/TypeCasting.h" #include "src/Core/arch/NEON/MathFunctions.h" #include "src/Core/arch/NEON/Complex.h"#elif defined EIGEN_VECTORIZE_SVE #include "src/Core/arch/SVE/PacketMath.h" #include "src/Core/arch/SVE/TypeCasting.h" #include "src/Core/arch/SVE/MathFunctions.h"#elif defined EIGEN_VECTORIZE_ZVECTOR #include "src/Core/arch/ZVector/PacketMath.h" #include "src/Core/arch/ZVector/MathFunctions.h" #include "src/Core/arch/ZVector/Complex.h"#elif defined EIGEN_VECTORIZE_MSA #include "src/Core/arch/MSA/PacketMath.h" #include "src/Core/arch/MSA/MathFunctions.h" #include "src/Core/arch/MSA/Complex.h"#endif
#if defined EIGEN_VECTORIZE_GPU #include "src/Core/arch/GPU/PacketMath.h" #include "src/Core/arch/GPU/MathFunctions.h" #include "src/Core/arch/GPU/TypeCasting.h"#endif
#if defined(EIGEN_USE_SYCL) #include "src/Core/arch/SYCL/SyclMemoryModel.h" #include "src/Core/arch/SYCL/InteropHeaders.h"#if !defined(EIGEN_DONT_VECTORIZE_SYCL) #include "src/Core/arch/SYCL/PacketMath.h" #include "src/Core/arch/SYCL/MathFunctions.h" #include "src/Core/arch/SYCL/TypeCasting.h"#endif#endif
#include "src/Core/arch/Default/Settings.h"// This file provides generic implementations valid for scalar as well#include "src/Core/arch/Default/GenericPacketMathFunctions.h"
#include "src/Core/functors/TernaryFunctors.h"#include "src/Core/functors/BinaryFunctors.h"#include "src/Core/functors/UnaryFunctors.h"#include "src/Core/functors/NullaryFunctors.h"#include "src/Core/functors/StlFunctors.h"#include "src/Core/functors/AssignmentFunctors.h"
// Specialized functors to enable the processing of complex numbers// on CUDA devices#ifdef EIGEN_CUDACC#include "src/Core/arch/CUDA/Complex.h"#endif
#include "src/Core/util/IndexedViewHelper.h"#include "src/Core/util/ReshapedHelper.h"#include "src/Core/ArithmeticSequence.h"#ifndef EIGEN_NO_IO #include "src/Core/IO.h"#endif#include "src/Core/DenseCoeffsBase.h"#include "src/Core/DenseBase.h"#include "src/Core/MatrixBase.h"#include "src/Core/EigenBase.h"
#include "src/Core/Product.h"#include "src/Core/CoreEvaluators.h"#include "src/Core/AssignEvaluator.h"
#ifndef EIGEN_PARSED_BY_DOXYGEN // work around Doxygen bug triggered by Assign.h r814874 // at least confirmed with Doxygen 1.5.5 and 1.5.6 #include "src/Core/Assign.h"#endif
#include "src/Core/ArrayBase.h"#include "src/Core/util/BlasUtil.h"#include "src/Core/DenseStorage.h"#include "src/Core/NestByValue.h"
// #include "src/Core/ForceAlignedAccess.h"
#include "src/Core/ReturnByValue.h"#include "src/Core/NoAlias.h"#include "src/Core/PlainObjectBase.h"#include "src/Core/Matrix.h"#include "src/Core/Array.h"#include "src/Core/CwiseTernaryOp.h"#include "src/Core/CwiseBinaryOp.h"#include "src/Core/CwiseUnaryOp.h"#include "src/Core/CwiseNullaryOp.h"#include "src/Core/CwiseUnaryView.h"#include "src/Core/SelfCwiseBinaryOp.h"#include "src/Core/Dot.h"#include "src/Core/StableNorm.h"#include "src/Core/Stride.h"#include "src/Core/MapBase.h"#include "src/Core/Map.h"#include "src/Core/Ref.h"#include "src/Core/Block.h"#include "src/Core/VectorBlock.h"#include "src/Core/IndexedView.h"#include "src/Core/Reshaped.h"#include "src/Core/Transpose.h"#include "src/Core/DiagonalMatrix.h"#include "src/Core/Diagonal.h"#include "src/Core/DiagonalProduct.h"#include "src/Core/Redux.h"#include "src/Core/Visitor.h"#include "src/Core/Fuzzy.h"#include "src/Core/Swap.h"#include "src/Core/CommaInitializer.h"#include "src/Core/GeneralProduct.h"#include "src/Core/Solve.h"#include "src/Core/Inverse.h"#include "src/Core/SolverBase.h"#include "src/Core/PermutationMatrix.h"#include "src/Core/Transpositions.h"#include "src/Core/TriangularMatrix.h"#include "src/Core/SelfAdjointView.h"#include "src/Core/products/GeneralBlockPanelKernel.h"#include "src/Core/products/Parallelizer.h"#include "src/Core/ProductEvaluators.h"#include "src/Core/products/GeneralMatrixVector.h"#include "src/Core/products/GeneralMatrixMatrix.h"#include "src/Core/SolveTriangular.h"#include "src/Core/products/GeneralMatrixMatrixTriangular.h"#include "src/Core/products/SelfadjointMatrixVector.h"#include "src/Core/products/SelfadjointMatrixMatrix.h"#include "src/Core/products/SelfadjointProduct.h"#include "src/Core/products/SelfadjointRank2Update.h"#include "src/Core/products/TriangularMatrixVector.h"#include "src/Core/products/TriangularMatrixMatrix.h"#include "src/Core/products/TriangularSolverMatrix.h"#include "src/Core/products/TriangularSolverVector.h"#include "src/Core/BandMatrix.h"#include "src/Core/CoreIterators.h"#include "src/Core/ConditionEstimator.h"
#if defined(EIGEN_VECTORIZE_VSX) #include "src/Core/arch/AltiVec/MatrixProduct.h"#elif defined EIGEN_VECTORIZE_NEON #include "src/Core/arch/NEON/GeneralBlockPanelKernel.h"#endif
#include "src/Core/BooleanRedux.h"#include "src/Core/Select.h"#include "src/Core/VectorwiseOp.h"#include "src/Core/PartialReduxEvaluator.h"#include "src/Core/Random.h"#include "src/Core/Replicate.h"#include "src/Core/Reverse.h"#include "src/Core/ArrayWrapper.h"#include "src/Core/StlIterators.h"
#ifdef EIGEN_USE_BLAS#include "src/Core/products/GeneralMatrixMatrix_BLAS.h"#include "src/Core/products/GeneralMatrixVector_BLAS.h"#include "src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h"#include "src/Core/products/SelfadjointMatrixMatrix_BLAS.h"#include "src/Core/products/SelfadjointMatrixVector_BLAS.h"#include "src/Core/products/TriangularMatrixMatrix_BLAS.h"#include "src/Core/products/TriangularMatrixVector_BLAS.h"#include "src/Core/products/TriangularSolverMatrix_BLAS.h"#endif // EIGEN_USE_BLAS
#ifdef EIGEN_USE_MKL_VML#include "src/Core/Assign_MKL.h"#endif
#include "src/Core/GlobalFunctions.h"
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_CORE_H1234567#include "Core"#include "LU"#include "Cholesky"#include "QR"#include "SVD"#include "Geometry"#include "Eigenvalues"12#include "Dense"#include "Sparse"123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_EIGENVALUES_MODULE_H#define EIGEN_EIGENVALUES_MODULE_H
#include "Core"
#include "Cholesky"#include "Jacobi"#include "Householder"#include "LU"#include "Geometry"
#include "src/Core/util/DisableStupidWarnings.h"
/** \defgroup Eigenvalues_Module Eigenvalues module * * * * This module mainly provides various eigenvalue solvers. * This module also provides some MatrixBase methods, including: * - MatrixBase::eigenvalues(), * - MatrixBase::operatorNorm() * * \code * #include <Eigen/Eigenvalues> * \endcode */
#include "src/misc/RealSvd2x2.h"#include "src/Eigenvalues/Tridiagonalization.h"#include "src/Eigenvalues/RealSchur.h"#include "src/Eigenvalues/EigenSolver.h"#include "src/Eigenvalues/SelfAdjointEigenSolver.h"#include "src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h"#include "src/Eigenvalues/HessenbergDecomposition.h"#include "src/Eigenvalues/ComplexSchur.h"#include "src/Eigenvalues/ComplexEigenSolver.h"#include "src/Eigenvalues/RealQZ.h"#include "src/Eigenvalues/GeneralizedEigenSolver.h"#include "src/Eigenvalues/MatrixBaseEigenvalues.h"#ifdef EIGEN_USE_LAPACKE#ifdef EIGEN_USE_MKL#include "mkl_lapacke.h"#else#include "src/misc/lapacke.h"#endif#include "src/Eigenvalues/RealSchur_LAPACKE.h"#include "src/Eigenvalues/ComplexSchur_LAPACKE.h"#include "src/Eigenvalues/SelfAdjointEigenSolver_LAPACKE.h"#endif
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_EIGENVALUES_MODULE_H1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_GEOMETRY_MODULE_H#define EIGEN_GEOMETRY_MODULE_H
#include "Core"
#include "SVD"#include "LU"#include <limits>
#include "src/Core/util/DisableStupidWarnings.h"
/** \defgroup Geometry_Module Geometry module * * This module provides support for: * - fixed-size homogeneous transformations * - translation, scaling, 2D and 3D rotations * - \link Quaternion quaternions \endlink * - cross products (\ref MatrixBase::cross, \ref MatrixBase::cross3) * - orthognal vector generation (\ref MatrixBase::unitOrthogonal) * - some linear components: \link ParametrizedLine parametrized-lines \endlink and \link Hyperplane hyperplanes \endlink * - \link AlignedBox axis aligned bounding boxes \endlink * - \link umeyama least-square transformation fitting \endlink * * \code * #include <Eigen/Geometry> * \endcode */
#include "src/Geometry/OrthoMethods.h"#include "src/Geometry/EulerAngles.h"
#include "src/Geometry/Homogeneous.h"#include "src/Geometry/RotationBase.h"#include "src/Geometry/Rotation2D.h"#include "src/Geometry/Quaternion.h"#include "src/Geometry/AngleAxis.h"#include "src/Geometry/Transform.h"#include "src/Geometry/Translation.h"#include "src/Geometry/Scaling.h"#include "src/Geometry/Hyperplane.h"#include "src/Geometry/ParametrizedLine.h"#include "src/Geometry/AlignedBox.h"#include "src/Geometry/Umeyama.h"
// Use the SSE optimized version whenever possible.#if (defined EIGEN_VECTORIZE_SSE) || (defined EIGEN_VECTORIZE_NEON)#include "src/Geometry/arch/Geometry_SIMD.h"#endif
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_GEOMETRY_MODULE_H1234567891011121314151617181920212223242526272829// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_HOUSEHOLDER_MODULE_H#define EIGEN_HOUSEHOLDER_MODULE_H
#include "Core"
#include "src/Core/util/DisableStupidWarnings.h"
/** \defgroup Householder_Module Householder module * This module provides Householder transformations. * * \code * #include <Eigen/Householder> * \endcode */
#include "src/Householder/Householder.h"#include "src/Householder/HouseholderSequence.h"#include "src/Householder/BlockHouseholder.h"
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_HOUSEHOLDER_MODULE_H123456789101112131415161718192021222324252627282930313233343536373839404142434445464748// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_ITERATIVELINEARSOLVERS_MODULE_H#define EIGEN_ITERATIVELINEARSOLVERS_MODULE_H
#include "SparseCore"#include "OrderingMethods"
#include "src/Core/util/DisableStupidWarnings.h"
/** * \defgroup IterativeLinearSolvers_Module IterativeLinearSolvers module * * 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. * Those solvers are accessible via the following classes: * - ConjugateGradient for selfadjoint (hermitian) matrices, * - LeastSquaresConjugateGradient for rectangular least-square problems, * - BiCGSTAB for general square matrices. * * These iterative solvers are associated with some preconditioners: * - IdentityPreconditioner - not really useful * - DiagonalPreconditioner - also called Jacobi preconditioner, work very well on diagonal dominant matrices. * - IncompleteLUT - incomplete LU factorization with dual thresholding * * Such problems can also be solved using the direct sparse decomposition modules: SparseCholesky, CholmodSupport, UmfPackSupport, SuperLUSupport. * \code #include <Eigen/IterativeLinearSolvers> \endcode */
#include "src/IterativeLinearSolvers/SolveWithGuess.h"#include "src/IterativeLinearSolvers/IterativeSolverBase.h"#include "src/IterativeLinearSolvers/BasicPreconditioners.h"#include "src/IterativeLinearSolvers/ConjugateGradient.h"#include "src/IterativeLinearSolvers/LeastSquareConjugateGradient.h"#include "src/IterativeLinearSolvers/BiCGSTAB.h"#include "src/IterativeLinearSolvers/IncompleteLUT.h"#include "src/IterativeLinearSolvers/IncompleteCholesky.h"
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_ITERATIVELINEARSOLVERS_MODULE_H1234567891011121314151617181920212223242526272829303132// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_JACOBI_MODULE_H#define EIGEN_JACOBI_MODULE_H
#include "Core"
#include "src/Core/util/DisableStupidWarnings.h"
/** \defgroup Jacobi_Module Jacobi module * This module provides Jacobi and Givens rotations. * * \code * #include <Eigen/Jacobi> * \endcode * * In addition to listed classes, it defines the two following MatrixBase methods to apply a Jacobi or Givens rotation: * - MatrixBase::applyOnTheLeft() * - MatrixBase::applyOnTheRight(). */
#include "src/Jacobi/Jacobi.h"
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_JACOBI_MODULE_H
1234567891011121314151617181920212223242526272829303132333435363738394041// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_KLUSUPPORT_MODULE_H#define EIGEN_KLUSUPPORT_MODULE_H
#include <Eigen/SparseCore>
#include <Eigen/src/Core/util/DisableStupidWarnings.h>
extern "C" {#include <btf.h>#include <klu.h> }
/** \ingroup Support_modules * \defgroup KLUSupport_Module KLUSupport module * * This module provides an interface to the KLU library which is part of the <a href="http://www.suitesparse.com">suitesparse</a> package. * It provides the following factorization class: * - class KLU: a sparse LU factorization, well-suited for circuit simulation. * * \code * #include <Eigen/KLUSupport> * \endcode * * 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. * The dependencies depend on how umfpack has been compiled. * For a cmake based project, you can use our FindKLU.cmake module to help you in this task. * */
#include "src/KLUSupport/KLUSupport.h"
#include <Eigen/src/Core/util/ReenableStupidWarnings.h>
#endif // EIGEN_KLUSUPPORT_MODULE_H1234567891011121314151617181920212223242526272829303132333435363738394041424344454647// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_LU_MODULE_H#define EIGEN_LU_MODULE_H
#include "Core"
#include "src/Core/util/DisableStupidWarnings.h"
/** \defgroup LU_Module LU module * This module includes %LU decomposition and related notions such as matrix inversion and determinant. * This module defines the following MatrixBase methods: * - MatrixBase::inverse() * - MatrixBase::determinant() * * \code * #include <Eigen/LU> * \endcode */
#include "src/misc/Kernel.h"#include "src/misc/Image.h"#include "src/LU/FullPivLU.h"#include "src/LU/PartialPivLU.h"#ifdef EIGEN_USE_LAPACKE#ifdef EIGEN_USE_MKL#include "mkl_lapacke.h"#else#include "src/misc/lapacke.h"#endif#include "src/LU/PartialPivLU_LAPACKE.h"#endif#include "src/LU/Determinant.h"#include "src/LU/InverseImpl.h"
#if defined EIGEN_VECTORIZE_SSE || defined EIGEN_VECTORIZE_NEON #include "src/LU/arch/InverseSize4.h"#endif
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_LU_MODULE_H1234567891011121314151617181920212223242526272829303132333435// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_METISSUPPORT_MODULE_H#define EIGEN_METISSUPPORT_MODULE_H
#include "SparseCore"
#include "src/Core/util/DisableStupidWarnings.h"
extern "C" {#include <metis.h>}
/** \ingroup Support_modules * \defgroup MetisSupport_Module MetisSupport module * * \code * #include <Eigen/MetisSupport> * \endcode * This module defines an interface to the METIS reordering package (http://glaros.dtc.umn.edu/gkhome/views/metis). * It can be used just as any other built-in method as explained in \link OrderingMethods_Module here. \endlink */
#include "src/MetisSupport/MetisSupport.h"
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_METISSUPPORT_MODULE_H12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_ORDERINGMETHODS_MODULE_H#define EIGEN_ORDERINGMETHODS_MODULE_H
#include "SparseCore"
#include "src/Core/util/DisableStupidWarnings.h"
/** * \defgroup OrderingMethods_Module OrderingMethods module * * This module is currently for internal use only * * It defines various built-in and external ordering methods for sparse matrices. * They are typically used to reduce the number of elements during * the sparse matrix decomposition (LLT, LU, QR). * Precisely, in a preprocessing step, a permutation matrix P is computed using * those ordering methods and applied to the columns of the matrix. * Using for instance the sparse Cholesky decomposition, it is expected that * the nonzeros elements in LLT(A*P) will be much smaller than that in LLT(A). * * * Usage : * \code * #include <Eigen/OrderingMethods> * \endcode * * A simple usage is as a template parameter in the sparse decomposition classes : * * \code * SparseLU<MatrixType, COLAMDOrdering<int> > solver; * \endcode * * \code * SparseQR<MatrixType, COLAMDOrdering<int> > solver; * \endcode * * It is possible as well to call directly a particular ordering method for your own purpose, * \code * AMDOrdering<int> ordering; * PermutationMatrix<Dynamic, Dynamic, int> perm; * SparseMatrix<double> A; * //Fill the matrix ... * * ordering(A, perm); // Call AMD * \endcode * * \note Some of these methods (like AMD or METIS), need the sparsity pattern * of the input matrix to be symmetric. When the matrix is structurally unsymmetric, * Eigen computes internally the pattern of \f$A^T*A\f$ before calling the method. * If your matrix is already symmetric (at leat in structure), you can avoid that * by calling the method with a SelfAdjointView type. * * \code * // Call the ordering on the pattern of the lower triangular matrix A * ordering(A.selfadjointView<Lower>(), perm); * \endcode */
#include "src/OrderingMethods/Amd.h"#include "src/OrderingMethods/Ordering.h"#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_ORDERINGMETHODS_MODULE_H12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_PASTIXSUPPORT_MODULE_H#define EIGEN_PASTIXSUPPORT_MODULE_H
#include "SparseCore"
#include "src/Core/util/DisableStupidWarnings.h"
extern "C" {#include <pastix_nompi.h>#include <pastix.h>}
#ifdef complex#undef complex#endif
/** \ingroup Support_modules * \defgroup PaStiXSupport_Module PaStiXSupport module * * This module provides an interface to the <a href="http://pastix.gforge.inria.fr/">PaSTiX</a> library. * PaSTiX is a general \b supernodal, \b parallel and \b opensource sparse solver. * It provides the two following main factorization classes: * - class PastixLLT : a supernodal, parallel LLt Cholesky factorization. * - class PastixLDLT: a supernodal, parallel LDLt Cholesky factorization. * - class PastixLU : a supernodal, parallel LU factorization (optimized for a symmetric pattern). * * \code * #include <Eigen/PaStiXSupport> * \endcode * * 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. * This wrapper resuires PaStiX version 5.x compiled without MPI support. * The dependencies depend on how PaSTiX has been compiled. * For a cmake based project, you can use our FindPaSTiX.cmake module to help you in this task. * */
#include "src/PaStiXSupport/PaStiXSupport.h"
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_PASTIXSUPPORT_MODULE_H1234567891011121314151617181920212223242526272829303132333435// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_PARDISOSUPPORT_MODULE_H#define EIGEN_PARDISOSUPPORT_MODULE_H
#include "SparseCore"
#include "src/Core/util/DisableStupidWarnings.h"
#include <mkl_pardiso.h>
/** \ingroup Support_modules * \defgroup PardisoSupport_Module PardisoSupport module * * This module brings support for the Intel(R) MKL PARDISO direct sparse solvers. * * \code * #include <Eigen/PardisoSupport> * \endcode * * 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. * See this \ref TopicUsingIntelMKL "page" for more information on MKL-Eigen integration. * */
#include "src/PardisoSupport/PardisoSupport.h"
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_PARDISOSUPPORT_MODULE_H1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_QR_MODULE_H#define EIGEN_QR_MODULE_H
#include "Core"
#include "Cholesky"#include "Jacobi"#include "Householder"
#include "src/Core/util/DisableStupidWarnings.h"
/** \defgroup QR_Module QR module * * * * This module provides various QR decompositions * This module also provides some MatrixBase methods, including: * - MatrixBase::householderQr() * - MatrixBase::colPivHouseholderQr() * - MatrixBase::fullPivHouseholderQr() * * \code * #include <Eigen/QR> * \endcode */
#include "src/QR/HouseholderQR.h"#include "src/QR/FullPivHouseholderQR.h"#include "src/QR/ColPivHouseholderQR.h"#include "src/QR/CompleteOrthogonalDecomposition.h"#ifdef EIGEN_USE_LAPACKE#ifdef EIGEN_USE_MKL#include "mkl_lapacke.h"#else#include "src/misc/lapacke.h"#endif#include "src/QR/HouseholderQR_LAPACKE.h"#include "src/QR/ColPivHouseholderQR_LAPACKE.h"#endif
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_QR_MODULE_H123456789101112131415161718192021222324252627282930313233343536373839// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_QTMALLOC_MODULE_H#define EIGEN_QTMALLOC_MODULE_H
#include "Core"
#if (!EIGEN_MALLOC_ALREADY_ALIGNED)
#include "src/Core/util/DisableStupidWarnings.h"
void *qMalloc(std::size_t size){ return Eigen::internal::aligned_malloc(size);}
void qFree(void *ptr){ Eigen::internal::aligned_free(ptr);}
void *qRealloc(void *ptr, std::size_t size){ void* newPtr = Eigen::internal::aligned_malloc(size); std::memcpy(newPtr, ptr, size); Eigen::internal::aligned_free(ptr); return newPtr;}
#include "src/Core/util/ReenableStupidWarnings.h"
#endif
#endif // EIGEN_QTMALLOC_MODULE_H12345678910111213141516171819202122232425262728293031323334// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_SPQRSUPPORT_MODULE_H#define EIGEN_SPQRSUPPORT_MODULE_H
#include "SparseCore"
#include "src/Core/util/DisableStupidWarnings.h"
#include "SuiteSparseQR.hpp"
/** \ingroup Support_modules * \defgroup SPQRSupport_Module SuiteSparseQR module * * This module provides an interface to the SPQR library, which is part of the <a href="http://www.suitesparse.com">suitesparse</a> package. * * \code * #include <Eigen/SPQRSupport> * \endcode * * 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,...). * For a cmake based project, you can use our FindSPQR.cmake and FindCholmod.Cmake modules * */
#include "src/CholmodSupport/CholmodSupport.h"#include "src/SPQRSupport/SuiteSparseQRSupport.h"
#endif1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_SVD_MODULE_H#define EIGEN_SVD_MODULE_H
#include "QR"#include "Householder"#include "Jacobi"
#include "src/Core/util/DisableStupidWarnings.h"
/** \defgroup SVD_Module SVD module * * * * This module provides SVD decomposition for matrices (both real and complex). * Two decomposition algorithms are provided: * - JacobiSVD implementing two-sided Jacobi iterations is numerically very accurate, fast for small matrices, but very slow for larger ones. * - BDCSVD implementing a recursive divide & conquer strategy on top of an upper-bidiagonalization which remains fast for large problems. * These decompositions are accessible via the respective classes and following MatrixBase methods: * - MatrixBase::jacobiSvd() * - MatrixBase::bdcSvd() * * \code * #include <Eigen/SVD> * \endcode */
#include "src/misc/RealSvd2x2.h"#include "src/SVD/UpperBidiagonalization.h"#include "src/SVD/SVDBase.h"#include "src/SVD/JacobiSVD.h"#include "src/SVD/BDCSVD.h"#if defined(EIGEN_USE_LAPACKE) && !defined(EIGEN_USE_LAPACKE_STRICT)#ifdef EIGEN_USE_MKL#include "mkl_lapacke.h"#else#include "src/misc/lapacke.h"#endif#include "src/SVD/JacobiSVD_LAPACKE.h"#endif
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_SVD_MODULE_H12345678910111213141516171819202122232425262728293031323334// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_SPARSE_MODULE_H#define EIGEN_SPARSE_MODULE_H
/** \defgroup Sparse_Module Sparse meta-module * * Meta-module including all related modules: * - \ref SparseCore_Module * - \ref OrderingMethods_Module * - \ref SparseCholesky_Module * - \ref SparseLU_Module * - \ref SparseQR_Module * - \ref IterativeLinearSolvers_Module * \code #include <Eigen/Sparse> \endcode */
#include "SparseCore"#include "OrderingMethods"#include "SparseCholesky"#include "SparseLU"#include "SparseQR"#include "IterativeLinearSolvers"
#endif // EIGEN_SPARSE_MODULE_H
12345678910111213141516171819202122232425262728293031323334353637// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// Copyright (C) 2008-2013 Gael Guennebaud <gael.guennebaud@inria.fr>//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_SPARSECHOLESKY_MODULE_H#define EIGEN_SPARSECHOLESKY_MODULE_H
#include "SparseCore"#include "OrderingMethods"
#include "src/Core/util/DisableStupidWarnings.h"
/** * \defgroup SparseCholesky_Module SparseCholesky module * * This module currently provides two variants of the direct sparse Cholesky decomposition for selfadjoint (hermitian) matrices. * Those decompositions are accessible via the following classes: * - SimplicialLLt, * - SimplicialLDLt * * Such problems can also be solved using the ConjugateGradient solver from the IterativeLinearSolvers module. * * \code * #include <Eigen/SparseCholesky> * \endcode */
#include "src/SparseCholesky/SimplicialCholesky.h"#include "src/SparseCholesky/SimplicialCholesky_impl.h"#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_SPARSECHOLESKY_MODULE_H123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_SPARSECORE_MODULE_H#define EIGEN_SPARSECORE_MODULE_H
#include "Core"
#include "src/Core/util/DisableStupidWarnings.h"
#include <vector>#include <map>#include <cstdlib>#include <cstring>#include <algorithm>
/** * \defgroup SparseCore_Module SparseCore module * * This module provides a sparse matrix representation, and basic associated matrix manipulations * and operations. * * See the \ref TutorialSparse "Sparse tutorial" * * \code * #include <Eigen/SparseCore> * \endcode * * This module depends on: Core. */
#include "src/SparseCore/SparseUtil.h"#include "src/SparseCore/SparseMatrixBase.h"#include "src/SparseCore/SparseAssign.h"#include "src/SparseCore/CompressedStorage.h"#include "src/SparseCore/AmbiVector.h"#include "src/SparseCore/SparseCompressedBase.h"#include "src/SparseCore/SparseMatrix.h"#include "src/SparseCore/SparseMap.h"#include "src/SparseCore/MappedSparseMatrix.h"#include "src/SparseCore/SparseVector.h"#include "src/SparseCore/SparseRef.h"#include "src/SparseCore/SparseCwiseUnaryOp.h"#include "src/SparseCore/SparseCwiseBinaryOp.h"#include "src/SparseCore/SparseTranspose.h"#include "src/SparseCore/SparseBlock.h"#include "src/SparseCore/SparseDot.h"#include "src/SparseCore/SparseRedux.h"#include "src/SparseCore/SparseView.h"#include "src/SparseCore/SparseDiagonalProduct.h"#include "src/SparseCore/ConservativeSparseSparseProduct.h"#include "src/SparseCore/SparseSparseProductWithPruning.h"#include "src/SparseCore/SparseProduct.h"#include "src/SparseCore/SparseDenseProduct.h"#include "src/SparseCore/SparseSelfAdjointView.h"#include "src/SparseCore/SparseTriangularView.h"#include "src/SparseCore/TriangularSolver.h"#include "src/SparseCore/SparsePermutation.h"#include "src/SparseCore/SparseFuzzy.h"#include "src/SparseCore/SparseSolverBase.h"
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_SPARSECORE_MODULE_H
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// Copyright (C) 2012 Désiré Nuentsa-Wakam <desire.nuentsa_wakam@inria.fr>// Copyright (C) 2012 Gael Guennebaud <gael.guennebaud@inria.fr>//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_SPARSELU_MODULE_H#define EIGEN_SPARSELU_MODULE_H
#include "SparseCore"
/** * \defgroup SparseLU_Module SparseLU module * This module defines a supernodal factorization of general sparse matrices. * The code is fully optimized for supernode-panel updates with specialized kernels. * Please, see the documentation of the SparseLU class for more details. */
// Ordering interface#include "OrderingMethods"
#include "src/Core/util/DisableStupidWarnings.h"
#include "src/SparseLU/SparseLU_Structs.h"#include "src/SparseLU/SparseLU_SupernodalMatrix.h"#include "src/SparseLU/SparseLUImpl.h"#include "src/SparseCore/SparseColEtree.h"#include "src/SparseLU/SparseLU_Memory.h"#include "src/SparseLU/SparseLU_heap_relax_snode.h"#include "src/SparseLU/SparseLU_relax_snode.h"#include "src/SparseLU/SparseLU_pivotL.h"#include "src/SparseLU/SparseLU_panel_dfs.h"#include "src/SparseLU/SparseLU_kernel_bmod.h"#include "src/SparseLU/SparseLU_panel_bmod.h"#include "src/SparseLU/SparseLU_column_dfs.h"#include "src/SparseLU/SparseLU_column_bmod.h"#include "src/SparseLU/SparseLU_copy_to_ucol.h"#include "src/SparseLU/SparseLU_pruneL.h"#include "src/SparseLU/SparseLU_Utils.h"#include "src/SparseLU/SparseLU.h"
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_SPARSELU_MODULE_H123456789101112131415161718192021222324252627282930313233343536// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_SPARSEQR_MODULE_H#define EIGEN_SPARSEQR_MODULE_H
#include "SparseCore"#include "OrderingMethods"#include "src/Core/util/DisableStupidWarnings.h"
/** \defgroup SparseQR_Module SparseQR module * \brief Provides QR decomposition for sparse matrices * * This module provides a simplicial version of the left-looking Sparse QR decomposition. * The columns of the input matrix should be reordered to limit the fill-in during the * decomposition. Built-in methods (COLAMD, AMD) or external methods (METIS) can be used to this end. * See the \link OrderingMethods_Module OrderingMethods\endlink module for the list * of built-in and external ordering methods. * * \code * #include <Eigen/SparseQR> * \endcode * * */
#include "src/SparseCore/SparseColEtree.h"#include "src/SparseQR/SparseQR.h"
#include "src/Core/util/ReenableStupidWarnings.h"
#endif123456789101112131415161718192021222324252627// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr>// Copyright (C) 2009 Hauke Heibel <hauke.heibel@googlemail.com>//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_STDDEQUE_MODULE_H#define EIGEN_STDDEQUE_MODULE_H
#include "Core"#include <deque>
#if EIGEN_COMP_MSVC && EIGEN_OS_WIN64 && (EIGEN_MAX_STATIC_ALIGN_BYTES<=16) /* MSVC auto aligns up to 16 bytes in 64 bit builds */
#define EIGEN_DEFINE_STL_DEQUE_SPECIALIZATION(...)
#else
#include "src/StlSupport/StdDeque.h"
#endif
#endif // EIGEN_STDDEQUE_MODULE_H1234567891011121314151617181920212223242526// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// Copyright (C) 2009 Hauke Heibel <hauke.heibel@googlemail.com>//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_STDLIST_MODULE_H#define EIGEN_STDLIST_MODULE_H
#include "Core"#include <list>
#if EIGEN_COMP_MSVC && EIGEN_OS_WIN64 && (EIGEN_MAX_STATIC_ALIGN_BYTES<=16) /* MSVC auto aligns up to 16 bytes in 64 bit builds */
#define EIGEN_DEFINE_STL_LIST_SPECIALIZATION(...)
#else
#include "src/StlSupport/StdList.h"
#endif
#endif // EIGEN_STDLIST_MODULE_H123456789101112131415161718192021222324252627// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr>// Copyright (C) 2009 Hauke Heibel <hauke.heibel@googlemail.com>//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_STDVECTOR_MODULE_H#define EIGEN_STDVECTOR_MODULE_H
#include "Core"#include <vector>
#if EIGEN_COMP_MSVC && EIGEN_OS_WIN64 && (EIGEN_MAX_STATIC_ALIGN_BYTES<=16) /* MSVC auto aligns up to 16 bytes in 64 bit builds */
#define EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(...)
#else
#include "src/StlSupport/StdVector.h"
#endif
#endif // EIGEN_STDVECTOR_MODULE_H12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_SUPERLUSUPPORT_MODULE_H#define EIGEN_SUPERLUSUPPORT_MODULE_H
#include "SparseCore"
#include "src/Core/util/DisableStupidWarnings.h"
#ifdef EMPTY#define EIGEN_EMPTY_WAS_ALREADY_DEFINED#endif
typedef int int_t;#include <slu_Cnames.h>#include <supermatrix.h>#include <slu_util.h>
// slu_util.h defines a preprocessor token named EMPTY which is really polluting,// so we remove it in favor of a SUPERLU_EMPTY token.// If EMPTY was already defined then we don't undef it.
#if defined(EIGEN_EMPTY_WAS_ALREADY_DEFINED)# undef EIGEN_EMPTY_WAS_ALREADY_DEFINED#elif defined(EMPTY)# undef EMPTY#endif
#define SUPERLU_EMPTY (-1)
namespace Eigen { struct SluMatrix; }
/** \ingroup Support_modules * \defgroup SuperLUSupport_Module SuperLUSupport module * * This module provides an interface to the <a href="http://crd-legacy.lbl.gov/~xiaoye/SuperLU/">SuperLU</a> library. * It provides the following factorization class: * - class SuperLU: a supernodal sequential LU factorization. * - class SuperILU: a supernodal sequential incomplete LU factorization (to be used as a preconditioner for iterative methods). * * \warning This wrapper requires at least versions 4.0 of SuperLU. The 3.x versions are not supported. * * \warning When including this module, you have to use SUPERLU_EMPTY instead of EMPTY which is no longer defined because it is too polluting. * * \code * #include <Eigen/SuperLUSupport> * \endcode * * 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. * The dependencies depend on how superlu has been compiled. * For a cmake based project, you can use our FindSuperLU.cmake module to help you in this task. * */
#include "src/SuperLUSupport/SuperLUSupport.h"
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_SUPERLUSUPPORT_MODULE_H12345678910111213141516171819202122232425262728293031323334353637383940// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef EIGEN_UMFPACKSUPPORT_MODULE_H#define EIGEN_UMFPACKSUPPORT_MODULE_H
#include "SparseCore"
#include "src/Core/util/DisableStupidWarnings.h"
extern "C" {#include <umfpack.h>}
/** \ingroup Support_modules * \defgroup UmfPackSupport_Module UmfPackSupport module * * This module provides an interface to the UmfPack library which is part of the <a href="http://www.suitesparse.com">suitesparse</a> package. * It provides the following factorization class: * - class UmfPackLU: a multifrontal sequential LU factorization. * * \code * #include <Eigen/UmfPackSupport> * \endcode * * 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. * The dependencies depend on how umfpack has been compiled. * For a cmake based project, you can use our FindUmfPack.cmake module to help you in this task. * */
#include "src/UmfPackSupport/UmfPackSupport.h"
#include "src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_UMFPACKSUPPORT_MODULE_H123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"><xsl:output method="xml" indent="yes"/> <xsl:template match="/Site"> <xsl:variable name="Name"><xsl:value-of select="@Name"/></xsl:variable> <xsl:variable name="Hostname"><xsl:value-of select="@Hostname"/></xsl:variable> <xsl:variable name="TestCount"><xsl:value-of select="count(//TestList/Test)"/> </xsl:variable> <xsl:variable name="ErrorCount"><xsl:value-of select="count(//TestList/Test[@Status='error'])"/> </xsl:variable> <xsl:variable name="FailureCount"><xsl:value-of select="count(//Testing/Test[@Status='failed'])"/> </xsl:variable> <testsuite name="{$Name}" hostname="{$Hostname}" errors="0" failures="{$FailureCount}" tests="{$TestCount}"> <xsl:variable name="BuildName"><xsl:value-of select="@BuildName"/></xsl:variable> <xsl:variable name="BuildStamp"><xsl:value-of select="@BuildStamp"/></xsl:variable> <xsl:variable name="Generator"><xsl:value-of select="@Generator"/></xsl:variable> <xsl:variable name="CompilerName"><xsl:value-of select="@CompilerName"/></xsl:variable> <xsl:variable name="OSName"><xsl:value-of select="@OSName"/></xsl:variable> <xsl:variable name="OSRelease"><xsl:value-of select="@OSRelease"/></xsl:variable> <xsl:variable name="OSVersion"><xsl:value-of select="@OSVersion"/></xsl:variable> <xsl:variable name="OSPlatform"><xsl:value-of select="@OSPlatform"/></xsl:variable> <xsl:variable name="Is64Bits"><xsl:value-of select="@Is64Bits"/></xsl:variable> <xsl:variable name="VendorString"><xsl:value-of select="@VendorString"/></xsl:variable> <xsl:variable name="VendorID"><xsl:value-of select="@VendorID"/></xsl:variable> <xsl:variable name="FamilyID"><xsl:value-of select="@FamilyID"/></xsl:variable> <xsl:variable name="ModelID"><xsl:value-of select="@ModelID"/></xsl:variable> <xsl:variable name="ProcessorCacheSize"><xsl:value-of select="@ProcessorCacheSize"/></xsl:variable> <xsl:variable name="NumberOfLogicalCPU"><xsl:value-of select="@NumberOfLogicalCPU"/></xsl:variable> <xsl:variable name="NumberOfPhysicalCPU"><xsl:value-of select="@NumberOfPhysicalCPU"/></xsl:variable> <xsl:variable name="TotalVirtualMemory"><xsl:value-of select="@TotalVirtualMemory"/></xsl:variable> <xsl:variable name="TotalPhysicalMemory"><xsl:value-of select="@TotalPhysicalMemory"/></xsl:variable> <xsl:variable name="LogicalProcessorsPerPhysical"><xsl:value-of select="@LogicalProcessorsPerPhysical"/></xsl:variable> <xsl:variable name="ProcessorClockFrequency"><xsl:value-of select="@ProcessorClockFrequency"/></xsl:variable> <properties> <property name="BuildName" value="{$BuildName}" /> <property name="BuildStamp" value="{$BuildStamp}" /> <property name="Name" value="{$Name}" /> <property name="Generator" value="{$Generator}" /> <property name="CompilerName" value="{$CompilerName}" /> <property name="OSName" value="{$OSName}" /> <property name="Hostname" value="{$Hostname}" /> <property name="OSRelease" value="{$OSRelease}" /> <property name="OSVersion" value="{$OSVersion}" /> <property name="OSPlatform" value="{$OSPlatform}" /> <property name="Is64Bits" value="{$Is64Bits}" /> <property name="VendorString" value="{$VendorString}" /> <property name="VendorID" value="{$VendorID}" /> <property name="FamilyID" value="{$FamilyID}" /> <property name="ModelID" value="{$ModelID}" /> <property name="ProcessorCacheSize" value="{$ProcessorCacheSize}" /> <property name="NumberOfLogicalCPU" value="{$NumberOfLogicalCPU}" /> <property name="NumberOfPhysicalCPU" value="{$NumberOfPhysicalCPU}" /> <property name="TotalVirtualMemory" value="{$TotalVirtualMemory}" /> <property name="TotalPhysicalMemory" value="{$TotalPhysicalMemory}" /> <property name="LogicalProcessorsPerPhysical" value="{$LogicalProcessorsPerPhysical}" /> <property name="ProcessorClockFrequency" value="{$ProcessorClockFrequency}" /> </properties> <xsl:apply-templates select="Testing/Test"/>
<system-out> BuildName: <xsl:value-of select="$BuildName" /> BuildStamp: <xsl:value-of select="$BuildStamp" /> Name: <xsl:value-of select="$Name" /> Generator: <xsl:value-of select="$Generator" /> CompilerName: <xsl:value-of select="$CompilerName" /> OSName: <xsl:value-of select="$OSName" /> Hostname: <xsl:value-of select="$Hostname" /> OSRelease: <xsl:value-of select="$OSRelease" /> OSVersion: <xsl:value-of select="$OSVersion" /> OSPlatform: <xsl:value-of select="$OSPlatform" /> Is64Bits: <xsl:value-of select="$Is64Bits" /> VendorString: <xsl:value-of select="$VendorString" /> VendorID: <xsl:value-of select="$VendorID" /> FamilyID: <xsl:value-of select="$FamilyID" /> ModelID: <xsl:value-of select="$ModelID" /> ProcessorCacheSize: <xsl:value-of select="$ProcessorCacheSize" /> NumberOfLogicalCPU: <xsl:value-of select="$NumberOfLogicalCPU" /> NumberOfPhysicalCPU: <xsl:value-of select="$NumberOfPhysicalCPU" /> TotalVirtualMemory: <xsl:value-of select="$TotalVirtualMemory" /> TotalPhysicalMemory: <xsl:value-of select="$TotalPhysicalMemory" /> LogicalProcessorsPerPhysical: <xsl:value-of select="$LogicalProcessorsPerPhysical" /> ProcessorClockFrequency: <xsl:value-of select="$ProcessorClockFrequency" /> </system-out> </testsuite> </xsl:template>
<xsl:template match="Testing/Test"> <xsl:variable name="testcasename"><xsl:value-of select= "Name"/></xsl:variable> <xsl:variable name="testclassname"><xsl:value-of select= " concat('this', substring(Path,2))"/></xsl:variable> <xsl:variable name="exectime"> <xsl:for-each select="Results/NamedMeasurement"> <xsl:if test="@name = 'Execution Time'"> <xsl:value-of select="."/> </xsl:if> </xsl:for-each> </xsl:variable>
<testcase name="{$testcasename}" classname="{$testclassname}" time="{$exectime}"> <xsl:if test="@Status = 'passed'"> </xsl:if> <xsl:if test="@Status = 'failed'"> <xsl:variable name="failtype"> <xsl:for-each select="Results/NamedMeasurement"> <xsl:if test="@name = 'Exit Code'"> <xsl:value-of select="."/> </xsl:if> </xsl:for-each> </xsl:variable> <xsl:variable name="failcode"> <xsl:for-each select="Results/NamedMeasurement"> <xsl:if test="@name = 'Exit Value'"> <xsl:value-of select="."/> </xsl:if> </xsl:for-each> </xsl:variable> <failure message="{$failtype} ({$failcode})"><xsl:value-of select="Results/Measurement/Value/text()" /></failure> </xsl:if> <xsl:if test="@Status = 'notrun'"> <skipped><xsl:value-of select="Results/Measurement/Value/text()" /></skipped> </xsl:if> </testcase> </xsl:template>
</xsl:stylesheet>123456789101112## Eigen CI infrastructure
Eigen's CI infrastructure uses three stages: 1. A `checkformat` stage to verify MRs satisfy proper formatting style, as defined by `clang-format`. 2. A `build` stage to build the unit-tests. 3. A `test` stage to run the unit-tests.
For merge requests, only a small subset of tests are built/run, and only on asmall subset of platforms. This is to reduce our overall testing infrastructureresource usage. In addition, we have nightly jobs that build and run the fullsuite of tests on most officially supported platforms.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334# Base configuration for linux cross-compilation..build:linux:cross: extends: .common:linux:cross stage: build variables: EIGEN_CI_BUILD_TARGET: buildtests script: - . ci/scripts/build.linux.script.sh tags: - saas-linux-2xlarge-amd64 rules: - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_NAMESPACE == "libeigen" - if: $CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_NAMESPACE == "libeigen" - if: $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_NAMESPACE == "libeigen" - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_PROJECT_NAMESPACE == "libeigen" && $CI_MERGE_REQUEST_LABELS =~ "/all-tests/" cache: key: "$CI_JOB_NAME_SLUG-$CI_COMMIT_REF_SLUG-BUILD" paths: - ${EIGEN_CI_BUILDDIR}/
######## x86-64 ################################################################
.build:linux:cross:x86-64: extends: .build:linux:cross variables: EIGEN_CI_TARGET_ARCH: x86_64 EIGEN_CI_CROSS_TARGET_TRIPLE: x86_64-linux-gnu
# GCC-6 (minimum on Ubuntu 18.04)build:linux:cross:x86-64:gcc-6:default: extends: .build:linux:cross:x86-64 image: ubuntu:18.04 variables: EIGEN_CI_C_COMPILER: gcc-6 EIGEN_CI_CXX_COMPILER: g++-6 EIGEN_CI_CROSS_INSTALL: g++-6-x86-64-linux-gnu EIGEN_CI_CROSS_C_COMPILER: x86_64-linux-gnu-gcc-6 EIGEN_CI_CROSS_CXX_COMPILER: x86_64-linux-gnu-g++-6
# GCC-10 (stable recent version)build:linux:cross:x86-64:gcc-10:default: extends: .build:linux:cross:x86-64 variables: EIGEN_CI_C_COMPILER: gcc-10 EIGEN_CI_CXX_COMPILER: g++-10 EIGEN_CI_CROSS_INSTALL: g++-10-x86-64-linux-gnu EIGEN_CI_CROSS_C_COMPILER: x86_64-linux-gnu-gcc-10 EIGEN_CI_CROSS_CXX_COMPILER: x86_64-linux-gnu-g++-10
build:linux:cross:x86-64:gcc-10:cxx03: extends: build:linux:cross:x86-64:gcc-10:default variables: EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_CXX11=off"
build:linux:cross:x86-64:gcc-10:avx: extends: build:linux:cross:x86-64:gcc-10:default variables: EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX=on"
build:linux:cross:x86-64:gcc-10:avx2: extends: build:linux:cross:x86-64:gcc-10:default variables: EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX2=on"
build:linux:cross:x86-64:gcc-10:avx512dq: extends: build:linux:cross:x86-64:gcc-10:default variables: EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX512DQ=on"
# Clang-6 (minimum on Ubuntu 20.04)build:linux:cross:x86-64:clang-6:default: extends: .build:linux:cross:x86-64 image: ubuntu:20.04 variables: EIGEN_CI_INSTALL: g++-8 clang-6.0 lld-6.0 EIGEN_CI_C_COMPILER: clang-6.0 EIGEN_CI_CXX_COMPILER: clang++-6.0 EIGEN_CI_CROSS_INSTALL: g++-8-x86-64-linux-gnu clang-6.0 lld-6.0 EIGEN_CI_ADDITIONAL_ARGS: -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=lld-6.0
# Clang-12 (stable recent version)build:linux:cross:x86-64:clang-12:default: extends: .build:linux:cross:x86-64 variables: EIGEN_CI_INSTALL: clang-12 EIGEN_CI_C_COMPILER: clang-12 EIGEN_CI_CXX_COMPILER: clang++-12 EIGEN_CI_CROSS_INSTALL: g++-10-x86-64-linux-gnu clang-12
build:linux:cross:x86-64:clang-12:avx: extends: build:linux:cross:x86-64:clang-12:default variables: EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX=on"
build:linux:cross:x86-64:clang-12:avx2: extends: build:linux:cross:x86-64:clang-12:default variables: EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX2=on"
build:linux:cross:x86-64:clang-12:avx512dq: extends: build:linux:cross:x86-64:clang-12:default variables: EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX512DQ=on"
build:linux:docs: extends: .build:linux:cross variables: EIGEN_CI_TARGET_ARCH: any EIGEN_CI_BUILD_TARGET: doc EIGEN_CI_INSTALL: ca-certificates clang flex python3 bison graphviz EIGEN_CI_C_COMPILER: clang EIGEN_CI_CXX_COMPILER: clang++ EIGEN_CI_BEFORE_SCRIPT: ". ci/scripts/build_and_install_doxygen.sh Release_1_13_2" rules: - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_NAMESPACE == "libeigen" - if: $CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_NAMESPACE == "libeigen" - if: $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_NAMESPACE == "libeigen" - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_PROJECT_NAMESPACE == "libeigen" && $CI_MERGE_REQUEST_LABELS =~ "/all-tests/"
# # Sanitizers (Disabled because ASAN hangs and MSAN requires instrumented libc++)# build:linux:cross:x86-64:clang-12:default:asan:# extends: build:linux:cross:x86-64:clang-12:default# variables:# EIGEN_CI_ADDITIONAL_ARGS:# -DEIGEN_TEST_CUSTOM_CXX_FLAGS=-fsanitize=address,undefined# -DEIGEN_TEST_CUSTOM_LINKER_FLAGS=-fsanitize=address,undefined
# build:linux:cross:x86-64:clang-12:default:msan:# extends: build:linux:cross:x86-64:clang-12:default# variables:# EIGEN_CI_ADDITIONAL_ARGS:# -DEIGEN_TEST_CUSTOM_CXX_FLAGS=-fsanitize=memory# -DEIGEN_TEST_CUSTOM_LINKER_FLAGS=-fsanitize=memory
######## CUDA ##################################################################
.build:linux:cuda: extends: .build:linux:cross:x86-64 variables: # Additional flags passed to the cuda compiler. EIGEN_CI_CUDA_CXX_FLAGS: "" # Compute architectures present in the GitLab CI runners. EIGEN_CI_CUDA_COMPUTE_ARCH: "50;75" EIGEN_CI_BUILD_TARGET: buildtests_gpu EIGEN_CI_TEST_CUDA_CLANG: "off" EIGEN_CI_ADDITIONAL_ARGS: -DEIGEN_TEST_CUDA=on -DEIGEN_CUDA_CXX_FLAGS=${EIGEN_CI_CUDA_CXX_FLAGS} -DEIGEN_CUDA_COMPUTE_ARCH=${EIGEN_CI_CUDA_COMPUTE_ARCH} -DEIGEN_TEST_CUDA_CLANG=${EIGEN_CI_TEST_CUDA_CLANG} tags: # Build on regular linux to limit GPU cost. - saas-linux-2xlarge-amd64
# NVidia no longer provides docker images < CUDA 11.0.3.# # GCC-7, CUDA-9.2# build:linux:cuda-9.2:gcc-7:# extends: .build:linux:cuda# image: nvidia/cuda:9.2-devel-ubuntu18.04# variables:# # cuda 9.2 doesn't support sm_75, so lower to 70.# EIGEN_CI_CUDA_COMPUTE_ARCH: "50;70"# EIGEN_CI_C_COMPILER: gcc-7# EIGEN_CI_CXX_COMPILER: g++-7
# # Clang-10, CUDA-9.2# build:linux:cuda-9.2:clang-10:# extends: build:linux:cuda-9.2:gcc-7# variables:# EIGEN_CI_C_COMPILER: clang-10# EIGEN_CI_CXX_COMPILER: clang++-10# EIGEN_CI_TEST_CUDA_CLANG: "on"
# # GCC-8, CUDA-10.2# build:linux:cuda-10.2:gcc-8:# extends: .build:linux:cuda# image: nvidia/cuda:10.2-devel-ubuntu18.04# variables:# EIGEN_CI_C_COMPILER: gcc-8# EIGEN_CI_CXX_COMPILER: g++-8
# # Clang-10, CUDA-10.2# build:linux:cuda-10.2:clang-10:# extends: build:linux:cuda-10.2:gcc-8# variables:# EIGEN_CI_C_COMPILER: clang-10# EIGEN_CI_CXX_COMPILER: clang++-10# EIGEN_CI_TEST_CUDA_CLANG: "on"
# GCC-10, CUDA-11.4build:linux:cuda-11.4:gcc-10: extends: .build:linux:cuda image: nvidia/cuda:11.4.3-devel-ubuntu20.04 variables: EIGEN_CI_C_COMPILER: gcc-10 EIGEN_CI_CXX_COMPILER: g++-10
# Clang-12, CUDA-11.4build:linux:cuda-11.4:clang-12: extends: build:linux:cuda-11.4:gcc-10 variables: EIGEN_CI_C_COMPILER: clang-12 EIGEN_CI_CXX_COMPILER: clang++-12 EIGEN_CI_TEST_CUDA_CLANG: "on"
# GCC-10, CUDA-12.2build:linux:cuda-12.2:gcc-10: extends: .build:linux:cuda image: nvidia/cuda:12.2.0-devel-ubuntu20.04 variables: EIGEN_CI_C_COMPILER: gcc-10 EIGEN_CI_CXX_COMPILER: g++-10
# Clang-12, CUDA-12.2build:linux:cuda-12.2:clang-12: extends: build:linux:cuda-12.2:gcc-10 variables: EIGEN_CI_C_COMPILER: clang-12 EIGEN_CI_CXX_COMPILER: clang++-12 EIGEN_CI_TEST_CUDA_CLANG: "on"
# ######## HIP #################################################################### Note: these are currently build-only, until we get an AMD-supported runner.
# ROCm HIPbuild:linux:rocm-latest:gcc-10: extends: .build:linux:cross image: rocm/dev-ubuntu-24.04:latest variables: EIGEN_CI_C_COMPILER: gcc-10 EIGEN_CI_CXX_COMPILER: g++-10 EIGEN_CI_BUILD_TARGET: buildtests_gpu EIGEN_CI_ADDITIONAL_ARGS: -DEIGEN_TEST_HIP=on
######## Arm ###################################################################
.build:linux:cross:arm: extends: .build:linux:cross variables: EIGEN_CI_TARGET_ARCH: arm EIGEN_CI_CROSS_TARGET_TRIPLE: arm-linux-gnueabihf EIGEN_CI_ADDITIONAL_ARGS: > -DEIGEN_TEST_CUSTOM_CXX_FLAGS=-march=armv7-a;-mfpu=neon-vfpv4 -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_CROSSCOMPILING_EMULATOR=qemu-arm-static;-L;/usr/arm-linux-gnueabihf
build:linux:cross:arm:gcc-10:default: extends: .build:linux:cross:arm variables: EIGEN_CI_CROSS_INSTALL: g++-10-arm-linux-gnueabihf qemu-user-static EIGEN_CI_CROSS_C_COMPILER: arm-linux-gnueabihf-gcc-10 EIGEN_CI_CROSS_CXX_COMPILER: arm-linux-gnueabihf-g++-10
build:linux:cross:arm:clang-12:default: extends: .build:linux:cross:arm variables: EIGEN_CI_INSTALL: clang-12 EIGEN_CI_C_COMPILER: clang-12 EIGEN_CI_CXX_COMPILER: clang++-12 EIGEN_CI_CROSS_INSTALL: g++-10-arm-linux-gnueabihf clang-12 qemu-user-static
######## aarch64 ###############################################################
.build:linux:cross:aarch64: extends: .build:linux:cross variables: EIGEN_CI_TARGET_ARCH: aarch64 EIGEN_CI_CROSS_TARGET_TRIPLE: aarch64-linux-gnu EIGEN_CI_ADDITIONAL_ARGS: -DEIGEN_TEST_CUSTOM_CXX_FLAGS=-march=armv8.2-a+fp16 tags: - saas-linux-large-arm64
build:linux:cross:aarch64:gcc-10:default: extends: .build:linux:cross:aarch64 variables: EIGEN_CI_C_COMPILER: gcc-10 EIGEN_CI_CXX_COMPILER: g++-10 EIGEN_CI_CROSS_INSTALL: g++-10-aarch64-linux-gnu EIGEN_CI_CROSS_C_COMPILER: aarch64-linux-gnu-gcc-10 EIGEN_CI_CROSS_CXX_COMPILER: aarch64-linux-gnu-g++-10
build:linux:cross:aarch64:clang-12:default: extends: .build:linux:cross:aarch64 variables: EIGEN_CI_INSTALL: clang-12 EIGEN_CI_C_COMPILER: clang-12 EIGEN_CI_CXX_COMPILER: clang++-12 EIGEN_CI_CROSS_INSTALL: g++-10-aarch64-linux-gnu clang-12
######## ppc64le ###############################################################
.build:linux:cross:ppc64le: extends: .build:linux:cross image: ubuntu:24.04 variables: EIGEN_CI_TARGET_ARCH: ppc64le EIGEN_CI_CROSS_TARGET_TRIPLE: powerpc64le-linux-gnu EIGEN_CI_ADDITIONAL_ARGS: >- -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_CROSSCOMPILING_EMULATOR=qemu-ppc64le-static;-L;/usr/powerpc64le-linux-gnu
build:linux:cross:ppc64le:gcc-14:default: extends: .build:linux:cross:ppc64le variables: EIGEN_CI_CROSS_INSTALL: g++-14-powerpc64le-linux-gnu qemu-user-static EIGEN_CI_CROSS_C_COMPILER: powerpc64le-linux-gnu-gcc-14 EIGEN_CI_CROSS_CXX_COMPILER: powerpc64le-linux-gnu-g++-14
build:linux:cross:ppc64le:clang-16:default: extends: .build:linux:cross:ppc64le variables: EIGEN_CI_C_COMPILER: clang-16 EIGEN_CI_CXX_COMPILER: clang++-16 EIGEN_CI_CROSS_INSTALL: g++-14-powerpc64le-linux-gnu clang-16 qemu-user-static
######## MR Smoke Tests ########################################################
build:linux:cross:x86-64:gcc-10:default:smoketest: extends: build:linux:cross:x86-64:gcc-10:default variables: EIGEN_CI_BUILD_TARGET: buildsmoketests rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" tags: - saas-linux-small-amd64
build:linux:cross:x86-64:clang-12:default:smoketest: extends: build:linux:cross:x86-64:clang-12:default variables: EIGEN_CI_BUILD_TARGET: buildsmoketests rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" tags: - saas-linux-small-amd64123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116# Base configuration for windows builds..build:windows: extends: .common:windows stage: build variables: EIGEN_CI_BUILD_TARGET: buildtests # Reduce overall build size and compile time. # Note: /d2ReducedOptimizeHugeFunctions is only available in VS 2019. EIGEN_CI_TEST_CUSTOM_CXX_FLAGS: "/d2ReducedOptimizeHugeFunctions;/DEIGEN_STRONG_INLINE=inline;/Os" script: - ./ci/scripts/build.windows.script.ps1 tags: - eigen-runner - windows - x86-64 rules: - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_NAMESPACE == "libeigen" - if: $CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_NAMESPACE == "libeigen" - if: $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_NAMESPACE == "libeigen" - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_PROJECT_NAMESPACE == "libeigen" && $CI_MERGE_REQUEST_LABELS =~ "/all-tests/"
cache: key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-BUILD" paths: - ${EIGEN_CI_BUILDDIR}/
######### MSVC #################################################################
# MSVC 14.16 (VS 2017)build:windows:x86-64:msvc-14.16:default: extends: .build:windows variables: EIGEN_CI_MSVC_VER: "14.16" # Override to remove unsupported /d2ReducedOptimizeHugeFunctions. EIGEN_CI_TEST_CUSTOM_CXX_FLAGS: "/DEIGEN_STRONG_INLINE=inline;/Os"
# MSVC 14.29 (VS 2019)build:windows:x86-64:msvc-14.29:default: extends: .build:windows variables: EIGEN_CI_MSVC_VER: "14.29"
build:windows:x86-64:msvc-14.29:cxx03: extends: build:windows:x86-64:msvc-14.29:default variables: EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_CXX11=off"
build:windows:x86-64:msvc-14.29:avx2: extends: build:windows:x86-64:msvc-14.29:default variables: EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX2=on"
build:windows:x86-64:msvc-14.29:avx512dq: extends: build:windows:x86-64:msvc-14.29:default variables: EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX512DQ=on"
######### MSVC + CUDA ##########################################################.build:windows:cuda: extends: .build:windows variables: # Compute architectures present in the GitLab CI runners. EIGEN_CI_CUDA_COMPUTE_ARCH: "50;75" EIGEN_CI_BUILD_TARGET: buildtests_gpu EIGEN_CI_ADDITIONAL_ARGS: -DEIGEN_TEST_CUDA=on -DEIGEN_CUDA_COMPUTE_ARCH=${EIGEN_CI_CUDA_COMPUTE_ARCH} tags: - eigen-runner - windows - x86-64 - cuda
# The CUDA 9.2 compiler crashes with an internal error.# # MSVC 14.16 + CUDA 9.2# build:windows:x86-64:cuda-9.2:msvc-14.16:# extends: .build:windows:cuda# variables:# # CUDA 9.2 doesn't support sm_75.# EIGEN_CI_CUDA_COMPUTE_ARCH: "50;70"# # CUDA 9.2 only supports up to VS 2017.# EIGEN_CI_MSVC_VER: "14.16"# EIGEN_CI_TEST_CUSTOM_CXX_FLAGS: "/DEIGEN_STRONG_INLINE=inline;/Os"# EIGEN_CI_BEFORE_SCRIPT: $$env:CUDA_PATH=$$env:CUDA_PATH_V9_2
# MSVC 14.29 + CUDA 10.2build:windows:x86-64:cuda-10.2:msvc-14.29: extends: .build:windows:cuda variables: EIGEN_CI_MSVC_VER: "14.29" EIGEN_CI_BEFORE_SCRIPT: $$env:CUDA_PATH=$$env:CUDA_PATH_V10_2
# MSVC 14.29 + CUDA 11.4build:windows:x86-64:cuda-11.4:msvc-14.29: extends: .build:windows:cuda variables: EIGEN_CI_MSVC_VER: "14.29" EIGEN_CI_BEFORE_SCRIPT: $$env:CUDA_PATH=$$env:CUDA_PATH_V11_4
######## MR Smoke Tests ########################################################
# MSVC 14.29 64-bit (VS 2019)build:windows:x86-64:msvc-14.29:avx512dq:smoketest: extends: build:windows:x86-64:msvc-14.29:avx512dq variables: EIGEN_CI_BUILD_TARGET: buildsmoketests rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event"
# MSVC 14.29 32-bit (VS 2019)build:windows:x86:msvc-14.29:avx512dq:smoketest: extends: build:windows:x86-64:msvc-14.29:avx512dq:smoketest variables: EIGEN_CI_MSVC_ARCH: "x86" rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event"12345678910checkformat:clangformat: stage: checkformat image: alpine:3.19 only: - merge_requests allow_failure: true before_script: - apk add --no-cache git clang17-extra-tools python3 script: - git clang-format --diff --commit ${CI_MERGE_REQUEST_DIFF_BASE_SHA}12345678910111213141516171819202122232425262728293031323334353637383940# Base configuration for linux builds and tests..common:linux:cross: image: ubuntu:20.04 variables: EIGEN_CI_TARGET_ARCH: "" EIGEN_CI_ADDITIONAL_ARGS: "" # If host matches target, use the following: EIGEN_CI_C_COMPILER: "" EIGEN_CI_CXX_COMPILER: "" EIGEN_CI_INSTALL: "${EIGEN_CI_C_COMPILER} ${EIGEN_CI_CXX_COMPILER}" # If host does not match the target, use the following: EIGEN_CI_CROSS_TARGET_TRIPLE: "" EIGEN_CI_CROSS_C_COMPILER: ${EIGEN_CI_C_COMPILER} EIGEN_CI_CROSS_CXX_COMPILER: ${EIGEN_CI_CXX_COMPILER} EIGEN_CI_CROSS_INSTALL: "${EIGEN_CI_CROSS_C_COMPILER} ${EIGEN_CI_CROSS_CXX_COMPILER}" before_script: # Call script in current shell - it sets up some environment variables. - . ci/scripts/common.linux.before_script.sh artifacts: when: always name: "$CI_JOB_NAME_SLUG-$CI_COMMIT_REF_SLUG" paths: - ${EIGEN_CI_BUILDDIR}/ expire_in: 5 days
# Base configuration for Windows builds and tests..common:windows: variables: EIGEN_CI_MSVC_ARCH: x64 EIGEN_CI_MSVC_VER: "14.29" EIGEN_CI_ADDITIONAL_ARGS: "" EIGEN_CI_BEFORE_SCRIPT: "" before_script: - . ci/scripts/common.windows.before_script.ps1 artifacts: when: always name: "$CI_JOB_NAME_SLUG-$CI_COMMIT_REF_NAME" paths: - ${EIGEN_CI_BUILDDIR}/ expire_in: 5 days1234567891011121314151617181920212223242526272829303132333435363738394041 # Push a nightly tag if the pipeline succeeded.deploy:tag:nightly: stage: deploy image: alpine:edge dependencies: [] before_script: - apk add git script: - git tag -f nightly $CI_COMMIT_SHORT_SHA - git push -f $EIGEN_CI_GIT_PUSH_URL tag nightly tags: - saas-linux-small-amd64 rules: - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_NAMESPACE == "libeigen" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_NAMESPACE == "libeigen" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Upload docs if pipeline succeeded.deploy:docs: stage: deploy image: busybox dependencies: [ build:linux:docs ] variables: PAGES_PREFIX: docs-nightly script: - echo "Deploying site to $CI_PAGES_URL" - mv ${EIGEN_CI_BUILDDIR}/doc/html public pages: path_prefix: $PAGES_PREFIX expire_in: never artifacts: name: "$CI_JOB_NAME_SLUG-$CI_COMMIT_REF_SLUG" paths: - public tags: - saas-linux-small-amd64 rules: - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_NAMESPACE == "libeigen" - if: $CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_NAMESPACE == "libeigen" - if: $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_NAMESPACE == "libeigen" variables: PAGES_PREFIX: docs-$CI_COMMIT_REF_NAME123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107.buildsmoketests:linux:base: stage: buildsmoketests image: ubuntu:18.04 before_script: - apt-get update -y - apt-get install -y --no-install-recommends software-properties-common - add-apt-repository -y ppa:ubuntu-toolchain-r/test - apt-get update - apt-get install --no-install-recommends -y ${EIGEN_CI_CXX_COMPILER} ${EIGEN_CI_CC_COMPILER} cmake ninja-build script: - mkdir -p ${BUILDDIR} && cd ${BUILDDIR} - CXX=${EIGEN_CI_CXX_COMPILER} CC=${EIGEN_CI_CC_COMPILER} cmake -G ${EIGEN_CI_CMAKE_GENEATOR} -DEIGEN_TEST_CXX11=${EIGEN_TEST_CXX11} ${EIGEN_CI_ADDITIONAL_ARGS} .. - cmake --build . --target buildsmoketests artifacts: name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" paths: - ${BUILDDIR}/ expire_in: 5 days only: - merge_requests
buildsmoketests:x86-64:linux:gcc-10:cxx11-off: extends: .buildsmoketests:linux:base variables: EIGEN_CI_CXX_COMPILER: "g++-10" EIGEN_CI_CC_COMPILER: "gcc-10" EIGEN_TEST_CXX11: "off"
buildsmoketests:x86-64:linux:gcc-10:cxx11-on: extends: .buildsmoketests:linux:base variables: EIGEN_CI_CXX_COMPILER: "g++-10" EIGEN_CI_CC_COMPILER: "gcc-10" EIGEN_TEST_CXX11: "on"
buildsmoketests:x86-64:linux:clang-10:cxx11-off: extends: .buildsmoketests:linux:base variables: EIGEN_CI_CXX_COMPILER: "clang++-10" EIGEN_CI_CC_COMPILER: "clang-10" EIGEN_TEST_CXX11: "off"
buildsmoketests:x86-64:linux:clang-10:cxx11-on: extends: .buildsmoketests:linux:base variables: EIGEN_CI_CXX_COMPILER: "clang++-10" EIGEN_CI_CC_COMPILER: "clang-10" EIGEN_TEST_CXX11: "on"
.smoketests:linux:base: stage: smoketests image: ubuntu:18.04 before_script: - apt-get update -y - apt-get install -y --no-install-recommends software-properties-common - add-apt-repository -y ppa:ubuntu-toolchain-r/test - apt-get update - apt-get install --no-install-recommends -y ${EIGEN_CI_CXX_COMPILER} ${EIGEN_CI_CC_COMPILER} cmake ninja-build xsltproc script: - export CXX=${EIGEN_CI_CXX_COMPILER} - export CC=${EIGEN_CI_CC_COMPILER} - cd ${BUILDDIR} && ctest --output-on-failure --no-compress-output --build-no-clean -T test -L smoketest after_script: - apt-get update -y - apt-get install --no-install-recommends -y xsltproc - cd ${BUILDDIR} - xsltproc ../ci/CTest2JUnit.xsl Testing/`head -n 1 < Testing/TAG`/Test.xml > "JUnitTestResults_$CI_JOB_ID.xml" artifacts: reports: junit: - ${BUILDDIR}/JUnitTestResults_$CI_JOB_ID.xml expire_in: 5 days only: - merge_requests
smoketests:x86-64:linux:gcc-10:cxx11-off: extends: .smoketests:linux:base variables: EIGEN_CI_CXX_COMPILER: g++-10 EIGEN_CI_CC_COMPILER: gcc-10 needs: [ "buildsmoketests:x86-64:linux:gcc-10:cxx11-off" ]
smoketests:x86-64:linux:gcc-10:cxx11-on: extends: .smoketests:linux:base variables: EIGEN_CI_CXX_COMPILER: g++-10 EIGEN_CI_CC_COMPILER: gcc-10 needs: [ "buildsmoketests:x86-64:linux:gcc-10:cxx11-on" ]
smoketests:x86-64:linux:clang-10:cxx11-off: extends: .smoketests:linux:base variables: EIGEN_CI_CXX_COMPILER: clang++-10 EIGEN_CI_CC_COMPILER: clang-10 needs: [ "buildsmoketests:x86-64:linux:clang-10:cxx11-off" ]
smoketests:x86-64:linux:clang-10:cxx11-on: extends: .smoketests:linux:base variables: EIGEN_CI_CXX_COMPILER: clang++-10 EIGEN_CI_CC_COMPILER: clang-10 needs: [ "buildsmoketests:x86-64:linux:clang-10:cxx11-on" ]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430.test:linux: extends: .common:linux:cross stage: test script: - . ci/scripts/test.linux.script.sh after_script: - . ci/scripts/test.linux.after_script.sh rules: - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_NAMESPACE == "libeigen" - if: $CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_NAMESPACE == "libeigen" - if: $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_NAMESPACE == "libeigen" - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_PROJECT_NAMESPACE == "libeigen" && $CI_MERGE_REQUEST_LABELS =~ "/all-tests/" tags: - saas-linux-2xlarge-amd64
##### x86-64 ###################################################################.test:linux:x86-64: extends: .test:linux variables: EIGEN_CI_TARGET_ARCH: x86_64 EIGEN_CI_CROSS_TARGET_TRIPLE: x86_64-linux-gnu
# GCC-6 (minimum on Ubuntu 18.04).test:linux:x86-64:gcc-6:default: extends: .test:linux:x86-64 image: ubuntu:18.04 needs: [ build:linux:cross:x86-64:gcc-6:default ] variables: EIGEN_CI_INSTALL: g++-6
test:linux:x86-64:gcc-6:default:official: extends: .test:linux:x86-64:gcc-6:default variables: EIGEN_CI_CTEST_LABEL: Official
test:linux:x86-64:gcc-6:default:unsupported: extends: .test:linux:x86-64:gcc-6:default variables: EIGEN_CI_CTEST_LABEL: Unsupported
# GCC-10 (modern stable).test:linux:x86-64:gcc-10:default: extends: .test:linux:x86-64 needs: [ build:linux:cross:x86-64:gcc-10:default ] variables: EIGEN_CI_INSTALL: g++-10
test:linux:x86-64:gcc-10:cxx03: extends: .test:linux:x86-64:gcc-10:default needs: [ build:linux:cross:x86-64:gcc-10:cxx03 ]
test:linux:x86-64:gcc-10:default:official: extends: .test:linux:x86-64:gcc-10:default variables: EIGEN_CI_CTEST_LABEL: Official
test:linux:x86-64:gcc-10:default:unsupported: extends: .test:linux:x86-64:gcc-10:default variables: EIGEN_CI_CTEST_LABEL: Unsupported
.test:linux:x86-64:gcc-10:avx: extends: .test:linux:x86-64 needs: [ build:linux:cross:x86-64:gcc-10:avx ] variables: EIGEN_CI_INSTALL: g++-10
test:linux:x86-64:gcc-10:avx:official: extends: .test:linux:x86-64:gcc-10:avx variables: EIGEN_CI_CTEST_LABEL: Official
test:linux:x86-64:gcc-10:avx:unsupported: extends: .test:linux:x86-64:gcc-10:avx variables: EIGEN_CI_CTEST_LABEL: Unsupported
.test:linux:x86-64:gcc-10:avx2: extends: .test:linux:x86-64 needs: [ build:linux:cross:x86-64:gcc-10:avx2 ] variables: EIGEN_CI_INSTALL: g++-10
test:linux:x86-64:gcc-10:avx2:official: extends: .test:linux:x86-64:gcc-10:avx2 variables: EIGEN_CI_CTEST_LABEL: Official
test:linux:x86-64:gcc-10:avx2:unsupported: extends: .test:linux:x86-64:gcc-10:avx2 variables: EIGEN_CI_CTEST_LABEL: Unsupported
.test:linux:x86-64:gcc-10:avx512dq: extends: .test:linux:x86-64 needs: [ build:linux:cross:x86-64:gcc-10:avx512dq ] variables: EIGEN_CI_INSTALL: g++-10 tags: - eigen-runner - linux - x86-64 - avx512
test:linux:x86-64:gcc-10:avx512dq:official: extends: .test:linux:x86-64:gcc-10:avx512dq variables: EIGEN_CI_CTEST_LABEL: Official
test:linux:x86-64:gcc-10:avx512dq:unsupported: extends: .test:linux:x86-64:gcc-10:avx512dq variables: EIGEN_CI_CTEST_LABEL: Unsupported
# Clang-6 (minimum on Ubuntu 20.04).test:linux:x86-64:clang-6:default: extends: .test:linux:x86-64 image: ubuntu:20.04 needs: [ build:linux:cross:x86-64:clang-6:default ] variables: EIGEN_CI_INSTALL: g++-8 clang-6.0 lld-6.0
test:linux:x86-64:clang-6:default:official: extends: .test:linux:x86-64:clang-6:default variables: EIGEN_CI_CTEST_LABEL: Official
test:linux:x86-64:clang-6:default:unsupported: extends: .test:linux:x86-64:clang-6:default variables: EIGEN_CI_CTEST_LABEL: Unsupported
# Clang-12 (modern stable).test:linux:x86-64:clang-12:default: extends: .test:linux:x86-64 needs: [ build:linux:cross:x86-64:clang-12:default ] variables: EIGEN_CI_INSTALL: clang-12
test:linux:x86-64:clang-12:default:official: extends: .test:linux:x86-64:clang-12:default variables: EIGEN_CI_CTEST_LABEL: Official
test:linux:x86-64:clang-12:default:unsupported: extends: .test:linux:x86-64:clang-12:default variables: EIGEN_CI_CTEST_LABEL: Unsupported
.test:linux:x86-64:clang-12:avx: extends: .test:linux:x86-64 needs: [ build:linux:cross:x86-64:clang-12:avx ] variables: EIGEN_CI_INSTALL: clang-12
test:linux:x86-64:clang-12:avx:official: extends: .test:linux:x86-64:clang-12:avx variables: EIGEN_CI_CTEST_LABEL: Official
test:linux:x86-64:clang-12:avx:unsupported: extends: .test:linux:x86-64:clang-12:avx variables: EIGEN_CI_CTEST_LABEL: Unsupported
.test:linux:x86-64:clang-12:avx2: extends: .test:linux:x86-64 needs: [ build:linux:cross:x86-64:clang-12:avx2 ] variables: EIGEN_CI_INSTALL: clang-12
test:linux:x86-64:clang-12:avx2:official: extends: .test:linux:x86-64:clang-12:avx2 variables: EIGEN_CI_CTEST_LABEL: Official
test:linux:x86-64:clang-12:avx2:unsupported: extends: .test:linux:x86-64:clang-12:avx2 variables: EIGEN_CI_CTEST_LABEL: Unsupported
.test:linux:x86-64:clang-12:avx512dq: extends: .test:linux:x86-64 needs: [ build:linux:cross:x86-64:clang-12:avx512dq ] variables: EIGEN_CI_INSTALL: clang-12 tags: - eigen-runner - linux - x86-64 - avx512
test:linux:x86-64:clang-12:avx512dq:official: extends: .test:linux:x86-64:clang-12:avx512dq variables: EIGEN_CI_CTEST_LABEL: Official
test:linux:x86-64:clang-12:avx512dq:unsupported: extends: .test:linux:x86-64:clang-12:avx512dq variables: EIGEN_CI_CTEST_LABEL: Unsupported
##### CUDA #####################################################################.test:linux:cuda: extends: .test:linux allow_failure: true variables: EIGEN_CI_CTEST_LABEL: gpu tags: - saas-linux-medium-amd64-gpu-standard
# NVidia no longer provides docker images < CUDA 11.0.3.# # GCC-7, CUDA-9.2# test:linux:cuda-9.2:gcc-7:# extends: .test:linux:cuda# image: nvidia/cuda:9.2-devel-ubuntu18.04# needs: [ build:linux:cuda-9.2:gcc-7 ]# variables:# EIGEN_CI_CXX_COMPILER: g++-7# EIGEN_CI_CC_COMPILER: gcc-7
# # Clang-10, CUDA-9.2# test:linux:cuda-9.2:clang-10:# extends: .test:linux:cuda# image: nvidia/cuda:9.2-devel-ubuntu18.04# needs: [ build:linux:cuda-9.2:clang-10 ]# variables:# EIGEN_CI_CXX_COMPILER: clang++-10# EIGEN_CI_CC_COMPILER: clang-10
# # GCC-8, CUDA-10.2# test:linux:cuda-10.2:gcc-8:# extends: .test:linux:cuda# image: nvidia/cuda:10.2-devel-ubuntu18.04# needs: [ build:linux:cuda-10.2:gcc-8 ]# variables:# EIGEN_CI_CXX_COMPILER: g++-8# EIGEN_CI_CC_COMPILER: gcc-8
# # Clang-10, CUDA-10.2# test:linux:cuda-10.2:clang-10:# extends: .test:linux:cuda# image: nvidia/cuda:10.2-devel-ubuntu18.04# needs: [ build:linux:cuda-10.2:clang-10 ]# variables:# EIGEN_CI_CXX_COMPILER: clang++-10# EIGEN_CI_CC_COMPILER: clang-10
# GCC-10, CUDA-11.4test:linux:cuda-11.4:gcc-10: extends: .test:linux:cuda image: nvidia/cuda:11.4.3-devel-ubuntu20.04 needs: [ build:linux:cuda-11.4:gcc-10 ] variables: EIGEN_CI_CXX_COMPILER: g++-10 EIGEN_CI_CC_COMPILER: gcc-10
# Clang-12, CUDA-11.4test:linux:cuda-11.4:clang-12: extends: .test:linux:cuda image: nvidia/cuda:11.4.3-devel-ubuntu20.04 needs: [ build:linux:cuda-11.4:clang-12 ] variables: EIGEN_CI_CXX_COMPILER: clang++-12 EIGEN_CI_CC_COMPILER: clang-12
# GCC-10, CUDA-12.2test:linux:cuda-12.2:gcc-10: extends: .test:linux:cuda image: nvidia/cuda:12.2.0-devel-ubuntu20.04 needs: [ build:linux:cuda-12.2:gcc-10 ] variables: EIGEN_CI_CXX_COMPILER: g++-10 EIGEN_CI_CC_COMPILER: gcc-10
# Clang-12, CUDA-12.2test:linux:cuda-12.2:clang-12: extends: .test:linux:cuda image: nvidia/cuda:12.2.0-devel-ubuntu20.04 needs: [ build:linux:cuda-12.2:clang-12 ] variables: EIGEN_CI_CXX_COMPILER: clang++-12 EIGEN_CI_CC_COMPILER: clang-12
##### arm ######################################################################
.test:linux:arm: extends: .test:linux variables: EIGEN_CI_TARGET_ARCH: arm EIGEN_CI_CROSS_TARGET_TRIPLE: arm-linux-gnueabihf EIGEN_CI_CTEST_ARGS: --timeout 2000
.test:linux:arm:gcc-10:default: extends: .test:linux:arm needs: [ build:linux:cross:arm:gcc-10:default ] variables: EIGEN_CI_CROSS_INSTALL: g++-10-arm-linux-gnueabihf qemu-user-static
test:linux:arm:gcc-10:default:official: extends: .test:linux:arm:gcc-10:default variables: EIGEN_CI_CTEST_LABEL: Official
test:linux:arm:gcc-10:default:unsupported: extends: .test:linux:arm:gcc-10:default variables: EIGEN_CI_CTEST_LABEL: Unsupported
.test:linux:arm:clang-12:default: extends: .test:linux:arm needs: [ build:linux:cross:arm:clang-12:default ] variables: EIGEN_CI_CROSS_INSTALL: g++-10-arm-linux-gnueabihf clang-12 qemu-user-static
test:linux:arm:clang-12:default:official: extends: .test:linux:arm:clang-12:default variables: EIGEN_CI_CTEST_LABEL: Official
test:linux:arm:clang-12:default:unsupported: extends: .test:linux:arm:clang-12:default variables: EIGEN_CI_CTEST_LABEL: Unsupported
##### aarch64 ##################################################################
.test:linux:aarch64: extends: .test:linux variables: EIGEN_CI_TARGET_ARCH: aarch64 EIGEN_CI_CROSS_TARGET_TRIPLE: aarch64-linux-gnu tags: - saas-linux-large-arm64
.test:linux:aarch64:gcc-10:default: extends: .test:linux:aarch64 needs: [ build:linux:cross:aarch64:gcc-10:default ] variables: EIGEN_CI_INSTALL: g++-10
test:linux:aarch64:gcc-10:default:official: extends: .test:linux:aarch64:gcc-10:default variables: EIGEN_CI_CTEST_LABEL: Official
test:linux:aarch64:gcc-10:default:unsupported: extends: .test:linux:aarch64:gcc-10:default variables: EIGEN_CI_CTEST_LABEL: Unsupported
.test:linux:aarch64:clang-12:default: extends: .test:linux:aarch64 needs: [ build:linux:cross:aarch64:clang-12:default ] variables: EIGEN_CI_INSTALL: clang-12
test:linux:aarch64:clang-12:default:official: extends: .test:linux:aarch64:clang-12:default variables: EIGEN_CI_CTEST_LABEL: Official
test:linux:aarch64:clang-12:default:unsupported: extends: .test:linux:aarch64:clang-12:default variables: EIGEN_CI_CTEST_LABEL: Unsupported
##### ppc64le ##################################################################
.test:linux:ppc64le: extends: .test:linux image: ubuntu:24.04 variables: EIGEN_CI_TARGET_ARCH: ppc64le EIGEN_CI_CROSS_TARGET_TRIPLE: powerpc64le-linux-gnu EIGEN_CI_CTEST_ARGS: --timeout 2000
.test:linux:ppc64le:gcc-14:default: extends: .test:linux:ppc64le needs: [ build:linux:cross:ppc64le:gcc-14:default ] variables: EIGEN_CI_CROSS_INSTALL: g++-14-powerpc64le-linux-gnu qemu-user-static
test:linux:ppc64le:gcc-14:default:official: extends: .test:linux:ppc64le:gcc-14:default variables: EIGEN_CI_CTEST_LABEL: Official
test:linux:ppc64le:gcc-14:default:unsupported: extends: .test:linux:ppc64le:gcc-14:default variables: EIGEN_CI_CTEST_LABEL: Unsupported
.test:linux:ppc64le:clang-16:default: extends: .test:linux:ppc64le needs: [ build:linux:cross:ppc64le:clang-16:default ] variables: EIGEN_CI_CROSS_INSTALL: g++-14-powerpc64le-linux-gnu clang-16 qemu-user-static
test:linux:ppc64le:clang-16:default:official: extends: .test:linux:ppc64le:clang-16:default variables: EIGEN_CI_CTEST_LABEL: Official
test:linux:ppc64le:clang-16:default:unsupported: extends: .test:linux:ppc64le:clang-16:default variables: EIGEN_CI_CTEST_LABEL: Unsupported
##### MR Smoke Tests ###########################################################
test:linux:x86-64:gcc-10:default:smoketest: extends: .test:linux:x86-64:gcc-10:default needs: [ build:linux:cross:x86-64:gcc-10:default:smoketest ] variables: EIGEN_CI_CTEST_LABEL: smoketest rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" tags: - saas-linux-small-amd64
test:linux:x86-64:clang-12:default:smoketest: extends: .test:linux:x86-64:clang-12:default needs: [ build:linux:cross:x86-64:clang-12:default:smoketest ] variables: EIGEN_CI_CTEST_LABEL: smoketest rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" tags: - saas-linux-small-amd64123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110.test:windows: extends: .common:windows stage: test script: - ./ci/scripts/test.windows.script.ps1 after_script: - ./ci/scripts/test.windows.after_script.ps1 rules: - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_NAMESPACE == "libeigen" - if: $CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_NAMESPACE == "libeigen" - if: $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_NAMESPACE == "libeigen" - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_PROJECT_NAMESPACE == "libeigen" && $CI_MERGE_REQUEST_LABELS =~ "/all-tests/"
tags: - eigen-runner - windows - x86-64
##### MSVC #####################################################################
# MSVC 14.16 (VS 2017).test:windows:x86-64:msvc-14.16:default: extends: .test:windows needs: [ build:windows:x86-64:msvc-14.16:default ]
test:windows:x86-64:msvc-14.16:default:official: extends: .test:windows:x86-64:msvc-14.16:default variables: EIGEN_CI_CTEST_LABEL: Official
test:windows:x86-64:msvc-14.16:default:unsupported: extends: .test:windows:x86-64:msvc-14.16:default variables: EIGEN_CI_CTEST_LABEL: Unsupported
# MSVC 14.29 (VS 2019).test:windows:x86-64:msvc-14.29:default: extends: .test:windows needs: [ build:windows:x86-64:msvc-14.29:default ]
test:windows:x86-64:msvc-14.29:default:official: extends: .test:windows:x86-64:msvc-14.29:default variables: EIGEN_CI_CTEST_LABEL: Official
test:windows:x86-64:msvc-14.29:default:unsupported: extends: .test:windows:x86-64:msvc-14.29:default variables: EIGEN_CI_CTEST_LABEL: Unsupported
.test:windows:x86-64:msvc-14.29:avx2: extends: .test:windows needs: [ build:windows:x86-64:msvc-14.29:avx2 ]
test:windows:x86-64:msvc-14.29:avx2:official: extends: .test:windows:x86-64:msvc-14.29:avx2 variables: EIGEN_CI_CTEST_LABEL: Official
test:windows:x86-64:msvc-14.29:avx2:unsupported: extends: .test:windows:x86-64:msvc-14.29:avx2 variables: EIGEN_CI_CTEST_LABEL: Unsupported
.test:windows:x86-64:msvc-14.29:avx512dq: extends: .test:windows needs: [ build:windows:x86-64:msvc-14.29:avx512dq ] tags: - eigen-runner - windows - x86-64 - avx512
test:windows:x86-64:msvc-14.29:avx512dq:official: extends: .test:windows:x86-64:msvc-14.29:avx512dq variables: EIGEN_CI_CTEST_LABEL: Official
test:windows:x86-64:msvc-14.29:avx512dq:unsupported: extends: .test:windows:x86-64:msvc-14.29:avx512dq variables: EIGEN_CI_CTEST_LABEL: Unsupported
##### MSVC + CUDA ##############################################################.test:windows:cuda: extends: .test:windows allow_failure: true variables: EIGEN_CI_CTEST_LABEL: gpu tags: - eigen-runner - windows - x86-64 - cuda
# The CUDA 9.2 compiler crashes with an internal error.# # MSVC 14.16 + CUDA 9.2# test:windows:x86-64:cuda-9.2:msvc-14.16:# extends: .test:windows:cuda# needs: [ build:windows:x86-64:cuda-9.2:msvc-14.16 ]
# MSVC 14.29 + CUDA 10.2test:windows:x86-64:cuda-10.2:msvc-14.29: extends: .test:windows:cuda needs: [ build:windows:x86-64:cuda-10.2:msvc-14.29 ]
# MSVC 14.29 + CUDA 11.4test:windows:x86-64:cuda-11.4:msvc-14.29: extends: .test:windows:cuda needs: [ build:windows:x86-64:cuda-11.4:msvc-14.29 ]12345678910111213project(EigenDemos)
add_custom_target(demos)
if(NOT EIGEN_TEST_NOQT) find_package(Qt4) if(QT4_FOUND) add_subdirectory(mandelbrot) add_subdirectory(opengl) else() message(STATUS "Qt4 not found, so disabling the mandelbrot and opengl demos") endif()endif()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// Copyright (C) 2010-2011 Gael Guennebaud <gael.guennebaud@inria.fr>//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include "lapack_common.h"#include <Eigen/Cholesky>
// POTRF computes the Cholesky factorization of a real symmetric positive definite matrix A.EIGEN_LAPACK_FUNC(potrf,(char* uplo, int *n, RealScalar *pa, int *lda, int *info)){ *info = 0; if(UPLO(*uplo)==INVALID) *info = -1; else if(*n<0) *info = -2; else if(*lda<std::max(1,*n)) *info = -4; if(*info!=0) { int e = -*info; return xerbla_(SCALAR_SUFFIX_UP"POTRF", &e, 6); }
Scalar* a = reinterpret_cast<Scalar*>(pa); MatrixType A(a,*n,*n,*lda); int ret; if(UPLO(*uplo)==UP) ret = int(internal::llt_inplace<Scalar, Upper>::blocked(A)); else ret = int(internal::llt_inplace<Scalar, Lower>::blocked(A));
if(ret>=0) *info = ret+1; return 0;}
// POTRS solves a system of linear equations A*X = B with a symmetric// positive definite matrix A using the Cholesky factorization// A = U**T*U or A = L*L**T computed by DPOTRF.EIGEN_LAPACK_FUNC(potrs,(char* uplo, int *n, int *nrhs, RealScalar *pa, int *lda, RealScalar *pb, int *ldb, int *info)){ *info = 0; if(UPLO(*uplo)==INVALID) *info = -1; else if(*n<0) *info = -2; else if(*nrhs<0) *info = -3; else if(*lda<std::max(1,*n)) *info = -5; else if(*ldb<std::max(1,*n)) *info = -7; if(*info!=0) { int e = -*info; return xerbla_(SCALAR_SUFFIX_UP"POTRS", &e, 6); }
Scalar* a = reinterpret_cast<Scalar*>(pa); Scalar* b = reinterpret_cast<Scalar*>(pb); MatrixType A(a,*n,*n,*lda); MatrixType B(b,*n,*nrhs,*ldb);
if(UPLO(*uplo)==UP) { A.triangularView<Upper>().adjoint().solveInPlace(B); A.triangularView<Upper>().solveInPlace(B); } else { A.triangularView<Lower>().solveInPlace(B); A.triangularView<Lower>().adjoint().solveInPlace(B); }
return 0;}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116*> \brief \b CLACGV** =========== DOCUMENTATION ===========** Online html documentation available at * http://www.netlib.org/lapack/explore-html/ **> \htmlonly*> Download CLACGV + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/clacgv.f"> *> [TGZ]</a> *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/clacgv.f"> *> [ZIP]</a> *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/clacgv.f"> *> [TXT]</a>*> \endhtmlonly ** Definition:* ===========** SUBROUTINE CLACGV( N, X, INCX )* * .. Scalar Arguments ..* INTEGER INCX, N* ..* .. Array Arguments ..* COMPLEX X( * )* ..* **> \par Purpose:* =============*>*> \verbatim*>*> CLACGV conjugates a complex vector of length N.*> \endverbatim** Arguments:* ==========**> \param[in] N*> \verbatim*> N is INTEGER*> The length of the vector X. N >= 0.*> \endverbatim*>*> \param[in,out] X*> \verbatim*> X is COMPLEX array, dimension*> (1+(N-1)*abs(INCX))*> On entry, the vector of length N to be conjugated.*> On exit, X is overwritten with conjg(X).*> \endverbatim*>*> \param[in] INCX*> \verbatim*> INCX is INTEGER*> The spacing between successive elements of X.*> \endverbatim** Authors:* ========**> \author Univ. of Tennessee *> \author Univ. of California Berkeley *> \author Univ. of Colorado Denver *> \author NAG Ltd. **> \date November 2011**> \ingroup complexOTHERauxiliary** ===================================================================== SUBROUTINE CLACGV( N, X, INCX )** -- LAPACK auxiliary routine (version 3.4.0) --* -- LAPACK is a software package provided by Univ. of Tennessee, --* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--* November 2011** .. Scalar Arguments .. INTEGER INCX, N* ..* .. Array Arguments .. COMPLEX X( * )* ..** =====================================================================** .. Local Scalars .. INTEGER I, IOFF* ..* .. Intrinsic Functions .. INTRINSIC CONJG* ..* .. Executable Statements ..* IF( INCX.EQ.1 ) THEN DO 10 I = 1, N X( I ) = CONJG( X( I ) ) 10 CONTINUE ELSE IOFF = 1 IF( INCX.LT.0 ) $ IOFF = 1 - ( N-1 )*INCX DO 20 I = 1, N X( IOFF ) = CONJG( X( IOFF ) ) IOFF = IOFF + INCX 20 CONTINUE END IF RETURN** End of CLACGV* END12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697*> \brief \b CLADIV** =========== DOCUMENTATION ===========** Online html documentation available at * http://www.netlib.org/lapack/explore-html/ **> \htmlonly*> Download CLADIV + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/cladiv.f"> *> [TGZ]</a> *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/cladiv.f"> *> [ZIP]</a> *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/cladiv.f"> *> [TXT]</a>*> \endhtmlonly ** Definition:* ===========** COMPLEX FUNCTION CLADIV( X, Y )* * .. Scalar Arguments ..* COMPLEX X, Y* ..* **> \par Purpose:* =============*>*> \verbatim*>*> CLADIV := X / Y, where X and Y are complex. The computation of X / Y*> will not overflow on an intermediary step unless the results*> overflows.*> \endverbatim** Arguments:* ==========**> \param[in] X*> \verbatim*> X is COMPLEX*> \endverbatim*>*> \param[in] Y*> \verbatim*> Y is COMPLEX*> The complex scalars X and Y.*> \endverbatim** Authors:* ========**> \author Univ. of Tennessee *> \author Univ. of California Berkeley *> \author Univ. of Colorado Denver *> \author NAG Ltd. **> \date November 2011**> \ingroup complexOTHERauxiliary** ===================================================================== COMPLEX FUNCTION CLADIV( X, Y )** -- LAPACK auxiliary routine (version 3.4.0) --* -- LAPACK is a software package provided by Univ. of Tennessee, --* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--* November 2011** .. Scalar Arguments .. COMPLEX X, Y* ..** =====================================================================** .. Local Scalars .. REAL ZI, ZR* ..* .. External Subroutines .. EXTERNAL SLADIV* ..* .. Intrinsic Functions .. INTRINSIC AIMAG, CMPLX, REAL* ..* .. Executable Statements ..* CALL SLADIV( REAL( X ), AIMAG( X ), REAL( Y ), AIMAG( Y ), ZR, $ ZI ) CLADIV = CMPLX( ZR, ZI )* RETURN** End of CLADIV* END123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203*> \brief \b CLARFG** =========== DOCUMENTATION ===========** Online html documentation available at * http://www.netlib.org/lapack/explore-html/ **> \htmlonly*> Download CLARFG + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/clarfg.f"> *> [TGZ]</a> *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/clarfg.f"> *> [ZIP]</a> *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/clarfg.f"> *> [TXT]</a>*> \endhtmlonly ** Definition:* ===========** SUBROUTINE CLARFG( N, ALPHA, X, INCX, TAU )* * .. Scalar Arguments ..* INTEGER INCX, N* COMPLEX ALPHA, TAU* ..* .. Array Arguments ..* COMPLEX X( * )* ..* **> \par Purpose:* =============*>*> \verbatim*>*> CLARFG generates a complex elementary reflector H of order n, such*> that*>*> H**H * ( alpha ) = ( beta ), H**H * H = I.*> ( x ) ( 0 )*>*> where alpha and beta are scalars, with beta real, and x is an*> (n-1)-element complex vector. H is represented in the form*>*> H = I - tau * ( 1 ) * ( 1 v**H ) ,*> ( v )*>*> where tau is a complex scalar and v is a complex (n-1)-element*> vector. Note that H is not hermitian.*>*> If the elements of x are all zero and alpha is real, then tau = 0*> and H is taken to be the unit matrix.*>*> Otherwise 1 <= real(tau) <= 2 and abs(tau-1) <= 1 .*> \endverbatim** Arguments:* ==========**> \param[in] N*> \verbatim*> N is INTEGER*> The order of the elementary reflector.*> \endverbatim*>*> \param[in,out] ALPHA*> \verbatim*> ALPHA is COMPLEX*> On entry, the value alpha.*> On exit, it is overwritten with the value beta.*> \endverbatim*>*> \param[in,out] X*> \verbatim*> X is COMPLEX array, dimension*> (1+(N-2)*abs(INCX))*> On entry, the vector x.*> On exit, it is overwritten with the vector v.*> \endverbatim*>*> \param[in] INCX*> \verbatim*> INCX is INTEGER*> The increment between elements of X. INCX > 0.*> \endverbatim*>*> \param[out] TAU*> \verbatim*> TAU is COMPLEX*> The value tau.*> \endverbatim** Authors:* ========**> \author Univ. of Tennessee *> \author Univ. of California Berkeley *> \author Univ. of Colorado Denver *> \author NAG Ltd. **> \date November 2011**> \ingroup complexOTHERauxiliary** ===================================================================== SUBROUTINE CLARFG( N, ALPHA, X, INCX, TAU )** -- LAPACK auxiliary routine (version 3.4.0) --* -- LAPACK is a software package provided by Univ. of Tennessee, --* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--* November 2011** .. Scalar Arguments .. INTEGER INCX, N COMPLEX ALPHA, TAU* ..* .. Array Arguments .. COMPLEX X( * )* ..** =====================================================================** .. Parameters .. REAL ONE, ZERO PARAMETER ( ONE = 1.0E+0, ZERO = 0.0E+0 )* ..* .. Local Scalars .. INTEGER J, KNT REAL ALPHI, ALPHR, BETA, RSAFMN, SAFMIN, XNORM* ..* .. External Functions .. REAL SCNRM2, SLAMCH, SLAPY3 COMPLEX CLADIV EXTERNAL SCNRM2, SLAMCH, SLAPY3, CLADIV* ..* .. Intrinsic Functions .. INTRINSIC ABS, AIMAG, CMPLX, REAL, SIGN* ..* .. External Subroutines .. EXTERNAL CSCAL, CSSCAL* ..* .. Executable Statements ..* IF( N.LE.0 ) THEN TAU = ZERO RETURN END IF* XNORM = SCNRM2( N-1, X, INCX ) ALPHR = REAL( ALPHA ) ALPHI = AIMAG( ALPHA )* IF( XNORM.EQ.ZERO .AND. ALPHI.EQ.ZERO ) THEN** H = I* TAU = ZERO ELSE** general case* BETA = -SIGN( SLAPY3( ALPHR, ALPHI, XNORM ), ALPHR ) SAFMIN = SLAMCH( 'S' ) / SLAMCH( 'E' ) RSAFMN = ONE / SAFMIN* KNT = 0 IF( ABS( BETA ).LT.SAFMIN ) THEN** XNORM, BETA may be inaccurate; scale X and recompute them* 10 CONTINUE KNT = KNT + 1 CALL CSSCAL( N-1, RSAFMN, X, INCX ) BETA = BETA*RSAFMN ALPHI = ALPHI*RSAFMN ALPHR = ALPHR*RSAFMN IF( ABS( BETA ).LT.SAFMIN ) $ GO TO 10** New BETA is at most 1, at least SAFMIN* XNORM = SCNRM2( N-1, X, INCX ) ALPHA = CMPLX( ALPHR, ALPHI ) BETA = -SIGN( SLAPY3( ALPHR, ALPHI, XNORM ), ALPHR ) END IF TAU = CMPLX( ( BETA-ALPHR ) / BETA, -ALPHI / BETA ) ALPHA = CLADIV( CMPLX( ONE ), ALPHA-BETA ) CALL CSCAL( N-1, ALPHA, X, INCX )** If ALPHA is subnormal, it may lose relative accuracy* DO 20 J = 1, KNT BETA = BETA*SAFMIN 20 CONTINUE ALPHA = BETA END IF* RETURN** End of CLARFG* END123456789101112131415161718// This file is part of Eigen, a lightweight C++ template library// for linear algebra.//// Copyright (C) 2009-2014 Gael Guennebaud <gael.guennebaud@inria.fr>//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#define SCALAR std::complex<float>#define SCALAR_SUFFIX c#define SCALAR_SUFFIX_UP "C"#define REAL_SCALAR_SUFFIX s#define ISCOMPLEX 1
#include "cholesky.cpp"#include "lu.cpp"#include "svd.cpp"123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111*> \brief \b DLAPY3** =========== DOCUMENTATION ===========** Online html documentation available at * http://www.netlib.org/lapack/explore-html/ **> \htmlonly*> Download DLAPY3 + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dlapy3.f"> *> [TGZ]</a> *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dlapy3.f"> *> [ZIP]</a> *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dlapy3.f"> *> [TXT]</a>*> \endhtmlonly ** Definition:* ===========** DOUBLE PRECISION FUNCTION DLAPY3( X, Y, Z )* * .. Scalar Arguments ..* DOUBLE PRECISION X, Y, Z* ..* **> \par Purpose:* =============*>*> \verbatim*>*> DLAPY3 returns sqrt(x**2+y**2+z**2), taking care not to cause*> unnecessary overflow.*> \endverbatim** Arguments:* ==========**> \param[in] X*> \verbatim*> X is DOUBLE PRECISION*> \endverbatim*>*> \param[in] Y*> \verbatim*> Y is DOUBLE PRECISION*> \endverbatim*>*> \param[in] Z*> \verbatim*> Z is DOUBLE PRECISION*> X, Y and Z specify the values x, y and z.*> \endverbatim** Authors:* ========**> \author Univ. of Tennessee *> \author Univ. of California Berkeley *> \author Univ. of Colorado Denver *> \author NAG Ltd. **> \date November 2011**> \ingroup auxOTHERauxiliary** ===================================================================== DOUBLE PRECISION FUNCTION DLAPY3( X, Y, Z )** -- LAPACK auxiliary routine (version 3.4.0) --* -- LAPACK is a software package provided by Univ. of Tennessee, --* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--* November 2011** .. Scalar Arguments .. DOUBLE PRECISION X, Y, Z* ..** =====================================================================** .. Parameters .. DOUBLE PRECISION ZERO PARAMETER ( ZERO = 0.0D0 )* ..* .. Local Scalars .. DOUBLE PRECISION W, XABS, YABS, ZABS* ..* .. Intrinsic Functions .. INTRINSIC ABS, MAX, SQRT* ..* .. Executable Statements ..* XABS = ABS( X ) YABS = ABS( Y ) ZABS = ABS( Z ) W = MAX( XABS, YABS, ZABS ) IF( W.EQ.ZERO ) THEN* W can be zero for max(0,nan,0)* adding all three entries together will make sure* NaN will not disappear. DLAPY3 = XABS + YABS + ZABS ELSE DLAPY3 = W*SQRT( ( XABS / W )**2+( YABS / W )**2+ $ ( ZABS / W )**2 ) END IF RETURN** End of DLAPY3* END123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762*> \brief \b DLARFB** =========== DOCUMENTATION ===========** Online html documentation available at * http://www.netlib.org/lapack/explore-html/ **> \htmlonly*> Download DLARFB + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dlarfb.f"> *> [TGZ]</a> *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dlarfb.f"> *> [ZIP]</a> *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dlarfb.f"> *> [TXT]</a>*> \endhtmlonly ** Definition:* ===========** SUBROUTINE DLARFB( SIDE, TRANS, DIRECT, STOREV, M, N, K, V, LDV,* T, LDT, C, LDC, WORK, LDWORK )* * .. Scalar Arguments ..* CHARACTER DIRECT, SIDE, STOREV, TRANS* INTEGER K, LDC, LDT, LDV, LDWORK, M, N* ..* .. Array Arguments ..* DOUBLE PRECISION C( LDC, * ), T( LDT, * ), V( LDV, * ),* $ WORK( LDWORK, * )* ..* **> \par Purpose:* =============*>*> \verbatim*>*> DLARFB applies a real block reflector H or its transpose H**T to a*> real m by n matrix C, from either the left or the right.*> \endverbatim** Arguments:* ==========**> \param[in] SIDE*> \verbatim*> SIDE is CHARACTER*1*> = 'L': apply H or H**T from the Left*> = 'R': apply H or H**T from the Right*> \endverbatim*>*> \param[in] TRANS*> \verbatim*> TRANS is CHARACTER*1*> = 'N': apply H (No transpose)*> = 'T': apply H**T (Transpose)*> \endverbatim*>*> \param[in] DIRECT*> \verbatim*> DIRECT is CHARACTER*1*> Indicates how H is formed from a product of elementary*> reflectors*> = 'F': H = H(1) H(2) . . . H(k) (Forward)*> = 'B': H = H(k) . . . H(2) H(1) (Backward)*> \endverbatim*>*> \param[in] STOREV*> \verbatim*> STOREV is CHARACTER*1*> Indicates how the vectors which define the elementary*> reflectors are stored:*> = 'C': Columnwise*> = 'R': Rowwise*> \endverbatim*>*> \param[in] M*> \verbatim*> M is INTEGER*> The number of rows of the matrix C.*> \endverbatim*>*> \param[in] N*> \verbatim*> N is INTEGER*> The number of columns of the matrix C.*> \endverbatim*>*> \param[in] K*> \verbatim*> K is INTEGER*> The order of the matrix T (= the number of elementary*> reflectors whose product defines the block reflector).*> \endverbatim*>*> \param[in] V*> \verbatim*> V is DOUBLE PRECISION array, dimension*> (LDV,K) if STOREV = 'C'*> (LDV,M) if STOREV = 'R' and SIDE = 'L'*> (LDV,N) if STOREV = 'R' and SIDE = 'R'*> The matrix V. See Further Details.*> \endverbatim*>*> \param[in] LDV*> \verbatim*> LDV is INTEGER*> The leading dimension of the array V.*> If STOREV = 'C' and SIDE = 'L', LDV >= max(1,M);*> if STOREV = 'C' and SIDE = 'R', LDV >= max(1,N);*> if STOREV = 'R', LDV >= K.*> \endverbatim*>*> \param[in] T*> \verbatim*> T is DOUBLE PRECISION array, dimension (LDT,K)*> The triangular k by k matrix T in the representation of the*> block reflector.*> \endverbatim*>*> \param[in] LDT*> \verbatim*> LDT is INTEGER*> The leading dimension of the array T. LDT >= K.*> \endverbatim*>*> \param[in,out] C*> \verbatim*> C is DOUBLE PRECISION array, dimension (LDC,N)*> On entry, the m by n matrix C.*> On exit, C is overwritten by H*C or H**T*C or C*H or C*H**T.*> \endverbatim*>*> \param[in] LDC*> \verbatim*> LDC is INTEGER*> The leading dimension of the array C. LDC >= max(1,M).*> \endverbatim*>*> \param[out] WORK*> \verbatim*> WORK is DOUBLE PRECISION array, dimension (LDWORK,K)*> \endverbatim*>*> \param[in] LDWORK*> \verbatim*> LDWORK is INTEGER*> The leading dimension of the array WORK.*> If SIDE = 'L', LDWORK >= max(1,N);*> if SIDE = 'R', LDWORK >= max(1,M).*> \endverbatim** Authors:* ========**> \author Univ. of Tennessee *> \author Univ. of California Berkeley *> \author Univ. of Colorado Denver *> \author NAG Ltd. **> \date November 2011**> \ingroup doubleOTHERauxiliary**> \par Further Details:* =====================*>*> \verbatim*>*> The shape of the matrix V and the storage of the vectors which define*> the H(i) is best illustrated by the following example with n = 5 and*> k = 3. The elements equal to 1 are not stored; the corresponding*> array elements are modified but restored on exit. The rest of the*> array is not used.*>*> DIRECT = 'F' and STOREV = 'C': DIRECT = 'F' and STOREV = 'R':*>*> V = ( 1 ) V = ( 1 v1 v1 v1 v1 )*> ( v1 1 ) ( 1 v2 v2 v2 )*> ( v1 v2 1 ) ( 1 v3 v3 )*> ( v1 v2 v3 )*> ( v1 v2 v3 )*>*> DIRECT = 'B' and STOREV = 'C': DIRECT = 'B' and STOREV = 'R':*>*> V = ( v1 v2 v3 ) V = ( v1 v1 1 )*> ( v1 v2 v3 ) ( v2 v2 v2 1 )*> ( 1 v2 v3 ) ( v3 v3 v3 v3 1 )*> ( 1 v3 )*> ( 1 )*> \endverbatim*>* ===================================================================== SUBROUTINE DLARFB( SIDE, TRANS, DIRECT, STOREV, M, N, K, V, LDV, $ T, LDT, C, LDC, WORK, LDWORK )** -- LAPACK auxiliary routine (version 3.4.0) --* -- LAPACK is a software package provided by Univ. of Tennessee, --* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--* November 2011** .. Scalar Arguments .. CHARACTER DIRECT, SIDE, STOREV, TRANS INTEGER K, LDC, LDT, LDV, LDWORK, M, N* ..* .. Array Arguments .. DOUBLE PRECISION C( LDC, * ), T( LDT, * ), V( LDV, * ), $ WORK( LDWORK, * )* ..** =====================================================================** .. Parameters .. DOUBLE PRECISION ONE PARAMETER ( ONE = 1.0D+0 )* ..* .. Local Scalars .. CHARACTER TRANST INTEGER I, J, LASTV, LASTC* ..* .. External Functions .. LOGICAL LSAME INTEGER ILADLR, ILADLC EXTERNAL LSAME, ILADLR, ILADLC* ..* .. External Subroutines .. EXTERNAL DCOPY, DGEMM, DTRMM* ..* .. Executable Statements ..** Quick return if possible* IF( M.LE.0 .OR. N.LE.0 ) $ RETURN* IF( LSAME( TRANS, 'N' ) ) THEN TRANST = 'T' ELSE TRANST = 'N' END IF* IF( LSAME( STOREV, 'C' ) ) THEN* IF( LSAME( DIRECT, 'F' ) ) THEN** Let V = ( V1 ) (first K rows)* ( V2 )* where V1 is unit lower triangular.* IF( LSAME( SIDE, 'L' ) ) THEN** Form H * C or H**T * C where C = ( C1 )* ( C2 )* LASTV = MAX( K, ILADLR( M, K, V, LDV ) ) LASTC = ILADLC( LASTV, N, C, LDC )** W := C**T * V = (C1**T * V1 + C2**T * V2) (stored in WORK)** W := C1**T* DO 10 J = 1, K CALL DCOPY( LASTC, C( J, 1 ), LDC, WORK( 1, J ), 1 ) 10 CONTINUE** W := W * V1* CALL DTRMM( 'Right', 'Lower', 'No transpose', 'Unit', $ LASTC, K, ONE, V, LDV, WORK, LDWORK ) IF( LASTV.GT.K ) THEN** W := W + C2**T *V2* CALL DGEMM( 'Transpose', 'No transpose', $ LASTC, K, LASTV-K, $ ONE, C( K+1, 1 ), LDC, V( K+1, 1 ), LDV, $ ONE, WORK, LDWORK ) END IF** W := W * T**T or W * T* CALL DTRMM( 'Right', 'Upper', TRANST, 'Non-unit', $ LASTC, K, ONE, T, LDT, WORK, LDWORK )** C := C - V * W**T* IF( LASTV.GT.K ) THEN** C2 := C2 - V2 * W**T* CALL DGEMM( 'No transpose', 'Transpose', $ LASTV-K, LASTC, K, $ -ONE, V( K+1, 1 ), LDV, WORK, LDWORK, ONE, $ C( K+1, 1 ), LDC ) END IF** W := W * V1**T* CALL DTRMM( 'Right', 'Lower', 'Transpose', 'Unit', $ LASTC, K, ONE, V, LDV, WORK, LDWORK )** C1 := C1 - W**T* DO 30 J = 1, K DO 20 I = 1, LASTC C( J, I ) = C( J, I ) - WORK( I, J ) 20 CONTINUE 30 CONTINUE* ELSE IF( LSAME( SIDE, 'R' ) ) THEN** Form C * H or C * H**T where C = ( C1 C2 )* LASTV = MAX( K, ILADLR( N, K, V, LDV ) ) LASTC = ILADLR( M, LASTV, C, LDC )** W := C * V = (C1*V1 + C2*V2) (stored in WORK)** W := C1* DO 40 J = 1, K CALL DCOPY( LASTC, C( 1, J ), 1, WORK( 1, J ), 1 ) 40 CONTINUE** W := W * V1* CALL DTRMM( 'Right', 'Lower', 'No transpose', 'Unit', $ LASTC, K, ONE, V, LDV, WORK, LDWORK ) IF( LASTV.GT.K ) THEN** W := W + C2 * V2* CALL DGEMM( 'No transpose', 'No transpose', $ LASTC, K, LASTV-K, $ ONE, C( 1, K+1 ), LDC, V( K+1, 1 ), LDV, $ ONE, WORK, LDWORK ) END IF** W := W * T or W * T**T* CALL DTRMM( 'Right', 'Upper', TRANS, 'Non-unit', $ LASTC, K, ONE, T, LDT, WORK, LDWORK )** C := C - W * V**T* IF( LASTV.GT.K ) THEN** C2 := C2 - W * V2**T* CALL DGEMM( 'No transpose', 'Transpose', $ LASTC, LASTV-K, K, $ -ONE, WORK, LDWORK, V( K+1, 1 ), LDV, ONE, $ C( 1, K+1 ), LDC ) END IF** W := W * V1**T* CALL DTRMM( 'Right', 'Lower', 'Transpose', 'Unit', $ LASTC, K, ONE, V, LDV, WORK, LDWORK )** C1 := C1 - W* DO 60 J = 1, K DO 50 I = 1, LASTC C( I, J ) = C( I, J ) - WORK( I, J ) 50 CONTINUE 60 CONTINUE END IF* ELSE** Let V = ( V1 )* ( V2 ) (last K rows)* where V2 is unit upper triangular.* IF( LSAME( SIDE, 'L' ) ) THEN** Form H * C or H**T * C where C = ( C1 )* ( C2 )* LASTV = MAX( K, ILADLR( M, K, V, LDV ) ) LASTC = ILADLC( LASTV, N, C, LDC )** W := C**T * V = (C1**T * V1 + C2**T * V2) (stored in WORK)** W := C2**T* DO 70 J = 1, K CALL DCOPY( LASTC, C( LASTV-K+J, 1 ), LDC, $ WORK( 1, J ), 1 ) 70 CONTINUE** W := W * V2* CALL DTRMM( 'Right', 'Upper', 'No transpose', 'Unit', $ LASTC, K, ONE, V( LASTV-K+1, 1 ), LDV, $ WORK, LDWORK ) IF( LASTV.GT.K ) THEN** W := W + C1**T*V1* CALL DGEMM( 'Transpose', 'No transpose', $ LASTC, K, LASTV-K, ONE, C, LDC, V, LDV, $ ONE, WORK, LDWORK ) END IF** W := W * T**T or W * T* CALL DTRMM( 'Right', 'Lower', TRANST, 'Non-unit', $ LASTC, K, ONE, T, LDT, WORK, LDWORK )** C := C - V * W**T* IF( LASTV.GT.K ) THEN** C1 := C1 - V1 * W**T* CALL DGEMM( 'No transpose', 'Transpose', $ LASTV-K, LASTC, K, -ONE, V, LDV, WORK, LDWORK, $ ONE, C, LDC ) END IF** W := W * V2**T* CALL DTRMM( 'Right', 'Upper', 'Transpose', 'Unit', $ LASTC, K, ONE, V( LASTV-K+1, 1 ), LDV, $ WORK, LDWORK )** C2 := C2 - W**T* DO 90 J = 1, K DO 80 I = 1, LASTC C( LASTV-K+J, I ) = C( LASTV-K+J, I ) - WORK(I, J) 80 CONTINUE 90 CONTINUE* ELSE IF( LSAME( SIDE, 'R' ) ) THEN** Form C * H or C * H**T where C = ( C1 C2 )* LASTV = MAX( K, ILADLR( N, K, V, LDV ) ) LASTC = ILADLR( M, LASTV, C, LDC )** W := C * V = (C1*V1 + C2*V2) (stored in WORK)** W := C2* DO 100 J = 1, K CALL DCOPY( LASTC, C( 1, N-K+J ), 1, WORK( 1, J ), 1 ) 100 CONTINUE** W := W * V2* CALL DTRMM( 'Right', 'Upper', 'No transpose', 'Unit', $ LASTC, K, ONE, V( LASTV-K+1, 1 ), LDV, $ WORK, LDWORK ) IF( LASTV.GT.K ) THEN** W := W + C1 * V1* CALL DGEMM( 'No transpose', 'No transpose', $ LASTC, K, LASTV-K, ONE, C, LDC, V, LDV, $ ONE, WORK, LDWORK ) END IF** W := W * T or W * T**T* CALL DTRMM( 'Right', 'Lower', TRANS, 'Non-unit', $ LASTC, K, ONE, T, LDT, WORK, LDWORK )** C := C - W * V**T* IF( LASTV.GT.K ) THEN** C1 := C1 - W * V1**T* CALL DGEMM( 'No transpose', 'Transpose', $ LASTC, LASTV-K, K, -ONE, WORK, LDWORK, V, LDV, $ ONE, C, LDC ) END IF** W := W * V2**T* CALL DTRMM( 'Right', 'Upper', 'Transpose', 'Unit', $ LASTC, K, ONE, V( LASTV-K+1, 1 ), LDV, $ WORK, LDWORK )** C2 := C2 - W* DO 120 J = 1, K DO 110 I = 1, LASTC C( I, LASTV-K+J ) = C( I, LASTV-K+J ) - WORK(I, J) 110 CONTINUE 120 CONTINUE END IF END IF* ELSE IF( LSAME( STOREV, 'R' ) ) THEN* IF( LSAME( DIRECT, 'F' ) ) THEN** Let V = ( V1 V2 ) (V1: first K columns)* where V1 is unit upper triangular.* IF( LSAME( SIDE, 'L' ) ) THEN** Form H * C or H**T * C where C = ( C1 )* ( C2 )* LASTV = MAX( K, ILADLC( K, M, V, LDV ) ) LASTC = ILADLC( LASTV, N, C, LDC )** W := C**T * V**T = (C1**T * V1**T + C2**T * V2**T) (stored in WORK)** W := C1**T* DO 130 J = 1, K CALL DCOPY( LASTC, C( J, 1 ), LDC, WORK( 1, J ), 1 ) 130 CONTINUE** W := W * V1**T* CALL DTRMM( 'Right', 'Upper', 'Transpose', 'Unit', $ LASTC, K, ONE, V, LDV, WORK, LDWORK ) IF( LASTV.GT.K ) THEN** W := W + C2**T*V2**T* CALL DGEMM( 'Transpose', 'Transpose', $ LASTC, K, LASTV-K, $ ONE, C( K+1, 1 ), LDC, V( 1, K+1 ), LDV, $ ONE, WORK, LDWORK ) END IF** W := W * T**T or W * T* CALL DTRMM( 'Right', 'Upper', TRANST, 'Non-unit', $ LASTC, K, ONE, T, LDT, WORK, LDWORK )** C := C - V**T * W**T* IF( LASTV.GT.K ) THEN** C2 := C2 - V2**T * W**T* CALL DGEMM( 'Transpose', 'Transpose', $ LASTV-K, LASTC, K, $ -ONE, V( 1, K+1 ), LDV, WORK, LDWORK, $ ONE, C( K+1, 1 ), LDC ) END IF** W := W * V1* CALL DTRMM( 'Right', 'Upper', 'No transpose', 'Unit', $ LASTC, K, ONE, V, LDV, WORK, LDWORK )** C1 := C1 - W**T* DO 150 J = 1, K DO 140 I = 1, LASTC C( J, I ) = C( J, I ) - WORK( I, J ) 140 CONTINUE 150 CONTINUE* ELSE IF( LSAME( SIDE, 'R' ) ) THEN** Form C * H or C * H**T where C = ( C1 C2 )* LASTV = MAX( K, ILADLC( K, N, V, LDV ) ) LASTC = ILADLR( M, LASTV, C, LDC )** W := C * V**T = (C1*V1**T + C2*V2**T) (stored in WORK)** W := C1* DO 160 J = 1, K CALL DCOPY( LASTC, C( 1, J ), 1, WORK( 1, J ), 1 ) 160 CONTINUE** W := W * V1**T* CALL DTRMM( 'Right', 'Upper', 'Transpose', 'Unit', $ LASTC, K, ONE, V, LDV, WORK, LDWORK ) IF( LASTV.GT.K ) THEN** W := W + C2 * V2**T* CALL DGEMM( 'No transpose', 'Transpose', $ LASTC, K, LASTV-K, $ ONE, C( 1, K+1 ), LDC, V( 1, K+1 ), LDV, $ ONE, WORK, LDWORK ) END IF** W := W * T or W * T**T* CALL DTRMM( 'Right', 'Upper', TRANS, 'Non-unit', $ LASTC, K, ONE, T, LDT, WORK, LDWORK )** C := C - W * V* IF( LASTV.GT.K ) THEN** C2 := C2 - W * V2* CALL DGEMM( 'No transpose', 'No transpose', $ LASTC, LASTV-K, K, $ -ONE, WORK, LDWORK, V( 1, K+1 ), LDV, $ ONE, C( 1, K+1 ), LDC ) END IF** W := W * V1* CALL DTRMM( 'Right', 'Upper', 'No transpose', 'Unit', $ LASTC, K, ONE, V, LDV, WORK, LDWORK )** C1 := C1 - W* DO 180 J = 1, K DO 170 I = 1, LASTC C( I, J ) = C( I, J ) - WORK( I, J ) 170 CONTINUE 180 CONTINUE* END IF* ELSE** Let V = ( V1 V2 ) (V2: last K columns)* where V2 is unit lower triangular.* IF( LSAME( SIDE, 'L' ) ) THEN** Form H * C or H**T * C where C = ( C1 )* ( C2 )* LASTV = MAX( K, ILADLC( K, M, V, LDV ) ) LASTC = ILADLC( LASTV, N, C, LDC )** W := C**T * V**T = (C1**T * V1**T + C2**T * V2**T) (stored in WORK)** W := C2**T* DO 190 J = 1, K CALL DCOPY( LASTC, C( LASTV-K+J, 1 ), LDC, $ WORK( 1, J ), 1 ) 190 CONTINUE** W := W * V2**T* CALL DTRMM( 'Right', 'Lower', 'Transpose', 'Unit', $ LASTC, K, ONE, V( 1, LASTV-K+1 ), LDV, $ WORK, LDWORK ) IF( LASTV.GT.K ) THEN** W := W + C1**T * V1**T* CALL DGEMM( 'Transpose', 'Transpose', $ LASTC, K, LASTV-K, ONE, C, LDC, V, LDV, $ ONE, WORK, LDWORK ) END IF** W := W * T**T or W * T* CALL DTRMM( 'Right', 'Lower', TRANST, 'Non-unit', $ LASTC, K, ONE, T, LDT, WORK, LDWORK )** C := C - V**T * W**T* IF( LASTV.GT.K ) THEN** C1 := C1 - V1**T * W**T* CALL DGEMM( 'Transpose', 'Transpose', $ LASTV-K, LASTC, K, -ONE, V, LDV, WORK, LDWORK, $ ONE, C, LDC ) END IF** W := W * V2* CALL DTRMM( 'Right', 'Lower', 'No transpose', 'Unit', $ LASTC, K, ONE, V( 1, LASTV-K+1 ), LDV, $ WORK, LDWORK )** C2 := C2 - W**T* DO 210 J = 1, K DO 200 I = 1, LASTC C( LASTV-K+J, I ) = C( LASTV-K+J, I ) - WORK(I, J) 200 CONTINUE 210 CONTINUE* ELSE IF( LSAME( SIDE, 'R' ) ) THEN** Form C * H or C * H**T where C = ( C1 C2 )* LASTV = MAX( K, ILADLC( K, N, V, LDV ) ) LASTC = ILADLR( M, LASTV, C, LDC )** W := C * V**T = (C1*V1**T + C2*V2**T) (stored in WORK)** W := C2* DO 220 J = 1, K CALL DCOPY( LASTC, C( 1, LASTV-K+J ), 1, $ WORK( 1, J ), 1 ) 220 CONTINUE** W := W * V2**T* CALL DTRMM( 'Right', 'Lower', 'Transpose', 'Unit', $ LASTC, K, ONE, V( 1, LASTV-K+1 ), LDV, $ WORK, LDWORK ) IF( LASTV.GT.K ) THEN** W := W + C1 * V1**T* CALL DGEMM( 'No transpose', 'Transpose', $ LASTC, K, LASTV-K, ONE, C, LDC, V, LDV, $ ONE, WORK, LDWORK ) END IF** W := W * T or W * T**T* CALL DTRMM( 'Right', 'Lower', TRANS, 'Non-unit', $ LASTC, K, ONE, T, LDT, WORK, LDWORK )** C := C - W * V* IF( LASTV.GT.K ) THEN** C1 := C1 - W * V1* CALL DGEMM( 'No transpose', 'No transpose', $ LASTC, LASTV-K, K, -ONE, WORK, LDWORK, V, LDV, $ ONE, C, LDC ) END IF** W := W * V2* CALL DTRMM( 'Right', 'Lower', 'No transpose', 'Unit', $ LASTC, K, ONE, V( 1, LASTV-K+1 ), LDV, $ WORK, LDWORK )** C1 := C1 - W* DO 240 J = 1, K DO 230 I = 1, LASTC C( I, LASTV-K+J ) = C( I, LASTV-K+J ) - WORK(I, J) 230 CONTINUE 240 CONTINUE* END IF* END IF END IF* RETURN** End of DLARFB* END123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196*> \brief \b DLARFG** =========== DOCUMENTATION ===========** Online html documentation available at * http://www.netlib.org/lapack/explore-html/ **> \htmlonly*> Download DLARFG + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dlarfg.f"> *> [TGZ]</a> *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dlarfg.f"> *> [ZIP]</a> *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dlarfg.f"> *> [TXT]</a>*> \endhtmlonly ** Definition:* ===========** SUBROUTINE DLARFG( N, ALPHA, X, INCX, TAU )* * .. Scalar Arguments ..* INTEGER INCX, N* DOUBLE PRECISION ALPHA, TAU* ..* .. Array Arguments ..* DOUBLE PRECISION X( * )* ..* **> \par Purpose:* =============*>*> \verbatim*>*> DLARFG generates a real elementary reflector H of order n, such*> that*>*> H * ( alpha ) = ( beta ), H**T * H = I.*> ( x ) ( 0 )*>*> where alpha and beta are scalars, and x is an (n-1)-element real*> vector. H is represented in the form*>*> H = I - tau * ( 1 ) * ( 1 v**T ) ,*> ( v )*>*> where tau is a real scalar and v is a real (n-1)-element*> vector.*>*> If the elements of x are all zero, then tau = 0 and H is taken to be*> the unit matrix.*>*> Otherwise 1 <= tau <= 2.*> \endverbatim** Arguments:* ==========**> \param[in] N*> \verbatim*> N is INTEGER*> The order of the elementary reflector.*> \endverbatim*>*> \param[in,out] ALPHA*> \verbatim*> ALPHA is DOUBLE PRECISION*> On entry, the value alpha.*> On exit, it is overwritten with the value beta.*> \endverbatim*>*> \param[in,out] X*> \verbatim*> X is DOUBLE PRECISION array, dimension*> (1+(N-2)*abs(INCX))*> On entry, the vector x.*> On exit, it is overwritten with the vector v.*> \endverbatim*>*> \param[in] INCX*> \verbatim*> INCX is INTEGER*> The increment between elements of X. INCX > 0.*> \endverbatim*>*> \param[out] TAU*> \verbatim*> TAU is DOUBLE PRECISION*> The value tau.*> \endverbatim** Authors:* ========**> \author Univ. of Tennessee *> \author Univ. of California Berkeley *> \author Univ. of Colorado Denver *> \author NAG Ltd. **> \date November 2011**> \ingroup doubleOTHERauxiliary** ===================================================================== SUBROUTINE DLARFG( N, ALPHA, X, INCX, TAU )** -- LAPACK auxiliary routine (version 3.4.0) --* -- LAPACK is a software package provided by Univ. of Tennessee, --* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--* November 2011** .. Scalar Arguments .. INTEGER INCX, N DOUBLE PRECISION ALPHA, TAU* ..* .. Array Arguments .. DOUBLE PRECISION X( * )* ..** =====================================================================** .. Parameters .. DOUBLE PRECISION ONE, ZERO PARAMETER ( ONE = 1.0D+0, ZERO = 0.0D+0 )* ..* .. Local Scalars .. INTEGER J, KNT DOUBLE PRECISION BETA, RSAFMN, SAFMIN, XNORM* ..* .. External Functions .. DOUBLE PRECISION DLAMCH, DLAPY2, DNRM2 EXTERNAL DLAMCH, DLAPY2, DNRM2* ..* .. Intrinsic Functions .. INTRINSIC ABS, SIGN* ..* .. External Subroutines .. EXTERNAL DSCAL* ..* .. Executable Statements ..* IF( N.LE.1 ) THEN TAU = ZERO RETURN END IF* XNORM = DNRM2( N-1, X, INCX )* IF( XNORM.EQ.ZERO ) THEN** H = I* TAU = ZERO ELSE** general case* BETA = -SIGN( DLAPY2( ALPHA, XNORM ), ALPHA ) SAFMIN = DLAMCH( 'S' ) / DLAMCH( 'E' ) KNT = 0 IF( ABS( BETA ).LT.SAFMIN ) THEN** XNORM, BETA may be inaccurate; scale X and recompute them* RSAFMN = ONE / SAFMIN 10 CONTINUE KNT = KNT + 1 CALL DSCAL( N-1, RSAFMN, X, INCX ) BETA = BETA*RSAFMN ALPHA = ALPHA*RSAFMN IF( ABS( BETA ).LT.SAFMIN ) $ GO TO 10** New BETA is at most 1, at least SAFMIN* XNORM = DNRM2( N-1, X, INCX ) BETA = -SIGN( DLAPY2( ALPHA, XNORM ), ALPHA ) END IF TAU = ( BETA-ALPHA ) / BETA CALL DSCAL( N-1, ONE / ( ALPHA-BETA ), X, INCX )** If ALPHA is subnormal, it may lose relative accuracy* DO 20 J = 1, KNT BETA = BETA*SAFMIN 20 CONTINUE ALPHA = BETA END IF* RETURN** End of DLARFG* END123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326*> \brief \b DLARFT** =========== DOCUMENTATION ===========** Online html documentation available at * http://www.netlib.org/lapack/explore-html/ **> \htmlonly*> Download DLARFT + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dlarft.f"> *> [TGZ]</a> *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dlarft.f"> *> [ZIP]</a> *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dlarft.f"> *> [TXT]</a>*> \endhtmlonly ** Definition:* ===========** SUBROUTINE DLARFT( DIRECT, STOREV, N, K, V, LDV, TAU, T, LDT )* * .. Scalar Arguments ..* CHARACTER DIRECT, STOREV* INTEGER K, LDT, LDV, N* ..* .. Array Arguments ..* DOUBLE PRECISION T( LDT, * ), TAU( * ), V( LDV, * )* ..* **> \par Purpose:* =============*>*> \verbatim*>*> DLARFT forms the triangular factor T of a real block reflector H*> of order n, which is defined as a product of k elementary reflectors.*>*> If DIRECT = 'F', H = H(1) H(2) . . . H(k) and T is upper triangular;*>*> If DIRECT = 'B', H = H(k) . . . H(2) H(1) and T is lower triangular.*>*> If STOREV = 'C', the vector which defines the elementary reflector*> H(i) is stored in the i-th column of the array V, and*>*> H = I - V * T * V**T*>*> If STOREV = 'R', the vector which defines the elementary reflector*> H(i) is stored in the i-th row of the array V, and*>*> H = I - V**T * T * V*> \endverbatim** Arguments:* ==========**> \param[in] DIRECT*> \verbatim*> DIRECT is CHARACTER*1*> Specifies the order in which the elementary reflectors are*> multiplied to form the block reflector:*> = 'F': H = H(1) H(2) . . . H(k) (Forward)*> = 'B': H = H(k) . . . H(2) H(1) (Backward)*> \endverbatim*>*> \param[in] STOREV*> \verbatim*> STOREV is CHARACTER*1*> Specifies how the vectors which define the elementary*> reflectors are stored (see also Further Details):*> = 'C': columnwise*> = 'R': rowwise*> \endverbatim*>*> \param[in] N*> \verbatim*> N is INTEGER*> The order of the block reflector H. N >= 0.*> \endverbatim*>*> \param[in] K*> \verbatim*> K is INTEGER*> The order of the triangular factor T (= the number of*> elementary reflectors). K >= 1.*> \endverbatim*>*> \param[in] V*> \verbatim*> V is DOUBLE PRECISION array, dimension*> (LDV,K) if STOREV = 'C'*> (LDV,N) if STOREV = 'R'*> The matrix V. See further details.*> \endverbatim*>*> \param[in] LDV*> \verbatim*> LDV is INTEGER*> The leading dimension of the array V.*> If STOREV = 'C', LDV >= max(1,N); if STOREV = 'R', LDV >= K.*> \endverbatim*>*> \param[in] TAU*> \verbatim*> TAU is DOUBLE PRECISION array, dimension (K)*> TAU(i) must contain the scalar factor of the elementary*> reflector H(i).*> \endverbatim*>*> \param[out] T*> \verbatim*> T is DOUBLE PRECISION array, dimension (LDT,K)*> The k by k triangular factor T of the block reflector.*> If DIRECT = 'F', T is upper triangular; if DIRECT = 'B', T is*> lower triangular. The rest of the array is not used.*> \endverbatim*>*> \param[in] LDT*> \verbatim*> LDT is INTEGER*> The leading dimension of the array T. LDT >= K.*> \endverbatim** Authors:* ========**> \author Univ. of Tennessee *> \author Univ. of California Berkeley *> \author Univ. of Colorado Denver *> \author NAG Ltd. **> \date April 2012**> \ingroup doubleOTHERauxiliary**> \par Further Details:* =====================*>*> \verbatim*>*> The shape of the matrix V and the storage of the vectors which define*> the H(i) is best illustrated by the following example with n = 5 and*> k = 3. The elements equal to 1 are not stored.*>*> DIRECT = 'F' and STOREV = 'C': DIRECT = 'F' and STOREV = 'R':*>*> V = ( 1 ) V = ( 1 v1 v1 v1 v1 )*> ( v1 1 ) ( 1 v2 v2 v2 )*> ( v1 v2 1 ) ( 1 v3 v3 )*> ( v1 v2 v3 )*> ( v1 v2 v3 )*>*> DIRECT = 'B' and STOREV = 'C': DIRECT = 'B' and STOREV = 'R':*>*> V = ( v1 v2 v3 ) V = ( v1 v1 1 )*> ( v1 v2 v3 ) ( v2 v2 v2 1 )*> ( 1 v2 v3 ) ( v3 v3 v3 v3 1 )*> ( 1 v3 )*> ( 1 )*> \endverbatim*>* ===================================================================== SUBROUTINE DLARFT( DIRECT, STOREV, N, K, V, LDV, TAU, T, LDT )** -- LAPACK auxiliary routine (version 3.4.1) --* -- LAPACK is a software package provided by Univ. of Tennessee, --* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--* April 2012** .. Scalar Arguments .. CHARACTER DIRECT, STOREV INTEGER K, LDT, LDV, N* ..* .. Array Arguments .. DOUBLE PRECISION T( LDT, * ), TAU( * ), V( LDV, * )* ..** =====================================================================** .. Parameters .. DOUBLE PRECISION ONE, ZERO PARAMETER ( ONE = 1.0D+0, ZERO = 0.0D+0 )* ..* .. Local Scalars .. INTEGER I, J, PREVLASTV, LASTV* ..* .. External Subroutines .. EXTERNAL DGEMV, DTRMV* ..* .. External Functions .. LOGICAL LSAME EXTERNAL LSAME* ..* .. Executable Statements ..** Quick return if possible* IF( N.EQ.0 ) $ RETURN* IF( LSAME( DIRECT, 'F' ) ) THEN PREVLASTV = N DO I = 1, K PREVLASTV = MAX( I, PREVLASTV ) IF( TAU( I ).EQ.ZERO ) THEN** H(i) = I* DO J = 1, I T( J, I ) = ZERO END DO ELSE** general case* IF( LSAME( STOREV, 'C' ) ) THEN* Skip any trailing zeros. DO LASTV = N, I+1, -1 IF( V( LASTV, I ).NE.ZERO ) EXIT END DO DO J = 1, I-1 T( J, I ) = -TAU( I ) * V( I , J ) END DO J = MIN( LASTV, PREVLASTV )** T(1:i-1,i) := - tau(i) * V(i:j,1:i-1)**T * V(i:j,i)* CALL DGEMV( 'Transpose', J-I, I-1, -TAU( I ), $ V( I+1, 1 ), LDV, V( I+1, I ), 1, ONE, $ T( 1, I ), 1 ) ELSE* Skip any trailing zeros. DO LASTV = N, I+1, -1 IF( V( I, LASTV ).NE.ZERO ) EXIT END DO DO J = 1, I-1 T( J, I ) = -TAU( I ) * V( J , I ) END DO J = MIN( LASTV, PREVLASTV )** T(1:i-1,i) := - tau(i) * V(1:i-1,i:j) * V(i,i:j)**T* CALL DGEMV( 'No transpose', I-1, J-I, -TAU( I ), $ V( 1, I+1 ), LDV, V( I, I+1 ), LDV, ONE, $ T( 1, I ), 1 ) END IF** T(1:i-1,i) := T(1:i-1,1:i-1) * T(1:i-1,i)* CALL DTRMV( 'Upper', 'No transpose', 'Non-unit', I-1, T, $ LDT, T( 1, I ), 1 ) T( I, I ) = TAU( I ) IF( I.GT.1 ) THEN PREVLASTV = MAX( PREVLASTV, LASTV ) ELSE PREVLASTV = LASTV END IF END IF END DO ELSE PREVLASTV = 1 DO I = K, 1, -1 IF( TAU( I ).EQ.ZERO ) THEN** H(i) = I* DO J = I, K T( J, I ) = ZERO END DO ELSE** general case* IF( I.LT.K ) THEN IF( LSAME( STOREV, 'C' ) ) THEN* Skip any leading zeros. DO LASTV = 1, I-1 IF( V( LASTV, I ).NE.ZERO ) EXIT END DO DO J = I+1, K T( J, I ) = -TAU( I ) * V( N-K+I , J ) END DO J = MAX( LASTV, PREVLASTV )** T(i+1:k,i) = -tau(i) * V(j:n-k+i,i+1:k)**T * V(j:n-k+i,i)* CALL DGEMV( 'Transpose', N-K+I-J, K-I, -TAU( I ), $ V( J, I+1 ), LDV, V( J, I ), 1, ONE, $ T( I+1, I ), 1 ) ELSE* Skip any leading zeros. DO LASTV = 1, I-1 IF( V( I, LASTV ).NE.ZERO ) EXIT END DO DO J = I+1, K T( J, I ) = -TAU( I ) * V( J, N-K+I ) END DO J = MAX( LASTV, PREVLASTV )** T(i+1:k,i) = -tau(i) * V(i+1:k,j:n-k+i) * V(i,j:n-k+i)**T* CALL DGEMV( 'No transpose', K-I, N-K+I-J, $ -TAU( I ), V( I+1, J ), LDV, V( I, J ), LDV, $ ONE, T( I+1, I ), 1 ) END IF** T(i+1:k,i) := T(i+1:k,i+1:k) * T(i+1:k,i)* CALL DTRMV( 'Lower', 'No transpose', 'Non-unit', K-I, $ T( I+1, I+1 ), LDT, T( I+1, I ), 1 ) IF( I.GT.1 ) THEN PREVLASTV = MIN( PREVLASTV, LASTV ) ELSE PREVLASTV = LASTV END IF END IF T( I, I ) = TAU( I ) END IF END DO END IF RETURN** End of DLARFT* ENDinclude/eigen/Eigen/CholeskyAdded+45
include/eigen/Eigen/CholmodSupportAdded+48
include/eigen/Eigen/CoreAdded+385
include/eigen/Eigen/DenseAdded+7
include/eigen/Eigen/EigenAdded+2
include/eigen/Eigen/EigenvaluesAdded+60
include/eigen/Eigen/GeometryAdded+59
include/eigen/Eigen/HouseholderAdded+29
include/eigen/Eigen/IterativeLinearSolversAdded+48
include/eigen/Eigen/JacobiAdded+32
include/eigen/Eigen/KLUSupportAdded+41
include/eigen/Eigen/LUAdded+47
include/eigen/Eigen/MetisSupportAdded+35
include/eigen/Eigen/OrderingMethodsAdded+70
include/eigen/Eigen/PaStiXSupportAdded+49
include/eigen/Eigen/PardisoSupportAdded+35
include/eigen/Eigen/QRAdded+50
include/eigen/Eigen/QtAlignedMallocAdded+39
include/eigen/Eigen/SPQRSupportAdded+34
include/eigen/Eigen/SVDAdded+50
include/eigen/Eigen/SparseAdded+34
include/eigen/Eigen/SparseCholeskyAdded+37
include/eigen/Eigen/SparseCoreAdded+69
include/eigen/Eigen/SparseLUAdded+48
include/eigen/Eigen/SparseQRAdded+36
include/eigen/Eigen/StdDequeAdded+27
include/eigen/Eigen/StdListAdded+26
include/eigen/Eigen/StdVectorAdded+27
include/eigen/Eigen/SuperLUSupportAdded+64
include/eigen/Eigen/UmfPackSupportAdded+40
include/eigen/ci/CTest2JUnit.xslAdded+120
include/eigen/ci/README.mdAdded+12
include/eigen/ci/build.linux.gitlab-ci.ymlAdded+334
include/eigen/ci/build.windows.gitlab-ci.ymlAdded+116
include/eigen/ci/checkformat.gitlab-ci.ymlAdded+10
include/eigen/ci/common.gitlab-ci.ymlAdded+40
include/eigen/ci/deploy.gitlab-ci.ymlAdded+41
include/eigen/ci/smoketests.gitlab-ci.ymlAdded+107
include/eigen/ci/test.linux.gitlab-ci.ymlAdded+430
include/eigen/ci/test.windows.gitlab-ci.ymlAdded+110
include/eigen/demos/CMakeLists.txtAdded+13
include/eigen/lapack/cholesky.cppAdded+72
include/eigen/lapack/clacgv.fAdded+116
include/eigen/lapack/cladiv.fAdded+97
include/eigen/lapack/clarfg.fAdded+203
include/eigen/lapack/complex_single.cppAdded+18
include/eigen/lapack/dlapy3.fAdded+111
include/eigen/lapack/dlarfb.fAdded+762
include/eigen/lapack/dlarfg.fAdded+196
include/eigen/lapack/dlarft.fAdded+326