pylibsparseir 0.1.0__cp313-cp313-macosx_15_0_arm64.whl → 0.5.2__cp313-cp313-macosx_15_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pylibsparseir might be problematic. Click here for more details.
- include/eigen3/Eigen/Cholesky +45 -0
- include/eigen3/Eigen/CholmodSupport +48 -0
- include/eigen3/Eigen/Core +384 -0
- include/eigen3/Eigen/Dense +7 -0
- include/eigen3/Eigen/Eigen +2 -0
- include/eigen3/Eigen/Eigenvalues +60 -0
- include/eigen3/Eigen/Geometry +59 -0
- include/eigen3/Eigen/Householder +29 -0
- include/eigen3/Eigen/IterativeLinearSolvers +48 -0
- include/eigen3/Eigen/Jacobi +32 -0
- include/eigen3/Eigen/KLUSupport +41 -0
- include/eigen3/Eigen/LU +47 -0
- include/eigen3/Eigen/MetisSupport +35 -0
- include/eigen3/Eigen/OrderingMethods +70 -0
- include/eigen3/Eigen/PaStiXSupport +49 -0
- include/eigen3/Eigen/PardisoSupport +35 -0
- include/eigen3/Eigen/QR +50 -0
- include/eigen3/Eigen/QtAlignedMalloc +39 -0
- include/eigen3/Eigen/SPQRSupport +34 -0
- include/eigen3/Eigen/SVD +50 -0
- include/eigen3/Eigen/Sparse +34 -0
- include/eigen3/Eigen/SparseCholesky +37 -0
- include/eigen3/Eigen/SparseCore +69 -0
- include/eigen3/Eigen/SparseLU +50 -0
- include/eigen3/Eigen/SparseQR +36 -0
- include/eigen3/Eigen/StdDeque +27 -0
- include/eigen3/Eigen/StdList +26 -0
- include/eigen3/Eigen/StdVector +27 -0
- include/eigen3/Eigen/SuperLUSupport +64 -0
- include/eigen3/Eigen/UmfPackSupport +40 -0
- include/eigen3/Eigen/src/Cholesky/LDLT.h +688 -0
- include/eigen3/Eigen/src/Cholesky/LLT.h +558 -0
- include/eigen3/Eigen/src/Cholesky/LLT_LAPACKE.h +99 -0
- include/eigen3/Eigen/src/CholmodSupport/CholmodSupport.h +682 -0
- include/eigen3/Eigen/src/Core/ArithmeticSequence.h +413 -0
- include/eigen3/Eigen/src/Core/Array.h +417 -0
- include/eigen3/Eigen/src/Core/ArrayBase.h +226 -0
- include/eigen3/Eigen/src/Core/ArrayWrapper.h +209 -0
- include/eigen3/Eigen/src/Core/Assign.h +90 -0
- include/eigen3/Eigen/src/Core/AssignEvaluator.h +1010 -0
- include/eigen3/Eigen/src/Core/Assign_MKL.h +178 -0
- include/eigen3/Eigen/src/Core/BandMatrix.h +353 -0
- include/eigen3/Eigen/src/Core/Block.h +448 -0
- include/eigen3/Eigen/src/Core/BooleanRedux.h +162 -0
- include/eigen3/Eigen/src/Core/CommaInitializer.h +164 -0
- include/eigen3/Eigen/src/Core/ConditionEstimator.h +175 -0
- include/eigen3/Eigen/src/Core/CoreEvaluators.h +1741 -0
- include/eigen3/Eigen/src/Core/CoreIterators.h +132 -0
- include/eigen3/Eigen/src/Core/CwiseBinaryOp.h +183 -0
- include/eigen3/Eigen/src/Core/CwiseNullaryOp.h +1001 -0
- include/eigen3/Eigen/src/Core/CwiseTernaryOp.h +197 -0
- include/eigen3/Eigen/src/Core/CwiseUnaryOp.h +103 -0
- include/eigen3/Eigen/src/Core/CwiseUnaryView.h +132 -0
- include/eigen3/Eigen/src/Core/DenseBase.h +701 -0
- include/eigen3/Eigen/src/Core/DenseCoeffsBase.h +685 -0
- include/eigen3/Eigen/src/Core/DenseStorage.h +652 -0
- include/eigen3/Eigen/src/Core/Diagonal.h +258 -0
- include/eigen3/Eigen/src/Core/DiagonalMatrix.h +391 -0
- include/eigen3/Eigen/src/Core/DiagonalProduct.h +28 -0
- include/eigen3/Eigen/src/Core/Dot.h +318 -0
- include/eigen3/Eigen/src/Core/EigenBase.h +160 -0
- include/eigen3/Eigen/src/Core/ForceAlignedAccess.h +150 -0
- include/eigen3/Eigen/src/Core/Fuzzy.h +155 -0
- include/eigen3/Eigen/src/Core/GeneralProduct.h +465 -0
- include/eigen3/Eigen/src/Core/GenericPacketMath.h +1040 -0
- include/eigen3/Eigen/src/Core/GlobalFunctions.h +194 -0
- include/eigen3/Eigen/src/Core/IO.h +258 -0
- include/eigen3/Eigen/src/Core/IndexedView.h +237 -0
- include/eigen3/Eigen/src/Core/Inverse.h +117 -0
- include/eigen3/Eigen/src/Core/Map.h +171 -0
- include/eigen3/Eigen/src/Core/MapBase.h +310 -0
- include/eigen3/Eigen/src/Core/MathFunctions.h +2057 -0
- include/eigen3/Eigen/src/Core/MathFunctionsImpl.h +200 -0
- include/eigen3/Eigen/src/Core/Matrix.h +565 -0
- include/eigen3/Eigen/src/Core/MatrixBase.h +547 -0
- include/eigen3/Eigen/src/Core/NestByValue.h +85 -0
- include/eigen3/Eigen/src/Core/NoAlias.h +109 -0
- include/eigen3/Eigen/src/Core/NumTraits.h +335 -0
- include/eigen3/Eigen/src/Core/PartialReduxEvaluator.h +232 -0
- include/eigen3/Eigen/src/Core/PermutationMatrix.h +605 -0
- include/eigen3/Eigen/src/Core/PlainObjectBase.h +1128 -0
- include/eigen3/Eigen/src/Core/Product.h +191 -0
- include/eigen3/Eigen/src/Core/ProductEvaluators.h +1179 -0
- include/eigen3/Eigen/src/Core/Random.h +218 -0
- include/eigen3/Eigen/src/Core/Redux.h +515 -0
- include/eigen3/Eigen/src/Core/Ref.h +381 -0
- include/eigen3/Eigen/src/Core/Replicate.h +142 -0
- include/eigen3/Eigen/src/Core/Reshaped.h +454 -0
- include/eigen3/Eigen/src/Core/ReturnByValue.h +119 -0
- include/eigen3/Eigen/src/Core/Reverse.h +217 -0
- include/eigen3/Eigen/src/Core/Select.h +164 -0
- include/eigen3/Eigen/src/Core/SelfAdjointView.h +365 -0
- include/eigen3/Eigen/src/Core/SelfCwiseBinaryOp.h +47 -0
- include/eigen3/Eigen/src/Core/Solve.h +188 -0
- include/eigen3/Eigen/src/Core/SolveTriangular.h +235 -0
- include/eigen3/Eigen/src/Core/SolverBase.h +168 -0
- include/eigen3/Eigen/src/Core/StableNorm.h +251 -0
- include/eigen3/Eigen/src/Core/StlIterators.h +463 -0
- include/eigen3/Eigen/src/Core/Stride.h +116 -0
- include/eigen3/Eigen/src/Core/Swap.h +68 -0
- include/eigen3/Eigen/src/Core/Transpose.h +464 -0
- include/eigen3/Eigen/src/Core/Transpositions.h +386 -0
- include/eigen3/Eigen/src/Core/TriangularMatrix.h +1001 -0
- include/eigen3/Eigen/src/Core/VectorBlock.h +96 -0
- include/eigen3/Eigen/src/Core/VectorwiseOp.h +784 -0
- include/eigen3/Eigen/src/Core/Visitor.h +381 -0
- include/eigen3/Eigen/src/Core/arch/AVX/Complex.h +372 -0
- include/eigen3/Eigen/src/Core/arch/AVX/MathFunctions.h +228 -0
- include/eigen3/Eigen/src/Core/arch/AVX/PacketMath.h +1574 -0
- include/eigen3/Eigen/src/Core/arch/AVX/TypeCasting.h +115 -0
- include/eigen3/Eigen/src/Core/arch/AVX512/Complex.h +422 -0
- include/eigen3/Eigen/src/Core/arch/AVX512/MathFunctions.h +362 -0
- include/eigen3/Eigen/src/Core/arch/AVX512/PacketMath.h +2303 -0
- include/eigen3/Eigen/src/Core/arch/AVX512/TypeCasting.h +89 -0
- include/eigen3/Eigen/src/Core/arch/AltiVec/Complex.h +417 -0
- include/eigen3/Eigen/src/Core/arch/AltiVec/MathFunctions.h +90 -0
- include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProduct.h +2937 -0
- include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h +221 -0
- include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h +629 -0
- include/eigen3/Eigen/src/Core/arch/AltiVec/PacketMath.h +2711 -0
- include/eigen3/Eigen/src/Core/arch/CUDA/Complex.h +258 -0
- include/eigen3/Eigen/src/Core/arch/Default/BFloat16.h +700 -0
- include/eigen3/Eigen/src/Core/arch/Default/ConjHelper.h +117 -0
- include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +1649 -0
- include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctionsFwd.h +110 -0
- include/eigen3/Eigen/src/Core/arch/Default/Half.h +942 -0
- include/eigen3/Eigen/src/Core/arch/Default/Settings.h +49 -0
- include/eigen3/Eigen/src/Core/arch/Default/TypeCasting.h +120 -0
- include/eigen3/Eigen/src/Core/arch/GPU/MathFunctions.h +103 -0
- include/eigen3/Eigen/src/Core/arch/GPU/PacketMath.h +1685 -0
- include/eigen3/Eigen/src/Core/arch/GPU/TypeCasting.h +80 -0
- include/eigen3/Eigen/src/Core/arch/HIP/hcc/math_constants.h +23 -0
- include/eigen3/Eigen/src/Core/arch/MSA/Complex.h +648 -0
- include/eigen3/Eigen/src/Core/arch/MSA/MathFunctions.h +387 -0
- include/eigen3/Eigen/src/Core/arch/MSA/PacketMath.h +1233 -0
- include/eigen3/Eigen/src/Core/arch/NEON/Complex.h +584 -0
- include/eigen3/Eigen/src/Core/arch/NEON/GeneralBlockPanelKernel.h +183 -0
- include/eigen3/Eigen/src/Core/arch/NEON/MathFunctions.h +75 -0
- include/eigen3/Eigen/src/Core/arch/NEON/PacketMath.h +4587 -0
- include/eigen3/Eigen/src/Core/arch/NEON/TypeCasting.h +1419 -0
- include/eigen3/Eigen/src/Core/arch/SSE/Complex.h +351 -0
- include/eigen3/Eigen/src/Core/arch/SSE/MathFunctions.h +199 -0
- include/eigen3/Eigen/src/Core/arch/SSE/PacketMath.h +1505 -0
- include/eigen3/Eigen/src/Core/arch/SSE/TypeCasting.h +142 -0
- include/eigen3/Eigen/src/Core/arch/SVE/MathFunctions.h +44 -0
- include/eigen3/Eigen/src/Core/arch/SVE/PacketMath.h +752 -0
- include/eigen3/Eigen/src/Core/arch/SVE/TypeCasting.h +49 -0
- include/eigen3/Eigen/src/Core/arch/SYCL/InteropHeaders.h +232 -0
- include/eigen3/Eigen/src/Core/arch/SYCL/MathFunctions.h +301 -0
- include/eigen3/Eigen/src/Core/arch/SYCL/PacketMath.h +670 -0
- include/eigen3/Eigen/src/Core/arch/SYCL/SyclMemoryModel.h +694 -0
- include/eigen3/Eigen/src/Core/arch/SYCL/TypeCasting.h +85 -0
- include/eigen3/Eigen/src/Core/arch/ZVector/Complex.h +426 -0
- include/eigen3/Eigen/src/Core/arch/ZVector/MathFunctions.h +233 -0
- include/eigen3/Eigen/src/Core/arch/ZVector/PacketMath.h +1060 -0
- include/eigen3/Eigen/src/Core/functors/AssignmentFunctors.h +177 -0
- include/eigen3/Eigen/src/Core/functors/BinaryFunctors.h +541 -0
- include/eigen3/Eigen/src/Core/functors/NullaryFunctors.h +189 -0
- include/eigen3/Eigen/src/Core/functors/StlFunctors.h +166 -0
- include/eigen3/Eigen/src/Core/functors/TernaryFunctors.h +25 -0
- include/eigen3/Eigen/src/Core/functors/UnaryFunctors.h +1131 -0
- include/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h +2645 -0
- include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrix.h +517 -0
- include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h +317 -0
- include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h +145 -0
- include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrix_BLAS.h +124 -0
- include/eigen3/Eigen/src/Core/products/GeneralMatrixVector.h +518 -0
- include/eigen3/Eigen/src/Core/products/GeneralMatrixVector_BLAS.h +136 -0
- include/eigen3/Eigen/src/Core/products/Parallelizer.h +180 -0
- include/eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix.h +544 -0
- include/eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix_BLAS.h +295 -0
- include/eigen3/Eigen/src/Core/products/SelfadjointMatrixVector.h +262 -0
- include/eigen3/Eigen/src/Core/products/SelfadjointMatrixVector_BLAS.h +118 -0
- include/eigen3/Eigen/src/Core/products/SelfadjointProduct.h +133 -0
- include/eigen3/Eigen/src/Core/products/SelfadjointRank2Update.h +94 -0
- include/eigen3/Eigen/src/Core/products/TriangularMatrixMatrix.h +472 -0
- include/eigen3/Eigen/src/Core/products/TriangularMatrixMatrix_BLAS.h +317 -0
- include/eigen3/Eigen/src/Core/products/TriangularMatrixVector.h +350 -0
- include/eigen3/Eigen/src/Core/products/TriangularMatrixVector_BLAS.h +255 -0
- include/eigen3/Eigen/src/Core/products/TriangularSolverMatrix.h +337 -0
- include/eigen3/Eigen/src/Core/products/TriangularSolverMatrix_BLAS.h +167 -0
- include/eigen3/Eigen/src/Core/products/TriangularSolverVector.h +148 -0
- include/eigen3/Eigen/src/Core/util/BlasUtil.h +583 -0
- include/eigen3/Eigen/src/Core/util/ConfigureVectorization.h +512 -0
- include/eigen3/Eigen/src/Core/util/Constants.h +563 -0
- include/eigen3/Eigen/src/Core/util/DisableStupidWarnings.h +106 -0
- include/eigen3/Eigen/src/Core/util/ForwardDeclarations.h +322 -0
- include/eigen3/Eigen/src/Core/util/IndexedViewHelper.h +186 -0
- include/eigen3/Eigen/src/Core/util/IntegralConstant.h +272 -0
- include/eigen3/Eigen/src/Core/util/MKL_support.h +137 -0
- include/eigen3/Eigen/src/Core/util/Macros.h +1464 -0
- include/eigen3/Eigen/src/Core/util/Memory.h +1163 -0
- include/eigen3/Eigen/src/Core/util/Meta.h +812 -0
- include/eigen3/Eigen/src/Core/util/NonMPL2.h +3 -0
- include/eigen3/Eigen/src/Core/util/ReenableStupidWarnings.h +31 -0
- include/eigen3/Eigen/src/Core/util/ReshapedHelper.h +51 -0
- include/eigen3/Eigen/src/Core/util/StaticAssert.h +221 -0
- include/eigen3/Eigen/src/Core/util/SymbolicIndex.h +293 -0
- include/eigen3/Eigen/src/Core/util/XprHelper.h +856 -0
- include/eigen3/Eigen/src/Eigenvalues/ComplexEigenSolver.h +346 -0
- include/eigen3/Eigen/src/Eigenvalues/ComplexSchur.h +462 -0
- include/eigen3/Eigen/src/Eigenvalues/ComplexSchur_LAPACKE.h +91 -0
- include/eigen3/Eigen/src/Eigenvalues/EigenSolver.h +622 -0
- include/eigen3/Eigen/src/Eigenvalues/GeneralizedEigenSolver.h +418 -0
- include/eigen3/Eigen/src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h +226 -0
- include/eigen3/Eigen/src/Eigenvalues/HessenbergDecomposition.h +374 -0
- include/eigen3/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h +158 -0
- include/eigen3/Eigen/src/Eigenvalues/RealQZ.h +657 -0
- include/eigen3/Eigen/src/Eigenvalues/RealSchur.h +558 -0
- include/eigen3/Eigen/src/Eigenvalues/RealSchur_LAPACKE.h +77 -0
- include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h +904 -0
- include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver_LAPACKE.h +87 -0
- include/eigen3/Eigen/src/Eigenvalues/Tridiagonalization.h +561 -0
- include/eigen3/Eigen/src/Geometry/AlignedBox.h +486 -0
- include/eigen3/Eigen/src/Geometry/AngleAxis.h +247 -0
- include/eigen3/Eigen/src/Geometry/EulerAngles.h +114 -0
- include/eigen3/Eigen/src/Geometry/Homogeneous.h +501 -0
- include/eigen3/Eigen/src/Geometry/Hyperplane.h +282 -0
- include/eigen3/Eigen/src/Geometry/OrthoMethods.h +235 -0
- include/eigen3/Eigen/src/Geometry/ParametrizedLine.h +232 -0
- include/eigen3/Eigen/src/Geometry/Quaternion.h +870 -0
- include/eigen3/Eigen/src/Geometry/Rotation2D.h +199 -0
- include/eigen3/Eigen/src/Geometry/RotationBase.h +206 -0
- include/eigen3/Eigen/src/Geometry/Scaling.h +188 -0
- include/eigen3/Eigen/src/Geometry/Transform.h +1563 -0
- include/eigen3/Eigen/src/Geometry/Translation.h +202 -0
- include/eigen3/Eigen/src/Geometry/Umeyama.h +166 -0
- include/eigen3/Eigen/src/Geometry/arch/Geometry_SIMD.h +168 -0
- include/eigen3/Eigen/src/Householder/BlockHouseholder.h +110 -0
- include/eigen3/Eigen/src/Householder/Householder.h +176 -0
- include/eigen3/Eigen/src/Householder/HouseholderSequence.h +545 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/BasicPreconditioners.h +226 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h +212 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/ConjugateGradient.h +229 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h +394 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h +453 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/IterativeSolverBase.h +444 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/LeastSquareConjugateGradient.h +198 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/SolveWithGuess.h +117 -0
- include/eigen3/Eigen/src/Jacobi/Jacobi.h +483 -0
- include/eigen3/Eigen/src/KLUSupport/KLUSupport.h +358 -0
- include/eigen3/Eigen/src/LU/Determinant.h +117 -0
- include/eigen3/Eigen/src/LU/FullPivLU.h +877 -0
- include/eigen3/Eigen/src/LU/InverseImpl.h +432 -0
- include/eigen3/Eigen/src/LU/PartialPivLU.h +624 -0
- include/eigen3/Eigen/src/LU/PartialPivLU_LAPACKE.h +83 -0
- include/eigen3/Eigen/src/LU/arch/InverseSize4.h +351 -0
- include/eigen3/Eigen/src/MetisSupport/MetisSupport.h +137 -0
- include/eigen3/Eigen/src/OrderingMethods/Amd.h +435 -0
- include/eigen3/Eigen/src/OrderingMethods/Eigen_Colamd.h +1863 -0
- include/eigen3/Eigen/src/OrderingMethods/Ordering.h +153 -0
- include/eigen3/Eigen/src/PaStiXSupport/PaStiXSupport.h +678 -0
- include/eigen3/Eigen/src/PardisoSupport/PardisoSupport.h +545 -0
- include/eigen3/Eigen/src/QR/ColPivHouseholderQR.h +674 -0
- include/eigen3/Eigen/src/QR/ColPivHouseholderQR_LAPACKE.h +97 -0
- include/eigen3/Eigen/src/QR/CompleteOrthogonalDecomposition.h +635 -0
- include/eigen3/Eigen/src/QR/FullPivHouseholderQR.h +713 -0
- include/eigen3/Eigen/src/QR/HouseholderQR.h +434 -0
- include/eigen3/Eigen/src/QR/HouseholderQR_LAPACKE.h +68 -0
- include/eigen3/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h +335 -0
- include/eigen3/Eigen/src/SVD/BDCSVD.h +1366 -0
- include/eigen3/Eigen/src/SVD/JacobiSVD.h +812 -0
- include/eigen3/Eigen/src/SVD/JacobiSVD_LAPACKE.h +91 -0
- include/eigen3/Eigen/src/SVD/SVDBase.h +376 -0
- include/eigen3/Eigen/src/SVD/UpperBidiagonalization.h +414 -0
- include/eigen3/Eigen/src/SparseCholesky/SimplicialCholesky.h +697 -0
- include/eigen3/Eigen/src/SparseCholesky/SimplicialCholesky_impl.h +174 -0
- include/eigen3/Eigen/src/SparseCore/AmbiVector.h +378 -0
- include/eigen3/Eigen/src/SparseCore/CompressedStorage.h +274 -0
- include/eigen3/Eigen/src/SparseCore/ConservativeSparseSparseProduct.h +352 -0
- include/eigen3/Eigen/src/SparseCore/MappedSparseMatrix.h +67 -0
- include/eigen3/Eigen/src/SparseCore/SparseAssign.h +270 -0
- include/eigen3/Eigen/src/SparseCore/SparseBlock.h +571 -0
- include/eigen3/Eigen/src/SparseCore/SparseColEtree.h +206 -0
- include/eigen3/Eigen/src/SparseCore/SparseCompressedBase.h +370 -0
- include/eigen3/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +722 -0
- include/eigen3/Eigen/src/SparseCore/SparseCwiseUnaryOp.h +150 -0
- include/eigen3/Eigen/src/SparseCore/SparseDenseProduct.h +342 -0
- include/eigen3/Eigen/src/SparseCore/SparseDiagonalProduct.h +138 -0
- include/eigen3/Eigen/src/SparseCore/SparseDot.h +98 -0
- include/eigen3/Eigen/src/SparseCore/SparseFuzzy.h +29 -0
- include/eigen3/Eigen/src/SparseCore/SparseMap.h +305 -0
- include/eigen3/Eigen/src/SparseCore/SparseMatrix.h +1518 -0
- include/eigen3/Eigen/src/SparseCore/SparseMatrixBase.h +398 -0
- include/eigen3/Eigen/src/SparseCore/SparsePermutation.h +178 -0
- include/eigen3/Eigen/src/SparseCore/SparseProduct.h +181 -0
- include/eigen3/Eigen/src/SparseCore/SparseRedux.h +49 -0
- include/eigen3/Eigen/src/SparseCore/SparseRef.h +397 -0
- include/eigen3/Eigen/src/SparseCore/SparseSelfAdjointView.h +659 -0
- include/eigen3/Eigen/src/SparseCore/SparseSolverBase.h +124 -0
- include/eigen3/Eigen/src/SparseCore/SparseSparseProductWithPruning.h +198 -0
- include/eigen3/Eigen/src/SparseCore/SparseTranspose.h +92 -0
- include/eigen3/Eigen/src/SparseCore/SparseTriangularView.h +189 -0
- include/eigen3/Eigen/src/SparseCore/SparseUtil.h +186 -0
- include/eigen3/Eigen/src/SparseCore/SparseVector.h +478 -0
- include/eigen3/Eigen/src/SparseCore/SparseView.h +254 -0
- include/eigen3/Eigen/src/SparseCore/TriangularSolver.h +315 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU.h +923 -0
- include/eigen3/Eigen/src/SparseLU/SparseLUImpl.h +66 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_Memory.h +226 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_Structs.h +110 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +375 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_Utils.h +80 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_column_bmod.h +181 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_column_dfs.h +179 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h +107 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_gemm_kernel.h +280 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +126 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_kernel_bmod.h +130 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_panel_bmod.h +223 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_panel_dfs.h +258 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_pivotL.h +137 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_pruneL.h +136 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_relax_snode.h +83 -0
- include/eigen3/Eigen/src/SparseQR/SparseQR.h +758 -0
- include/eigen3/Eigen/src/StlSupport/StdDeque.h +116 -0
- include/eigen3/Eigen/src/StlSupport/StdList.h +106 -0
- include/eigen3/Eigen/src/StlSupport/StdVector.h +131 -0
- include/eigen3/Eigen/src/StlSupport/details.h +84 -0
- include/eigen3/Eigen/src/SuperLUSupport/SuperLUSupport.h +1025 -0
- include/eigen3/Eigen/src/UmfPackSupport/UmfPackSupport.h +642 -0
- include/eigen3/Eigen/src/misc/Image.h +82 -0
- include/eigen3/Eigen/src/misc/Kernel.h +79 -0
- include/eigen3/Eigen/src/misc/RealSvd2x2.h +55 -0
- include/eigen3/Eigen/src/misc/blas.h +440 -0
- include/eigen3/Eigen/src/misc/lapack.h +152 -0
- include/eigen3/Eigen/src/misc/lapacke.h +16292 -0
- include/eigen3/Eigen/src/misc/lapacke_mangling.h +17 -0
- include/eigen3/Eigen/src/plugins/ArrayCwiseBinaryOps.h +358 -0
- include/eigen3/Eigen/src/plugins/ArrayCwiseUnaryOps.h +696 -0
- include/eigen3/Eigen/src/plugins/BlockMethods.h +1442 -0
- include/eigen3/Eigen/src/plugins/CommonCwiseBinaryOps.h +115 -0
- include/eigen3/Eigen/src/plugins/CommonCwiseUnaryOps.h +177 -0
- include/eigen3/Eigen/src/plugins/IndexedViewMethods.h +262 -0
- include/eigen3/Eigen/src/plugins/MatrixCwiseBinaryOps.h +152 -0
- include/eigen3/Eigen/src/plugins/MatrixCwiseUnaryOps.h +95 -0
- include/eigen3/Eigen/src/plugins/ReshapedMethods.h +149 -0
- include/eigen3/signature_of_eigen3_matrix_library +1 -0
- include/eigen3/unsupported/Eigen/AdolcForward +159 -0
- include/eigen3/unsupported/Eigen/AlignedVector3 +234 -0
- include/eigen3/unsupported/Eigen/ArpackSupport +30 -0
- include/eigen3/unsupported/Eigen/AutoDiff +46 -0
- include/eigen3/unsupported/Eigen/BVH +95 -0
- include/eigen3/unsupported/Eigen/CXX11/Tensor +137 -0
- include/eigen3/unsupported/Eigen/CXX11/TensorSymmetry +42 -0
- include/eigen3/unsupported/Eigen/CXX11/ThreadPool +74 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/Tensor.h +554 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorArgMax.h +329 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h +247 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h +1176 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h +1559 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h +1093 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h +518 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConcatenation.h +377 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h +1023 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionBlocking.h +73 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionCuda.h +6 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionGpu.h +1413 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionMapper.h +575 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionSycl.h +1650 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h +1679 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConversion.h +456 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConvolution.h +1132 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConvolutionSycl.h +544 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorCostModel.h +214 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorCustomOp.h +347 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDevice.h +137 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h +6 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceDefault.h +104 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceGpu.h +389 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h +1048 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +409 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h +236 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h +490 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvalTo.h +236 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h +983 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h +703 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h +388 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFFT.h +669 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFixedSize.h +379 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorForcedEval.h +237 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h +191 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h +488 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGenerator.h +302 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGlobalFunctions.h +33 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGpuHipCudaDefines.h +99 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGpuHipCudaUndefines.h +44 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIO.h +79 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +603 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h +738 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorInflation.h +247 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorInitializer.h +82 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h +263 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorLayoutSwap.h +216 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMacros.h +98 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h +327 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h +311 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h +1102 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorPadding.h +708 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h +291 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h +322 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h +998 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h +6 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionGpu.h +966 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +582 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h +454 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReverse.h +465 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorScan.h +528 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +513 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorShuffling.h +471 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorStorage.h +161 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorStriding.h +346 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h +303 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h +264 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h +249 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorVolumePatch.h +629 -0
- include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/DynamicSymmetry.h +293 -0
- include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/StaticSymmetry.h +236 -0
- include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/Symmetry.h +338 -0
- include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/util/TemplateGroupTheory.h +669 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/Barrier.h +67 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/EventCount.h +249 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h +486 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/RunQueue.h +236 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadCancel.h +23 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadEnvironment.h +40 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadLocal.h +301 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h +48 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h +20 -0
- include/eigen3/unsupported/Eigen/CXX11/src/util/CXX11Meta.h +537 -0
- include/eigen3/unsupported/Eigen/CXX11/src/util/CXX11Workarounds.h +88 -0
- include/eigen3/unsupported/Eigen/CXX11/src/util/EmulateArray.h +261 -0
- include/eigen3/unsupported/Eigen/CXX11/src/util/MaxSizeVector.h +158 -0
- include/eigen3/unsupported/Eigen/EulerAngles +43 -0
- include/eigen3/unsupported/Eigen/FFT +419 -0
- include/eigen3/unsupported/Eigen/IterativeSolvers +51 -0
- include/eigen3/unsupported/Eigen/KroneckerProduct +36 -0
- include/eigen3/unsupported/Eigen/LevenbergMarquardt +49 -0
- include/eigen3/unsupported/Eigen/MPRealSupport +213 -0
- include/eigen3/unsupported/Eigen/MatrixFunctions +504 -0
- include/eigen3/unsupported/Eigen/MoreVectorization +24 -0
- include/eigen3/unsupported/Eigen/NonLinearOptimization +140 -0
- include/eigen3/unsupported/Eigen/NumericalDiff +56 -0
- include/eigen3/unsupported/Eigen/OpenGLSupport +322 -0
- include/eigen3/unsupported/Eigen/Polynomials +137 -0
- include/eigen3/unsupported/Eigen/Skyline +39 -0
- include/eigen3/unsupported/Eigen/SparseExtra +54 -0
- include/eigen3/unsupported/Eigen/SpecialFunctions +103 -0
- include/eigen3/unsupported/Eigen/Splines +35 -0
- include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffJacobian.h +108 -0
- include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +730 -0
- include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffVector.h +220 -0
- include/eigen3/unsupported/Eigen/src/BVH/BVAlgorithms.h +293 -0
- include/eigen3/unsupported/Eigen/src/BVH/KdBVH.h +223 -0
- include/eigen3/unsupported/Eigen/src/Eigenvalues/ArpackSelfAdjointEigenSolver.h +790 -0
- include/eigen3/unsupported/Eigen/src/EulerAngles/EulerAngles.h +355 -0
- include/eigen3/unsupported/Eigen/src/EulerAngles/EulerSystem.h +305 -0
- include/eigen3/unsupported/Eigen/src/FFT/ei_fftw_impl.h +261 -0
- include/eigen3/unsupported/Eigen/src/FFT/ei_kissfft_impl.h +449 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/ConstrainedConjGrad.h +187 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/DGMRES.h +511 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/GMRES.h +335 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/IDRS.h +436 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/IncompleteLU.h +90 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/IterationController.h +154 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/MINRES.h +267 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/Scaling.h +193 -0
- include/eigen3/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h +305 -0
- include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMcovar.h +84 -0
- include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMonestep.h +202 -0
- include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMpar.h +160 -0
- include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMqrsolv.h +188 -0
- include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LevenbergMarquardt.h +396 -0
- include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +441 -0
- include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h +569 -0
- include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h +373 -0
- include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixPower.h +705 -0
- include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h +368 -0
- include/eigen3/unsupported/Eigen/src/MatrixFunctions/StemFunction.h +117 -0
- include/eigen3/unsupported/Eigen/src/MoreVectorization/MathFunctions.h +95 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/HybridNonLinearSolver.h +601 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h +657 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/chkder.h +66 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/covar.h +70 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/dogleg.h +107 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/fdjac1.h +79 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/lmpar.h +298 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h +91 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/r1mpyq.h +30 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/r1updt.h +99 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h +49 -0
- include/eigen3/unsupported/Eigen/src/NumericalDiff/NumericalDiff.h +130 -0
- include/eigen3/unsupported/Eigen/src/Polynomials/Companion.h +280 -0
- include/eigen3/unsupported/Eigen/src/Polynomials/PolynomialSolver.h +428 -0
- include/eigen3/unsupported/Eigen/src/Polynomials/PolynomialUtils.h +143 -0
- include/eigen3/unsupported/Eigen/src/Skyline/SkylineInplaceLU.h +352 -0
- include/eigen3/unsupported/Eigen/src/Skyline/SkylineMatrix.h +862 -0
- include/eigen3/unsupported/Eigen/src/Skyline/SkylineMatrixBase.h +212 -0
- include/eigen3/unsupported/Eigen/src/Skyline/SkylineProduct.h +295 -0
- include/eigen3/unsupported/Eigen/src/Skyline/SkylineStorage.h +259 -0
- include/eigen3/unsupported/Eigen/src/Skyline/SkylineUtil.h +89 -0
- include/eigen3/unsupported/Eigen/src/SparseExtra/BlockOfDynamicSparseMatrix.h +122 -0
- include/eigen3/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h +1079 -0
- include/eigen3/unsupported/Eigen/src/SparseExtra/DynamicSparseMatrix.h +404 -0
- include/eigen3/unsupported/Eigen/src/SparseExtra/MarketIO.h +282 -0
- include/eigen3/unsupported/Eigen/src/SparseExtra/MatrixMarketIterator.h +247 -0
- include/eigen3/unsupported/Eigen/src/SparseExtra/RandomSetter.h +349 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsArrayAPI.h +286 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsBFloat16.h +68 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsFunctors.h +357 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsHalf.h +66 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsImpl.h +1959 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsPacketMath.h +118 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/HipVectorCompatibility.h +67 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsArrayAPI.h +167 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsBFloat16.h +58 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsFunctors.h +330 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsHalf.h +58 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +2045 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsPacketMath.h +79 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX/BesselFunctions.h +46 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX/SpecialFunctions.h +16 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX512/BesselFunctions.h +46 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX512/SpecialFunctions.h +16 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/GPU/SpecialFunctions.h +369 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/NEON/BesselFunctions.h +54 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/NEON/SpecialFunctions.h +34 -0
- include/eigen3/unsupported/Eigen/src/Splines/Spline.h +507 -0
- include/eigen3/unsupported/Eigen/src/Splines/SplineFitting.h +431 -0
- include/eigen3/unsupported/Eigen/src/Splines/SplineFwd.h +93 -0
- pylibsparseir/__init__.py +31 -0
- pylibsparseir/clean_build_artifacts.py +0 -1
- pylibsparseir/core.py +160 -45
- pylibsparseir/libsparseir.dylib +0 -0
- pylibsparseir-0.5.2.dist-info/METADATA +215 -0
- pylibsparseir-0.5.2.dist-info/RECORD +545 -0
- {pylibsparseir-0.1.0.dist-info → pylibsparseir-0.5.2.dist-info}/WHEEL +1 -1
- pylibsparseir-0.5.2.dist-info/licenses/LICENSE +21 -0
- share/eigen3/cmake/Eigen3Config.cmake +37 -0
- share/eigen3/cmake/Eigen3ConfigVersion.cmake +65 -0
- share/eigen3/cmake/Eigen3Targets.cmake +106 -0
- share/eigen3/cmake/UseEigen3.cmake +6 -0
- share/pkgconfig/eigen3.pc +9 -0
- pylibsparseir/libsparseir.0.4.2.dylib +0 -0
- pylibsparseir/libsparseir.0.dylib +0 -0
- pylibsparseir-0.1.0.dist-info/METADATA +0 -130
- pylibsparseir-0.1.0.dist-info/RECORD +0 -12
- pylibsparseir-0.1.0.dist-info/entry_points.txt +0 -2
- pylibsparseir-0.1.0.dist-info/top_level.txt +0 -1
|
@@ -0,0 +1,705 @@
|
|
|
1
|
+
// This file is part of Eigen, a lightweight C++ template library
|
|
2
|
+
// for linear algebra.
|
|
3
|
+
//
|
|
4
|
+
// Copyright (C) 2012, 2013 Chen-Pang He <jdh8@ms63.hinet.net>
|
|
5
|
+
//
|
|
6
|
+
// This Source Code Form is subject to the terms of the Mozilla
|
|
7
|
+
// Public License v. 2.0. If a copy of the MPL was not distributed
|
|
8
|
+
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
9
|
+
|
|
10
|
+
#ifndef EIGEN_MATRIX_POWER
|
|
11
|
+
#define EIGEN_MATRIX_POWER
|
|
12
|
+
|
|
13
|
+
namespace Eigen {
|
|
14
|
+
|
|
15
|
+
template<typename MatrixType> class MatrixPower;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* \ingroup MatrixFunctions_Module
|
|
19
|
+
*
|
|
20
|
+
* \brief Proxy for the matrix power of some matrix.
|
|
21
|
+
*
|
|
22
|
+
* \tparam MatrixType type of the base, a matrix.
|
|
23
|
+
*
|
|
24
|
+
* This class holds the arguments to the matrix power until it is
|
|
25
|
+
* assigned or evaluated for some other reason (so the argument
|
|
26
|
+
* should not be changed in the meantime). It is the return type of
|
|
27
|
+
* MatrixPower::operator() and related functions and most of the
|
|
28
|
+
* time this is the only way it is used.
|
|
29
|
+
*/
|
|
30
|
+
/* TODO This class is only used by MatrixPower, so it should be nested
|
|
31
|
+
* into MatrixPower, like MatrixPower::ReturnValue. However, my
|
|
32
|
+
* compiler complained about unused template parameter in the
|
|
33
|
+
* following declaration in namespace internal.
|
|
34
|
+
*
|
|
35
|
+
* template<typename MatrixType>
|
|
36
|
+
* struct traits<MatrixPower<MatrixType>::ReturnValue>;
|
|
37
|
+
*/
|
|
38
|
+
template<typename MatrixType>
|
|
39
|
+
class MatrixPowerParenthesesReturnValue : public ReturnByValue< MatrixPowerParenthesesReturnValue<MatrixType> >
|
|
40
|
+
{
|
|
41
|
+
public:
|
|
42
|
+
typedef typename MatrixType::RealScalar RealScalar;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* \brief Constructor.
|
|
46
|
+
*
|
|
47
|
+
* \param[in] pow %MatrixPower storing the base.
|
|
48
|
+
* \param[in] p scalar, the exponent of the matrix power.
|
|
49
|
+
*/
|
|
50
|
+
MatrixPowerParenthesesReturnValue(MatrixPower<MatrixType>& pow, RealScalar p) : m_pow(pow), m_p(p)
|
|
51
|
+
{ }
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* \brief Compute the matrix power.
|
|
55
|
+
*
|
|
56
|
+
* \param[out] result
|
|
57
|
+
*/
|
|
58
|
+
template<typename ResultType>
|
|
59
|
+
inline void evalTo(ResultType& result) const
|
|
60
|
+
{ m_pow.compute(result, m_p); }
|
|
61
|
+
|
|
62
|
+
Index rows() const { return m_pow.rows(); }
|
|
63
|
+
Index cols() const { return m_pow.cols(); }
|
|
64
|
+
|
|
65
|
+
private:
|
|
66
|
+
MatrixPower<MatrixType>& m_pow;
|
|
67
|
+
const RealScalar m_p;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* \ingroup MatrixFunctions_Module
|
|
72
|
+
*
|
|
73
|
+
* \brief Class for computing matrix powers.
|
|
74
|
+
*
|
|
75
|
+
* \tparam MatrixType type of the base, expected to be an instantiation
|
|
76
|
+
* of the Matrix class template.
|
|
77
|
+
*
|
|
78
|
+
* This class is capable of computing triangular real/complex matrices
|
|
79
|
+
* raised to a power in the interval \f$ (-1, 1) \f$.
|
|
80
|
+
*
|
|
81
|
+
* \note Currently this class is only used by MatrixPower. One may
|
|
82
|
+
* insist that this be nested into MatrixPower. This class is here to
|
|
83
|
+
* facilitate future development of triangular matrix functions.
|
|
84
|
+
*/
|
|
85
|
+
template<typename MatrixType>
|
|
86
|
+
class MatrixPowerAtomic : internal::noncopyable
|
|
87
|
+
{
|
|
88
|
+
private:
|
|
89
|
+
enum {
|
|
90
|
+
RowsAtCompileTime = MatrixType::RowsAtCompileTime,
|
|
91
|
+
MaxRowsAtCompileTime = MatrixType::MaxRowsAtCompileTime
|
|
92
|
+
};
|
|
93
|
+
typedef typename MatrixType::Scalar Scalar;
|
|
94
|
+
typedef typename MatrixType::RealScalar RealScalar;
|
|
95
|
+
typedef std::complex<RealScalar> ComplexScalar;
|
|
96
|
+
typedef Block<MatrixType,Dynamic,Dynamic> ResultType;
|
|
97
|
+
|
|
98
|
+
const MatrixType& m_A;
|
|
99
|
+
RealScalar m_p;
|
|
100
|
+
|
|
101
|
+
void computePade(int degree, const MatrixType& IminusT, ResultType& res) const;
|
|
102
|
+
void compute2x2(ResultType& res, RealScalar p) const;
|
|
103
|
+
void computeBig(ResultType& res) const;
|
|
104
|
+
static int getPadeDegree(float normIminusT);
|
|
105
|
+
static int getPadeDegree(double normIminusT);
|
|
106
|
+
static int getPadeDegree(long double normIminusT);
|
|
107
|
+
static ComplexScalar computeSuperDiag(const ComplexScalar&, const ComplexScalar&, RealScalar p);
|
|
108
|
+
static RealScalar computeSuperDiag(RealScalar, RealScalar, RealScalar p);
|
|
109
|
+
|
|
110
|
+
public:
|
|
111
|
+
/**
|
|
112
|
+
* \brief Constructor.
|
|
113
|
+
*
|
|
114
|
+
* \param[in] T the base of the matrix power.
|
|
115
|
+
* \param[in] p the exponent of the matrix power, should be in
|
|
116
|
+
* \f$ (-1, 1) \f$.
|
|
117
|
+
*
|
|
118
|
+
* The class stores a reference to T, so it should not be changed
|
|
119
|
+
* (or destroyed) before evaluation. Only the upper triangular
|
|
120
|
+
* part of T is read.
|
|
121
|
+
*/
|
|
122
|
+
MatrixPowerAtomic(const MatrixType& T, RealScalar p);
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* \brief Compute the matrix power.
|
|
126
|
+
*
|
|
127
|
+
* \param[out] res \f$ A^p \f$ where A and p are specified in the
|
|
128
|
+
* constructor.
|
|
129
|
+
*/
|
|
130
|
+
void compute(ResultType& res) const;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
template<typename MatrixType>
|
|
134
|
+
MatrixPowerAtomic<MatrixType>::MatrixPowerAtomic(const MatrixType& T, RealScalar p) :
|
|
135
|
+
m_A(T), m_p(p)
|
|
136
|
+
{
|
|
137
|
+
eigen_assert(T.rows() == T.cols());
|
|
138
|
+
eigen_assert(p > -1 && p < 1);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
template<typename MatrixType>
|
|
142
|
+
void MatrixPowerAtomic<MatrixType>::compute(ResultType& res) const
|
|
143
|
+
{
|
|
144
|
+
using std::pow;
|
|
145
|
+
switch (m_A.rows()) {
|
|
146
|
+
case 0:
|
|
147
|
+
break;
|
|
148
|
+
case 1:
|
|
149
|
+
res(0,0) = pow(m_A(0,0), m_p);
|
|
150
|
+
break;
|
|
151
|
+
case 2:
|
|
152
|
+
compute2x2(res, m_p);
|
|
153
|
+
break;
|
|
154
|
+
default:
|
|
155
|
+
computeBig(res);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
template<typename MatrixType>
|
|
160
|
+
void MatrixPowerAtomic<MatrixType>::computePade(int degree, const MatrixType& IminusT, ResultType& res) const
|
|
161
|
+
{
|
|
162
|
+
int i = 2*degree;
|
|
163
|
+
res = (m_p-RealScalar(degree)) / RealScalar(2*i-2) * IminusT;
|
|
164
|
+
|
|
165
|
+
for (--i; i; --i) {
|
|
166
|
+
res = (MatrixType::Identity(IminusT.rows(), IminusT.cols()) + res).template triangularView<Upper>()
|
|
167
|
+
.solve((i==1 ? -m_p : i&1 ? (-m_p-RealScalar(i/2))/RealScalar(2*i) : (m_p-RealScalar(i/2))/RealScalar(2*i-2)) * IminusT).eval();
|
|
168
|
+
}
|
|
169
|
+
res += MatrixType::Identity(IminusT.rows(), IminusT.cols());
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// This function assumes that res has the correct size (see bug 614)
|
|
173
|
+
template<typename MatrixType>
|
|
174
|
+
void MatrixPowerAtomic<MatrixType>::compute2x2(ResultType& res, RealScalar p) const
|
|
175
|
+
{
|
|
176
|
+
using std::abs;
|
|
177
|
+
using std::pow;
|
|
178
|
+
res.coeffRef(0,0) = pow(m_A.coeff(0,0), p);
|
|
179
|
+
|
|
180
|
+
for (Index i=1; i < m_A.cols(); ++i) {
|
|
181
|
+
res.coeffRef(i,i) = pow(m_A.coeff(i,i), p);
|
|
182
|
+
if (m_A.coeff(i-1,i-1) == m_A.coeff(i,i))
|
|
183
|
+
res.coeffRef(i-1,i) = p * pow(m_A.coeff(i,i), p-1);
|
|
184
|
+
else if (2*abs(m_A.coeff(i-1,i-1)) < abs(m_A.coeff(i,i)) || 2*abs(m_A.coeff(i,i)) < abs(m_A.coeff(i-1,i-1)))
|
|
185
|
+
res.coeffRef(i-1,i) = (res.coeff(i,i)-res.coeff(i-1,i-1)) / (m_A.coeff(i,i)-m_A.coeff(i-1,i-1));
|
|
186
|
+
else
|
|
187
|
+
res.coeffRef(i-1,i) = computeSuperDiag(m_A.coeff(i,i), m_A.coeff(i-1,i-1), p);
|
|
188
|
+
res.coeffRef(i-1,i) *= m_A.coeff(i-1,i);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
template<typename MatrixType>
|
|
193
|
+
void MatrixPowerAtomic<MatrixType>::computeBig(ResultType& res) const
|
|
194
|
+
{
|
|
195
|
+
using std::ldexp;
|
|
196
|
+
const int digits = std::numeric_limits<RealScalar>::digits;
|
|
197
|
+
const RealScalar maxNormForPade = RealScalar(
|
|
198
|
+
digits <= 24? 4.3386528e-1L // single precision
|
|
199
|
+
: digits <= 53? 2.789358995219730e-1L // double precision
|
|
200
|
+
: digits <= 64? 2.4471944416607995472e-1L // extended precision
|
|
201
|
+
: digits <= 106? 1.1016843812851143391275867258512e-1L // double-double
|
|
202
|
+
: 9.134603732914548552537150753385375e-2L); // quadruple precision
|
|
203
|
+
MatrixType IminusT, sqrtT, T = m_A.template triangularView<Upper>();
|
|
204
|
+
RealScalar normIminusT;
|
|
205
|
+
int degree, degree2, numberOfSquareRoots = 0;
|
|
206
|
+
bool hasExtraSquareRoot = false;
|
|
207
|
+
|
|
208
|
+
for (Index i=0; i < m_A.cols(); ++i)
|
|
209
|
+
eigen_assert(m_A(i,i) != RealScalar(0));
|
|
210
|
+
|
|
211
|
+
while (true) {
|
|
212
|
+
IminusT = MatrixType::Identity(m_A.rows(), m_A.cols()) - T;
|
|
213
|
+
normIminusT = IminusT.cwiseAbs().colwise().sum().maxCoeff();
|
|
214
|
+
if (normIminusT < maxNormForPade) {
|
|
215
|
+
degree = getPadeDegree(normIminusT);
|
|
216
|
+
degree2 = getPadeDegree(normIminusT/2);
|
|
217
|
+
if (degree - degree2 <= 1 || hasExtraSquareRoot)
|
|
218
|
+
break;
|
|
219
|
+
hasExtraSquareRoot = true;
|
|
220
|
+
}
|
|
221
|
+
matrix_sqrt_triangular(T, sqrtT);
|
|
222
|
+
T = sqrtT.template triangularView<Upper>();
|
|
223
|
+
++numberOfSquareRoots;
|
|
224
|
+
}
|
|
225
|
+
computePade(degree, IminusT, res);
|
|
226
|
+
|
|
227
|
+
for (; numberOfSquareRoots; --numberOfSquareRoots) {
|
|
228
|
+
compute2x2(res, ldexp(m_p, -numberOfSquareRoots));
|
|
229
|
+
res = res.template triangularView<Upper>() * res;
|
|
230
|
+
}
|
|
231
|
+
compute2x2(res, m_p);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
template<typename MatrixType>
|
|
235
|
+
inline int MatrixPowerAtomic<MatrixType>::getPadeDegree(float normIminusT)
|
|
236
|
+
{
|
|
237
|
+
const float maxNormForPade[] = { 2.8064004e-1f /* degree = 3 */ , 4.3386528e-1f };
|
|
238
|
+
int degree = 3;
|
|
239
|
+
for (; degree <= 4; ++degree)
|
|
240
|
+
if (normIminusT <= maxNormForPade[degree - 3])
|
|
241
|
+
break;
|
|
242
|
+
return degree;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
template<typename MatrixType>
|
|
246
|
+
inline int MatrixPowerAtomic<MatrixType>::getPadeDegree(double normIminusT)
|
|
247
|
+
{
|
|
248
|
+
const double maxNormForPade[] = { 1.884160592658218e-2 /* degree = 3 */ , 6.038881904059573e-2, 1.239917516308172e-1,
|
|
249
|
+
1.999045567181744e-1, 2.789358995219730e-1 };
|
|
250
|
+
int degree = 3;
|
|
251
|
+
for (; degree <= 7; ++degree)
|
|
252
|
+
if (normIminusT <= maxNormForPade[degree - 3])
|
|
253
|
+
break;
|
|
254
|
+
return degree;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
template<typename MatrixType>
|
|
258
|
+
inline int MatrixPowerAtomic<MatrixType>::getPadeDegree(long double normIminusT)
|
|
259
|
+
{
|
|
260
|
+
#if LDBL_MANT_DIG == 53
|
|
261
|
+
const int maxPadeDegree = 7;
|
|
262
|
+
const double maxNormForPade[] = { 1.884160592658218e-2L /* degree = 3 */ , 6.038881904059573e-2L, 1.239917516308172e-1L,
|
|
263
|
+
1.999045567181744e-1L, 2.789358995219730e-1L };
|
|
264
|
+
#elif LDBL_MANT_DIG <= 64
|
|
265
|
+
const int maxPadeDegree = 8;
|
|
266
|
+
const long double maxNormForPade[] = { 6.3854693117491799460e-3L /* degree = 3 */ , 2.6394893435456973676e-2L,
|
|
267
|
+
6.4216043030404063729e-2L, 1.1701165502926694307e-1L, 1.7904284231268670284e-1L, 2.4471944416607995472e-1L };
|
|
268
|
+
#elif LDBL_MANT_DIG <= 106
|
|
269
|
+
const int maxPadeDegree = 10;
|
|
270
|
+
const double maxNormForPade[] = { 1.0007161601787493236741409687186e-4L /* degree = 3 */ ,
|
|
271
|
+
1.0007161601787493236741409687186e-3L, 4.7069769360887572939882574746264e-3L, 1.3220386624169159689406653101695e-2L,
|
|
272
|
+
2.8063482381631737920612944054906e-2L, 4.9625993951953473052385361085058e-2L, 7.7367040706027886224557538328171e-2L,
|
|
273
|
+
1.1016843812851143391275867258512e-1L };
|
|
274
|
+
#else
|
|
275
|
+
const int maxPadeDegree = 10;
|
|
276
|
+
const double maxNormForPade[] = { 5.524506147036624377378713555116378e-5L /* degree = 3 */ ,
|
|
277
|
+
6.640600568157479679823602193345995e-4L, 3.227716520106894279249709728084626e-3L,
|
|
278
|
+
9.619593944683432960546978734646284e-3L, 2.134595382433742403911124458161147e-2L,
|
|
279
|
+
3.908166513900489428442993794761185e-2L, 6.266780814639442865832535460550138e-2L,
|
|
280
|
+
9.134603732914548552537150753385375e-2L };
|
|
281
|
+
#endif
|
|
282
|
+
int degree = 3;
|
|
283
|
+
for (; degree <= maxPadeDegree; ++degree)
|
|
284
|
+
if (normIminusT <= maxNormForPade[degree - 3])
|
|
285
|
+
break;
|
|
286
|
+
return degree;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
template<typename MatrixType>
|
|
290
|
+
inline typename MatrixPowerAtomic<MatrixType>::ComplexScalar
|
|
291
|
+
MatrixPowerAtomic<MatrixType>::computeSuperDiag(const ComplexScalar& curr, const ComplexScalar& prev, RealScalar p)
|
|
292
|
+
{
|
|
293
|
+
using std::ceil;
|
|
294
|
+
using std::exp;
|
|
295
|
+
using std::log;
|
|
296
|
+
using std::sinh;
|
|
297
|
+
|
|
298
|
+
ComplexScalar logCurr = log(curr);
|
|
299
|
+
ComplexScalar logPrev = log(prev);
|
|
300
|
+
RealScalar unwindingNumber = ceil((numext::imag(logCurr - logPrev) - RealScalar(EIGEN_PI)) / RealScalar(2*EIGEN_PI));
|
|
301
|
+
ComplexScalar w = numext::log1p((curr-prev)/prev)/RealScalar(2) + ComplexScalar(0, RealScalar(EIGEN_PI)*unwindingNumber);
|
|
302
|
+
return RealScalar(2) * exp(RealScalar(0.5) * p * (logCurr + logPrev)) * sinh(p * w) / (curr - prev);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
template<typename MatrixType>
|
|
306
|
+
inline typename MatrixPowerAtomic<MatrixType>::RealScalar
|
|
307
|
+
MatrixPowerAtomic<MatrixType>::computeSuperDiag(RealScalar curr, RealScalar prev, RealScalar p)
|
|
308
|
+
{
|
|
309
|
+
using std::exp;
|
|
310
|
+
using std::log;
|
|
311
|
+
using std::sinh;
|
|
312
|
+
|
|
313
|
+
RealScalar w = numext::log1p((curr-prev)/prev)/RealScalar(2);
|
|
314
|
+
return 2 * exp(p * (log(curr) + log(prev)) / 2) * sinh(p * w) / (curr - prev);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* \ingroup MatrixFunctions_Module
|
|
319
|
+
*
|
|
320
|
+
* \brief Class for computing matrix powers.
|
|
321
|
+
*
|
|
322
|
+
* \tparam MatrixType type of the base, expected to be an instantiation
|
|
323
|
+
* of the Matrix class template.
|
|
324
|
+
*
|
|
325
|
+
* This class is capable of computing real/complex matrices raised to
|
|
326
|
+
* an arbitrary real power. Meanwhile, it saves the result of Schur
|
|
327
|
+
* decomposition if an non-integral power has even been calculated.
|
|
328
|
+
* Therefore, if you want to compute multiple (>= 2) matrix powers
|
|
329
|
+
* for the same matrix, using the class directly is more efficient than
|
|
330
|
+
* calling MatrixBase::pow().
|
|
331
|
+
*
|
|
332
|
+
* Example:
|
|
333
|
+
* \include MatrixPower_optimal.cpp
|
|
334
|
+
* Output: \verbinclude MatrixPower_optimal.out
|
|
335
|
+
*/
|
|
336
|
+
template<typename MatrixType>
|
|
337
|
+
class MatrixPower : internal::noncopyable
|
|
338
|
+
{
|
|
339
|
+
private:
|
|
340
|
+
typedef typename MatrixType::Scalar Scalar;
|
|
341
|
+
typedef typename MatrixType::RealScalar RealScalar;
|
|
342
|
+
|
|
343
|
+
public:
|
|
344
|
+
/**
|
|
345
|
+
* \brief Constructor.
|
|
346
|
+
*
|
|
347
|
+
* \param[in] A the base of the matrix power.
|
|
348
|
+
*
|
|
349
|
+
* The class stores a reference to A, so it should not be changed
|
|
350
|
+
* (or destroyed) before evaluation.
|
|
351
|
+
*/
|
|
352
|
+
explicit MatrixPower(const MatrixType& A) :
|
|
353
|
+
m_A(A),
|
|
354
|
+
m_conditionNumber(0),
|
|
355
|
+
m_rank(A.cols()),
|
|
356
|
+
m_nulls(0)
|
|
357
|
+
{ eigen_assert(A.rows() == A.cols()); }
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* \brief Returns the matrix power.
|
|
361
|
+
*
|
|
362
|
+
* \param[in] p exponent, a real scalar.
|
|
363
|
+
* \return The expression \f$ A^p \f$, where A is specified in the
|
|
364
|
+
* constructor.
|
|
365
|
+
*/
|
|
366
|
+
const MatrixPowerParenthesesReturnValue<MatrixType> operator()(RealScalar p)
|
|
367
|
+
{ return MatrixPowerParenthesesReturnValue<MatrixType>(*this, p); }
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* \brief Compute the matrix power.
|
|
371
|
+
*
|
|
372
|
+
* \param[in] p exponent, a real scalar.
|
|
373
|
+
* \param[out] res \f$ A^p \f$ where A is specified in the
|
|
374
|
+
* constructor.
|
|
375
|
+
*/
|
|
376
|
+
template<typename ResultType>
|
|
377
|
+
void compute(ResultType& res, RealScalar p);
|
|
378
|
+
|
|
379
|
+
Index rows() const { return m_A.rows(); }
|
|
380
|
+
Index cols() const { return m_A.cols(); }
|
|
381
|
+
|
|
382
|
+
private:
|
|
383
|
+
typedef std::complex<RealScalar> ComplexScalar;
|
|
384
|
+
typedef Matrix<ComplexScalar, Dynamic, Dynamic, 0,
|
|
385
|
+
MatrixType::RowsAtCompileTime, MatrixType::ColsAtCompileTime> ComplexMatrix;
|
|
386
|
+
|
|
387
|
+
/** \brief Reference to the base of matrix power. */
|
|
388
|
+
typename MatrixType::Nested m_A;
|
|
389
|
+
|
|
390
|
+
/** \brief Temporary storage. */
|
|
391
|
+
MatrixType m_tmp;
|
|
392
|
+
|
|
393
|
+
/** \brief Store the result of Schur decomposition. */
|
|
394
|
+
ComplexMatrix m_T, m_U;
|
|
395
|
+
|
|
396
|
+
/** \brief Store fractional power of m_T. */
|
|
397
|
+
ComplexMatrix m_fT;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* \brief Condition number of m_A.
|
|
401
|
+
*
|
|
402
|
+
* It is initialized as 0 to avoid performing unnecessary Schur
|
|
403
|
+
* decomposition, which is the bottleneck.
|
|
404
|
+
*/
|
|
405
|
+
RealScalar m_conditionNumber;
|
|
406
|
+
|
|
407
|
+
/** \brief Rank of m_A. */
|
|
408
|
+
Index m_rank;
|
|
409
|
+
|
|
410
|
+
/** \brief Rank deficiency of m_A. */
|
|
411
|
+
Index m_nulls;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* \brief Split p into integral part and fractional part.
|
|
415
|
+
*
|
|
416
|
+
* \param[in] p The exponent.
|
|
417
|
+
* \param[out] p The fractional part ranging in \f$ (-1, 1) \f$.
|
|
418
|
+
* \param[out] intpart The integral part.
|
|
419
|
+
*
|
|
420
|
+
* Only if the fractional part is nonzero, it calls initialize().
|
|
421
|
+
*/
|
|
422
|
+
void split(RealScalar& p, RealScalar& intpart);
|
|
423
|
+
|
|
424
|
+
/** \brief Perform Schur decomposition for fractional power. */
|
|
425
|
+
void initialize();
|
|
426
|
+
|
|
427
|
+
template<typename ResultType>
|
|
428
|
+
void computeIntPower(ResultType& res, RealScalar p);
|
|
429
|
+
|
|
430
|
+
template<typename ResultType>
|
|
431
|
+
void computeFracPower(ResultType& res, RealScalar p);
|
|
432
|
+
|
|
433
|
+
template<int Rows, int Cols, int Options, int MaxRows, int MaxCols>
|
|
434
|
+
static void revertSchur(
|
|
435
|
+
Matrix<ComplexScalar, Rows, Cols, Options, MaxRows, MaxCols>& res,
|
|
436
|
+
const ComplexMatrix& T,
|
|
437
|
+
const ComplexMatrix& U);
|
|
438
|
+
|
|
439
|
+
template<int Rows, int Cols, int Options, int MaxRows, int MaxCols>
|
|
440
|
+
static void revertSchur(
|
|
441
|
+
Matrix<RealScalar, Rows, Cols, Options, MaxRows, MaxCols>& res,
|
|
442
|
+
const ComplexMatrix& T,
|
|
443
|
+
const ComplexMatrix& U);
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
template<typename MatrixType>
|
|
447
|
+
template<typename ResultType>
|
|
448
|
+
void MatrixPower<MatrixType>::compute(ResultType& res, RealScalar p)
|
|
449
|
+
{
|
|
450
|
+
using std::pow;
|
|
451
|
+
switch (cols()) {
|
|
452
|
+
case 0:
|
|
453
|
+
break;
|
|
454
|
+
case 1:
|
|
455
|
+
res(0,0) = pow(m_A.coeff(0,0), p);
|
|
456
|
+
break;
|
|
457
|
+
default:
|
|
458
|
+
RealScalar intpart;
|
|
459
|
+
split(p, intpart);
|
|
460
|
+
|
|
461
|
+
res = MatrixType::Identity(rows(), cols());
|
|
462
|
+
computeIntPower(res, intpart);
|
|
463
|
+
if (p) computeFracPower(res, p);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
template<typename MatrixType>
|
|
468
|
+
void MatrixPower<MatrixType>::split(RealScalar& p, RealScalar& intpart)
|
|
469
|
+
{
|
|
470
|
+
using std::floor;
|
|
471
|
+
using std::pow;
|
|
472
|
+
|
|
473
|
+
intpart = floor(p);
|
|
474
|
+
p -= intpart;
|
|
475
|
+
|
|
476
|
+
// Perform Schur decomposition if it is not yet performed and the power is
|
|
477
|
+
// not an integer.
|
|
478
|
+
if (!m_conditionNumber && p)
|
|
479
|
+
initialize();
|
|
480
|
+
|
|
481
|
+
// Choose the more stable of intpart = floor(p) and intpart = ceil(p).
|
|
482
|
+
if (p > RealScalar(0.5) && p > (1-p) * pow(m_conditionNumber, p)) {
|
|
483
|
+
--p;
|
|
484
|
+
++intpart;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
template<typename MatrixType>
|
|
489
|
+
void MatrixPower<MatrixType>::initialize()
|
|
490
|
+
{
|
|
491
|
+
const ComplexSchur<MatrixType> schurOfA(m_A);
|
|
492
|
+
JacobiRotation<ComplexScalar> rot;
|
|
493
|
+
ComplexScalar eigenvalue;
|
|
494
|
+
|
|
495
|
+
m_fT.resizeLike(m_A);
|
|
496
|
+
m_T = schurOfA.matrixT();
|
|
497
|
+
m_U = schurOfA.matrixU();
|
|
498
|
+
m_conditionNumber = m_T.diagonal().array().abs().maxCoeff() / m_T.diagonal().array().abs().minCoeff();
|
|
499
|
+
|
|
500
|
+
// Move zero eigenvalues to the bottom right corner.
|
|
501
|
+
for (Index i = cols()-1; i>=0; --i) {
|
|
502
|
+
if (m_rank <= 2)
|
|
503
|
+
return;
|
|
504
|
+
if (m_T.coeff(i,i) == RealScalar(0)) {
|
|
505
|
+
for (Index j=i+1; j < m_rank; ++j) {
|
|
506
|
+
eigenvalue = m_T.coeff(j,j);
|
|
507
|
+
rot.makeGivens(m_T.coeff(j-1,j), eigenvalue);
|
|
508
|
+
m_T.applyOnTheRight(j-1, j, rot);
|
|
509
|
+
m_T.applyOnTheLeft(j-1, j, rot.adjoint());
|
|
510
|
+
m_T.coeffRef(j-1,j-1) = eigenvalue;
|
|
511
|
+
m_T.coeffRef(j,j) = RealScalar(0);
|
|
512
|
+
m_U.applyOnTheRight(j-1, j, rot);
|
|
513
|
+
}
|
|
514
|
+
--m_rank;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
m_nulls = rows() - m_rank;
|
|
519
|
+
if (m_nulls) {
|
|
520
|
+
eigen_assert(m_T.bottomRightCorner(m_nulls, m_nulls).isZero()
|
|
521
|
+
&& "Base of matrix power should be invertible or with a semisimple zero eigenvalue.");
|
|
522
|
+
m_fT.bottomRows(m_nulls).fill(RealScalar(0));
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
template<typename MatrixType>
|
|
527
|
+
template<typename ResultType>
|
|
528
|
+
void MatrixPower<MatrixType>::computeIntPower(ResultType& res, RealScalar p)
|
|
529
|
+
{
|
|
530
|
+
using std::abs;
|
|
531
|
+
using std::fmod;
|
|
532
|
+
RealScalar pp = abs(p);
|
|
533
|
+
|
|
534
|
+
if (p<0)
|
|
535
|
+
m_tmp = m_A.inverse();
|
|
536
|
+
else
|
|
537
|
+
m_tmp = m_A;
|
|
538
|
+
|
|
539
|
+
while (true) {
|
|
540
|
+
if (fmod(pp, 2) >= 1)
|
|
541
|
+
res = m_tmp * res;
|
|
542
|
+
pp /= 2;
|
|
543
|
+
if (pp < 1)
|
|
544
|
+
break;
|
|
545
|
+
m_tmp *= m_tmp;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
template<typename MatrixType>
|
|
550
|
+
template<typename ResultType>
|
|
551
|
+
void MatrixPower<MatrixType>::computeFracPower(ResultType& res, RealScalar p)
|
|
552
|
+
{
|
|
553
|
+
Block<ComplexMatrix,Dynamic,Dynamic> blockTp(m_fT, 0, 0, m_rank, m_rank);
|
|
554
|
+
eigen_assert(m_conditionNumber);
|
|
555
|
+
eigen_assert(m_rank + m_nulls == rows());
|
|
556
|
+
|
|
557
|
+
MatrixPowerAtomic<ComplexMatrix>(m_T.topLeftCorner(m_rank, m_rank), p).compute(blockTp);
|
|
558
|
+
if (m_nulls) {
|
|
559
|
+
m_fT.topRightCorner(m_rank, m_nulls) = m_T.topLeftCorner(m_rank, m_rank).template triangularView<Upper>()
|
|
560
|
+
.solve(blockTp * m_T.topRightCorner(m_rank, m_nulls));
|
|
561
|
+
}
|
|
562
|
+
revertSchur(m_tmp, m_fT, m_U);
|
|
563
|
+
res = m_tmp * res;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
template<typename MatrixType>
|
|
567
|
+
template<int Rows, int Cols, int Options, int MaxRows, int MaxCols>
|
|
568
|
+
inline void MatrixPower<MatrixType>::revertSchur(
|
|
569
|
+
Matrix<ComplexScalar, Rows, Cols, Options, MaxRows, MaxCols>& res,
|
|
570
|
+
const ComplexMatrix& T,
|
|
571
|
+
const ComplexMatrix& U)
|
|
572
|
+
{ res.noalias() = U * (T.template triangularView<Upper>() * U.adjoint()); }
|
|
573
|
+
|
|
574
|
+
template<typename MatrixType>
|
|
575
|
+
template<int Rows, int Cols, int Options, int MaxRows, int MaxCols>
|
|
576
|
+
inline void MatrixPower<MatrixType>::revertSchur(
|
|
577
|
+
Matrix<RealScalar, Rows, Cols, Options, MaxRows, MaxCols>& res,
|
|
578
|
+
const ComplexMatrix& T,
|
|
579
|
+
const ComplexMatrix& U)
|
|
580
|
+
{ res.noalias() = (U * (T.template triangularView<Upper>() * U.adjoint())).real(); }
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* \ingroup MatrixFunctions_Module
|
|
584
|
+
*
|
|
585
|
+
* \brief Proxy for the matrix power of some matrix (expression).
|
|
586
|
+
*
|
|
587
|
+
* \tparam Derived type of the base, a matrix (expression).
|
|
588
|
+
*
|
|
589
|
+
* This class holds the arguments to the matrix power until it is
|
|
590
|
+
* assigned or evaluated for some other reason (so the argument
|
|
591
|
+
* should not be changed in the meantime). It is the return type of
|
|
592
|
+
* MatrixBase::pow() and related functions and most of the
|
|
593
|
+
* time this is the only way it is used.
|
|
594
|
+
*/
|
|
595
|
+
template<typename Derived>
|
|
596
|
+
class MatrixPowerReturnValue : public ReturnByValue< MatrixPowerReturnValue<Derived> >
|
|
597
|
+
{
|
|
598
|
+
public:
|
|
599
|
+
typedef typename Derived::PlainObject PlainObject;
|
|
600
|
+
typedef typename Derived::RealScalar RealScalar;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* \brief Constructor.
|
|
604
|
+
*
|
|
605
|
+
* \param[in] A %Matrix (expression), the base of the matrix power.
|
|
606
|
+
* \param[in] p real scalar, the exponent of the matrix power.
|
|
607
|
+
*/
|
|
608
|
+
MatrixPowerReturnValue(const Derived& A, RealScalar p) : m_A(A), m_p(p)
|
|
609
|
+
{ }
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* \brief Compute the matrix power.
|
|
613
|
+
*
|
|
614
|
+
* \param[out] result \f$ A^p \f$ where \p A and \p p are as in the
|
|
615
|
+
* constructor.
|
|
616
|
+
*/
|
|
617
|
+
template<typename ResultType>
|
|
618
|
+
inline void evalTo(ResultType& result) const
|
|
619
|
+
{ MatrixPower<PlainObject>(m_A.eval()).compute(result, m_p); }
|
|
620
|
+
|
|
621
|
+
Index rows() const { return m_A.rows(); }
|
|
622
|
+
Index cols() const { return m_A.cols(); }
|
|
623
|
+
|
|
624
|
+
private:
|
|
625
|
+
const Derived& m_A;
|
|
626
|
+
const RealScalar m_p;
|
|
627
|
+
};
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* \ingroup MatrixFunctions_Module
|
|
631
|
+
*
|
|
632
|
+
* \brief Proxy for the matrix power of some matrix (expression).
|
|
633
|
+
*
|
|
634
|
+
* \tparam Derived type of the base, a matrix (expression).
|
|
635
|
+
*
|
|
636
|
+
* This class holds the arguments to the matrix power until it is
|
|
637
|
+
* assigned or evaluated for some other reason (so the argument
|
|
638
|
+
* should not be changed in the meantime). It is the return type of
|
|
639
|
+
* MatrixBase::pow() and related functions and most of the
|
|
640
|
+
* time this is the only way it is used.
|
|
641
|
+
*/
|
|
642
|
+
template<typename Derived>
|
|
643
|
+
class MatrixComplexPowerReturnValue : public ReturnByValue< MatrixComplexPowerReturnValue<Derived> >
|
|
644
|
+
{
|
|
645
|
+
public:
|
|
646
|
+
typedef typename Derived::PlainObject PlainObject;
|
|
647
|
+
typedef typename std::complex<typename Derived::RealScalar> ComplexScalar;
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* \brief Constructor.
|
|
651
|
+
*
|
|
652
|
+
* \param[in] A %Matrix (expression), the base of the matrix power.
|
|
653
|
+
* \param[in] p complex scalar, the exponent of the matrix power.
|
|
654
|
+
*/
|
|
655
|
+
MatrixComplexPowerReturnValue(const Derived& A, const ComplexScalar& p) : m_A(A), m_p(p)
|
|
656
|
+
{ }
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* \brief Compute the matrix power.
|
|
660
|
+
*
|
|
661
|
+
* Because \p p is complex, \f$ A^p \f$ is simply evaluated as \f$
|
|
662
|
+
* \exp(p \log(A)) \f$.
|
|
663
|
+
*
|
|
664
|
+
* \param[out] result \f$ A^p \f$ where \p A and \p p are as in the
|
|
665
|
+
* constructor.
|
|
666
|
+
*/
|
|
667
|
+
template<typename ResultType>
|
|
668
|
+
inline void evalTo(ResultType& result) const
|
|
669
|
+
{ result = (m_p * m_A.log()).exp(); }
|
|
670
|
+
|
|
671
|
+
Index rows() const { return m_A.rows(); }
|
|
672
|
+
Index cols() const { return m_A.cols(); }
|
|
673
|
+
|
|
674
|
+
private:
|
|
675
|
+
const Derived& m_A;
|
|
676
|
+
const ComplexScalar m_p;
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
namespace internal {
|
|
680
|
+
|
|
681
|
+
template<typename MatrixPowerType>
|
|
682
|
+
struct traits< MatrixPowerParenthesesReturnValue<MatrixPowerType> >
|
|
683
|
+
{ typedef typename MatrixPowerType::PlainObject ReturnType; };
|
|
684
|
+
|
|
685
|
+
template<typename Derived>
|
|
686
|
+
struct traits< MatrixPowerReturnValue<Derived> >
|
|
687
|
+
{ typedef typename Derived::PlainObject ReturnType; };
|
|
688
|
+
|
|
689
|
+
template<typename Derived>
|
|
690
|
+
struct traits< MatrixComplexPowerReturnValue<Derived> >
|
|
691
|
+
{ typedef typename Derived::PlainObject ReturnType; };
|
|
692
|
+
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
template<typename Derived>
|
|
696
|
+
const MatrixPowerReturnValue<Derived> MatrixBase<Derived>::pow(const RealScalar& p) const
|
|
697
|
+
{ return MatrixPowerReturnValue<Derived>(derived(), p); }
|
|
698
|
+
|
|
699
|
+
template<typename Derived>
|
|
700
|
+
const MatrixComplexPowerReturnValue<Derived> MatrixBase<Derived>::pow(const std::complex<RealScalar>& p) const
|
|
701
|
+
{ return MatrixComplexPowerReturnValue<Derived>(derived(), p); }
|
|
702
|
+
|
|
703
|
+
} // namespace Eigen
|
|
704
|
+
|
|
705
|
+
#endif // EIGEN_MATRIX_POWER
|