pylibsparseir 0.1.0__cp312-cp312-macosx_15_0_arm64.whl → 0.5.2__cp312-cp312-macosx_15_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pylibsparseir might be problematic. Click here for more details.
- include/eigen3/Eigen/Cholesky +45 -0
- include/eigen3/Eigen/CholmodSupport +48 -0
- include/eigen3/Eigen/Core +384 -0
- include/eigen3/Eigen/Dense +7 -0
- include/eigen3/Eigen/Eigen +2 -0
- include/eigen3/Eigen/Eigenvalues +60 -0
- include/eigen3/Eigen/Geometry +59 -0
- include/eigen3/Eigen/Householder +29 -0
- include/eigen3/Eigen/IterativeLinearSolvers +48 -0
- include/eigen3/Eigen/Jacobi +32 -0
- include/eigen3/Eigen/KLUSupport +41 -0
- include/eigen3/Eigen/LU +47 -0
- include/eigen3/Eigen/MetisSupport +35 -0
- include/eigen3/Eigen/OrderingMethods +70 -0
- include/eigen3/Eigen/PaStiXSupport +49 -0
- include/eigen3/Eigen/PardisoSupport +35 -0
- include/eigen3/Eigen/QR +50 -0
- include/eigen3/Eigen/QtAlignedMalloc +39 -0
- include/eigen3/Eigen/SPQRSupport +34 -0
- include/eigen3/Eigen/SVD +50 -0
- include/eigen3/Eigen/Sparse +34 -0
- include/eigen3/Eigen/SparseCholesky +37 -0
- include/eigen3/Eigen/SparseCore +69 -0
- include/eigen3/Eigen/SparseLU +50 -0
- include/eigen3/Eigen/SparseQR +36 -0
- include/eigen3/Eigen/StdDeque +27 -0
- include/eigen3/Eigen/StdList +26 -0
- include/eigen3/Eigen/StdVector +27 -0
- include/eigen3/Eigen/SuperLUSupport +64 -0
- include/eigen3/Eigen/UmfPackSupport +40 -0
- include/eigen3/Eigen/src/Cholesky/LDLT.h +688 -0
- include/eigen3/Eigen/src/Cholesky/LLT.h +558 -0
- include/eigen3/Eigen/src/Cholesky/LLT_LAPACKE.h +99 -0
- include/eigen3/Eigen/src/CholmodSupport/CholmodSupport.h +682 -0
- include/eigen3/Eigen/src/Core/ArithmeticSequence.h +413 -0
- include/eigen3/Eigen/src/Core/Array.h +417 -0
- include/eigen3/Eigen/src/Core/ArrayBase.h +226 -0
- include/eigen3/Eigen/src/Core/ArrayWrapper.h +209 -0
- include/eigen3/Eigen/src/Core/Assign.h +90 -0
- include/eigen3/Eigen/src/Core/AssignEvaluator.h +1010 -0
- include/eigen3/Eigen/src/Core/Assign_MKL.h +178 -0
- include/eigen3/Eigen/src/Core/BandMatrix.h +353 -0
- include/eigen3/Eigen/src/Core/Block.h +448 -0
- include/eigen3/Eigen/src/Core/BooleanRedux.h +162 -0
- include/eigen3/Eigen/src/Core/CommaInitializer.h +164 -0
- include/eigen3/Eigen/src/Core/ConditionEstimator.h +175 -0
- include/eigen3/Eigen/src/Core/CoreEvaluators.h +1741 -0
- include/eigen3/Eigen/src/Core/CoreIterators.h +132 -0
- include/eigen3/Eigen/src/Core/CwiseBinaryOp.h +183 -0
- include/eigen3/Eigen/src/Core/CwiseNullaryOp.h +1001 -0
- include/eigen3/Eigen/src/Core/CwiseTernaryOp.h +197 -0
- include/eigen3/Eigen/src/Core/CwiseUnaryOp.h +103 -0
- include/eigen3/Eigen/src/Core/CwiseUnaryView.h +132 -0
- include/eigen3/Eigen/src/Core/DenseBase.h +701 -0
- include/eigen3/Eigen/src/Core/DenseCoeffsBase.h +685 -0
- include/eigen3/Eigen/src/Core/DenseStorage.h +652 -0
- include/eigen3/Eigen/src/Core/Diagonal.h +258 -0
- include/eigen3/Eigen/src/Core/DiagonalMatrix.h +391 -0
- include/eigen3/Eigen/src/Core/DiagonalProduct.h +28 -0
- include/eigen3/Eigen/src/Core/Dot.h +318 -0
- include/eigen3/Eigen/src/Core/EigenBase.h +160 -0
- include/eigen3/Eigen/src/Core/ForceAlignedAccess.h +150 -0
- include/eigen3/Eigen/src/Core/Fuzzy.h +155 -0
- include/eigen3/Eigen/src/Core/GeneralProduct.h +465 -0
- include/eigen3/Eigen/src/Core/GenericPacketMath.h +1040 -0
- include/eigen3/Eigen/src/Core/GlobalFunctions.h +194 -0
- include/eigen3/Eigen/src/Core/IO.h +258 -0
- include/eigen3/Eigen/src/Core/IndexedView.h +237 -0
- include/eigen3/Eigen/src/Core/Inverse.h +117 -0
- include/eigen3/Eigen/src/Core/Map.h +171 -0
- include/eigen3/Eigen/src/Core/MapBase.h +310 -0
- include/eigen3/Eigen/src/Core/MathFunctions.h +2057 -0
- include/eigen3/Eigen/src/Core/MathFunctionsImpl.h +200 -0
- include/eigen3/Eigen/src/Core/Matrix.h +565 -0
- include/eigen3/Eigen/src/Core/MatrixBase.h +547 -0
- include/eigen3/Eigen/src/Core/NestByValue.h +85 -0
- include/eigen3/Eigen/src/Core/NoAlias.h +109 -0
- include/eigen3/Eigen/src/Core/NumTraits.h +335 -0
- include/eigen3/Eigen/src/Core/PartialReduxEvaluator.h +232 -0
- include/eigen3/Eigen/src/Core/PermutationMatrix.h +605 -0
- include/eigen3/Eigen/src/Core/PlainObjectBase.h +1128 -0
- include/eigen3/Eigen/src/Core/Product.h +191 -0
- include/eigen3/Eigen/src/Core/ProductEvaluators.h +1179 -0
- include/eigen3/Eigen/src/Core/Random.h +218 -0
- include/eigen3/Eigen/src/Core/Redux.h +515 -0
- include/eigen3/Eigen/src/Core/Ref.h +381 -0
- include/eigen3/Eigen/src/Core/Replicate.h +142 -0
- include/eigen3/Eigen/src/Core/Reshaped.h +454 -0
- include/eigen3/Eigen/src/Core/ReturnByValue.h +119 -0
- include/eigen3/Eigen/src/Core/Reverse.h +217 -0
- include/eigen3/Eigen/src/Core/Select.h +164 -0
- include/eigen3/Eigen/src/Core/SelfAdjointView.h +365 -0
- include/eigen3/Eigen/src/Core/SelfCwiseBinaryOp.h +47 -0
- include/eigen3/Eigen/src/Core/Solve.h +188 -0
- include/eigen3/Eigen/src/Core/SolveTriangular.h +235 -0
- include/eigen3/Eigen/src/Core/SolverBase.h +168 -0
- include/eigen3/Eigen/src/Core/StableNorm.h +251 -0
- include/eigen3/Eigen/src/Core/StlIterators.h +463 -0
- include/eigen3/Eigen/src/Core/Stride.h +116 -0
- include/eigen3/Eigen/src/Core/Swap.h +68 -0
- include/eigen3/Eigen/src/Core/Transpose.h +464 -0
- include/eigen3/Eigen/src/Core/Transpositions.h +386 -0
- include/eigen3/Eigen/src/Core/TriangularMatrix.h +1001 -0
- include/eigen3/Eigen/src/Core/VectorBlock.h +96 -0
- include/eigen3/Eigen/src/Core/VectorwiseOp.h +784 -0
- include/eigen3/Eigen/src/Core/Visitor.h +381 -0
- include/eigen3/Eigen/src/Core/arch/AVX/Complex.h +372 -0
- include/eigen3/Eigen/src/Core/arch/AVX/MathFunctions.h +228 -0
- include/eigen3/Eigen/src/Core/arch/AVX/PacketMath.h +1574 -0
- include/eigen3/Eigen/src/Core/arch/AVX/TypeCasting.h +115 -0
- include/eigen3/Eigen/src/Core/arch/AVX512/Complex.h +422 -0
- include/eigen3/Eigen/src/Core/arch/AVX512/MathFunctions.h +362 -0
- include/eigen3/Eigen/src/Core/arch/AVX512/PacketMath.h +2303 -0
- include/eigen3/Eigen/src/Core/arch/AVX512/TypeCasting.h +89 -0
- include/eigen3/Eigen/src/Core/arch/AltiVec/Complex.h +417 -0
- include/eigen3/Eigen/src/Core/arch/AltiVec/MathFunctions.h +90 -0
- include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProduct.h +2937 -0
- include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h +221 -0
- include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h +629 -0
- include/eigen3/Eigen/src/Core/arch/AltiVec/PacketMath.h +2711 -0
- include/eigen3/Eigen/src/Core/arch/CUDA/Complex.h +258 -0
- include/eigen3/Eigen/src/Core/arch/Default/BFloat16.h +700 -0
- include/eigen3/Eigen/src/Core/arch/Default/ConjHelper.h +117 -0
- include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +1649 -0
- include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctionsFwd.h +110 -0
- include/eigen3/Eigen/src/Core/arch/Default/Half.h +942 -0
- include/eigen3/Eigen/src/Core/arch/Default/Settings.h +49 -0
- include/eigen3/Eigen/src/Core/arch/Default/TypeCasting.h +120 -0
- include/eigen3/Eigen/src/Core/arch/GPU/MathFunctions.h +103 -0
- include/eigen3/Eigen/src/Core/arch/GPU/PacketMath.h +1685 -0
- include/eigen3/Eigen/src/Core/arch/GPU/TypeCasting.h +80 -0
- include/eigen3/Eigen/src/Core/arch/HIP/hcc/math_constants.h +23 -0
- include/eigen3/Eigen/src/Core/arch/MSA/Complex.h +648 -0
- include/eigen3/Eigen/src/Core/arch/MSA/MathFunctions.h +387 -0
- include/eigen3/Eigen/src/Core/arch/MSA/PacketMath.h +1233 -0
- include/eigen3/Eigen/src/Core/arch/NEON/Complex.h +584 -0
- include/eigen3/Eigen/src/Core/arch/NEON/GeneralBlockPanelKernel.h +183 -0
- include/eigen3/Eigen/src/Core/arch/NEON/MathFunctions.h +75 -0
- include/eigen3/Eigen/src/Core/arch/NEON/PacketMath.h +4587 -0
- include/eigen3/Eigen/src/Core/arch/NEON/TypeCasting.h +1419 -0
- include/eigen3/Eigen/src/Core/arch/SSE/Complex.h +351 -0
- include/eigen3/Eigen/src/Core/arch/SSE/MathFunctions.h +199 -0
- include/eigen3/Eigen/src/Core/arch/SSE/PacketMath.h +1505 -0
- include/eigen3/Eigen/src/Core/arch/SSE/TypeCasting.h +142 -0
- include/eigen3/Eigen/src/Core/arch/SVE/MathFunctions.h +44 -0
- include/eigen3/Eigen/src/Core/arch/SVE/PacketMath.h +752 -0
- include/eigen3/Eigen/src/Core/arch/SVE/TypeCasting.h +49 -0
- include/eigen3/Eigen/src/Core/arch/SYCL/InteropHeaders.h +232 -0
- include/eigen3/Eigen/src/Core/arch/SYCL/MathFunctions.h +301 -0
- include/eigen3/Eigen/src/Core/arch/SYCL/PacketMath.h +670 -0
- include/eigen3/Eigen/src/Core/arch/SYCL/SyclMemoryModel.h +694 -0
- include/eigen3/Eigen/src/Core/arch/SYCL/TypeCasting.h +85 -0
- include/eigen3/Eigen/src/Core/arch/ZVector/Complex.h +426 -0
- include/eigen3/Eigen/src/Core/arch/ZVector/MathFunctions.h +233 -0
- include/eigen3/Eigen/src/Core/arch/ZVector/PacketMath.h +1060 -0
- include/eigen3/Eigen/src/Core/functors/AssignmentFunctors.h +177 -0
- include/eigen3/Eigen/src/Core/functors/BinaryFunctors.h +541 -0
- include/eigen3/Eigen/src/Core/functors/NullaryFunctors.h +189 -0
- include/eigen3/Eigen/src/Core/functors/StlFunctors.h +166 -0
- include/eigen3/Eigen/src/Core/functors/TernaryFunctors.h +25 -0
- include/eigen3/Eigen/src/Core/functors/UnaryFunctors.h +1131 -0
- include/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h +2645 -0
- include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrix.h +517 -0
- include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h +317 -0
- include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h +145 -0
- include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrix_BLAS.h +124 -0
- include/eigen3/Eigen/src/Core/products/GeneralMatrixVector.h +518 -0
- include/eigen3/Eigen/src/Core/products/GeneralMatrixVector_BLAS.h +136 -0
- include/eigen3/Eigen/src/Core/products/Parallelizer.h +180 -0
- include/eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix.h +544 -0
- include/eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix_BLAS.h +295 -0
- include/eigen3/Eigen/src/Core/products/SelfadjointMatrixVector.h +262 -0
- include/eigen3/Eigen/src/Core/products/SelfadjointMatrixVector_BLAS.h +118 -0
- include/eigen3/Eigen/src/Core/products/SelfadjointProduct.h +133 -0
- include/eigen3/Eigen/src/Core/products/SelfadjointRank2Update.h +94 -0
- include/eigen3/Eigen/src/Core/products/TriangularMatrixMatrix.h +472 -0
- include/eigen3/Eigen/src/Core/products/TriangularMatrixMatrix_BLAS.h +317 -0
- include/eigen3/Eigen/src/Core/products/TriangularMatrixVector.h +350 -0
- include/eigen3/Eigen/src/Core/products/TriangularMatrixVector_BLAS.h +255 -0
- include/eigen3/Eigen/src/Core/products/TriangularSolverMatrix.h +337 -0
- include/eigen3/Eigen/src/Core/products/TriangularSolverMatrix_BLAS.h +167 -0
- include/eigen3/Eigen/src/Core/products/TriangularSolverVector.h +148 -0
- include/eigen3/Eigen/src/Core/util/BlasUtil.h +583 -0
- include/eigen3/Eigen/src/Core/util/ConfigureVectorization.h +512 -0
- include/eigen3/Eigen/src/Core/util/Constants.h +563 -0
- include/eigen3/Eigen/src/Core/util/DisableStupidWarnings.h +106 -0
- include/eigen3/Eigen/src/Core/util/ForwardDeclarations.h +322 -0
- include/eigen3/Eigen/src/Core/util/IndexedViewHelper.h +186 -0
- include/eigen3/Eigen/src/Core/util/IntegralConstant.h +272 -0
- include/eigen3/Eigen/src/Core/util/MKL_support.h +137 -0
- include/eigen3/Eigen/src/Core/util/Macros.h +1464 -0
- include/eigen3/Eigen/src/Core/util/Memory.h +1163 -0
- include/eigen3/Eigen/src/Core/util/Meta.h +812 -0
- include/eigen3/Eigen/src/Core/util/NonMPL2.h +3 -0
- include/eigen3/Eigen/src/Core/util/ReenableStupidWarnings.h +31 -0
- include/eigen3/Eigen/src/Core/util/ReshapedHelper.h +51 -0
- include/eigen3/Eigen/src/Core/util/StaticAssert.h +221 -0
- include/eigen3/Eigen/src/Core/util/SymbolicIndex.h +293 -0
- include/eigen3/Eigen/src/Core/util/XprHelper.h +856 -0
- include/eigen3/Eigen/src/Eigenvalues/ComplexEigenSolver.h +346 -0
- include/eigen3/Eigen/src/Eigenvalues/ComplexSchur.h +462 -0
- include/eigen3/Eigen/src/Eigenvalues/ComplexSchur_LAPACKE.h +91 -0
- include/eigen3/Eigen/src/Eigenvalues/EigenSolver.h +622 -0
- include/eigen3/Eigen/src/Eigenvalues/GeneralizedEigenSolver.h +418 -0
- include/eigen3/Eigen/src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h +226 -0
- include/eigen3/Eigen/src/Eigenvalues/HessenbergDecomposition.h +374 -0
- include/eigen3/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h +158 -0
- include/eigen3/Eigen/src/Eigenvalues/RealQZ.h +657 -0
- include/eigen3/Eigen/src/Eigenvalues/RealSchur.h +558 -0
- include/eigen3/Eigen/src/Eigenvalues/RealSchur_LAPACKE.h +77 -0
- include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h +904 -0
- include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver_LAPACKE.h +87 -0
- include/eigen3/Eigen/src/Eigenvalues/Tridiagonalization.h +561 -0
- include/eigen3/Eigen/src/Geometry/AlignedBox.h +486 -0
- include/eigen3/Eigen/src/Geometry/AngleAxis.h +247 -0
- include/eigen3/Eigen/src/Geometry/EulerAngles.h +114 -0
- include/eigen3/Eigen/src/Geometry/Homogeneous.h +501 -0
- include/eigen3/Eigen/src/Geometry/Hyperplane.h +282 -0
- include/eigen3/Eigen/src/Geometry/OrthoMethods.h +235 -0
- include/eigen3/Eigen/src/Geometry/ParametrizedLine.h +232 -0
- include/eigen3/Eigen/src/Geometry/Quaternion.h +870 -0
- include/eigen3/Eigen/src/Geometry/Rotation2D.h +199 -0
- include/eigen3/Eigen/src/Geometry/RotationBase.h +206 -0
- include/eigen3/Eigen/src/Geometry/Scaling.h +188 -0
- include/eigen3/Eigen/src/Geometry/Transform.h +1563 -0
- include/eigen3/Eigen/src/Geometry/Translation.h +202 -0
- include/eigen3/Eigen/src/Geometry/Umeyama.h +166 -0
- include/eigen3/Eigen/src/Geometry/arch/Geometry_SIMD.h +168 -0
- include/eigen3/Eigen/src/Householder/BlockHouseholder.h +110 -0
- include/eigen3/Eigen/src/Householder/Householder.h +176 -0
- include/eigen3/Eigen/src/Householder/HouseholderSequence.h +545 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/BasicPreconditioners.h +226 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h +212 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/ConjugateGradient.h +229 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h +394 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h +453 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/IterativeSolverBase.h +444 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/LeastSquareConjugateGradient.h +198 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/SolveWithGuess.h +117 -0
- include/eigen3/Eigen/src/Jacobi/Jacobi.h +483 -0
- include/eigen3/Eigen/src/KLUSupport/KLUSupport.h +358 -0
- include/eigen3/Eigen/src/LU/Determinant.h +117 -0
- include/eigen3/Eigen/src/LU/FullPivLU.h +877 -0
- include/eigen3/Eigen/src/LU/InverseImpl.h +432 -0
- include/eigen3/Eigen/src/LU/PartialPivLU.h +624 -0
- include/eigen3/Eigen/src/LU/PartialPivLU_LAPACKE.h +83 -0
- include/eigen3/Eigen/src/LU/arch/InverseSize4.h +351 -0
- include/eigen3/Eigen/src/MetisSupport/MetisSupport.h +137 -0
- include/eigen3/Eigen/src/OrderingMethods/Amd.h +435 -0
- include/eigen3/Eigen/src/OrderingMethods/Eigen_Colamd.h +1863 -0
- include/eigen3/Eigen/src/OrderingMethods/Ordering.h +153 -0
- include/eigen3/Eigen/src/PaStiXSupport/PaStiXSupport.h +678 -0
- include/eigen3/Eigen/src/PardisoSupport/PardisoSupport.h +545 -0
- include/eigen3/Eigen/src/QR/ColPivHouseholderQR.h +674 -0
- include/eigen3/Eigen/src/QR/ColPivHouseholderQR_LAPACKE.h +97 -0
- include/eigen3/Eigen/src/QR/CompleteOrthogonalDecomposition.h +635 -0
- include/eigen3/Eigen/src/QR/FullPivHouseholderQR.h +713 -0
- include/eigen3/Eigen/src/QR/HouseholderQR.h +434 -0
- include/eigen3/Eigen/src/QR/HouseholderQR_LAPACKE.h +68 -0
- include/eigen3/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h +335 -0
- include/eigen3/Eigen/src/SVD/BDCSVD.h +1366 -0
- include/eigen3/Eigen/src/SVD/JacobiSVD.h +812 -0
- include/eigen3/Eigen/src/SVD/JacobiSVD_LAPACKE.h +91 -0
- include/eigen3/Eigen/src/SVD/SVDBase.h +376 -0
- include/eigen3/Eigen/src/SVD/UpperBidiagonalization.h +414 -0
- include/eigen3/Eigen/src/SparseCholesky/SimplicialCholesky.h +697 -0
- include/eigen3/Eigen/src/SparseCholesky/SimplicialCholesky_impl.h +174 -0
- include/eigen3/Eigen/src/SparseCore/AmbiVector.h +378 -0
- include/eigen3/Eigen/src/SparseCore/CompressedStorage.h +274 -0
- include/eigen3/Eigen/src/SparseCore/ConservativeSparseSparseProduct.h +352 -0
- include/eigen3/Eigen/src/SparseCore/MappedSparseMatrix.h +67 -0
- include/eigen3/Eigen/src/SparseCore/SparseAssign.h +270 -0
- include/eigen3/Eigen/src/SparseCore/SparseBlock.h +571 -0
- include/eigen3/Eigen/src/SparseCore/SparseColEtree.h +206 -0
- include/eigen3/Eigen/src/SparseCore/SparseCompressedBase.h +370 -0
- include/eigen3/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +722 -0
- include/eigen3/Eigen/src/SparseCore/SparseCwiseUnaryOp.h +150 -0
- include/eigen3/Eigen/src/SparseCore/SparseDenseProduct.h +342 -0
- include/eigen3/Eigen/src/SparseCore/SparseDiagonalProduct.h +138 -0
- include/eigen3/Eigen/src/SparseCore/SparseDot.h +98 -0
- include/eigen3/Eigen/src/SparseCore/SparseFuzzy.h +29 -0
- include/eigen3/Eigen/src/SparseCore/SparseMap.h +305 -0
- include/eigen3/Eigen/src/SparseCore/SparseMatrix.h +1518 -0
- include/eigen3/Eigen/src/SparseCore/SparseMatrixBase.h +398 -0
- include/eigen3/Eigen/src/SparseCore/SparsePermutation.h +178 -0
- include/eigen3/Eigen/src/SparseCore/SparseProduct.h +181 -0
- include/eigen3/Eigen/src/SparseCore/SparseRedux.h +49 -0
- include/eigen3/Eigen/src/SparseCore/SparseRef.h +397 -0
- include/eigen3/Eigen/src/SparseCore/SparseSelfAdjointView.h +659 -0
- include/eigen3/Eigen/src/SparseCore/SparseSolverBase.h +124 -0
- include/eigen3/Eigen/src/SparseCore/SparseSparseProductWithPruning.h +198 -0
- include/eigen3/Eigen/src/SparseCore/SparseTranspose.h +92 -0
- include/eigen3/Eigen/src/SparseCore/SparseTriangularView.h +189 -0
- include/eigen3/Eigen/src/SparseCore/SparseUtil.h +186 -0
- include/eigen3/Eigen/src/SparseCore/SparseVector.h +478 -0
- include/eigen3/Eigen/src/SparseCore/SparseView.h +254 -0
- include/eigen3/Eigen/src/SparseCore/TriangularSolver.h +315 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU.h +923 -0
- include/eigen3/Eigen/src/SparseLU/SparseLUImpl.h +66 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_Memory.h +226 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_Structs.h +110 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +375 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_Utils.h +80 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_column_bmod.h +181 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_column_dfs.h +179 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h +107 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_gemm_kernel.h +280 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +126 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_kernel_bmod.h +130 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_panel_bmod.h +223 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_panel_dfs.h +258 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_pivotL.h +137 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_pruneL.h +136 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_relax_snode.h +83 -0
- include/eigen3/Eigen/src/SparseQR/SparseQR.h +758 -0
- include/eigen3/Eigen/src/StlSupport/StdDeque.h +116 -0
- include/eigen3/Eigen/src/StlSupport/StdList.h +106 -0
- include/eigen3/Eigen/src/StlSupport/StdVector.h +131 -0
- include/eigen3/Eigen/src/StlSupport/details.h +84 -0
- include/eigen3/Eigen/src/SuperLUSupport/SuperLUSupport.h +1025 -0
- include/eigen3/Eigen/src/UmfPackSupport/UmfPackSupport.h +642 -0
- include/eigen3/Eigen/src/misc/Image.h +82 -0
- include/eigen3/Eigen/src/misc/Kernel.h +79 -0
- include/eigen3/Eigen/src/misc/RealSvd2x2.h +55 -0
- include/eigen3/Eigen/src/misc/blas.h +440 -0
- include/eigen3/Eigen/src/misc/lapack.h +152 -0
- include/eigen3/Eigen/src/misc/lapacke.h +16292 -0
- include/eigen3/Eigen/src/misc/lapacke_mangling.h +17 -0
- include/eigen3/Eigen/src/plugins/ArrayCwiseBinaryOps.h +358 -0
- include/eigen3/Eigen/src/plugins/ArrayCwiseUnaryOps.h +696 -0
- include/eigen3/Eigen/src/plugins/BlockMethods.h +1442 -0
- include/eigen3/Eigen/src/plugins/CommonCwiseBinaryOps.h +115 -0
- include/eigen3/Eigen/src/plugins/CommonCwiseUnaryOps.h +177 -0
- include/eigen3/Eigen/src/plugins/IndexedViewMethods.h +262 -0
- include/eigen3/Eigen/src/plugins/MatrixCwiseBinaryOps.h +152 -0
- include/eigen3/Eigen/src/plugins/MatrixCwiseUnaryOps.h +95 -0
- include/eigen3/Eigen/src/plugins/ReshapedMethods.h +149 -0
- include/eigen3/signature_of_eigen3_matrix_library +1 -0
- include/eigen3/unsupported/Eigen/AdolcForward +159 -0
- include/eigen3/unsupported/Eigen/AlignedVector3 +234 -0
- include/eigen3/unsupported/Eigen/ArpackSupport +30 -0
- include/eigen3/unsupported/Eigen/AutoDiff +46 -0
- include/eigen3/unsupported/Eigen/BVH +95 -0
- include/eigen3/unsupported/Eigen/CXX11/Tensor +137 -0
- include/eigen3/unsupported/Eigen/CXX11/TensorSymmetry +42 -0
- include/eigen3/unsupported/Eigen/CXX11/ThreadPool +74 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/Tensor.h +554 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorArgMax.h +329 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h +247 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h +1176 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h +1559 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h +1093 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h +518 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConcatenation.h +377 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h +1023 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionBlocking.h +73 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionCuda.h +6 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionGpu.h +1413 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionMapper.h +575 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionSycl.h +1650 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h +1679 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConversion.h +456 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConvolution.h +1132 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConvolutionSycl.h +544 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorCostModel.h +214 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorCustomOp.h +347 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDevice.h +137 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h +6 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceDefault.h +104 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceGpu.h +389 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h +1048 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +409 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h +236 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h +490 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvalTo.h +236 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h +983 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h +703 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h +388 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFFT.h +669 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFixedSize.h +379 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorForcedEval.h +237 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h +191 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h +488 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGenerator.h +302 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGlobalFunctions.h +33 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGpuHipCudaDefines.h +99 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGpuHipCudaUndefines.h +44 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIO.h +79 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +603 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h +738 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorInflation.h +247 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorInitializer.h +82 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h +263 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorLayoutSwap.h +216 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMacros.h +98 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h +327 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h +311 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h +1102 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorPadding.h +708 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h +291 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h +322 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h +998 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h +6 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionGpu.h +966 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +582 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h +454 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReverse.h +465 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorScan.h +528 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +513 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorShuffling.h +471 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorStorage.h +161 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorStriding.h +346 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h +303 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h +264 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h +249 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorVolumePatch.h +629 -0
- include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/DynamicSymmetry.h +293 -0
- include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/StaticSymmetry.h +236 -0
- include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/Symmetry.h +338 -0
- include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/util/TemplateGroupTheory.h +669 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/Barrier.h +67 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/EventCount.h +249 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h +486 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/RunQueue.h +236 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadCancel.h +23 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadEnvironment.h +40 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadLocal.h +301 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h +48 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h +20 -0
- include/eigen3/unsupported/Eigen/CXX11/src/util/CXX11Meta.h +537 -0
- include/eigen3/unsupported/Eigen/CXX11/src/util/CXX11Workarounds.h +88 -0
- include/eigen3/unsupported/Eigen/CXX11/src/util/EmulateArray.h +261 -0
- include/eigen3/unsupported/Eigen/CXX11/src/util/MaxSizeVector.h +158 -0
- include/eigen3/unsupported/Eigen/EulerAngles +43 -0
- include/eigen3/unsupported/Eigen/FFT +419 -0
- include/eigen3/unsupported/Eigen/IterativeSolvers +51 -0
- include/eigen3/unsupported/Eigen/KroneckerProduct +36 -0
- include/eigen3/unsupported/Eigen/LevenbergMarquardt +49 -0
- include/eigen3/unsupported/Eigen/MPRealSupport +213 -0
- include/eigen3/unsupported/Eigen/MatrixFunctions +504 -0
- include/eigen3/unsupported/Eigen/MoreVectorization +24 -0
- include/eigen3/unsupported/Eigen/NonLinearOptimization +140 -0
- include/eigen3/unsupported/Eigen/NumericalDiff +56 -0
- include/eigen3/unsupported/Eigen/OpenGLSupport +322 -0
- include/eigen3/unsupported/Eigen/Polynomials +137 -0
- include/eigen3/unsupported/Eigen/Skyline +39 -0
- include/eigen3/unsupported/Eigen/SparseExtra +54 -0
- include/eigen3/unsupported/Eigen/SpecialFunctions +103 -0
- include/eigen3/unsupported/Eigen/Splines +35 -0
- include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffJacobian.h +108 -0
- include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +730 -0
- include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffVector.h +220 -0
- include/eigen3/unsupported/Eigen/src/BVH/BVAlgorithms.h +293 -0
- include/eigen3/unsupported/Eigen/src/BVH/KdBVH.h +223 -0
- include/eigen3/unsupported/Eigen/src/Eigenvalues/ArpackSelfAdjointEigenSolver.h +790 -0
- include/eigen3/unsupported/Eigen/src/EulerAngles/EulerAngles.h +355 -0
- include/eigen3/unsupported/Eigen/src/EulerAngles/EulerSystem.h +305 -0
- include/eigen3/unsupported/Eigen/src/FFT/ei_fftw_impl.h +261 -0
- include/eigen3/unsupported/Eigen/src/FFT/ei_kissfft_impl.h +449 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/ConstrainedConjGrad.h +187 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/DGMRES.h +511 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/GMRES.h +335 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/IDRS.h +436 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/IncompleteLU.h +90 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/IterationController.h +154 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/MINRES.h +267 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/Scaling.h +193 -0
- include/eigen3/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h +305 -0
- include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMcovar.h +84 -0
- include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMonestep.h +202 -0
- include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMpar.h +160 -0
- include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMqrsolv.h +188 -0
- include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LevenbergMarquardt.h +396 -0
- include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +441 -0
- include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h +569 -0
- include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h +373 -0
- include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixPower.h +705 -0
- include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h +368 -0
- include/eigen3/unsupported/Eigen/src/MatrixFunctions/StemFunction.h +117 -0
- include/eigen3/unsupported/Eigen/src/MoreVectorization/MathFunctions.h +95 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/HybridNonLinearSolver.h +601 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h +657 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/chkder.h +66 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/covar.h +70 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/dogleg.h +107 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/fdjac1.h +79 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/lmpar.h +298 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h +91 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/r1mpyq.h +30 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/r1updt.h +99 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h +49 -0
- include/eigen3/unsupported/Eigen/src/NumericalDiff/NumericalDiff.h +130 -0
- include/eigen3/unsupported/Eigen/src/Polynomials/Companion.h +280 -0
- include/eigen3/unsupported/Eigen/src/Polynomials/PolynomialSolver.h +428 -0
- include/eigen3/unsupported/Eigen/src/Polynomials/PolynomialUtils.h +143 -0
- include/eigen3/unsupported/Eigen/src/Skyline/SkylineInplaceLU.h +352 -0
- include/eigen3/unsupported/Eigen/src/Skyline/SkylineMatrix.h +862 -0
- include/eigen3/unsupported/Eigen/src/Skyline/SkylineMatrixBase.h +212 -0
- include/eigen3/unsupported/Eigen/src/Skyline/SkylineProduct.h +295 -0
- include/eigen3/unsupported/Eigen/src/Skyline/SkylineStorage.h +259 -0
- include/eigen3/unsupported/Eigen/src/Skyline/SkylineUtil.h +89 -0
- include/eigen3/unsupported/Eigen/src/SparseExtra/BlockOfDynamicSparseMatrix.h +122 -0
- include/eigen3/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h +1079 -0
- include/eigen3/unsupported/Eigen/src/SparseExtra/DynamicSparseMatrix.h +404 -0
- include/eigen3/unsupported/Eigen/src/SparseExtra/MarketIO.h +282 -0
- include/eigen3/unsupported/Eigen/src/SparseExtra/MatrixMarketIterator.h +247 -0
- include/eigen3/unsupported/Eigen/src/SparseExtra/RandomSetter.h +349 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsArrayAPI.h +286 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsBFloat16.h +68 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsFunctors.h +357 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsHalf.h +66 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsImpl.h +1959 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsPacketMath.h +118 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/HipVectorCompatibility.h +67 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsArrayAPI.h +167 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsBFloat16.h +58 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsFunctors.h +330 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsHalf.h +58 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +2045 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsPacketMath.h +79 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX/BesselFunctions.h +46 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX/SpecialFunctions.h +16 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX512/BesselFunctions.h +46 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX512/SpecialFunctions.h +16 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/GPU/SpecialFunctions.h +369 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/NEON/BesselFunctions.h +54 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/NEON/SpecialFunctions.h +34 -0
- include/eigen3/unsupported/Eigen/src/Splines/Spline.h +507 -0
- include/eigen3/unsupported/Eigen/src/Splines/SplineFitting.h +431 -0
- include/eigen3/unsupported/Eigen/src/Splines/SplineFwd.h +93 -0
- pylibsparseir/__init__.py +31 -0
- pylibsparseir/clean_build_artifacts.py +0 -1
- pylibsparseir/core.py +160 -45
- pylibsparseir/libsparseir.dylib +0 -0
- pylibsparseir-0.5.2.dist-info/METADATA +215 -0
- pylibsparseir-0.5.2.dist-info/RECORD +545 -0
- {pylibsparseir-0.1.0.dist-info → pylibsparseir-0.5.2.dist-info}/WHEEL +1 -1
- pylibsparseir-0.5.2.dist-info/licenses/LICENSE +21 -0
- share/eigen3/cmake/Eigen3Config.cmake +37 -0
- share/eigen3/cmake/Eigen3ConfigVersion.cmake +65 -0
- share/eigen3/cmake/Eigen3Targets.cmake +106 -0
- share/eigen3/cmake/UseEigen3.cmake +6 -0
- share/pkgconfig/eigen3.pc +9 -0
- pylibsparseir/libsparseir.0.4.2.dylib +0 -0
- pylibsparseir/libsparseir.0.dylib +0 -0
- pylibsparseir-0.1.0.dist-info/METADATA +0 -130
- pylibsparseir-0.1.0.dist-info/RECORD +0 -12
- pylibsparseir-0.1.0.dist-info/entry_points.txt +0 -2
- pylibsparseir-0.1.0.dist-info/top_level.txt +0 -1
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
|
|
2
|
+
// This file is part of Eigen, a lightweight C++ template library
|
|
3
|
+
// for linear algebra.
|
|
4
|
+
//
|
|
5
|
+
// Copyright (C) 2012 Desire NUENTSA WAKAM <desire.nuentsa_wakam@inria.fr>
|
|
6
|
+
//
|
|
7
|
+
// This Source Code Form is subject to the terms of the Mozilla
|
|
8
|
+
// Public License v. 2.0. If a copy of the MPL was not distributed
|
|
9
|
+
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
10
|
+
|
|
11
|
+
#ifndef EIGEN_BROWSE_MATRICES_H
|
|
12
|
+
#define EIGEN_BROWSE_MATRICES_H
|
|
13
|
+
|
|
14
|
+
namespace Eigen {
|
|
15
|
+
|
|
16
|
+
enum {
|
|
17
|
+
SPD = 0x100,
|
|
18
|
+
NonSymmetric = 0x0
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @brief Iterator to browse matrices from a specified folder
|
|
23
|
+
*
|
|
24
|
+
* This is used to load all the matrices from a folder.
|
|
25
|
+
* The matrices should be in Matrix Market format
|
|
26
|
+
* It is assumed that the matrices are named as matname.mtx
|
|
27
|
+
* and matname_SPD.mtx if the matrix is Symmetric and positive definite (or Hermitian)
|
|
28
|
+
* The right hand side vectors are loaded as well, if they exist.
|
|
29
|
+
* They should be named as matname_b.mtx.
|
|
30
|
+
* Note that the right hand side for a SPD matrix is named as matname_SPD_b.mtx
|
|
31
|
+
*
|
|
32
|
+
* Sometimes a reference solution is available. In this case, it should be named as matname_x.mtx
|
|
33
|
+
*
|
|
34
|
+
* Sample code
|
|
35
|
+
* \code
|
|
36
|
+
*
|
|
37
|
+
* \endcode
|
|
38
|
+
*
|
|
39
|
+
* \tparam Scalar The scalar type
|
|
40
|
+
*/
|
|
41
|
+
template <typename Scalar>
|
|
42
|
+
class MatrixMarketIterator
|
|
43
|
+
{
|
|
44
|
+
typedef typename NumTraits<Scalar>::Real RealScalar;
|
|
45
|
+
public:
|
|
46
|
+
typedef Matrix<Scalar,Dynamic,1> VectorType;
|
|
47
|
+
typedef SparseMatrix<Scalar,ColMajor> MatrixType;
|
|
48
|
+
|
|
49
|
+
public:
|
|
50
|
+
MatrixMarketIterator(const std::string &folder)
|
|
51
|
+
: m_sym(0), m_isvalid(false), m_matIsLoaded(false), m_hasRhs(false), m_hasrefX(false), m_folder(folder)
|
|
52
|
+
{
|
|
53
|
+
m_folder_id = opendir(folder.c_str());
|
|
54
|
+
if(m_folder_id)
|
|
55
|
+
Getnextvalidmatrix();
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
~MatrixMarketIterator()
|
|
59
|
+
{
|
|
60
|
+
if (m_folder_id) closedir(m_folder_id);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
inline MatrixMarketIterator& operator++()
|
|
64
|
+
{
|
|
65
|
+
m_matIsLoaded = false;
|
|
66
|
+
m_hasrefX = false;
|
|
67
|
+
m_hasRhs = false;
|
|
68
|
+
Getnextvalidmatrix();
|
|
69
|
+
return *this;
|
|
70
|
+
}
|
|
71
|
+
inline operator bool() const { return m_isvalid;}
|
|
72
|
+
|
|
73
|
+
/** Return the sparse matrix corresponding to the current file */
|
|
74
|
+
inline MatrixType& matrix()
|
|
75
|
+
{
|
|
76
|
+
// Read the matrix
|
|
77
|
+
if (m_matIsLoaded) return m_mat;
|
|
78
|
+
|
|
79
|
+
std::string matrix_file = m_folder + "/" + m_matname + ".mtx";
|
|
80
|
+
if ( !loadMarket(m_mat, matrix_file))
|
|
81
|
+
{
|
|
82
|
+
std::cerr << "Warning loadMarket failed when loading \"" << matrix_file << "\"" << std::endl;
|
|
83
|
+
m_matIsLoaded = false;
|
|
84
|
+
return m_mat;
|
|
85
|
+
}
|
|
86
|
+
m_matIsLoaded = true;
|
|
87
|
+
|
|
88
|
+
if (m_sym != NonSymmetric)
|
|
89
|
+
{
|
|
90
|
+
// Check whether we need to restore a full matrix:
|
|
91
|
+
RealScalar diag_norm = m_mat.diagonal().norm();
|
|
92
|
+
RealScalar lower_norm = m_mat.template triangularView<Lower>().norm();
|
|
93
|
+
RealScalar upper_norm = m_mat.template triangularView<Upper>().norm();
|
|
94
|
+
if(lower_norm>diag_norm && upper_norm==diag_norm)
|
|
95
|
+
{
|
|
96
|
+
// only the lower part is stored
|
|
97
|
+
MatrixType tmp(m_mat);
|
|
98
|
+
m_mat = tmp.template selfadjointView<Lower>();
|
|
99
|
+
}
|
|
100
|
+
else if(upper_norm>diag_norm && lower_norm==diag_norm)
|
|
101
|
+
{
|
|
102
|
+
// only the upper part is stored
|
|
103
|
+
MatrixType tmp(m_mat);
|
|
104
|
+
m_mat = tmp.template selfadjointView<Upper>();
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return m_mat;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/** Return the right hand side corresponding to the current matrix.
|
|
111
|
+
* If the rhs file is not provided, a random rhs is generated
|
|
112
|
+
*/
|
|
113
|
+
inline VectorType& rhs()
|
|
114
|
+
{
|
|
115
|
+
// Get the right hand side
|
|
116
|
+
if (m_hasRhs) return m_rhs;
|
|
117
|
+
|
|
118
|
+
std::string rhs_file;
|
|
119
|
+
rhs_file = m_folder + "/" + m_matname + "_b.mtx"; // The pattern is matname_b.mtx
|
|
120
|
+
m_hasRhs = Fileexists(rhs_file);
|
|
121
|
+
if (m_hasRhs)
|
|
122
|
+
{
|
|
123
|
+
m_rhs.resize(m_mat.cols());
|
|
124
|
+
m_hasRhs = loadMarketVector(m_rhs, rhs_file);
|
|
125
|
+
}
|
|
126
|
+
if (!m_hasRhs)
|
|
127
|
+
{
|
|
128
|
+
// Generate a random right hand side
|
|
129
|
+
if (!m_matIsLoaded) this->matrix();
|
|
130
|
+
m_refX.resize(m_mat.cols());
|
|
131
|
+
m_refX.setRandom();
|
|
132
|
+
m_rhs = m_mat * m_refX;
|
|
133
|
+
m_hasrefX = true;
|
|
134
|
+
m_hasRhs = true;
|
|
135
|
+
}
|
|
136
|
+
return m_rhs;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/** Return a reference solution
|
|
140
|
+
* If it is not provided and if the right hand side is not available
|
|
141
|
+
* then refX is randomly generated such that A*refX = b
|
|
142
|
+
* where A and b are the matrix and the rhs.
|
|
143
|
+
* Note that when a rhs is provided, refX is not available
|
|
144
|
+
*/
|
|
145
|
+
inline VectorType& refX()
|
|
146
|
+
{
|
|
147
|
+
// Check if a reference solution is provided
|
|
148
|
+
if (m_hasrefX) return m_refX;
|
|
149
|
+
|
|
150
|
+
std::string lhs_file;
|
|
151
|
+
lhs_file = m_folder + "/" + m_matname + "_x.mtx";
|
|
152
|
+
m_hasrefX = Fileexists(lhs_file);
|
|
153
|
+
if (m_hasrefX)
|
|
154
|
+
{
|
|
155
|
+
m_refX.resize(m_mat.cols());
|
|
156
|
+
m_hasrefX = loadMarketVector(m_refX, lhs_file);
|
|
157
|
+
}
|
|
158
|
+
else
|
|
159
|
+
m_refX.resize(0);
|
|
160
|
+
return m_refX;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
inline std::string& matname() { return m_matname; }
|
|
164
|
+
|
|
165
|
+
inline int sym() { return m_sym; }
|
|
166
|
+
|
|
167
|
+
bool hasRhs() {return m_hasRhs; }
|
|
168
|
+
bool hasrefX() {return m_hasrefX; }
|
|
169
|
+
bool isFolderValid() { return bool(m_folder_id); }
|
|
170
|
+
|
|
171
|
+
protected:
|
|
172
|
+
|
|
173
|
+
inline bool Fileexists(std::string file)
|
|
174
|
+
{
|
|
175
|
+
std::ifstream file_id(file.c_str());
|
|
176
|
+
if (!file_id.good() )
|
|
177
|
+
{
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
else
|
|
181
|
+
{
|
|
182
|
+
file_id.close();
|
|
183
|
+
return true;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
void Getnextvalidmatrix( )
|
|
188
|
+
{
|
|
189
|
+
m_isvalid = false;
|
|
190
|
+
// Here, we return with the next valid matrix in the folder
|
|
191
|
+
while ( (m_curs_id = readdir(m_folder_id)) != NULL) {
|
|
192
|
+
m_isvalid = false;
|
|
193
|
+
std::string curfile;
|
|
194
|
+
curfile = m_folder + "/" + m_curs_id->d_name;
|
|
195
|
+
// Discard if it is a folder
|
|
196
|
+
if (m_curs_id->d_type == DT_DIR) continue; //FIXME This may not be available on non BSD systems
|
|
197
|
+
// struct stat st_buf;
|
|
198
|
+
// stat (curfile.c_str(), &st_buf);
|
|
199
|
+
// if (S_ISDIR(st_buf.st_mode)) continue;
|
|
200
|
+
|
|
201
|
+
// Determine from the header if it is a matrix or a right hand side
|
|
202
|
+
bool isvector,iscomplex=false;
|
|
203
|
+
if(!getMarketHeader(curfile,m_sym,iscomplex,isvector)) continue;
|
|
204
|
+
if(isvector) continue;
|
|
205
|
+
if (!iscomplex)
|
|
206
|
+
{
|
|
207
|
+
if(internal::is_same<Scalar, std::complex<float> >::value || internal::is_same<Scalar, std::complex<double> >::value)
|
|
208
|
+
continue;
|
|
209
|
+
}
|
|
210
|
+
if (iscomplex)
|
|
211
|
+
{
|
|
212
|
+
if(internal::is_same<Scalar, float>::value || internal::is_same<Scalar, double>::value)
|
|
213
|
+
continue;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
// Get the matrix name
|
|
218
|
+
std::string filename = m_curs_id->d_name;
|
|
219
|
+
m_matname = filename.substr(0, filename.length()-4);
|
|
220
|
+
|
|
221
|
+
// Find if the matrix is SPD
|
|
222
|
+
size_t found = m_matname.find("SPD");
|
|
223
|
+
if( (found!=std::string::npos) && (m_sym != NonSymmetric) )
|
|
224
|
+
m_sym = SPD;
|
|
225
|
+
|
|
226
|
+
m_isvalid = true;
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
int m_sym; // Symmetry of the matrix
|
|
231
|
+
MatrixType m_mat; // Current matrix
|
|
232
|
+
VectorType m_rhs; // Current vector
|
|
233
|
+
VectorType m_refX; // The reference solution, if exists
|
|
234
|
+
std::string m_matname; // Matrix Name
|
|
235
|
+
bool m_isvalid;
|
|
236
|
+
bool m_matIsLoaded; // Determine if the matrix has already been loaded from the file
|
|
237
|
+
bool m_hasRhs; // The right hand side exists
|
|
238
|
+
bool m_hasrefX; // A reference solution is provided
|
|
239
|
+
std::string m_folder;
|
|
240
|
+
DIR * m_folder_id;
|
|
241
|
+
struct dirent *m_curs_id;
|
|
242
|
+
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
} // end namespace Eigen
|
|
246
|
+
|
|
247
|
+
#endif
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
// This file is part of Eigen, a lightweight C++ template library
|
|
2
|
+
// for linear algebra.
|
|
3
|
+
//
|
|
4
|
+
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
|
|
5
|
+
//
|
|
6
|
+
// This Source Code Form is subject to the terms of the Mozilla
|
|
7
|
+
// Public License v. 2.0. If a copy of the MPL was not distributed
|
|
8
|
+
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
9
|
+
|
|
10
|
+
#ifndef EIGEN_RANDOMSETTER_H
|
|
11
|
+
#define EIGEN_RANDOMSETTER_H
|
|
12
|
+
|
|
13
|
+
#if defined(EIGEN_GOOGLEHASH_SUPPORT)
|
|
14
|
+
// Ensure the ::google namespace exists, required for checking existence of
|
|
15
|
+
// ::google::dense_hash_map and ::google::sparse_hash_map.
|
|
16
|
+
namespace google {}
|
|
17
|
+
#endif
|
|
18
|
+
|
|
19
|
+
namespace Eigen {
|
|
20
|
+
|
|
21
|
+
/** Represents a std::map
|
|
22
|
+
*
|
|
23
|
+
* \see RandomSetter
|
|
24
|
+
*/
|
|
25
|
+
template<typename Scalar> struct StdMapTraits
|
|
26
|
+
{
|
|
27
|
+
typedef int KeyType;
|
|
28
|
+
typedef std::map<KeyType,Scalar> Type;
|
|
29
|
+
enum {
|
|
30
|
+
IsSorted = 1
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
static void setInvalidKey(Type&, const KeyType&) {}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
#ifdef EIGEN_UNORDERED_MAP_SUPPORT
|
|
37
|
+
/** Represents a std::unordered_map
|
|
38
|
+
*
|
|
39
|
+
* To use it you need to both define EIGEN_UNORDERED_MAP_SUPPORT and include the unordered_map header file
|
|
40
|
+
* yourself making sure that unordered_map is defined in the std namespace.
|
|
41
|
+
*
|
|
42
|
+
* For instance, with current version of gcc you can either enable C++0x standard (-std=c++0x) or do:
|
|
43
|
+
* \code
|
|
44
|
+
* #include <tr1/unordered_map>
|
|
45
|
+
* #define EIGEN_UNORDERED_MAP_SUPPORT
|
|
46
|
+
* namespace std {
|
|
47
|
+
* using std::tr1::unordered_map;
|
|
48
|
+
* }
|
|
49
|
+
* \endcode
|
|
50
|
+
*
|
|
51
|
+
* \see RandomSetter
|
|
52
|
+
*/
|
|
53
|
+
template<typename Scalar> struct StdUnorderedMapTraits
|
|
54
|
+
{
|
|
55
|
+
typedef int KeyType;
|
|
56
|
+
typedef std::unordered_map<KeyType,Scalar> Type;
|
|
57
|
+
enum {
|
|
58
|
+
IsSorted = 0
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
static void setInvalidKey(Type&, const KeyType&) {}
|
|
62
|
+
};
|
|
63
|
+
#endif // EIGEN_UNORDERED_MAP_SUPPORT
|
|
64
|
+
|
|
65
|
+
#if defined(EIGEN_GOOGLEHASH_SUPPORT)
|
|
66
|
+
|
|
67
|
+
namespace google {
|
|
68
|
+
|
|
69
|
+
// Namespace work-around, since sometimes dense_hash_map and sparse_hash_map
|
|
70
|
+
// are in the global namespace, and other times they are under ::google.
|
|
71
|
+
using namespace ::google;
|
|
72
|
+
|
|
73
|
+
template<typename KeyType, typename Scalar>
|
|
74
|
+
struct DenseHashMap {
|
|
75
|
+
typedef dense_hash_map<KeyType, Scalar> type;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
template<typename KeyType, typename Scalar>
|
|
79
|
+
struct SparseHashMap {
|
|
80
|
+
typedef sparse_hash_map<KeyType, Scalar> type;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
} // namespace google
|
|
84
|
+
|
|
85
|
+
/** Represents a google::dense_hash_map
|
|
86
|
+
*
|
|
87
|
+
* \see RandomSetter
|
|
88
|
+
*/
|
|
89
|
+
template<typename Scalar> struct GoogleDenseHashMapTraits
|
|
90
|
+
{
|
|
91
|
+
typedef int KeyType;
|
|
92
|
+
typedef typename google::DenseHashMap<KeyType,Scalar>::type Type;
|
|
93
|
+
enum {
|
|
94
|
+
IsSorted = 0
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
static void setInvalidKey(Type& map, const KeyType& k)
|
|
98
|
+
{ map.set_empty_key(k); }
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
/** Represents a google::sparse_hash_map
|
|
102
|
+
*
|
|
103
|
+
* \see RandomSetter
|
|
104
|
+
*/
|
|
105
|
+
template<typename Scalar> struct GoogleSparseHashMapTraits
|
|
106
|
+
{
|
|
107
|
+
typedef int KeyType;
|
|
108
|
+
typedef typename google::SparseHashMap<KeyType,Scalar>::type Type;
|
|
109
|
+
enum {
|
|
110
|
+
IsSorted = 0
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
static void setInvalidKey(Type&, const KeyType&) {}
|
|
114
|
+
};
|
|
115
|
+
#endif
|
|
116
|
+
|
|
117
|
+
/** \class RandomSetter
|
|
118
|
+
*
|
|
119
|
+
* \brief The RandomSetter is a wrapper object allowing to set/update a sparse matrix with random access
|
|
120
|
+
*
|
|
121
|
+
* \tparam SparseMatrixType the type of the sparse matrix we are updating
|
|
122
|
+
* \tparam MapTraits a traits class representing the map implementation used for the temporary sparse storage.
|
|
123
|
+
* Its default value depends on the system.
|
|
124
|
+
* \tparam OuterPacketBits defines the number of rows (or columns) manage by a single map object
|
|
125
|
+
* as a power of two exponent.
|
|
126
|
+
*
|
|
127
|
+
* This class temporarily represents a sparse matrix object using a generic map implementation allowing for
|
|
128
|
+
* efficient random access. The conversion from the compressed representation to a hash_map object is performed
|
|
129
|
+
* in the RandomSetter constructor, while the sparse matrix is updated back at destruction time. This strategy
|
|
130
|
+
* suggest the use of nested blocks as in this example:
|
|
131
|
+
*
|
|
132
|
+
* \code
|
|
133
|
+
* SparseMatrix<double> m(rows,cols);
|
|
134
|
+
* {
|
|
135
|
+
* RandomSetter<SparseMatrix<double> > w(m);
|
|
136
|
+
* // don't use m but w instead with read/write random access to the coefficients:
|
|
137
|
+
* for(;;)
|
|
138
|
+
* w(rand(),rand()) = rand;
|
|
139
|
+
* }
|
|
140
|
+
* // when w is deleted, the data are copied back to m
|
|
141
|
+
* // and m is ready to use.
|
|
142
|
+
* \endcode
|
|
143
|
+
*
|
|
144
|
+
* Since hash_map objects are not fully sorted, representing a full matrix as a single hash_map would
|
|
145
|
+
* involve a big and costly sort to update the compressed matrix back. To overcome this issue, a RandomSetter
|
|
146
|
+
* use multiple hash_map, each representing 2^OuterPacketBits columns or rows according to the storage order.
|
|
147
|
+
* To reach optimal performance, this value should be adjusted according to the average number of nonzeros
|
|
148
|
+
* per rows/columns.
|
|
149
|
+
*
|
|
150
|
+
* The possible values for the template parameter MapTraits are:
|
|
151
|
+
* - \b StdMapTraits: corresponds to std::map. (does not perform very well)
|
|
152
|
+
* - \b GnuHashMapTraits: corresponds to __gnu_cxx::hash_map (available only with GCC)
|
|
153
|
+
* - \b GoogleDenseHashMapTraits: corresponds to google::dense_hash_map (best efficiency, reasonable memory consumption)
|
|
154
|
+
* - \b GoogleSparseHashMapTraits: corresponds to google::sparse_hash_map (best memory consumption, relatively good performance)
|
|
155
|
+
*
|
|
156
|
+
* The default map implementation depends on the availability, and the preferred order is:
|
|
157
|
+
* GoogleSparseHashMapTraits, GnuHashMapTraits, and finally StdMapTraits.
|
|
158
|
+
*
|
|
159
|
+
* For performance and memory consumption reasons it is highly recommended to use one of
|
|
160
|
+
* Google's hash_map implementations. To enable the support for them, you must define
|
|
161
|
+
* EIGEN_GOOGLEHASH_SUPPORT. This will include both <google/dense_hash_map> and
|
|
162
|
+
* <google/sparse_hash_map> for you.
|
|
163
|
+
*
|
|
164
|
+
* \see https://github.com/sparsehash/sparsehash
|
|
165
|
+
*/
|
|
166
|
+
template<typename SparseMatrixType,
|
|
167
|
+
template <typename T> class MapTraits =
|
|
168
|
+
#if defined(EIGEN_GOOGLEHASH_SUPPORT)
|
|
169
|
+
GoogleDenseHashMapTraits
|
|
170
|
+
#elif defined(_HASH_MAP)
|
|
171
|
+
GnuHashMapTraits
|
|
172
|
+
#else
|
|
173
|
+
StdMapTraits
|
|
174
|
+
#endif
|
|
175
|
+
,int OuterPacketBits = 6>
|
|
176
|
+
class RandomSetter
|
|
177
|
+
{
|
|
178
|
+
typedef typename SparseMatrixType::Scalar Scalar;
|
|
179
|
+
typedef typename SparseMatrixType::StorageIndex StorageIndex;
|
|
180
|
+
|
|
181
|
+
struct ScalarWrapper
|
|
182
|
+
{
|
|
183
|
+
ScalarWrapper() : value(0) {}
|
|
184
|
+
Scalar value;
|
|
185
|
+
};
|
|
186
|
+
typedef typename MapTraits<ScalarWrapper>::KeyType KeyType;
|
|
187
|
+
typedef typename MapTraits<ScalarWrapper>::Type HashMapType;
|
|
188
|
+
static const int OuterPacketMask = (1 << OuterPacketBits) - 1;
|
|
189
|
+
enum {
|
|
190
|
+
SwapStorage = 1 - MapTraits<ScalarWrapper>::IsSorted,
|
|
191
|
+
TargetRowMajor = (SparseMatrixType::Flags & RowMajorBit) ? 1 : 0,
|
|
192
|
+
SetterRowMajor = SwapStorage ? 1-TargetRowMajor : TargetRowMajor
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
public:
|
|
196
|
+
|
|
197
|
+
/** Constructs a random setter object from the sparse matrix \a target
|
|
198
|
+
*
|
|
199
|
+
* Note that the initial value of \a target are imported. If you want to re-set
|
|
200
|
+
* a sparse matrix from scratch, then you must set it to zero first using the
|
|
201
|
+
* setZero() function.
|
|
202
|
+
*/
|
|
203
|
+
inline RandomSetter(SparseMatrixType& target)
|
|
204
|
+
: mp_target(&target)
|
|
205
|
+
{
|
|
206
|
+
const Index outerSize = SwapStorage ? target.innerSize() : target.outerSize();
|
|
207
|
+
const Index innerSize = SwapStorage ? target.outerSize() : target.innerSize();
|
|
208
|
+
m_outerPackets = outerSize >> OuterPacketBits;
|
|
209
|
+
if (outerSize&OuterPacketMask)
|
|
210
|
+
m_outerPackets += 1;
|
|
211
|
+
m_hashmaps = new HashMapType[m_outerPackets];
|
|
212
|
+
// compute number of bits needed to store inner indices
|
|
213
|
+
Index aux = innerSize - 1;
|
|
214
|
+
m_keyBitsOffset = 0;
|
|
215
|
+
while (aux)
|
|
216
|
+
{
|
|
217
|
+
++m_keyBitsOffset;
|
|
218
|
+
aux = aux >> 1;
|
|
219
|
+
}
|
|
220
|
+
KeyType ik = (1<<(OuterPacketBits+m_keyBitsOffset));
|
|
221
|
+
for (Index k=0; k<m_outerPackets; ++k)
|
|
222
|
+
MapTraits<ScalarWrapper>::setInvalidKey(m_hashmaps[k],ik);
|
|
223
|
+
|
|
224
|
+
// insert current coeffs
|
|
225
|
+
for (Index j=0; j<mp_target->outerSize(); ++j)
|
|
226
|
+
for (typename SparseMatrixType::InnerIterator it(*mp_target,j); it; ++it)
|
|
227
|
+
(*this)(TargetRowMajor?j:it.index(), TargetRowMajor?it.index():j) = it.value();
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/** Destructor updating back the sparse matrix target */
|
|
231
|
+
~RandomSetter()
|
|
232
|
+
{
|
|
233
|
+
KeyType keyBitsMask = (1<<m_keyBitsOffset)-1;
|
|
234
|
+
if (!SwapStorage) // also means the map is sorted
|
|
235
|
+
{
|
|
236
|
+
mp_target->setZero();
|
|
237
|
+
mp_target->makeCompressed();
|
|
238
|
+
mp_target->reserve(nonZeros());
|
|
239
|
+
Index prevOuter = -1;
|
|
240
|
+
for (Index k=0; k<m_outerPackets; ++k)
|
|
241
|
+
{
|
|
242
|
+
const Index outerOffset = (1<<OuterPacketBits) * k;
|
|
243
|
+
typename HashMapType::iterator end = m_hashmaps[k].end();
|
|
244
|
+
for (typename HashMapType::iterator it = m_hashmaps[k].begin(); it!=end; ++it)
|
|
245
|
+
{
|
|
246
|
+
const Index outer = (it->first >> m_keyBitsOffset) + outerOffset;
|
|
247
|
+
const Index inner = it->first & keyBitsMask;
|
|
248
|
+
if (prevOuter!=outer)
|
|
249
|
+
{
|
|
250
|
+
for (Index j=prevOuter+1;j<=outer;++j)
|
|
251
|
+
mp_target->startVec(j);
|
|
252
|
+
prevOuter = outer;
|
|
253
|
+
}
|
|
254
|
+
mp_target->insertBackByOuterInner(outer, inner) = it->second.value;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
mp_target->finalize();
|
|
258
|
+
}
|
|
259
|
+
else
|
|
260
|
+
{
|
|
261
|
+
VectorXi positions(mp_target->outerSize());
|
|
262
|
+
positions.setZero();
|
|
263
|
+
// pass 1
|
|
264
|
+
for (Index k=0; k<m_outerPackets; ++k)
|
|
265
|
+
{
|
|
266
|
+
typename HashMapType::iterator end = m_hashmaps[k].end();
|
|
267
|
+
for (typename HashMapType::iterator it = m_hashmaps[k].begin(); it!=end; ++it)
|
|
268
|
+
{
|
|
269
|
+
const Index outer = it->first & keyBitsMask;
|
|
270
|
+
++positions[outer];
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
// prefix sum
|
|
274
|
+
StorageIndex count = 0;
|
|
275
|
+
for (Index j=0; j<mp_target->outerSize(); ++j)
|
|
276
|
+
{
|
|
277
|
+
StorageIndex tmp = positions[j];
|
|
278
|
+
mp_target->outerIndexPtr()[j] = count;
|
|
279
|
+
positions[j] = count;
|
|
280
|
+
count += tmp;
|
|
281
|
+
}
|
|
282
|
+
mp_target->makeCompressed();
|
|
283
|
+
mp_target->outerIndexPtr()[mp_target->outerSize()] = count;
|
|
284
|
+
mp_target->resizeNonZeros(count);
|
|
285
|
+
// pass 2
|
|
286
|
+
for (Index k=0; k<m_outerPackets; ++k)
|
|
287
|
+
{
|
|
288
|
+
const Index outerOffset = (1<<OuterPacketBits) * k;
|
|
289
|
+
typename HashMapType::iterator end = m_hashmaps[k].end();
|
|
290
|
+
for (typename HashMapType::iterator it = m_hashmaps[k].begin(); it!=end; ++it)
|
|
291
|
+
{
|
|
292
|
+
const Index inner = (it->first >> m_keyBitsOffset) + outerOffset;
|
|
293
|
+
const Index outer = it->first & keyBitsMask;
|
|
294
|
+
// sorted insertion
|
|
295
|
+
// Note that we have to deal with at most 2^OuterPacketBits unsorted coefficients,
|
|
296
|
+
// moreover those 2^OuterPacketBits coeffs are likely to be sparse, an so only a
|
|
297
|
+
// small fraction of them have to be sorted, whence the following simple procedure:
|
|
298
|
+
Index posStart = mp_target->outerIndexPtr()[outer];
|
|
299
|
+
Index i = (positions[outer]++) - 1;
|
|
300
|
+
while ( (i >= posStart) && (mp_target->innerIndexPtr()[i] > inner) )
|
|
301
|
+
{
|
|
302
|
+
mp_target->valuePtr()[i+1] = mp_target->valuePtr()[i];
|
|
303
|
+
mp_target->innerIndexPtr()[i+1] = mp_target->innerIndexPtr()[i];
|
|
304
|
+
--i;
|
|
305
|
+
}
|
|
306
|
+
mp_target->innerIndexPtr()[i+1] = internal::convert_index<StorageIndex>(inner);
|
|
307
|
+
mp_target->valuePtr()[i+1] = it->second.value;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
delete[] m_hashmaps;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/** \returns a reference to the coefficient at given coordinates \a row, \a col */
|
|
315
|
+
Scalar& operator() (Index row, Index col)
|
|
316
|
+
{
|
|
317
|
+
const Index outer = SetterRowMajor ? row : col;
|
|
318
|
+
const Index inner = SetterRowMajor ? col : row;
|
|
319
|
+
const Index outerMajor = outer >> OuterPacketBits; // index of the packet/map
|
|
320
|
+
const Index outerMinor = outer & OuterPacketMask; // index of the inner vector in the packet
|
|
321
|
+
const KeyType key = internal::convert_index<KeyType>((outerMinor<<m_keyBitsOffset) | inner);
|
|
322
|
+
return m_hashmaps[outerMajor][key].value;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/** \returns the number of non zero coefficients
|
|
326
|
+
*
|
|
327
|
+
* \note According to the underlying map/hash_map implementation,
|
|
328
|
+
* this function might be quite expensive.
|
|
329
|
+
*/
|
|
330
|
+
Index nonZeros() const
|
|
331
|
+
{
|
|
332
|
+
Index nz = 0;
|
|
333
|
+
for (Index k=0; k<m_outerPackets; ++k)
|
|
334
|
+
nz += static_cast<Index>(m_hashmaps[k].size());
|
|
335
|
+
return nz;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
protected:
|
|
340
|
+
|
|
341
|
+
HashMapType* m_hashmaps;
|
|
342
|
+
SparseMatrixType* mp_target;
|
|
343
|
+
Index m_outerPackets;
|
|
344
|
+
unsigned char m_keyBitsOffset;
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
} // end namespace Eigen
|
|
348
|
+
|
|
349
|
+
#endif // EIGEN_RANDOMSETTER_H
|