pylibsparseir 0.1.0__cp310-cp310-macosx_15_0_arm64.whl → 0.6.0__cp310-cp310-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 +178 -62
- pylibsparseir/libsparseir.dylib +0 -0
- pylibsparseir-0.6.0.dist-info/METADATA +213 -0
- pylibsparseir-0.6.0.dist-info/RECORD +545 -0
- {pylibsparseir-0.1.0.dist-info → pylibsparseir-0.6.0.dist-info}/WHEEL +1 -1
- pylibsparseir-0.6.0.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,601 @@
|
|
|
1
|
+
// -*- coding: utf-8
|
|
2
|
+
// vim: set fileencoding=utf-8
|
|
3
|
+
|
|
4
|
+
// This file is part of Eigen, a lightweight C++ template library
|
|
5
|
+
// for linear algebra.
|
|
6
|
+
//
|
|
7
|
+
// Copyright (C) 2009 Thomas Capricelli <orzel@freehackers.org>
|
|
8
|
+
//
|
|
9
|
+
// This Source Code Form is subject to the terms of the Mozilla
|
|
10
|
+
// Public License v. 2.0. If a copy of the MPL was not distributed
|
|
11
|
+
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
12
|
+
|
|
13
|
+
#ifndef EIGEN_HYBRIDNONLINEARSOLVER_H
|
|
14
|
+
#define EIGEN_HYBRIDNONLINEARSOLVER_H
|
|
15
|
+
|
|
16
|
+
namespace Eigen {
|
|
17
|
+
|
|
18
|
+
namespace HybridNonLinearSolverSpace {
|
|
19
|
+
enum Status {
|
|
20
|
+
Running = -1,
|
|
21
|
+
ImproperInputParameters = 0,
|
|
22
|
+
RelativeErrorTooSmall = 1,
|
|
23
|
+
TooManyFunctionEvaluation = 2,
|
|
24
|
+
TolTooSmall = 3,
|
|
25
|
+
NotMakingProgressJacobian = 4,
|
|
26
|
+
NotMakingProgressIterations = 5,
|
|
27
|
+
UserAsked = 6
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* \ingroup NonLinearOptimization_Module
|
|
33
|
+
* \brief Finds a zero of a system of n
|
|
34
|
+
* nonlinear functions in n variables by a modification of the Powell
|
|
35
|
+
* hybrid method ("dogleg").
|
|
36
|
+
*
|
|
37
|
+
* The user must provide a subroutine which calculates the
|
|
38
|
+
* functions. The Jacobian is either provided by the user, or approximated
|
|
39
|
+
* using a forward-difference method.
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
template<typename FunctorType, typename Scalar=double>
|
|
43
|
+
class HybridNonLinearSolver
|
|
44
|
+
{
|
|
45
|
+
public:
|
|
46
|
+
typedef DenseIndex Index;
|
|
47
|
+
|
|
48
|
+
HybridNonLinearSolver(FunctorType &_functor)
|
|
49
|
+
: functor(_functor) { nfev=njev=iter = 0; fnorm= 0.; useExternalScaling=false;}
|
|
50
|
+
|
|
51
|
+
struct Parameters {
|
|
52
|
+
Parameters()
|
|
53
|
+
: factor(Scalar(100.))
|
|
54
|
+
, maxfev(1000)
|
|
55
|
+
, xtol(numext::sqrt(NumTraits<Scalar>::epsilon()))
|
|
56
|
+
, nb_of_subdiagonals(-1)
|
|
57
|
+
, nb_of_superdiagonals(-1)
|
|
58
|
+
, epsfcn(Scalar(0.)) {}
|
|
59
|
+
Scalar factor;
|
|
60
|
+
Index maxfev; // maximum number of function evaluation
|
|
61
|
+
Scalar xtol;
|
|
62
|
+
Index nb_of_subdiagonals;
|
|
63
|
+
Index nb_of_superdiagonals;
|
|
64
|
+
Scalar epsfcn;
|
|
65
|
+
};
|
|
66
|
+
typedef Matrix< Scalar, Dynamic, 1 > FVectorType;
|
|
67
|
+
typedef Matrix< Scalar, Dynamic, Dynamic > JacobianType;
|
|
68
|
+
/* TODO: if eigen provides a triangular storage, use it here */
|
|
69
|
+
typedef Matrix< Scalar, Dynamic, Dynamic > UpperTriangularType;
|
|
70
|
+
|
|
71
|
+
HybridNonLinearSolverSpace::Status hybrj1(
|
|
72
|
+
FVectorType &x,
|
|
73
|
+
const Scalar tol = numext::sqrt(NumTraits<Scalar>::epsilon())
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
HybridNonLinearSolverSpace::Status solveInit(FVectorType &x);
|
|
77
|
+
HybridNonLinearSolverSpace::Status solveOneStep(FVectorType &x);
|
|
78
|
+
HybridNonLinearSolverSpace::Status solve(FVectorType &x);
|
|
79
|
+
|
|
80
|
+
HybridNonLinearSolverSpace::Status hybrd1(
|
|
81
|
+
FVectorType &x,
|
|
82
|
+
const Scalar tol = numext::sqrt(NumTraits<Scalar>::epsilon())
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
HybridNonLinearSolverSpace::Status solveNumericalDiffInit(FVectorType &x);
|
|
86
|
+
HybridNonLinearSolverSpace::Status solveNumericalDiffOneStep(FVectorType &x);
|
|
87
|
+
HybridNonLinearSolverSpace::Status solveNumericalDiff(FVectorType &x);
|
|
88
|
+
|
|
89
|
+
void resetParameters(void) { parameters = Parameters(); }
|
|
90
|
+
Parameters parameters;
|
|
91
|
+
FVectorType fvec, qtf, diag;
|
|
92
|
+
JacobianType fjac;
|
|
93
|
+
UpperTriangularType R;
|
|
94
|
+
Index nfev;
|
|
95
|
+
Index njev;
|
|
96
|
+
Index iter;
|
|
97
|
+
Scalar fnorm;
|
|
98
|
+
bool useExternalScaling;
|
|
99
|
+
private:
|
|
100
|
+
FunctorType &functor;
|
|
101
|
+
Index n;
|
|
102
|
+
Scalar sum;
|
|
103
|
+
bool sing;
|
|
104
|
+
Scalar temp;
|
|
105
|
+
Scalar delta;
|
|
106
|
+
bool jeval;
|
|
107
|
+
Index ncsuc;
|
|
108
|
+
Scalar ratio;
|
|
109
|
+
Scalar pnorm, xnorm, fnorm1;
|
|
110
|
+
Index nslow1, nslow2;
|
|
111
|
+
Index ncfail;
|
|
112
|
+
Scalar actred, prered;
|
|
113
|
+
FVectorType wa1, wa2, wa3, wa4;
|
|
114
|
+
|
|
115
|
+
HybridNonLinearSolver& operator=(const HybridNonLinearSolver&);
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
template<typename FunctorType, typename Scalar>
|
|
121
|
+
HybridNonLinearSolverSpace::Status
|
|
122
|
+
HybridNonLinearSolver<FunctorType,Scalar>::hybrj1(
|
|
123
|
+
FVectorType &x,
|
|
124
|
+
const Scalar tol
|
|
125
|
+
)
|
|
126
|
+
{
|
|
127
|
+
n = x.size();
|
|
128
|
+
|
|
129
|
+
/* check the input parameters for errors. */
|
|
130
|
+
if (n <= 0 || tol < 0.)
|
|
131
|
+
return HybridNonLinearSolverSpace::ImproperInputParameters;
|
|
132
|
+
|
|
133
|
+
resetParameters();
|
|
134
|
+
parameters.maxfev = 100*(n+1);
|
|
135
|
+
parameters.xtol = tol;
|
|
136
|
+
diag.setConstant(n, 1.);
|
|
137
|
+
useExternalScaling = true;
|
|
138
|
+
return solve(x);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
template<typename FunctorType, typename Scalar>
|
|
142
|
+
HybridNonLinearSolverSpace::Status
|
|
143
|
+
HybridNonLinearSolver<FunctorType,Scalar>::solveInit(FVectorType &x)
|
|
144
|
+
{
|
|
145
|
+
n = x.size();
|
|
146
|
+
|
|
147
|
+
wa1.resize(n); wa2.resize(n); wa3.resize(n); wa4.resize(n);
|
|
148
|
+
fvec.resize(n);
|
|
149
|
+
qtf.resize(n);
|
|
150
|
+
fjac.resize(n, n);
|
|
151
|
+
if (!useExternalScaling)
|
|
152
|
+
diag.resize(n);
|
|
153
|
+
eigen_assert( (!useExternalScaling || diag.size()==n) && "When useExternalScaling is set, the caller must provide a valid 'diag'");
|
|
154
|
+
|
|
155
|
+
/* Function Body */
|
|
156
|
+
nfev = 0;
|
|
157
|
+
njev = 0;
|
|
158
|
+
|
|
159
|
+
/* check the input parameters for errors. */
|
|
160
|
+
if (n <= 0 || parameters.xtol < 0. || parameters.maxfev <= 0 || parameters.factor <= 0. )
|
|
161
|
+
return HybridNonLinearSolverSpace::ImproperInputParameters;
|
|
162
|
+
if (useExternalScaling)
|
|
163
|
+
for (Index j = 0; j < n; ++j)
|
|
164
|
+
if (diag[j] <= 0.)
|
|
165
|
+
return HybridNonLinearSolverSpace::ImproperInputParameters;
|
|
166
|
+
|
|
167
|
+
/* evaluate the function at the starting point */
|
|
168
|
+
/* and calculate its norm. */
|
|
169
|
+
nfev = 1;
|
|
170
|
+
if ( functor(x, fvec) < 0)
|
|
171
|
+
return HybridNonLinearSolverSpace::UserAsked;
|
|
172
|
+
fnorm = fvec.stableNorm();
|
|
173
|
+
|
|
174
|
+
/* initialize iteration counter and monitors. */
|
|
175
|
+
iter = 1;
|
|
176
|
+
ncsuc = 0;
|
|
177
|
+
ncfail = 0;
|
|
178
|
+
nslow1 = 0;
|
|
179
|
+
nslow2 = 0;
|
|
180
|
+
|
|
181
|
+
return HybridNonLinearSolverSpace::Running;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
template<typename FunctorType, typename Scalar>
|
|
185
|
+
HybridNonLinearSolverSpace::Status
|
|
186
|
+
HybridNonLinearSolver<FunctorType,Scalar>::solveOneStep(FVectorType &x)
|
|
187
|
+
{
|
|
188
|
+
using std::abs;
|
|
189
|
+
|
|
190
|
+
eigen_assert(x.size()==n); // check the caller is not cheating us
|
|
191
|
+
|
|
192
|
+
Index j;
|
|
193
|
+
std::vector<JacobiRotation<Scalar> > v_givens(n), w_givens(n);
|
|
194
|
+
|
|
195
|
+
jeval = true;
|
|
196
|
+
|
|
197
|
+
/* calculate the jacobian matrix. */
|
|
198
|
+
if ( functor.df(x, fjac) < 0)
|
|
199
|
+
return HybridNonLinearSolverSpace::UserAsked;
|
|
200
|
+
++njev;
|
|
201
|
+
|
|
202
|
+
wa2 = fjac.colwise().blueNorm();
|
|
203
|
+
|
|
204
|
+
/* on the first iteration and if external scaling is not used, scale according */
|
|
205
|
+
/* to the norms of the columns of the initial jacobian. */
|
|
206
|
+
if (iter == 1) {
|
|
207
|
+
if (!useExternalScaling)
|
|
208
|
+
for (j = 0; j < n; ++j)
|
|
209
|
+
diag[j] = (wa2[j]==0.) ? 1. : wa2[j];
|
|
210
|
+
|
|
211
|
+
/* on the first iteration, calculate the norm of the scaled x */
|
|
212
|
+
/* and initialize the step bound delta. */
|
|
213
|
+
xnorm = diag.cwiseProduct(x).stableNorm();
|
|
214
|
+
delta = parameters.factor * xnorm;
|
|
215
|
+
if (delta == 0.)
|
|
216
|
+
delta = parameters.factor;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/* compute the qr factorization of the jacobian. */
|
|
220
|
+
HouseholderQR<JacobianType> qrfac(fjac); // no pivoting:
|
|
221
|
+
|
|
222
|
+
/* copy the triangular factor of the qr factorization into r. */
|
|
223
|
+
R = qrfac.matrixQR();
|
|
224
|
+
|
|
225
|
+
/* accumulate the orthogonal factor in fjac. */
|
|
226
|
+
fjac = qrfac.householderQ();
|
|
227
|
+
|
|
228
|
+
/* form (q transpose)*fvec and store in qtf. */
|
|
229
|
+
qtf = fjac.transpose() * fvec;
|
|
230
|
+
|
|
231
|
+
/* rescale if necessary. */
|
|
232
|
+
if (!useExternalScaling)
|
|
233
|
+
diag = diag.cwiseMax(wa2);
|
|
234
|
+
|
|
235
|
+
while (true) {
|
|
236
|
+
/* determine the direction p. */
|
|
237
|
+
internal::dogleg<Scalar>(R, diag, qtf, delta, wa1);
|
|
238
|
+
|
|
239
|
+
/* store the direction p and x + p. calculate the norm of p. */
|
|
240
|
+
wa1 = -wa1;
|
|
241
|
+
wa2 = x + wa1;
|
|
242
|
+
pnorm = diag.cwiseProduct(wa1).stableNorm();
|
|
243
|
+
|
|
244
|
+
/* on the first iteration, adjust the initial step bound. */
|
|
245
|
+
if (iter == 1)
|
|
246
|
+
delta = (std::min)(delta,pnorm);
|
|
247
|
+
|
|
248
|
+
/* evaluate the function at x + p and calculate its norm. */
|
|
249
|
+
if ( functor(wa2, wa4) < 0)
|
|
250
|
+
return HybridNonLinearSolverSpace::UserAsked;
|
|
251
|
+
++nfev;
|
|
252
|
+
fnorm1 = wa4.stableNorm();
|
|
253
|
+
|
|
254
|
+
/* compute the scaled actual reduction. */
|
|
255
|
+
actred = -1.;
|
|
256
|
+
if (fnorm1 < fnorm) /* Computing 2nd power */
|
|
257
|
+
actred = 1. - numext::abs2(fnorm1 / fnorm);
|
|
258
|
+
|
|
259
|
+
/* compute the scaled predicted reduction. */
|
|
260
|
+
wa3 = R.template triangularView<Upper>()*wa1 + qtf;
|
|
261
|
+
temp = wa3.stableNorm();
|
|
262
|
+
prered = 0.;
|
|
263
|
+
if (temp < fnorm) /* Computing 2nd power */
|
|
264
|
+
prered = 1. - numext::abs2(temp / fnorm);
|
|
265
|
+
|
|
266
|
+
/* compute the ratio of the actual to the predicted reduction. */
|
|
267
|
+
ratio = 0.;
|
|
268
|
+
if (prered > 0.)
|
|
269
|
+
ratio = actred / prered;
|
|
270
|
+
|
|
271
|
+
/* update the step bound. */
|
|
272
|
+
if (ratio < Scalar(.1)) {
|
|
273
|
+
ncsuc = 0;
|
|
274
|
+
++ncfail;
|
|
275
|
+
delta = Scalar(.5) * delta;
|
|
276
|
+
} else {
|
|
277
|
+
ncfail = 0;
|
|
278
|
+
++ncsuc;
|
|
279
|
+
if (ratio >= Scalar(.5) || ncsuc > 1)
|
|
280
|
+
delta = (std::max)(delta, pnorm / Scalar(.5));
|
|
281
|
+
if (abs(ratio - 1.) <= Scalar(.1)) {
|
|
282
|
+
delta = pnorm / Scalar(.5);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/* test for successful iteration. */
|
|
287
|
+
if (ratio >= Scalar(1e-4)) {
|
|
288
|
+
/* successful iteration. update x, fvec, and their norms. */
|
|
289
|
+
x = wa2;
|
|
290
|
+
wa2 = diag.cwiseProduct(x);
|
|
291
|
+
fvec = wa4;
|
|
292
|
+
xnorm = wa2.stableNorm();
|
|
293
|
+
fnorm = fnorm1;
|
|
294
|
+
++iter;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/* determine the progress of the iteration. */
|
|
298
|
+
++nslow1;
|
|
299
|
+
if (actred >= Scalar(.001))
|
|
300
|
+
nslow1 = 0;
|
|
301
|
+
if (jeval)
|
|
302
|
+
++nslow2;
|
|
303
|
+
if (actred >= Scalar(.1))
|
|
304
|
+
nslow2 = 0;
|
|
305
|
+
|
|
306
|
+
/* test for convergence. */
|
|
307
|
+
if (delta <= parameters.xtol * xnorm || fnorm == 0.)
|
|
308
|
+
return HybridNonLinearSolverSpace::RelativeErrorTooSmall;
|
|
309
|
+
|
|
310
|
+
/* tests for termination and stringent tolerances. */
|
|
311
|
+
if (nfev >= parameters.maxfev)
|
|
312
|
+
return HybridNonLinearSolverSpace::TooManyFunctionEvaluation;
|
|
313
|
+
if (Scalar(.1) * (std::max)(Scalar(.1) * delta, pnorm) <= NumTraits<Scalar>::epsilon() * xnorm)
|
|
314
|
+
return HybridNonLinearSolverSpace::TolTooSmall;
|
|
315
|
+
if (nslow2 == 5)
|
|
316
|
+
return HybridNonLinearSolverSpace::NotMakingProgressJacobian;
|
|
317
|
+
if (nslow1 == 10)
|
|
318
|
+
return HybridNonLinearSolverSpace::NotMakingProgressIterations;
|
|
319
|
+
|
|
320
|
+
/* criterion for recalculating jacobian. */
|
|
321
|
+
if (ncfail == 2)
|
|
322
|
+
break; // leave inner loop and go for the next outer loop iteration
|
|
323
|
+
|
|
324
|
+
/* calculate the rank one modification to the jacobian */
|
|
325
|
+
/* and update qtf if necessary. */
|
|
326
|
+
wa1 = diag.cwiseProduct( diag.cwiseProduct(wa1)/pnorm );
|
|
327
|
+
wa2 = fjac.transpose() * wa4;
|
|
328
|
+
if (ratio >= Scalar(1e-4))
|
|
329
|
+
qtf = wa2;
|
|
330
|
+
wa2 = (wa2-wa3)/pnorm;
|
|
331
|
+
|
|
332
|
+
/* compute the qr factorization of the updated jacobian. */
|
|
333
|
+
internal::r1updt<Scalar>(R, wa1, v_givens, w_givens, wa2, wa3, &sing);
|
|
334
|
+
internal::r1mpyq<Scalar>(n, n, fjac.data(), v_givens, w_givens);
|
|
335
|
+
internal::r1mpyq<Scalar>(1, n, qtf.data(), v_givens, w_givens);
|
|
336
|
+
|
|
337
|
+
jeval = false;
|
|
338
|
+
}
|
|
339
|
+
return HybridNonLinearSolverSpace::Running;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
template<typename FunctorType, typename Scalar>
|
|
343
|
+
HybridNonLinearSolverSpace::Status
|
|
344
|
+
HybridNonLinearSolver<FunctorType,Scalar>::solve(FVectorType &x)
|
|
345
|
+
{
|
|
346
|
+
HybridNonLinearSolverSpace::Status status = solveInit(x);
|
|
347
|
+
if (status==HybridNonLinearSolverSpace::ImproperInputParameters)
|
|
348
|
+
return status;
|
|
349
|
+
while (status==HybridNonLinearSolverSpace::Running)
|
|
350
|
+
status = solveOneStep(x);
|
|
351
|
+
return status;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
template<typename FunctorType, typename Scalar>
|
|
357
|
+
HybridNonLinearSolverSpace::Status
|
|
358
|
+
HybridNonLinearSolver<FunctorType,Scalar>::hybrd1(
|
|
359
|
+
FVectorType &x,
|
|
360
|
+
const Scalar tol
|
|
361
|
+
)
|
|
362
|
+
{
|
|
363
|
+
n = x.size();
|
|
364
|
+
|
|
365
|
+
/* check the input parameters for errors. */
|
|
366
|
+
if (n <= 0 || tol < 0.)
|
|
367
|
+
return HybridNonLinearSolverSpace::ImproperInputParameters;
|
|
368
|
+
|
|
369
|
+
resetParameters();
|
|
370
|
+
parameters.maxfev = 200*(n+1);
|
|
371
|
+
parameters.xtol = tol;
|
|
372
|
+
|
|
373
|
+
diag.setConstant(n, 1.);
|
|
374
|
+
useExternalScaling = true;
|
|
375
|
+
return solveNumericalDiff(x);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
template<typename FunctorType, typename Scalar>
|
|
379
|
+
HybridNonLinearSolverSpace::Status
|
|
380
|
+
HybridNonLinearSolver<FunctorType,Scalar>::solveNumericalDiffInit(FVectorType &x)
|
|
381
|
+
{
|
|
382
|
+
n = x.size();
|
|
383
|
+
|
|
384
|
+
if (parameters.nb_of_subdiagonals<0) parameters.nb_of_subdiagonals= n-1;
|
|
385
|
+
if (parameters.nb_of_superdiagonals<0) parameters.nb_of_superdiagonals= n-1;
|
|
386
|
+
|
|
387
|
+
wa1.resize(n); wa2.resize(n); wa3.resize(n); wa4.resize(n);
|
|
388
|
+
qtf.resize(n);
|
|
389
|
+
fjac.resize(n, n);
|
|
390
|
+
fvec.resize(n);
|
|
391
|
+
if (!useExternalScaling)
|
|
392
|
+
diag.resize(n);
|
|
393
|
+
eigen_assert( (!useExternalScaling || diag.size()==n) && "When useExternalScaling is set, the caller must provide a valid 'diag'");
|
|
394
|
+
|
|
395
|
+
/* Function Body */
|
|
396
|
+
nfev = 0;
|
|
397
|
+
njev = 0;
|
|
398
|
+
|
|
399
|
+
/* check the input parameters for errors. */
|
|
400
|
+
if (n <= 0 || parameters.xtol < 0. || parameters.maxfev <= 0 || parameters.nb_of_subdiagonals< 0 || parameters.nb_of_superdiagonals< 0 || parameters.factor <= 0. )
|
|
401
|
+
return HybridNonLinearSolverSpace::ImproperInputParameters;
|
|
402
|
+
if (useExternalScaling)
|
|
403
|
+
for (Index j = 0; j < n; ++j)
|
|
404
|
+
if (diag[j] <= 0.)
|
|
405
|
+
return HybridNonLinearSolverSpace::ImproperInputParameters;
|
|
406
|
+
|
|
407
|
+
/* evaluate the function at the starting point */
|
|
408
|
+
/* and calculate its norm. */
|
|
409
|
+
nfev = 1;
|
|
410
|
+
if ( functor(x, fvec) < 0)
|
|
411
|
+
return HybridNonLinearSolverSpace::UserAsked;
|
|
412
|
+
fnorm = fvec.stableNorm();
|
|
413
|
+
|
|
414
|
+
/* initialize iteration counter and monitors. */
|
|
415
|
+
iter = 1;
|
|
416
|
+
ncsuc = 0;
|
|
417
|
+
ncfail = 0;
|
|
418
|
+
nslow1 = 0;
|
|
419
|
+
nslow2 = 0;
|
|
420
|
+
|
|
421
|
+
return HybridNonLinearSolverSpace::Running;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
template<typename FunctorType, typename Scalar>
|
|
425
|
+
HybridNonLinearSolverSpace::Status
|
|
426
|
+
HybridNonLinearSolver<FunctorType,Scalar>::solveNumericalDiffOneStep(FVectorType &x)
|
|
427
|
+
{
|
|
428
|
+
using std::sqrt;
|
|
429
|
+
using std::abs;
|
|
430
|
+
|
|
431
|
+
assert(x.size()==n); // check the caller is not cheating us
|
|
432
|
+
|
|
433
|
+
Index j;
|
|
434
|
+
std::vector<JacobiRotation<Scalar> > v_givens(n), w_givens(n);
|
|
435
|
+
|
|
436
|
+
jeval = true;
|
|
437
|
+
if (parameters.nb_of_subdiagonals<0) parameters.nb_of_subdiagonals= n-1;
|
|
438
|
+
if (parameters.nb_of_superdiagonals<0) parameters.nb_of_superdiagonals= n-1;
|
|
439
|
+
|
|
440
|
+
/* calculate the jacobian matrix. */
|
|
441
|
+
if (internal::fdjac1(functor, x, fvec, fjac, parameters.nb_of_subdiagonals, parameters.nb_of_superdiagonals, parameters.epsfcn) <0)
|
|
442
|
+
return HybridNonLinearSolverSpace::UserAsked;
|
|
443
|
+
nfev += (std::min)(parameters.nb_of_subdiagonals+parameters.nb_of_superdiagonals+ 1, n);
|
|
444
|
+
|
|
445
|
+
wa2 = fjac.colwise().blueNorm();
|
|
446
|
+
|
|
447
|
+
/* on the first iteration and if external scaling is not used, scale according */
|
|
448
|
+
/* to the norms of the columns of the initial jacobian. */
|
|
449
|
+
if (iter == 1) {
|
|
450
|
+
if (!useExternalScaling)
|
|
451
|
+
for (j = 0; j < n; ++j)
|
|
452
|
+
diag[j] = (wa2[j]==0.) ? 1. : wa2[j];
|
|
453
|
+
|
|
454
|
+
/* on the first iteration, calculate the norm of the scaled x */
|
|
455
|
+
/* and initialize the step bound delta. */
|
|
456
|
+
xnorm = diag.cwiseProduct(x).stableNorm();
|
|
457
|
+
delta = parameters.factor * xnorm;
|
|
458
|
+
if (delta == 0.)
|
|
459
|
+
delta = parameters.factor;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/* compute the qr factorization of the jacobian. */
|
|
463
|
+
HouseholderQR<JacobianType> qrfac(fjac); // no pivoting:
|
|
464
|
+
|
|
465
|
+
/* copy the triangular factor of the qr factorization into r. */
|
|
466
|
+
R = qrfac.matrixQR();
|
|
467
|
+
|
|
468
|
+
/* accumulate the orthogonal factor in fjac. */
|
|
469
|
+
fjac = qrfac.householderQ();
|
|
470
|
+
|
|
471
|
+
/* form (q transpose)*fvec and store in qtf. */
|
|
472
|
+
qtf = fjac.transpose() * fvec;
|
|
473
|
+
|
|
474
|
+
/* rescale if necessary. */
|
|
475
|
+
if (!useExternalScaling)
|
|
476
|
+
diag = diag.cwiseMax(wa2);
|
|
477
|
+
|
|
478
|
+
while (true) {
|
|
479
|
+
/* determine the direction p. */
|
|
480
|
+
internal::dogleg<Scalar>(R, diag, qtf, delta, wa1);
|
|
481
|
+
|
|
482
|
+
/* store the direction p and x + p. calculate the norm of p. */
|
|
483
|
+
wa1 = -wa1;
|
|
484
|
+
wa2 = x + wa1;
|
|
485
|
+
pnorm = diag.cwiseProduct(wa1).stableNorm();
|
|
486
|
+
|
|
487
|
+
/* on the first iteration, adjust the initial step bound. */
|
|
488
|
+
if (iter == 1)
|
|
489
|
+
delta = (std::min)(delta,pnorm);
|
|
490
|
+
|
|
491
|
+
/* evaluate the function at x + p and calculate its norm. */
|
|
492
|
+
if ( functor(wa2, wa4) < 0)
|
|
493
|
+
return HybridNonLinearSolverSpace::UserAsked;
|
|
494
|
+
++nfev;
|
|
495
|
+
fnorm1 = wa4.stableNorm();
|
|
496
|
+
|
|
497
|
+
/* compute the scaled actual reduction. */
|
|
498
|
+
actred = -1.;
|
|
499
|
+
if (fnorm1 < fnorm) /* Computing 2nd power */
|
|
500
|
+
actred = 1. - numext::abs2(fnorm1 / fnorm);
|
|
501
|
+
|
|
502
|
+
/* compute the scaled predicted reduction. */
|
|
503
|
+
wa3 = R.template triangularView<Upper>()*wa1 + qtf;
|
|
504
|
+
temp = wa3.stableNorm();
|
|
505
|
+
prered = 0.;
|
|
506
|
+
if (temp < fnorm) /* Computing 2nd power */
|
|
507
|
+
prered = 1. - numext::abs2(temp / fnorm);
|
|
508
|
+
|
|
509
|
+
/* compute the ratio of the actual to the predicted reduction. */
|
|
510
|
+
ratio = 0.;
|
|
511
|
+
if (prered > 0.)
|
|
512
|
+
ratio = actred / prered;
|
|
513
|
+
|
|
514
|
+
/* update the step bound. */
|
|
515
|
+
if (ratio < Scalar(.1)) {
|
|
516
|
+
ncsuc = 0;
|
|
517
|
+
++ncfail;
|
|
518
|
+
delta = Scalar(.5) * delta;
|
|
519
|
+
} else {
|
|
520
|
+
ncfail = 0;
|
|
521
|
+
++ncsuc;
|
|
522
|
+
if (ratio >= Scalar(.5) || ncsuc > 1)
|
|
523
|
+
delta = (std::max)(delta, pnorm / Scalar(.5));
|
|
524
|
+
if (abs(ratio - 1.) <= Scalar(.1)) {
|
|
525
|
+
delta = pnorm / Scalar(.5);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/* test for successful iteration. */
|
|
530
|
+
if (ratio >= Scalar(1e-4)) {
|
|
531
|
+
/* successful iteration. update x, fvec, and their norms. */
|
|
532
|
+
x = wa2;
|
|
533
|
+
wa2 = diag.cwiseProduct(x);
|
|
534
|
+
fvec = wa4;
|
|
535
|
+
xnorm = wa2.stableNorm();
|
|
536
|
+
fnorm = fnorm1;
|
|
537
|
+
++iter;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
/* determine the progress of the iteration. */
|
|
541
|
+
++nslow1;
|
|
542
|
+
if (actred >= Scalar(.001))
|
|
543
|
+
nslow1 = 0;
|
|
544
|
+
if (jeval)
|
|
545
|
+
++nslow2;
|
|
546
|
+
if (actred >= Scalar(.1))
|
|
547
|
+
nslow2 = 0;
|
|
548
|
+
|
|
549
|
+
/* test for convergence. */
|
|
550
|
+
if (delta <= parameters.xtol * xnorm || fnorm == 0.)
|
|
551
|
+
return HybridNonLinearSolverSpace::RelativeErrorTooSmall;
|
|
552
|
+
|
|
553
|
+
/* tests for termination and stringent tolerances. */
|
|
554
|
+
if (nfev >= parameters.maxfev)
|
|
555
|
+
return HybridNonLinearSolverSpace::TooManyFunctionEvaluation;
|
|
556
|
+
if (Scalar(.1) * (std::max)(Scalar(.1) * delta, pnorm) <= NumTraits<Scalar>::epsilon() * xnorm)
|
|
557
|
+
return HybridNonLinearSolverSpace::TolTooSmall;
|
|
558
|
+
if (nslow2 == 5)
|
|
559
|
+
return HybridNonLinearSolverSpace::NotMakingProgressJacobian;
|
|
560
|
+
if (nslow1 == 10)
|
|
561
|
+
return HybridNonLinearSolverSpace::NotMakingProgressIterations;
|
|
562
|
+
|
|
563
|
+
/* criterion for recalculating jacobian. */
|
|
564
|
+
if (ncfail == 2)
|
|
565
|
+
break; // leave inner loop and go for the next outer loop iteration
|
|
566
|
+
|
|
567
|
+
/* calculate the rank one modification to the jacobian */
|
|
568
|
+
/* and update qtf if necessary. */
|
|
569
|
+
wa1 = diag.cwiseProduct( diag.cwiseProduct(wa1)/pnorm );
|
|
570
|
+
wa2 = fjac.transpose() * wa4;
|
|
571
|
+
if (ratio >= Scalar(1e-4))
|
|
572
|
+
qtf = wa2;
|
|
573
|
+
wa2 = (wa2-wa3)/pnorm;
|
|
574
|
+
|
|
575
|
+
/* compute the qr factorization of the updated jacobian. */
|
|
576
|
+
internal::r1updt<Scalar>(R, wa1, v_givens, w_givens, wa2, wa3, &sing);
|
|
577
|
+
internal::r1mpyq<Scalar>(n, n, fjac.data(), v_givens, w_givens);
|
|
578
|
+
internal::r1mpyq<Scalar>(1, n, qtf.data(), v_givens, w_givens);
|
|
579
|
+
|
|
580
|
+
jeval = false;
|
|
581
|
+
}
|
|
582
|
+
return HybridNonLinearSolverSpace::Running;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
template<typename FunctorType, typename Scalar>
|
|
586
|
+
HybridNonLinearSolverSpace::Status
|
|
587
|
+
HybridNonLinearSolver<FunctorType,Scalar>::solveNumericalDiff(FVectorType &x)
|
|
588
|
+
{
|
|
589
|
+
HybridNonLinearSolverSpace::Status status = solveNumericalDiffInit(x);
|
|
590
|
+
if (status==HybridNonLinearSolverSpace::ImproperInputParameters)
|
|
591
|
+
return status;
|
|
592
|
+
while (status==HybridNonLinearSolverSpace::Running)
|
|
593
|
+
status = solveNumericalDiffOneStep(x);
|
|
594
|
+
return status;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
} // end namespace Eigen
|
|
598
|
+
|
|
599
|
+
#endif // EIGEN_HYBRIDNONLINEARSOLVER_H
|
|
600
|
+
|
|
601
|
+
//vim: ai ts=4 sts=4 et sw=4
|