peigentux 2.0.0__tar.gz → 2.2.0__tar.gz
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.
- peigentux-2.2.0/CHANGELOG.md +157 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/DEV.md +19 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/PKG-INFO +71 -20
- {peigentux-2.0.0 → peigentux-2.2.0}/README.md +70 -19
- {peigentux-2.0.0 → peigentux-2.2.0}/RELEASING.md +2 -2
- {peigentux-2.0.0 → peigentux-2.2.0}/benchmarks/bench_cholesky.py +24 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/benchmarks/bench_sparse.py +12 -18
- {peigentux-2.0.0 → peigentux-2.2.0}/pyproject.toml +1 -1
- {peigentux-2.0.0 → peigentux-2.2.0}/python/peigen/decomp.py +19 -2
- peigentux-2.2.0/python/peigen/sparse.py +396 -0
- peigentux-2.2.0/src/bindings/module.cpp +2315 -0
- peigentux-2.2.0/tests/test_decomp_correctness.py +66 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/tests/test_input_robustness.py +1 -1
- {peigentux-2.0.0 → peigentux-2.2.0}/tests/test_sparse_cholesky.py +1 -1
- peigentux-2.2.0/tests/test_sparse_correctness.py +230 -0
- peigentux-2.2.0/tests/test_sparse_factors.py +115 -0
- peigentux-2.2.0/tests/test_sparse_lstsq.py +231 -0
- peigentux-2.2.0/tests/test_sparse_multifrontal.py +188 -0
- peigentux-2.2.0/tests/test_website_examples.py +49 -0
- peigentux-2.2.0/website/404.html +99 -0
- peigentux-2.2.0/website/CNAME +1 -0
- peigentux-2.2.0/website/algorithms.html +270 -0
- peigentux-2.2.0/website/assets/bench-cholesky-data.js +2 -0
- peigentux-2.2.0/website/assets/bench.js +339 -0
- peigentux-2.2.0/website/assets/logo.svg +1 -0
- peigentux-2.2.0/website/assets/site.js +204 -0
- peigentux-2.2.0/website/assets/style.css +1065 -0
- peigentux-2.2.0/website/benchmarks.html +228 -0
- peigentux-2.2.0/website/examples.html +378 -0
- peigentux-2.2.0/website/index.html +200 -0
- peigentux-2.2.0/website/install.html +180 -0
- peigentux-2.2.0/website/llms.txt +47 -0
- peigentux-2.2.0/website/robots.txt +4 -0
- peigentux-2.2.0/website/sitemap.xml +39 -0
- peigentux-2.0.0/CHANGELOG.md +0 -69
- peigentux-2.0.0/python/peigen/sparse.py +0 -237
- peigentux-2.0.0/src/bindings/module.cpp +0 -1398
- peigentux-2.0.0/tests/test_decomp_correctness.py +0 -41
- peigentux-2.0.0/tests/test_sparse_correctness.py +0 -98
- {peigentux-2.0.0 → peigentux-2.2.0}/.gitignore +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/.gitmodules +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/CMakeLists.txt +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/LICENSE +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/benchmarks/_table.py +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/benchmarks/bench_dense.py +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/COPYING.APACHE +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/COPYING.BSD +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/COPYING.MINPACK +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/COPYING.MPL2 +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/COPYING.README +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/AccelerateSupport +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/Cholesky +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/CholmodSupport +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/Core +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/Dense +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/Eigen +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/Eigenvalues +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/Geometry +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/Householder +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/IterativeLinearSolvers +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/Jacobi +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/KLUSupport +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/LU +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/MetisSupport +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/OrderingMethods +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/PaStiXSupport +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/PardisoSupport +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/QR +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/SPQRSupport +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/SVD +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/Sparse +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/SparseCholesky +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/SparseCore +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/SparseLU +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/SparseQR +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/StdDeque +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/StdList +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/StdVector +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/SuperLUSupport +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/ThreadPool +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/UmfPackSupport +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/Version +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/AccelerateSupport/AccelerateSupport.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/AccelerateSupport/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Cholesky/BunchKaufman.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Cholesky/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Cholesky/LDLT.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Cholesky/LLT.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Cholesky/LLT_LAPACKE.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/CholmodSupport/CholmodSupport.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/CholmodSupport/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/ApproxComparisons.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/ArithmeticSequence.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Array.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/ArrayBase.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/ArrayWrapper.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Assign.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/AssignEvaluator.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Assign_AOCL.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Assign_MKL.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/BandMatrix.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Block.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/CommaInitializer.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/ConcatOp.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/ConditionEstimator.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/CoreEvaluators.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/CoreIterators.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/CwiseBinaryOp.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/CwiseNullaryOp.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/CwiseTernaryOp.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/CwiseUnaryOp.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/CwiseUnaryView.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/DenseBase.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/DenseCoeffsBase.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/DenseStorage.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/DeviceWrapper.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Diagonal.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/DiagonalMatrix.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/DiagonalProduct.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Dot.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/EigenBase.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Fill.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/FindCoeff.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/GeneralProduct.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/GenericPacketMath.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/GlobalFunctions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/IO.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/IndexedView.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/InnerProduct.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/IntegerDivision.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Inverse.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Map.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/MapBase.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/MathFunctions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/MathFunctionsImpl.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Matrix.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/MatrixBase.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/MatrixNorms.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/NestByValue.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/NoAlias.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/NumTraits.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/PartialReduxEvaluator.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/PermutationMatrix.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/PlainObjectBase.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Predicator.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Product.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/ProductEvaluators.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Random.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/RandomImpl.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/RankRevealingBase.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/RealView.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Redux.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Ref.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Replicate.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Reshaped.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/ReturnByValue.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Reverse.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/SafeScaling.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/ScaledPermutationMatrix.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Select.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/SelfAdjointView.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/SelfCwiseBinaryOp.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/SkewSymmetricMatrix3.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Solve.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/SolveTriangular.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/SolverBase.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/StableNorm.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/StlIterators.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Stride.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/StructuredBindings.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Swap.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Transpose.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Transpositions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/TriangularInPlace.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/TriangularMatrix.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/VectorBlock.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/VectorwiseOp.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/Visitor.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AVX/Complex.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AVX/MathFunctions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AVX/PacketMath.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AVX/Reductions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AVX/TypeCasting.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AVX512/Complex.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AVX512/GemmKernel.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AVX512/MathFunctions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AVX512/MathFunctionsFP16.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AVX512/PacketMath.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AVX512/PacketMathFP16.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AVX512/Reductions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AVX512/TrsmKernel.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AVX512/TrsmUnrolls.inc +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AVX512/TypeCasting.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AVX512/TypeCastingFP16.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AltiVec/Complex.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AltiVec/MathFunctions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AltiVec/MatrixProduct.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AltiVec/MatrixProductMMAbfloat16.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AltiVec/MatrixVectorProduct.inc +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AltiVec/PacketMath.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/AltiVec/TypeCasting.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/Default/BFloat16.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/Default/ConjHelper.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/Default/GenericPacketMathComplex.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/Default/GenericPacketMathDoubleWord.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/Default/GenericPacketMathFrexpLdexp.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/Default/GenericPacketMathFunctionsFwd.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/Default/GenericPacketMathPolynomials.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/Default/GenericPacketMathPow.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/Default/GenericPacketMathTrig.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/Default/Half.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/Default/Settings.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/GPU/Complex.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/GPU/MathFunctions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/GPU/PacketMath.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/GPU/Tuple.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/GPU/TypeCasting.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/HVX/PacketMath.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/LSX/Complex.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/LSX/GeneralBlockPanelKernel.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/LSX/MathFunctions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/LSX/PacketMath.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/LSX/TypeCasting.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/MSA/Complex.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/MSA/MathFunctions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/MSA/PacketMath.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/NEON/Complex.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/NEON/GeneralBlockPanelKernel.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/NEON/MathFunctions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/NEON/PacketMath.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/NEON/PacketMathBF16.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/NEON/TypeCasting.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/NEON/UnaryFunctors.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/RVV10/Complex.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/RVV10/Complex2.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/RVV10/GeneralBlockPanelKernel.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/RVV10/MathFunctions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/RVV10/PacketMath.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/RVV10/PacketMath2.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/RVV10/PacketMath4.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/RVV10/PacketMathBF16.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/RVV10/PacketMathDecl.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/RVV10/PacketMathFP16.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/RVV10/TypeCasting.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/SME/GeneralBlockPanelKernel.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/SME/PacketMath.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/SME/VectorKernels.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/SSE/Complex.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/SSE/MathFunctions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/SSE/PacketMath.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/SSE/Reductions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/SSE/TypeCasting.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/SVE/Complex.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/SVE/GeneralBlockPanelKernel.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/SVE/MathFunctions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/SVE/PacketMath.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/SVE/TypeCasting.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/SYCL/InteropHeaders.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/SYCL/MathFunctions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/SYCL/PacketMath.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/SYCL/TypeCasting.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/ZVector/Complex.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/ZVector/MathFunctions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/ZVector/PacketMath.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/clang/Complex.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/clang/MathFunctions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/clang/PacketMath.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/clang/Reductions.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/arch/clang/TypeCasting.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/functors/AssignmentFunctors.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/functors/BinaryFunctors.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/functors/NullaryFunctors.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/functors/StlFunctors.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/functors/TernaryFunctors.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/functors/UnaryFunctors.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/GeneralBlockPanelKernel.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/GeneralMatrixMatrix.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/GeneralMatrixMatrix_BLAS.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/GeneralMatrixVector.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/GeneralMatrixVector_BLAS.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/Parallelizer.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/SelfadjointMatrixMatrix.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/SelfadjointMatrixMatrix_BLAS.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/SelfadjointMatrixVector.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/SelfadjointMatrixVector_BLAS.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/SelfadjointProduct.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/SelfadjointRank2Update.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/TriangularMatrixMatrix.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/TriangularMatrixMatrix_BLAS.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/TriangularMatrixVector.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/TriangularMatrixVector_BLAS.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/TriangularSolverMatrix.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/TriangularSolverMatrix_BLAS.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/products/TriangularSolverVector.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/AOCL_Support.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/Assert.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/BlasTypes.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/BlasUtil.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/ConfigureVectorization.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/Constants.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/DisableStupidWarnings.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/EmulateArray.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/ForwardDeclarations.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/GpuHipCudaDefines.inc +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/GpuHipCudaUndefines.inc +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/GpuRuntime.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/IndexedViewHelper.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/IntegralConstant.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/LruCache.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/MKL_support.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/Macros.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/MaxSizeVector.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/Memory.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/Meta.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/MoreMeta.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/ReenableStupidWarnings.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/ReshapedHelper.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/Serializer.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/ShapeChecks.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/StaticAssert.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/SymbolicIndex.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/XprHelper.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Core/util/blas.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/ComplexEigenSolver.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/ComplexQZ.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/ComplexSchur.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/ComplexSchur_LAPACKE.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/EigenSolver.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/GeneralizedEigenSolver.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/HessenbergDecomposition.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/RealQZ.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/RealSchur.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/RealSchur_LAPACKE.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/SelfAdjointEigenSolver_LAPACKE.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/TridiagonalBisection.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/TridiagonalEigenSolver.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/TridiagonalInverseIteration.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Eigenvalues/Tridiagonalization.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Geometry/AlignedBox.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Geometry/AngleAxis.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Geometry/EulerAngles.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Geometry/Homogeneous.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Geometry/Hyperplane.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Geometry/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Geometry/OrthoMethods.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Geometry/ParametrizedLine.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Geometry/Quaternion.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Geometry/Rotation2D.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Geometry/RotationBase.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Geometry/Scaling.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Geometry/Transform.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Geometry/Translation.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Geometry/Umeyama.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Geometry/arch/Geometry_SIMD.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Householder/BlockHouseholder.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Householder/Householder.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Householder/HouseholderSequence.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Householder/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/IterativeLinearSolvers/BasicPreconditioners.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/IterativeLinearSolvers/BiCGSTABL.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/IterativeLinearSolvers/ConjugateGradient.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/IterativeLinearSolvers/DGMRES.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/IterativeLinearSolvers/GMRES.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/IterativeLinearSolvers/IDRS.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/IterativeLinearSolvers/IDRSTABL.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/IterativeLinearSolvers/IncompleteLU.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/IterativeLinearSolvers/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/IterativeLinearSolvers/IterativeSolverBase.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/IterativeLinearSolvers/LSMR.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/IterativeLinearSolvers/LeastSquareConjugateGradient.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/IterativeLinearSolvers/MINRES.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/IterativeLinearSolvers/Scaling.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/IterativeLinearSolvers/SolveWithGuess.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Jacobi/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/Jacobi/Jacobi.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/KLUSupport/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/KLUSupport/KLUSupport.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/LAPACKESupport/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/LAPACKESupport/lapacke.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/LAPACKESupport/lapacke_helpers.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/LAPACKESupport/lapacke_mangling.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/LU/Determinant.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/LU/FullPivLU.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/LU/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/LU/InverseImpl.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/LU/PartialPivLU.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/LU/PartialPivLU_LAPACKE.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/LU/arch/InverseSize4.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/MetisSupport/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/MetisSupport/MetisSupport.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/OrderingMethods/Amd.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/OrderingMethods/Eigen_Colamd.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/OrderingMethods/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/OrderingMethods/Ordering.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/PaStiXSupport/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/PaStiXSupport/PaStiXSupport.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/PardisoSupport/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/PardisoSupport/PardisoSupport.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/QR/ColPivHouseholderQR.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/QR/ColPivHouseholderQR_LAPACKE.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/QR/CompleteOrthogonalDecomposition.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/QR/FullPivHouseholderQR.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/QR/HouseholderQR.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/QR/HouseholderQR_LAPACKE.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/QR/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/QR/RandColPivHouseholderQR.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SPQRSupport/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SVD/BDCSVD.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SVD/BDCSVDImpl.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SVD/BDCSVD_LAPACKE.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SVD/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SVD/JacobiSVD.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SVD/JacobiSVD_LAPACKE.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SVD/SVDBase.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SVD/UpperBidiagonalization.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCholesky/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCholesky/MultifrontalLDLT.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCholesky/SimplicialCholesky.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCholesky/SimplicialCholesky_impl.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/AmbiVector.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/BlockSparseMatrix.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/CompressedStorage.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/ConservativeSparseSparseProduct.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseApproxComparisons.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseAssign.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseBlock.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseColEtree.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseCompressedBase.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseCwiseUnaryOp.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseDenseProduct.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseDiagonalProduct.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseDot.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseMap.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseMatrix.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseMatrixBase.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparsePermutation.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseProduct.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseRedux.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseRef.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseScatter.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseSelfAdjointView.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseSolverBase.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseSparseProductWithPruning.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseTranspose.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseTriangularView.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseUtil.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseVector.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparseView.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/SparsityPatternRef.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/ThreadedSparseProduct.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/TriangularReachSolver.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseCore/TriangularSolver.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseLU/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseLU/SparseLU.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseLU/SparseLUImpl.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseLU/SparseLU_Memory.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseLU/SparseLU_Structs.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseLU/SparseLU_Utils.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseLU/SparseLU_column_bmod.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseLU/SparseLU_column_dfs.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseLU/SparseLU_kernel_bmod.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseLU/SparseLU_panel_bmod.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseLU/SparseLU_panel_dfs.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseLU/SparseLU_pivotL.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseLU/SparseLU_pruneL.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseLU/SparseLU_relax_snode.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseQR/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SparseQR/SparseQR.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/StlSupport/StdDeque.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/StlSupport/StdList.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/StlSupport/StdVector.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/StlSupport/details.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SuperLUSupport/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/SuperLUSupport/SuperLUSupport.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/ThreadPool/Barrier.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/ThreadPool/CoreThreadPoolDevice.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/ThreadPool/EventCount.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/ThreadPool/ForkJoin.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/ThreadPool/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/ThreadPool/NonBlockingThreadPool.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/ThreadPool/RunQueue.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/ThreadPool/ThreadEnvironment.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/ThreadPool/ThreadLocal.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/ThreadPool/ThreadPoolInterface.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/ThreadPool/ThreadYield.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/UmfPackSupport/InternalHeaderCheck.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/UmfPackSupport/UmfPackSupport.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/plugins/ArrayCwiseBinaryOps.inc +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/plugins/ArrayCwiseUnaryOps.inc +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/plugins/BlockMethods.inc +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/plugins/CommonCwiseBinaryOps.inc +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/plugins/CommonCwiseUnaryOps.inc +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/plugins/IndexedViewMethods.inc +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/plugins/InternalHeaderCheck.inc +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/plugins/MatrixCwiseBinaryOps.inc +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/plugins/MatrixCwiseUnaryOps.inc +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/Eigen/src/plugins/ReshapedMethods.inc +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/eigen/README.md +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/python/peigen/__init__.py +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/python/peigen/_utils.py +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/python/peigen/linalg.py +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/scripts/bench_report.sh +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/src/bindings/lapack_decls.h +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/tests/test_build_config.py +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/tests/test_dense_correctness.py +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/tests/test_errors.py +0 -0
- {peigentux-2.0.0 → peigentux-2.2.0}/tests/test_interop_copy_semantics.py +0 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to pEigen are documented here. The project follows
|
|
4
|
+
[Semantic Versioning](https://semver.org/).
|
|
5
|
+
|
|
6
|
+
## [Unreleased]
|
|
7
|
+
|
|
8
|
+
## [2.2.0] - 2026-11-29
|
|
9
|
+
|
|
10
|
+
Sparse least squares, the factors of a sparse Cholesky factorization, an incomplete Cholesky
|
|
11
|
+
preconditioner for CG, faster sparse products, and a fix for iterative solves that could report
|
|
12
|
+
success with an inaccurate answer. No breaking changes. The default `sparse.lstsq` method runs
|
|
13
|
+
on the multifrontal LDLᵀ factorization, which is still marked experimental in
|
|
14
|
+
`sparse.cholesky`.
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- `sparse.lstsq(a, b, method=..., damp=0.0)` and the reusable `sparse.SparseLeastSquares`
|
|
19
|
+
(also `decomp.SparseLeastSquares`): sparse least squares, minimizing
|
|
20
|
+
`||A x - b||^2 + damp^2 ||x||^2`. Methods:
|
|
21
|
+
- `"augmented"` (default): multifrontal LDLᵀ of the augmented system. Never forms `AᵀA`, so
|
|
22
|
+
one dense row costs 5 ms instead of 11.6 s with `"normal"` at n = 4,900.
|
|
23
|
+
- `"normal"`: Cholesky of `AᵀA + damp²I`.
|
|
24
|
+
- `"qr"`: Eigen `SparseQR`, with the rows first matched to the COLAMD-ordered columns. Without
|
|
25
|
+
that, Eigen's SparseQR fills R almost completely on matrices whose rows are in arbitrary
|
|
26
|
+
order (500× slower in a measured case).
|
|
27
|
+
|
|
28
|
+
`"augmented"` and `"normal"` refine iteratively to dense-QR accuracy while cond(A) is below
|
|
29
|
+
about 1e7, and raise `LinAlgError` beyond that, or on rank deficiency with `damp=0`. `"qr"`
|
|
30
|
+
handles both cases.
|
|
31
|
+
- `SparseCholesky.L()`, `D()` and `P()`: the factors as SciPy CSC matrices and the fill-reducing
|
|
32
|
+
permutation as an index array, with `(A + shift*I)[p][:, p] == L @ D @ L.T` (scikit-sparse's
|
|
33
|
+
convention) for every mode. `L` stores its diagonal (unit except for `llt`); `D` is diagonal, has
|
|
34
|
+
2x2 blocks for `multifrontal`, and is the identity for `llt`. This enables sampling from a
|
|
35
|
+
GMRF / Gaussian process given its precision matrix, and triangular solves with `L`.
|
|
36
|
+
- `sparse.solve(..., method="cg", preconditioner="ichol")`: zero-fill incomplete Cholesky (Eigen
|
|
37
|
+
`IncompleteCholesky`, in the matrix's own ordering), a symmetric preconditioner suited to CG. On
|
|
38
|
+
2D 5-point Laplacians it roughly halves CG's iteration count (100x100: 186 → 77).
|
|
39
|
+
- `sparse.solve_stats` also returns `"residual"`, the true relative residual
|
|
40
|
+
`‖b − Ax‖ / ‖b‖` of the solution (`"error"` remains Eigen's recursive estimate).
|
|
41
|
+
|
|
42
|
+
### Changed
|
|
43
|
+
|
|
44
|
+
- `sparse.spmm` is rewritten with row-major kernels (CSR rows gathered, CSC columns scattered) and
|
|
45
|
+
accepts CSR input without converting it to CSC. It was 2.3–32× slower than SciPy's `A @ B`,
|
|
46
|
+
worst for large matrices and many columns, because Eigen's generic product strided through
|
|
47
|
+
row-major data; it now matches SciPy on large matrices (n=1M, 8 columns: 110 ms → 11 ms vs SciPy's 10.6 ms;
|
|
48
|
+
64 columns at n=262k: 539 ms → 17 ms) and is within 7–16% on small ones. It also releases the GIL.
|
|
49
|
+
- `sparse.spspmm` uses Eigen's conservative product and drops exact zeros afterwards instead of
|
|
50
|
+
`(A * B).pruned()`, which selects a slower algorithm: `A @ A` on 2D Laplacians is about 25% faster (now 1.2–1.7×
|
|
51
|
+
SciPy's time). Products with a diagonal matrix are unchanged at about 2× SciPy's time.
|
|
52
|
+
|
|
53
|
+
### Fixed
|
|
54
|
+
|
|
55
|
+
- BiCGSTAB (and CG) could report success while the true residual was far above `tol`: Eigen
|
|
56
|
+
stops on a recursively updated residual that can drift from `b − Ax`. For example, BiCGSTAB on
|
|
57
|
+
a 1D upwind convection–diffusion problem with `tol=1e-10` returned a solution with
|
|
58
|
+
`‖Ax − b‖ / ‖b‖ ≈ 1.8e-3`. `sparse.solve` and `solve_stats` now recompute the true residual
|
|
59
|
+
after every iterative solve; if it is more than 10x above `tol` the solver restarts from the
|
|
60
|
+
current iterate (at most 5 times, within the same `maxiter` budget), and raises `RuntimeError`
|
|
61
|
+
if the residual still misses. A `tol` that double precision can't reach for the problem now
|
|
62
|
+
raises instead of returning a less accurate answer.
|
|
63
|
+
|
|
64
|
+
### Deprecated
|
|
65
|
+
|
|
66
|
+
- `preconditioner="ilu"` with `method="cg"` emits a `DeprecationWarning` and will be removed in
|
|
67
|
+
3.0. `IncompleteLUT` is not symmetric, so CG can fail with it: at the default
|
|
68
|
+
`ilu_fill_factor=10` it did not converge on 2D Laplacians of 30², 60² or 100² unknowns, where
|
|
69
|
+
plain CG takes 54–186 iterations. It still works as before (a large fill factor makes it
|
|
70
|
+
converge); its non-convergence error now points to `"ichol"`.
|
|
71
|
+
|
|
72
|
+
## [2.1.0] - 2026-11-25
|
|
73
|
+
|
|
74
|
+
### Added
|
|
75
|
+
|
|
76
|
+
- `sparse.cholesky(..., mode="multifrontal")` (experimental): Eigen `MultifrontalLDLT`, a pivoted
|
|
77
|
+
`L D L^T` built from dense frontal matrices. Faster on high-fill problems (3D meshes) and stable
|
|
78
|
+
on symmetric indefinite matrices (1x1 / 2x2 pivots). Supports `shift`, `refactorize`, `slogdet`.
|
|
79
|
+
Solves with several right-hand sides use a supernodal blocked kernel (dense TRSM/GEMM on large
|
|
80
|
+
fronts, row-contiguous updates on small ones), built from `L` on the first such solve after each
|
|
81
|
+
factorization: 32-RHS solves are 2-4x faster than Eigen's own multifrontal solve.
|
|
82
|
+
- `SparseCholesky.inertia`: `(positive, negative, zero)` eigenvalue counts from the pivots of `D`,
|
|
83
|
+
for every mode.
|
|
84
|
+
|
|
85
|
+
### Fixed
|
|
86
|
+
|
|
87
|
+
- `decomp.QR(a, mode="complete").solve(b)` raised `LinAlgError` for tall `a`; it now returns the
|
|
88
|
+
least-squares solution, like `mode="reduced"`. `QR.solve` also checks the shape of `b`, and wide
|
|
89
|
+
`a` raises a `ValueError` that points to `SVD.solve`.
|
|
90
|
+
|
|
91
|
+
## [2.0.0] - 2026-11-24
|
|
92
|
+
|
|
93
|
+
A ground-up rewrite. pEigen is now a set of functions that take and return NumPy arrays and SciPy
|
|
94
|
+
sparse matrices, built with pybind11 and linked against BLAS/LAPACK, instead of the Boost.Python
|
|
95
|
+
matrix classes of 1.0. **No 1.0 code will run unchanged**; see *Migrating from 1.0* below.
|
|
96
|
+
|
|
97
|
+
This is the first release on PyPI. The distribution is named **`peigentux`** (`pip install peigentux`);
|
|
98
|
+
the import name is still `peigen`. The unrelated `peigen` project on PyPI is not this package.
|
|
99
|
+
|
|
100
|
+
### Added
|
|
101
|
+
|
|
102
|
+
- **Sparse Cholesky**: `peigen.sparse.cholesky()` / `SparseCholesky` (Eigen `SimplicialLDLT` /
|
|
103
|
+
`SimplicialLLT`, AMD or natural ordering). Supports `solve` with 1D or 2D right-hand sides,
|
|
104
|
+
same-pattern `refactorize`, `slogdet` / `logdet`, a diagonal `shift`, and reading either
|
|
105
|
+
triangle. Many-RHS solves use a blocked kernel. Also available as
|
|
106
|
+
`sparse.solve(..., method="cholesky")` and `peigen.decomp.SparseCholesky`.
|
|
107
|
+
- Dense routines in `peigen.linalg`: `matmul`, `solve`, `qr`, `svd`, `eigh`, `eighvals`, `norm`,
|
|
108
|
+
with `method="auto" | "lapack" | "eigen"` backend selection where applicable.
|
|
109
|
+
- Sparse routines in `peigen.sparse`: `spmm`, `spspmm`, `solve` (SparseLU, CG with
|
|
110
|
+
none/Jacobi/ILU preconditioning, BiCGSTAB), `solve_stats`, `factorize` (reusable SparseLU),
|
|
111
|
+
`to_dense`, `from_coo`. SciPy is an optional dependency (`pip install "peigentux[sparse]"`).
|
|
112
|
+
- Stateful helpers in `peigen.decomp`: `SVD`, `QR`, `SparseFactorized`, `SparseCholesky`.
|
|
113
|
+
- `peigen.build_config()` / `show_build_config()` report the compiled-in BLAS/LAPACK backend,
|
|
114
|
+
OpenMP, vectorization and Eigen version.
|
|
115
|
+
- Wheels for CPython 3.10-3.15 on Linux (x86_64, aarch64; OpenBLAS) and macOS (arm64, x86_64;
|
|
116
|
+
Accelerate).
|
|
117
|
+
- Benchmarks comparing against NumPy, SciPy and (optionally) CHOLMOD in `benchmarks/`.
|
|
118
|
+
|
|
119
|
+
### Build
|
|
120
|
+
|
|
121
|
+
- Built against an Eigen master snapshot (`c7b9c4bc8`, 2026-11-22; reports `5.0.1-dev+master`),
|
|
122
|
+
which includes recent SparseCore/SparseLU/SparseCholesky fixes not yet in a tagged release.
|
|
123
|
+
- LAPACK routines are declared by pEigen itself (LP64, gfortran hidden string lengths) instead of
|
|
124
|
+
through Eigen's internal `lapack/lapack.h`.
|
|
125
|
+
- Package license metadata is `MIT AND MPL-2.0`: pEigen is MIT, and wheels/sdists bundle Eigen
|
|
126
|
+
(MPL-2.0, built with `EIGEN_MPL2_ONLY`). Eigen's license notice ships in the wheel.
|
|
127
|
+
|
|
128
|
+
### Input handling
|
|
129
|
+
|
|
130
|
+
- Sparse inputs accept any SciPy sparse format (`*_matrix` or `*_array`), `int32` or `int64`
|
|
131
|
+
indices and any real dtype; non-canonical matrices (unsorted or duplicate entries) are
|
|
132
|
+
canonicalized on a copy, never in place. Matrices beyond the 32-bit index range raise
|
|
133
|
+
`ValueError`.
|
|
134
|
+
- Complex input raises `TypeError` instead of silently discarding the imaginary part.
|
|
135
|
+
- `decomp.SVD.solve(b, rcond=None)`: `rcond` is relative to the largest singular value, matching
|
|
136
|
+
`numpy.linalg.lstsq`.
|
|
137
|
+
|
|
138
|
+
### Migrating from 1.0
|
|
139
|
+
|
|
140
|
+
| 1.0 | 2.0 |
|
|
141
|
+
|-------|-----|
|
|
142
|
+
| `import libpeigen as peigen` | `import peigen` (and `from peigen import linalg, sparse, decomp`) |
|
|
143
|
+
| `peigen.dense_matrix(data, rows, cols)` | a NumPy array, e.g. `np.array(data).reshape(rows, cols)` |
|
|
144
|
+
| `peigen.sparse_matrix(...)` | a SciPy sparse matrix, e.g. `scipy.sparse.csc_matrix(...)` |
|
|
145
|
+
| matrix methods (`.transpose()`, `.norm()`, element access, operators) | NumPy/SciPy operations, or `peigen.linalg.norm` |
|
|
146
|
+
| decomposition methods on matrix objects | `linalg.svd`, `linalg.qr`, `linalg.eigh`, or the `decomp` classes |
|
|
147
|
+
| Boost.Python build | pybind11 + scikit-build-core; `pip install peigentux` |
|
|
148
|
+
|
|
149
|
+
## [1.0.0] and earlier
|
|
150
|
+
|
|
151
|
+
Boost.Python bindings exposing `dense_matrix` / `sparse_matrix` objects and decomposition methods
|
|
152
|
+
(module `libpeigen`), built from source only and never published to PyPI. Not maintained.
|
|
153
|
+
|
|
154
|
+
[Unreleased]: https://github.com/TtheBC01/pEigen/compare/v2.2.0...HEAD
|
|
155
|
+
[2.2.0]: https://github.com/TtheBC01/pEigen/compare/v2.1.0...v2.2.0
|
|
156
|
+
[2.1.0]: https://github.com/TtheBC01/pEigen/compare/v2.0.0...v2.1.0
|
|
157
|
+
[2.0.0]: https://github.com/TtheBC01/pEigen/releases/tag/v2.0.0
|
|
@@ -87,3 +87,22 @@ For local experiments:
|
|
|
87
87
|
```bash
|
|
88
88
|
CMAKE_ARGS="-DPEIGEN_USE_OPENMP=ON" python -m pip install -e .
|
|
89
89
|
```
|
|
90
|
+
|
|
91
|
+
## Website
|
|
92
|
+
|
|
93
|
+
`website/` is the static site for [peigentux.com](https://peigentux.com): plain HTML, CSS and
|
|
94
|
+
JavaScript with no build step. Edit the files directly and preview them with any static server:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
python -m http.server 8765 --directory website
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
- Each page repeats the shared header and footer, so a nav change touches every `*.html` file.
|
|
101
|
+
- Python code blocks marked `data-example` are executed by `tests/test_website_examples.py`, so
|
|
102
|
+
keep them self-contained and runnable. The "Output" shown under each example is static text.
|
|
103
|
+
- Benchmark figures come from the scripts in `benchmarks/`. The sparse Cholesky chart reads
|
|
104
|
+
`website/assets/bench-cholesky-data.js`; the dense and sparse tables are static HTML. Refresh
|
|
105
|
+
them (and `lastmod` in `sitemap.xml`) after re-running the benchmarks.
|
|
106
|
+
- `.github/workflows/pages.yml` deploys `website/` to GitHub Pages on every push to `main` that
|
|
107
|
+
touches it. One-time setup: Settings → Pages → Source "GitHub Actions", custom domain
|
|
108
|
+
`peigentux.com`, plus DNS records at the domain registrar.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: peigentux
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Eigen-powered dense and sparse linear algebra for NumPy/SciPy, including sparse Cholesky
|
|
5
5
|
Keywords: eigen,linear-algebra,sparse,cholesky,numpy,scipy
|
|
6
6
|
Author: Todd Chapman
|
|
@@ -50,6 +50,7 @@ pEigen is a lightweight Python package that exposes Eigen-powered dense and spar
|
|
|
50
50
|
- Sparse routines in `peigen.sparse` (optional SciPy dependency)
|
|
51
51
|
- Stateful decomposition helpers in `peigen.decomp`
|
|
52
52
|
- Sparse Cholesky (`peigen.sparse.cholesky`) with no SuiteSparse/CHOLMOD dependency
|
|
53
|
+
- Sparse least squares (`peigen.sparse.lstsq`), with optional ridge damping
|
|
53
54
|
- Prebuilt wheels for CPython 3.10–3.15 on Linux (x86_64, aarch64; OpenBLAS) and macOS (arm64, x86_64; Accelerate)
|
|
54
55
|
|
|
55
56
|
## Installation
|
|
@@ -212,6 +213,7 @@ Requires SciPy (`pip install "peigentux[sparse]"`). Sparse matrices are accepted
|
|
|
212
213
|
- `solve_stats(a, b, method="cg", ...)`
|
|
213
214
|
- `factorize(a, method="auto")` → `SparseFactorized`
|
|
214
215
|
- `cholesky(a, mode="ldlt", ordering="amd", lower=True, shift=0.0)` → `SparseCholesky`
|
|
216
|
+
- `lstsq(a, b, method="augmented", damp=0.0, refine=True)`, `SparseLeastSquares(a, method="augmented", damp=0.0)`
|
|
215
217
|
- `to_dense(a)`
|
|
216
218
|
- `from_coo(data, row, col, shape)`
|
|
217
219
|
|
|
@@ -225,8 +227,9 @@ Y = sparse.spmm(A, B) # A: (m, n) sparse, B: (n, k) dense → (m, k) dense
|
|
|
225
227
|
|
|
226
228
|
**Requirements and behavior:**
|
|
227
229
|
|
|
228
|
-
- `A` must be 2D sparse
|
|
229
|
-
- `B` must be a 2D `float64` array with shape `(n, k)` where `n = A.shape[1]`.
|
|
230
|
+
- `A` must be 2D sparse. CSR and CSC are used as they are; other formats are converted to CSR.
|
|
231
|
+
- `B` must be a 2D `float64` array with shape `(n, k)` where `n = A.shape[1]`. Any memory layout works; C-ordered `B` avoids a copy.
|
|
232
|
+
- Releases the GIL while multiplying.
|
|
230
233
|
- Raises `ValueError` on dimension mismatch.
|
|
231
234
|
|
|
232
235
|
#### Sparse @ sparse multiply (`spspmm`)
|
|
@@ -241,7 +244,7 @@ C = sparse.spspmm(A, B) # A: (m, n), B: (n, k) → CSC (m, k)
|
|
|
241
244
|
|
|
242
245
|
- Both operands must be 2D sparse (converted to CSC).
|
|
243
246
|
- Raises `ValueError` if inner dimensions disagree.
|
|
244
|
-
-
|
|
247
|
+
- Exact zeros are dropped from the result, which is returned as `scipy.sparse.csc_matrix`.
|
|
245
248
|
|
|
246
249
|
#### Sparse linear solve (`solve`)
|
|
247
250
|
|
|
@@ -255,7 +258,7 @@ X = sparse.solve(A, B, method="lu")
|
|
|
255
258
|
# Conjugate gradient on SPD systems
|
|
256
259
|
x = sparse.solve(A, b, method="cg")
|
|
257
260
|
x = sparse.solve(A, b, method="cg", preconditioner="jacobi")
|
|
258
|
-
x = sparse.solve(A, b, method="cg", preconditioner="
|
|
261
|
+
x = sparse.solve(A, b, method="cg", preconditioner="ichol")
|
|
259
262
|
|
|
260
263
|
# BiCGSTAB for general square systems
|
|
261
264
|
x = sparse.solve(A, b, method="bicgstab", tol=1e-8, maxiter=5000)
|
|
@@ -272,7 +275,8 @@ x = sparse.solve(A, b, method="bicgstab", tol=1e-8, maxiter=5000)
|
|
|
272
275
|
| `maxiter=None` | Iteration cap for CG/BiCGSTAB. Default: `2 * n` where `n = A.shape[0]`. |
|
|
273
276
|
| `preconditioner="none"` | CG only. Identity preconditioner (unpreconditioned CG). |
|
|
274
277
|
| `preconditioner="jacobi"` | CG only. Diagonal (Jacobi) preconditioner. |
|
|
275
|
-
| `preconditioner="
|
|
278
|
+
| `preconditioner="ichol"` | CG only. Zero-fill incomplete Cholesky via Eigen `IncompleteCholesky`, in the matrix's own ordering (symmetric, so it suits CG). |
|
|
279
|
+
| `preconditioner="ilu"` | CG only. **Deprecated** (`DeprecationWarning`; removal planned for 3.0). Incomplete LU via Eigen `IncompleteLUT`, which is not symmetric, so CG can fail to converge with it. Use `"ichol"`. |
|
|
276
280
|
| `ilu_fill_factor=10` | CG + ILU only. Fill-ratio upper bound passed to `IncompleteLUT`. |
|
|
277
281
|
| `ilu_drop_tol=1e-4` | CG + ILU only. Drop tolerance for `IncompleteLUT`. |
|
|
278
282
|
|
|
@@ -281,6 +285,7 @@ x = sparse.solve(A, b, method="bicgstab", tol=1e-8, maxiter=5000)
|
|
|
281
285
|
- `A` must be square sparse; `b` must have length `n` (1D) or shape `(n, k)` (2D).
|
|
282
286
|
- `preconditioner` is only valid with `method="cg"`; other methods raise `ValueError` if a nontrivial preconditioner is requested.
|
|
283
287
|
- Iterative solvers raise `RuntimeError` if they do not converge within `maxiter` at the requested tolerance.
|
|
288
|
+
- Convergence is judged by the true residual. Eigen's solvers stop on a recursively updated residual, which can drift from the true `norm(b - Ax)/norm(b)` (badly so for BiCGSTAB on convection-dominated problems). After each solve pEigen recomputes the true residual; if it is more than 10x above `tol`, the solver restarts from its current iterate (up to 5 times, within the same `maxiter` budget) and raises `RuntimeError` if the residual still misses. A `tol` below what double precision can reach for the problem therefore raises instead of returning a less accurate answer.
|
|
284
289
|
- LU raises `RuntimeError` if factorization or solve fails.
|
|
285
290
|
|
|
286
291
|
**When to use which method:**
|
|
@@ -292,28 +297,29 @@ x = sparse.solve(A, b, method="bicgstab", tol=1e-8, maxiter=5000)
|
|
|
292
297
|
| `"cg"` | Symmetric (SPD in practice) | Eigen `ConjugateGradient` |
|
|
293
298
|
| `"bicgstab"` | General square, nonsymmetric | Eigen `BiCGSTAB` |
|
|
294
299
|
|
|
295
|
-
CG preconditioners apply only to `"cg"`. For
|
|
300
|
+
CG preconditioners apply only to `"cg"`. For Poisson-like operators `"ichol"` typically halves the iteration count (on a 100x100 5-point Laplacian: 186 iterations unpreconditioned, 77 with `"ichol"`); `"jacobi"` helps when the diagonal varies a lot. For a repeated or hard SPD solve, a direct `cholesky(A)` is often faster still.
|
|
296
301
|
|
|
297
302
|
#### CG diagnostics (`solve_stats`)
|
|
298
303
|
|
|
299
|
-
Return iteration count and
|
|
304
|
+
Return iteration count and residuals from a CG solve without changing the `solve` API. Useful for checking convergence or comparing preconditioners.
|
|
300
305
|
|
|
301
306
|
```python
|
|
302
|
-
stats = sparse.solve_stats(A, b, method="cg", preconditioner="
|
|
303
|
-
print(stats["iterations"], stats["error"])
|
|
307
|
+
stats = sparse.solve_stats(A, b, method="cg", preconditioner="ichol")
|
|
308
|
+
print(stats["iterations"], stats["error"], stats["residual"])
|
|
304
309
|
```
|
|
305
310
|
|
|
306
311
|
| Key | Description |
|
|
307
312
|
|-----|-------------|
|
|
308
|
-
| `"iterations"` | CG iterations performed. |
|
|
309
|
-
| `"error"` |
|
|
313
|
+
| `"iterations"` | CG iterations performed, including any restart. |
|
|
314
|
+
| `"error"` | Eigen's own (recursively updated) relative residual estimate. |
|
|
315
|
+
| `"residual"` | True relative residual `norm(b - Ax) / norm(b)` of the returned solution. |
|
|
310
316
|
|
|
311
317
|
**Requirements and behavior:**
|
|
312
318
|
|
|
313
319
|
- Only supported for `method="cg"`.
|
|
314
320
|
- Requires a single RHS column (1D `b` or `(n, 1)` array).
|
|
315
321
|
- Accepts the same `tol`, `maxiter`, `preconditioner`, `ilu_fill_factor`, and `ilu_drop_tol` arguments as `solve`.
|
|
316
|
-
- Raises `RuntimeError` if CG does not converge (same as `solve
|
|
322
|
+
- Raises `RuntimeError` if CG does not converge (same as `solve`, including the true-residual check).
|
|
317
323
|
|
|
318
324
|
#### Sparse LU factorization (`factorize`)
|
|
319
325
|
|
|
@@ -340,7 +346,7 @@ The returned object is a `peigen.sparse.SparseFactorized` (also exported as `pei
|
|
|
340
346
|
|
|
341
347
|
#### Sparse Cholesky (`cholesky`)
|
|
342
348
|
|
|
343
|
-
Factorize a sparse symmetric
|
|
349
|
+
Factorize a sparse symmetric matrix once and reuse it. Wraps Eigen's `SimplicialLDLT` / `SimplicialLLT` and (experimental) `MultifrontalLDLT` with a fill-reducing ordering, so it needs no extra native dependency (no SuiteSparse/CHOLMOD) and is MPL2-licensed.
|
|
344
350
|
|
|
345
351
|
```python
|
|
346
352
|
fac = sparse.cholesky(K) # P K P^T = L D L^T, AMD ordering
|
|
@@ -352,32 +358,76 @@ fac.refactorize(K_new, shift=1e-6) # factorize K_new + 1e-6 * I
|
|
|
352
358
|
|
|
353
359
|
reg = sparse.cholesky(K, shift=0.1) # factorize K + 0.1 * I (regularization / GP jitter)
|
|
354
360
|
up = sparse.cholesky(sp.triu(K), lower=False) # only one triangle is read
|
|
361
|
+
|
|
362
|
+
kkt = sparse.cholesky(K_indefinite, mode="multifrontal") # pivoted LDL^T for indefinite matrices
|
|
363
|
+
n_pos, n_neg, n_zero = kkt.inertia # eigenvalue sign counts, from the pivots of D
|
|
364
|
+
|
|
365
|
+
L, D, p = fac.L(), fac.D(), fac.P() # the factors: K[p][:, p] == L @ D @ L.T (SciPy CSC)
|
|
355
366
|
```
|
|
356
367
|
|
|
357
368
|
| Parameter | Description |
|
|
358
369
|
|-----------|-------------|
|
|
359
370
|
| `mode="ldlt"` | `L D L^T` (no square roots). Default. Also factorizes some symmetric indefinite matrices, but without stability pivoting, so prefer SPD input. |
|
|
360
371
|
| `mode="llt"` | Standard Cholesky `L L^T`; requires positive definiteness. |
|
|
372
|
+
| `mode="multifrontal"` | *Experimental.* `L D L^T` computed as a tree of dense frontal matrices with level-3 updates (Eigen `MultifrontalLDLT`). Much faster on high-fill problems such as 3D meshes. `D` has 1x1 and 2x2 blocks chosen by threshold pivoting, so it is stable on symmetric **indefinite** matrices (KKT / saddle-point systems). |
|
|
361
373
|
| `ordering="amd"` | Approximate minimum degree fill-reducing ordering. Default. |
|
|
362
374
|
| `ordering="natural"` | No reordering (useful only for banded matrices or debugging). |
|
|
363
375
|
| `lower=True` | Read the lower triangle of `a`. `lower=False` reads the upper triangle. |
|
|
364
376
|
| `shift=0.0` | Factorize `a + shift * I`. |
|
|
365
377
|
|
|
366
|
-
`SparseCholesky` methods and properties: `solve(b)`, `refactorize(a, *, shift=None)` (`None` keeps the current shift), `slogdet()`, `logdet()`, `shape`, `mode`, `ordering`, `shift`, and `factor_nnz` (stored nonzeros in `L`, a measure of fill-in).
|
|
378
|
+
`SparseCholesky` methods and properties: `solve(b)`, `refactorize(a, *, shift=None)` (`None` keeps the current shift), `slogdet()`, `logdet()`, `inertia` (`(positive, negative, zero)` eigenvalue counts, by Sylvester's law of inertia), `L()`, `D()` and `P()` (the factors as SciPy CSC matrices and the permutation as an index array, with `(A + shift*I)[p][:, p] == L @ D @ L.T` as in scikit-sparse; `L` has its diagonal stored, unit except for `llt`, and `D` is the identity for `llt` and has 2x2 blocks for `multifrontal`), `shape`, `mode`, `ordering`, `shift`, and `factor_nnz` (stored nonzeros in `L`, a measure of fill-in; for `multifrontal` it includes explicit zeros of merged fronts).
|
|
367
379
|
|
|
368
380
|
**Requirements and behavior:**
|
|
369
381
|
|
|
370
382
|
- `a` must be square. It is not checked for symmetry: only the selected triangle is referenced, as with `linalg.eigh`.
|
|
371
|
-
- Raises `numpy.linalg.LinAlgError` if factorization breaks down: `mode="llt"` on a matrix that is not positive definite, or a zero pivot.
|
|
383
|
+
- Raises `numpy.linalg.LinAlgError` if factorization breaks down: `mode="llt"` on a matrix that is not positive definite, or a zero or non-finite pivot.
|
|
384
|
+
- For indefinite matrices use `mode="multifrontal"`; `mode="ldlt"` does not pivot and can be inaccurate or fail on them. `multifrontal`'s permutation also depends on the matrix's values (delayed pivots), and it does not scale the matrix, so badly scaled input should be equilibrated first.
|
|
372
385
|
- `refactorize` raises `ValueError` if the sparsity pattern (including explicit zeros) differs from the original matrix; create a new factorization instead.
|
|
373
386
|
- `logdet()` raises `ValueError` if the determinant is not positive; use `slogdet()` for indefinite input.
|
|
374
387
|
- Also exported as `peigen.decomp.SparseCholesky`.
|
|
375
388
|
|
|
376
|
-
**Performance.** `benchmarks/bench_cholesky.py` compares against SciPy SuperLU (`splu`) and, if scikit-sparse is installed, CHOLMOD. Eigen's factorization is *simplicial* (no dense supernode kernels), which sets its range:
|
|
389
|
+
**Performance.** `benchmarks/bench_cholesky.py` compares against SciPy SuperLU (`splu`) and, if scikit-sparse is installed, CHOLMOD. Eigen's factorization is *simplicial* (no dense supernode kernels), which sets its range. Measured on an Apple M1 Pro with the bundled Eigen (master, 2026-11-22):
|
|
390
|
+
|
|
391
|
+
- **Low-fill problems (2D meshes, graph Laplacians):** factorization is 1.8–6× faster than SciPy's default `splu`, 1.2–2× faster than `splu` configured for symmetric matrices, and 5–35% faster than CHOLMOD's simplicial mode. Solves with many right-hand sides use a blocked kernel and beat every CHOLMOD mode on these problems.
|
|
392
|
+
- **High-fill problems (3D meshes, very large 2D grids):** supernodal solvers win. CHOLMOD's default mode was about 4× faster on a 512² grid and 20–45× faster on a 40³ grid (20–30× single-threaded), and symmetric-mode `splu` was up to about 1.7× faster. pEigen is still about 1.7× faster than default `splu` there.
|
|
393
|
+
- Single-RHS solves are 1.4–2× slower than CHOLMOD's on low-fill problems, and up to 3× slower on 3D meshes.
|
|
394
|
+
- **`mode="multifrontal"` (experimental)** uses dense fronts, so it changes the high-fill picture: it factors 3D meshes 3–9× faster than `ldlt` (40³ grid: 10.9 s → 1.25 s) and is within about 15% of CHOLMOD's supernodal mode on 2D meshes and graphs. On 3D meshes it is still 1.3–3.7× slower than CHOLMOD with the same AMD ordering. Single-RHS solves are on par with CHOLMOD's. Solves with many right-hand sides use a supernodal blocked kernel and were the fastest of all tested solvers on every problem (32 RHS): 1.05–1.5× faster than `ldlt` on low-fill problems, 3–6× faster on 3D meshes, and 1.1–4.4× faster than CHOLMOD's best mode. That kernel's copy of `L` is built on the first many-RHS solve after each factorization, a one-time cost of 0.25–0.65× the factorization (2–9 steady-state solves), and it roughly doubles the factor's memory. `ldlt` stays the default while `multifrontal` is experimental.
|
|
395
|
+
|
|
396
|
+
#### Sparse least squares (`lstsq`)
|
|
397
|
+
|
|
398
|
+
Minimize `||A x - b||^2 + damp^2 ||x||^2` for a sparse `A` (`m x n`, any shape). `damp=0` is ordinary least squares; `damp > 0` adds ridge (Tikhonov) regularization, as in SciPy's `lsqr(..., damp=)`.
|
|
399
|
+
|
|
400
|
+
```python
|
|
401
|
+
x = sparse.lstsq(A, b) # method="augmented", damp=0
|
|
402
|
+
x = sparse.lstsq(A, b, method="normal")
|
|
403
|
+
x = sparse.lstsq(A, b, method="qr", damp=1e-3)
|
|
404
|
+
|
|
405
|
+
ls = sparse.SparseLeastSquares(A) # factorize once ...
|
|
406
|
+
X = ls.solve(B) # ... then solve for many right-hand sides (columns of B)
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
| `method` | Factorization | Use it when |
|
|
410
|
+
|----------|---------------|-------------|
|
|
411
|
+
| `"augmented"` | Multifrontal LDLᵀ (Eigen `MultifrontalLDLT`) of `[[αI, A], [Aᵀ, −(damp²/α)I]] [r/α; x] = [b; 0]`, with `α = max|aᵢⱼ|`. Default. | General use. It never forms `AᵀA`, so dense rows (a constraint touching every unknown) stay cheap. |
|
|
412
|
+
| `"normal"` | Sparse Cholesky (Eigen `SimplicialLDLT`) of `AᵀA + damp²I`. | Every row of `A` is short. About as fast as `"augmented"`, with a smaller factor. |
|
|
413
|
+
| `"qr"` | Sparse Householder QR (Eigen `SparseQR`) of `A`, or of `[A; damp·I]`. | `A` is too ill-conditioned for the other two (cond(A) beyond about 1e7) or rank deficient with `damp=0`. Much slower. |
|
|
414
|
+
|
|
415
|
+
**Accuracy.** `"augmented"` and `"normal"` square the condition number when they factorize, so `solve` applies iterative refinement, with residuals computed from `A` itself. While cond(A) is below roughly 1e7, that makes them as accurate as a dense QR least-squares solve: 1e-16 relative error on a consistent system with cond(A) = 8e6, where the unrefined solve had 3e-5. Beyond that, refinement cannot converge, and `solve` raises `numpy.linalg.LinAlgError` naming `method="qr"` instead of returning an inaccurate answer. `"qr"` works on `A` directly. In our tests it stayed accurate to cond(A) = 3e9, but it loses accuracy when row scales differ by many orders of magnitude (weighted least squares), because Eigen's QR does not pivot rows. `refine=False` skips refinement: fewer solves, but accuracy near cond(A)²·eps and no ill-conditioning check.
|
|
416
|
+
|
|
417
|
+
**Rank deficiency.** With `damp=0`, `"augmented"` and `"normal"` raise `LinAlgError` at construction when `A` is rank deficient, including any wide `A` (`m < n`). `"qr"` returns a basic solution, with `n − rank` entries set to zero, and reports the numerical rank in `.rank`. That solution is not the minimum-norm one: use `decomp.SVD(A.toarray()).solve(b)` or `damp > 0` for that. With `damp > 0` every method handles any `A`.
|
|
418
|
+
|
|
419
|
+
**Eigen's SparseQR and row order.** Eigen's `SparseQR` pivots column `k` on row `k` and treats `A[k, k]` as a structural nonzero even when it is zero. On a matrix whose rows are in arbitrary order, R fills in almost completely. For a 9908 × 4900 grid problem it stored 7.9M entries instead of 82k, and the factorization took 41 s instead of 83 ms. `method="qr"` therefore orders the columns with COLAMD and matches every column to a row that has an entry in it, before calling Eigen. R then has the fill of the Cholesky factor of `AᵀA`.
|
|
420
|
+
|
|
421
|
+
`SparseLeastSquares` properties: `shape`, `method`, `damp`, `factor_nnz` (stored nonzeros of `L`, or of `R` for `"qr"`), `rank` (`"qr"` only, otherwise `None`). `a` must have finite values (`ValueError` otherwise). `solve` releases the GIL. Also exported as `peigen.decomp.SparseLeastSquares`.
|
|
422
|
+
|
|
423
|
+
**Performance** (Apple M1 Pro, one right-hand side; solve includes refinement):
|
|
377
424
|
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
425
|
+
| Problem | `"augmented"` factor / solve | `"normal"` factor / solve | `"qr"` factor / solve |
|
|
426
|
+
|---------|------------------------------|---------------------------|-----------------------|
|
|
427
|
+
| 2D grid gradient, 20,305 × 10,000 | 9.6 ms / 1.9 ms | 7.1 ms / 1.8 ms | 424 ms / 4.0 ms |
|
|
428
|
+
| 2D grid gradient, 81,627 × 40,000 | 53 ms / 12.5 ms | 54 ms / 10.5 ms | 6.3 s / 34 ms |
|
|
429
|
+
| 2D grid gradient, 183,921 × 90,000 | 99 ms / 21 ms | 140 ms / 21 ms | — |
|
|
430
|
+
| 2D grid gradient plus one dense row, 9,916 × 4,900 | 5.2 ms / 0.9 ms | 11.6 s / 64 ms | 52 s / 53 ms |
|
|
381
431
|
|
|
382
432
|
### `peigen.decomp`
|
|
383
433
|
|
|
@@ -385,6 +435,7 @@ up = sparse.cholesky(sp.triu(K), lower=False) # only one triangle is read
|
|
|
385
435
|
- `QR(a)`
|
|
386
436
|
- `SparseFactorized(a)`
|
|
387
437
|
- `SparseCholesky(a, mode="ldlt", ...)`
|
|
438
|
+
- `SparseLeastSquares(a, method="augmented", damp=0.0)`
|
|
388
439
|
|
|
389
440
|
## Runtime build report
|
|
390
441
|
|
|
@@ -9,6 +9,7 @@ pEigen is a lightweight Python package that exposes Eigen-powered dense and spar
|
|
|
9
9
|
- Sparse routines in `peigen.sparse` (optional SciPy dependency)
|
|
10
10
|
- Stateful decomposition helpers in `peigen.decomp`
|
|
11
11
|
- Sparse Cholesky (`peigen.sparse.cholesky`) with no SuiteSparse/CHOLMOD dependency
|
|
12
|
+
- Sparse least squares (`peigen.sparse.lstsq`), with optional ridge damping
|
|
12
13
|
- Prebuilt wheels for CPython 3.10–3.15 on Linux (x86_64, aarch64; OpenBLAS) and macOS (arm64, x86_64; Accelerate)
|
|
13
14
|
|
|
14
15
|
## Installation
|
|
@@ -171,6 +172,7 @@ Requires SciPy (`pip install "peigentux[sparse]"`). Sparse matrices are accepted
|
|
|
171
172
|
- `solve_stats(a, b, method="cg", ...)`
|
|
172
173
|
- `factorize(a, method="auto")` → `SparseFactorized`
|
|
173
174
|
- `cholesky(a, mode="ldlt", ordering="amd", lower=True, shift=0.0)` → `SparseCholesky`
|
|
175
|
+
- `lstsq(a, b, method="augmented", damp=0.0, refine=True)`, `SparseLeastSquares(a, method="augmented", damp=0.0)`
|
|
174
176
|
- `to_dense(a)`
|
|
175
177
|
- `from_coo(data, row, col, shape)`
|
|
176
178
|
|
|
@@ -184,8 +186,9 @@ Y = sparse.spmm(A, B) # A: (m, n) sparse, B: (n, k) dense → (m, k) dense
|
|
|
184
186
|
|
|
185
187
|
**Requirements and behavior:**
|
|
186
188
|
|
|
187
|
-
- `A` must be 2D sparse
|
|
188
|
-
- `B` must be a 2D `float64` array with shape `(n, k)` where `n = A.shape[1]`.
|
|
189
|
+
- `A` must be 2D sparse. CSR and CSC are used as they are; other formats are converted to CSR.
|
|
190
|
+
- `B` must be a 2D `float64` array with shape `(n, k)` where `n = A.shape[1]`. Any memory layout works; C-ordered `B` avoids a copy.
|
|
191
|
+
- Releases the GIL while multiplying.
|
|
189
192
|
- Raises `ValueError` on dimension mismatch.
|
|
190
193
|
|
|
191
194
|
#### Sparse @ sparse multiply (`spspmm`)
|
|
@@ -200,7 +203,7 @@ C = sparse.spspmm(A, B) # A: (m, n), B: (n, k) → CSC (m, k)
|
|
|
200
203
|
|
|
201
204
|
- Both operands must be 2D sparse (converted to CSC).
|
|
202
205
|
- Raises `ValueError` if inner dimensions disagree.
|
|
203
|
-
-
|
|
206
|
+
- Exact zeros are dropped from the result, which is returned as `scipy.sparse.csc_matrix`.
|
|
204
207
|
|
|
205
208
|
#### Sparse linear solve (`solve`)
|
|
206
209
|
|
|
@@ -214,7 +217,7 @@ X = sparse.solve(A, B, method="lu")
|
|
|
214
217
|
# Conjugate gradient on SPD systems
|
|
215
218
|
x = sparse.solve(A, b, method="cg")
|
|
216
219
|
x = sparse.solve(A, b, method="cg", preconditioner="jacobi")
|
|
217
|
-
x = sparse.solve(A, b, method="cg", preconditioner="
|
|
220
|
+
x = sparse.solve(A, b, method="cg", preconditioner="ichol")
|
|
218
221
|
|
|
219
222
|
# BiCGSTAB for general square systems
|
|
220
223
|
x = sparse.solve(A, b, method="bicgstab", tol=1e-8, maxiter=5000)
|
|
@@ -231,7 +234,8 @@ x = sparse.solve(A, b, method="bicgstab", tol=1e-8, maxiter=5000)
|
|
|
231
234
|
| `maxiter=None` | Iteration cap for CG/BiCGSTAB. Default: `2 * n` where `n = A.shape[0]`. |
|
|
232
235
|
| `preconditioner="none"` | CG only. Identity preconditioner (unpreconditioned CG). |
|
|
233
236
|
| `preconditioner="jacobi"` | CG only. Diagonal (Jacobi) preconditioner. |
|
|
234
|
-
| `preconditioner="
|
|
237
|
+
| `preconditioner="ichol"` | CG only. Zero-fill incomplete Cholesky via Eigen `IncompleteCholesky`, in the matrix's own ordering (symmetric, so it suits CG). |
|
|
238
|
+
| `preconditioner="ilu"` | CG only. **Deprecated** (`DeprecationWarning`; removal planned for 3.0). Incomplete LU via Eigen `IncompleteLUT`, which is not symmetric, so CG can fail to converge with it. Use `"ichol"`. |
|
|
235
239
|
| `ilu_fill_factor=10` | CG + ILU only. Fill-ratio upper bound passed to `IncompleteLUT`. |
|
|
236
240
|
| `ilu_drop_tol=1e-4` | CG + ILU only. Drop tolerance for `IncompleteLUT`. |
|
|
237
241
|
|
|
@@ -240,6 +244,7 @@ x = sparse.solve(A, b, method="bicgstab", tol=1e-8, maxiter=5000)
|
|
|
240
244
|
- `A` must be square sparse; `b` must have length `n` (1D) or shape `(n, k)` (2D).
|
|
241
245
|
- `preconditioner` is only valid with `method="cg"`; other methods raise `ValueError` if a nontrivial preconditioner is requested.
|
|
242
246
|
- Iterative solvers raise `RuntimeError` if they do not converge within `maxiter` at the requested tolerance.
|
|
247
|
+
- Convergence is judged by the true residual. Eigen's solvers stop on a recursively updated residual, which can drift from the true `norm(b - Ax)/norm(b)` (badly so for BiCGSTAB on convection-dominated problems). After each solve pEigen recomputes the true residual; if it is more than 10x above `tol`, the solver restarts from its current iterate (up to 5 times, within the same `maxiter` budget) and raises `RuntimeError` if the residual still misses. A `tol` below what double precision can reach for the problem therefore raises instead of returning a less accurate answer.
|
|
243
248
|
- LU raises `RuntimeError` if factorization or solve fails.
|
|
244
249
|
|
|
245
250
|
**When to use which method:**
|
|
@@ -251,28 +256,29 @@ x = sparse.solve(A, b, method="bicgstab", tol=1e-8, maxiter=5000)
|
|
|
251
256
|
| `"cg"` | Symmetric (SPD in practice) | Eigen `ConjugateGradient` |
|
|
252
257
|
| `"bicgstab"` | General square, nonsymmetric | Eigen `BiCGSTAB` |
|
|
253
258
|
|
|
254
|
-
CG preconditioners apply only to `"cg"`. For
|
|
259
|
+
CG preconditioners apply only to `"cg"`. For Poisson-like operators `"ichol"` typically halves the iteration count (on a 100x100 5-point Laplacian: 186 iterations unpreconditioned, 77 with `"ichol"`); `"jacobi"` helps when the diagonal varies a lot. For a repeated or hard SPD solve, a direct `cholesky(A)` is often faster still.
|
|
255
260
|
|
|
256
261
|
#### CG diagnostics (`solve_stats`)
|
|
257
262
|
|
|
258
|
-
Return iteration count and
|
|
263
|
+
Return iteration count and residuals from a CG solve without changing the `solve` API. Useful for checking convergence or comparing preconditioners.
|
|
259
264
|
|
|
260
265
|
```python
|
|
261
|
-
stats = sparse.solve_stats(A, b, method="cg", preconditioner="
|
|
262
|
-
print(stats["iterations"], stats["error"])
|
|
266
|
+
stats = sparse.solve_stats(A, b, method="cg", preconditioner="ichol")
|
|
267
|
+
print(stats["iterations"], stats["error"], stats["residual"])
|
|
263
268
|
```
|
|
264
269
|
|
|
265
270
|
| Key | Description |
|
|
266
271
|
|-----|-------------|
|
|
267
|
-
| `"iterations"` | CG iterations performed. |
|
|
268
|
-
| `"error"` |
|
|
272
|
+
| `"iterations"` | CG iterations performed, including any restart. |
|
|
273
|
+
| `"error"` | Eigen's own (recursively updated) relative residual estimate. |
|
|
274
|
+
| `"residual"` | True relative residual `norm(b - Ax) / norm(b)` of the returned solution. |
|
|
269
275
|
|
|
270
276
|
**Requirements and behavior:**
|
|
271
277
|
|
|
272
278
|
- Only supported for `method="cg"`.
|
|
273
279
|
- Requires a single RHS column (1D `b` or `(n, 1)` array).
|
|
274
280
|
- Accepts the same `tol`, `maxiter`, `preconditioner`, `ilu_fill_factor`, and `ilu_drop_tol` arguments as `solve`.
|
|
275
|
-
- Raises `RuntimeError` if CG does not converge (same as `solve
|
|
281
|
+
- Raises `RuntimeError` if CG does not converge (same as `solve`, including the true-residual check).
|
|
276
282
|
|
|
277
283
|
#### Sparse LU factorization (`factorize`)
|
|
278
284
|
|
|
@@ -299,7 +305,7 @@ The returned object is a `peigen.sparse.SparseFactorized` (also exported as `pei
|
|
|
299
305
|
|
|
300
306
|
#### Sparse Cholesky (`cholesky`)
|
|
301
307
|
|
|
302
|
-
Factorize a sparse symmetric
|
|
308
|
+
Factorize a sparse symmetric matrix once and reuse it. Wraps Eigen's `SimplicialLDLT` / `SimplicialLLT` and (experimental) `MultifrontalLDLT` with a fill-reducing ordering, so it needs no extra native dependency (no SuiteSparse/CHOLMOD) and is MPL2-licensed.
|
|
303
309
|
|
|
304
310
|
```python
|
|
305
311
|
fac = sparse.cholesky(K) # P K P^T = L D L^T, AMD ordering
|
|
@@ -311,32 +317,76 @@ fac.refactorize(K_new, shift=1e-6) # factorize K_new + 1e-6 * I
|
|
|
311
317
|
|
|
312
318
|
reg = sparse.cholesky(K, shift=0.1) # factorize K + 0.1 * I (regularization / GP jitter)
|
|
313
319
|
up = sparse.cholesky(sp.triu(K), lower=False) # only one triangle is read
|
|
320
|
+
|
|
321
|
+
kkt = sparse.cholesky(K_indefinite, mode="multifrontal") # pivoted LDL^T for indefinite matrices
|
|
322
|
+
n_pos, n_neg, n_zero = kkt.inertia # eigenvalue sign counts, from the pivots of D
|
|
323
|
+
|
|
324
|
+
L, D, p = fac.L(), fac.D(), fac.P() # the factors: K[p][:, p] == L @ D @ L.T (SciPy CSC)
|
|
314
325
|
```
|
|
315
326
|
|
|
316
327
|
| Parameter | Description |
|
|
317
328
|
|-----------|-------------|
|
|
318
329
|
| `mode="ldlt"` | `L D L^T` (no square roots). Default. Also factorizes some symmetric indefinite matrices, but without stability pivoting, so prefer SPD input. |
|
|
319
330
|
| `mode="llt"` | Standard Cholesky `L L^T`; requires positive definiteness. |
|
|
331
|
+
| `mode="multifrontal"` | *Experimental.* `L D L^T` computed as a tree of dense frontal matrices with level-3 updates (Eigen `MultifrontalLDLT`). Much faster on high-fill problems such as 3D meshes. `D` has 1x1 and 2x2 blocks chosen by threshold pivoting, so it is stable on symmetric **indefinite** matrices (KKT / saddle-point systems). |
|
|
320
332
|
| `ordering="amd"` | Approximate minimum degree fill-reducing ordering. Default. |
|
|
321
333
|
| `ordering="natural"` | No reordering (useful only for banded matrices or debugging). |
|
|
322
334
|
| `lower=True` | Read the lower triangle of `a`. `lower=False` reads the upper triangle. |
|
|
323
335
|
| `shift=0.0` | Factorize `a + shift * I`. |
|
|
324
336
|
|
|
325
|
-
`SparseCholesky` methods and properties: `solve(b)`, `refactorize(a, *, shift=None)` (`None` keeps the current shift), `slogdet()`, `logdet()`, `shape`, `mode`, `ordering`, `shift`, and `factor_nnz` (stored nonzeros in `L`, a measure of fill-in).
|
|
337
|
+
`SparseCholesky` methods and properties: `solve(b)`, `refactorize(a, *, shift=None)` (`None` keeps the current shift), `slogdet()`, `logdet()`, `inertia` (`(positive, negative, zero)` eigenvalue counts, by Sylvester's law of inertia), `L()`, `D()` and `P()` (the factors as SciPy CSC matrices and the permutation as an index array, with `(A + shift*I)[p][:, p] == L @ D @ L.T` as in scikit-sparse; `L` has its diagonal stored, unit except for `llt`, and `D` is the identity for `llt` and has 2x2 blocks for `multifrontal`), `shape`, `mode`, `ordering`, `shift`, and `factor_nnz` (stored nonzeros in `L`, a measure of fill-in; for `multifrontal` it includes explicit zeros of merged fronts).
|
|
326
338
|
|
|
327
339
|
**Requirements and behavior:**
|
|
328
340
|
|
|
329
341
|
- `a` must be square. It is not checked for symmetry: only the selected triangle is referenced, as with `linalg.eigh`.
|
|
330
|
-
- Raises `numpy.linalg.LinAlgError` if factorization breaks down: `mode="llt"` on a matrix that is not positive definite, or a zero pivot.
|
|
342
|
+
- Raises `numpy.linalg.LinAlgError` if factorization breaks down: `mode="llt"` on a matrix that is not positive definite, or a zero or non-finite pivot.
|
|
343
|
+
- For indefinite matrices use `mode="multifrontal"`; `mode="ldlt"` does not pivot and can be inaccurate or fail on them. `multifrontal`'s permutation also depends on the matrix's values (delayed pivots), and it does not scale the matrix, so badly scaled input should be equilibrated first.
|
|
331
344
|
- `refactorize` raises `ValueError` if the sparsity pattern (including explicit zeros) differs from the original matrix; create a new factorization instead.
|
|
332
345
|
- `logdet()` raises `ValueError` if the determinant is not positive; use `slogdet()` for indefinite input.
|
|
333
346
|
- Also exported as `peigen.decomp.SparseCholesky`.
|
|
334
347
|
|
|
335
|
-
**Performance.** `benchmarks/bench_cholesky.py` compares against SciPy SuperLU (`splu`) and, if scikit-sparse is installed, CHOLMOD. Eigen's factorization is *simplicial* (no dense supernode kernels), which sets its range:
|
|
348
|
+
**Performance.** `benchmarks/bench_cholesky.py` compares against SciPy SuperLU (`splu`) and, if scikit-sparse is installed, CHOLMOD. Eigen's factorization is *simplicial* (no dense supernode kernels), which sets its range. Measured on an Apple M1 Pro with the bundled Eigen (master, 2026-11-22):
|
|
349
|
+
|
|
350
|
+
- **Low-fill problems (2D meshes, graph Laplacians):** factorization is 1.8–6× faster than SciPy's default `splu`, 1.2–2× faster than `splu` configured for symmetric matrices, and 5–35% faster than CHOLMOD's simplicial mode. Solves with many right-hand sides use a blocked kernel and beat every CHOLMOD mode on these problems.
|
|
351
|
+
- **High-fill problems (3D meshes, very large 2D grids):** supernodal solvers win. CHOLMOD's default mode was about 4× faster on a 512² grid and 20–45× faster on a 40³ grid (20–30× single-threaded), and symmetric-mode `splu` was up to about 1.7× faster. pEigen is still about 1.7× faster than default `splu` there.
|
|
352
|
+
- Single-RHS solves are 1.4–2× slower than CHOLMOD's on low-fill problems, and up to 3× slower on 3D meshes.
|
|
353
|
+
- **`mode="multifrontal"` (experimental)** uses dense fronts, so it changes the high-fill picture: it factors 3D meshes 3–9× faster than `ldlt` (40³ grid: 10.9 s → 1.25 s) and is within about 15% of CHOLMOD's supernodal mode on 2D meshes and graphs. On 3D meshes it is still 1.3–3.7× slower than CHOLMOD with the same AMD ordering. Single-RHS solves are on par with CHOLMOD's. Solves with many right-hand sides use a supernodal blocked kernel and were the fastest of all tested solvers on every problem (32 RHS): 1.05–1.5× faster than `ldlt` on low-fill problems, 3–6× faster on 3D meshes, and 1.1–4.4× faster than CHOLMOD's best mode. That kernel's copy of `L` is built on the first many-RHS solve after each factorization, a one-time cost of 0.25–0.65× the factorization (2–9 steady-state solves), and it roughly doubles the factor's memory. `ldlt` stays the default while `multifrontal` is experimental.
|
|
354
|
+
|
|
355
|
+
#### Sparse least squares (`lstsq`)
|
|
356
|
+
|
|
357
|
+
Minimize `||A x - b||^2 + damp^2 ||x||^2` for a sparse `A` (`m x n`, any shape). `damp=0` is ordinary least squares; `damp > 0` adds ridge (Tikhonov) regularization, as in SciPy's `lsqr(..., damp=)`.
|
|
358
|
+
|
|
359
|
+
```python
|
|
360
|
+
x = sparse.lstsq(A, b) # method="augmented", damp=0
|
|
361
|
+
x = sparse.lstsq(A, b, method="normal")
|
|
362
|
+
x = sparse.lstsq(A, b, method="qr", damp=1e-3)
|
|
363
|
+
|
|
364
|
+
ls = sparse.SparseLeastSquares(A) # factorize once ...
|
|
365
|
+
X = ls.solve(B) # ... then solve for many right-hand sides (columns of B)
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
| `method` | Factorization | Use it when |
|
|
369
|
+
|----------|---------------|-------------|
|
|
370
|
+
| `"augmented"` | Multifrontal LDLᵀ (Eigen `MultifrontalLDLT`) of `[[αI, A], [Aᵀ, −(damp²/α)I]] [r/α; x] = [b; 0]`, with `α = max|aᵢⱼ|`. Default. | General use. It never forms `AᵀA`, so dense rows (a constraint touching every unknown) stay cheap. |
|
|
371
|
+
| `"normal"` | Sparse Cholesky (Eigen `SimplicialLDLT`) of `AᵀA + damp²I`. | Every row of `A` is short. About as fast as `"augmented"`, with a smaller factor. |
|
|
372
|
+
| `"qr"` | Sparse Householder QR (Eigen `SparseQR`) of `A`, or of `[A; damp·I]`. | `A` is too ill-conditioned for the other two (cond(A) beyond about 1e7) or rank deficient with `damp=0`. Much slower. |
|
|
373
|
+
|
|
374
|
+
**Accuracy.** `"augmented"` and `"normal"` square the condition number when they factorize, so `solve` applies iterative refinement, with residuals computed from `A` itself. While cond(A) is below roughly 1e7, that makes them as accurate as a dense QR least-squares solve: 1e-16 relative error on a consistent system with cond(A) = 8e6, where the unrefined solve had 3e-5. Beyond that, refinement cannot converge, and `solve` raises `numpy.linalg.LinAlgError` naming `method="qr"` instead of returning an inaccurate answer. `"qr"` works on `A` directly. In our tests it stayed accurate to cond(A) = 3e9, but it loses accuracy when row scales differ by many orders of magnitude (weighted least squares), because Eigen's QR does not pivot rows. `refine=False` skips refinement: fewer solves, but accuracy near cond(A)²·eps and no ill-conditioning check.
|
|
375
|
+
|
|
376
|
+
**Rank deficiency.** With `damp=0`, `"augmented"` and `"normal"` raise `LinAlgError` at construction when `A` is rank deficient, including any wide `A` (`m < n`). `"qr"` returns a basic solution, with `n − rank` entries set to zero, and reports the numerical rank in `.rank`. That solution is not the minimum-norm one: use `decomp.SVD(A.toarray()).solve(b)` or `damp > 0` for that. With `damp > 0` every method handles any `A`.
|
|
377
|
+
|
|
378
|
+
**Eigen's SparseQR and row order.** Eigen's `SparseQR` pivots column `k` on row `k` and treats `A[k, k]` as a structural nonzero even when it is zero. On a matrix whose rows are in arbitrary order, R fills in almost completely. For a 9908 × 4900 grid problem it stored 7.9M entries instead of 82k, and the factorization took 41 s instead of 83 ms. `method="qr"` therefore orders the columns with COLAMD and matches every column to a row that has an entry in it, before calling Eigen. R then has the fill of the Cholesky factor of `AᵀA`.
|
|
379
|
+
|
|
380
|
+
`SparseLeastSquares` properties: `shape`, `method`, `damp`, `factor_nnz` (stored nonzeros of `L`, or of `R` for `"qr"`), `rank` (`"qr"` only, otherwise `None`). `a` must have finite values (`ValueError` otherwise). `solve` releases the GIL. Also exported as `peigen.decomp.SparseLeastSquares`.
|
|
381
|
+
|
|
382
|
+
**Performance** (Apple M1 Pro, one right-hand side; solve includes refinement):
|
|
336
383
|
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
384
|
+
| Problem | `"augmented"` factor / solve | `"normal"` factor / solve | `"qr"` factor / solve |
|
|
385
|
+
|---------|------------------------------|---------------------------|-----------------------|
|
|
386
|
+
| 2D grid gradient, 20,305 × 10,000 | 9.6 ms / 1.9 ms | 7.1 ms / 1.8 ms | 424 ms / 4.0 ms |
|
|
387
|
+
| 2D grid gradient, 81,627 × 40,000 | 53 ms / 12.5 ms | 54 ms / 10.5 ms | 6.3 s / 34 ms |
|
|
388
|
+
| 2D grid gradient, 183,921 × 90,000 | 99 ms / 21 ms | 140 ms / 21 ms | — |
|
|
389
|
+
| 2D grid gradient plus one dense row, 9,916 × 4,900 | 5.2 ms / 0.9 ms | 11.6 s / 64 ms | 52 s / 53 ms |
|
|
340
390
|
|
|
341
391
|
### `peigen.decomp`
|
|
342
392
|
|
|
@@ -344,6 +394,7 @@ up = sparse.cholesky(sp.triu(K), lower=False) # only one triangle is read
|
|
|
344
394
|
- `QR(a)`
|
|
345
395
|
- `SparseFactorized(a)`
|
|
346
396
|
- `SparseCholesky(a, mode="ldlt", ...)`
|
|
397
|
+
- `SparseLeastSquares(a, method="augmented", damp=0.0)`
|
|
347
398
|
|
|
348
399
|
## Runtime build report
|
|
349
400
|
|