tomoto 0.1.0
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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +3 -0
- data/LICENSE.txt +22 -0
- data/README.md +123 -0
- data/ext/tomoto/ext.cpp +245 -0
- data/ext/tomoto/extconf.rb +28 -0
- data/lib/tomoto.rb +12 -0
- data/lib/tomoto/ct.rb +11 -0
- data/lib/tomoto/hdp.rb +11 -0
- data/lib/tomoto/lda.rb +67 -0
- data/lib/tomoto/version.rb +3 -0
- data/vendor/EigenRand/EigenRand/Core.h +1139 -0
- data/vendor/EigenRand/EigenRand/Dists/Basic.h +111 -0
- data/vendor/EigenRand/EigenRand/Dists/Discrete.h +877 -0
- data/vendor/EigenRand/EigenRand/Dists/GammaPoisson.h +108 -0
- data/vendor/EigenRand/EigenRand/Dists/NormalExp.h +626 -0
- data/vendor/EigenRand/EigenRand/EigenRand +19 -0
- data/vendor/EigenRand/EigenRand/Macro.h +24 -0
- data/vendor/EigenRand/EigenRand/MorePacketMath.h +978 -0
- data/vendor/EigenRand/EigenRand/PacketFilter.h +286 -0
- data/vendor/EigenRand/EigenRand/PacketRandomEngine.h +624 -0
- data/vendor/EigenRand/EigenRand/RandUtils.h +413 -0
- data/vendor/EigenRand/EigenRand/doc.h +220 -0
- data/vendor/EigenRand/LICENSE +21 -0
- data/vendor/EigenRand/README.md +288 -0
- data/vendor/eigen/COPYING.BSD +26 -0
- data/vendor/eigen/COPYING.GPL +674 -0
- data/vendor/eigen/COPYING.LGPL +502 -0
- data/vendor/eigen/COPYING.MINPACK +52 -0
- data/vendor/eigen/COPYING.MPL2 +373 -0
- data/vendor/eigen/COPYING.README +18 -0
- data/vendor/eigen/Eigen/CMakeLists.txt +19 -0
- data/vendor/eigen/Eigen/Cholesky +46 -0
- data/vendor/eigen/Eigen/CholmodSupport +48 -0
- data/vendor/eigen/Eigen/Core +537 -0
- data/vendor/eigen/Eigen/Dense +7 -0
- data/vendor/eigen/Eigen/Eigen +2 -0
- data/vendor/eigen/Eigen/Eigenvalues +61 -0
- data/vendor/eigen/Eigen/Geometry +62 -0
- data/vendor/eigen/Eigen/Householder +30 -0
- data/vendor/eigen/Eigen/IterativeLinearSolvers +48 -0
- data/vendor/eigen/Eigen/Jacobi +33 -0
- data/vendor/eigen/Eigen/LU +50 -0
- data/vendor/eigen/Eigen/MetisSupport +35 -0
- data/vendor/eigen/Eigen/OrderingMethods +73 -0
- data/vendor/eigen/Eigen/PaStiXSupport +48 -0
- data/vendor/eigen/Eigen/PardisoSupport +35 -0
- data/vendor/eigen/Eigen/QR +51 -0
- data/vendor/eigen/Eigen/QtAlignedMalloc +40 -0
- data/vendor/eigen/Eigen/SPQRSupport +34 -0
- data/vendor/eigen/Eigen/SVD +51 -0
- data/vendor/eigen/Eigen/Sparse +36 -0
- data/vendor/eigen/Eigen/SparseCholesky +45 -0
- data/vendor/eigen/Eigen/SparseCore +69 -0
- data/vendor/eigen/Eigen/SparseLU +46 -0
- data/vendor/eigen/Eigen/SparseQR +37 -0
- data/vendor/eigen/Eigen/StdDeque +27 -0
- data/vendor/eigen/Eigen/StdList +26 -0
- data/vendor/eigen/Eigen/StdVector +27 -0
- data/vendor/eigen/Eigen/SuperLUSupport +64 -0
- data/vendor/eigen/Eigen/UmfPackSupport +40 -0
- data/vendor/eigen/Eigen/src/Cholesky/LDLT.h +673 -0
- data/vendor/eigen/Eigen/src/Cholesky/LLT.h +542 -0
- data/vendor/eigen/Eigen/src/Cholesky/LLT_LAPACKE.h +99 -0
- data/vendor/eigen/Eigen/src/CholmodSupport/CholmodSupport.h +639 -0
- data/vendor/eigen/Eigen/src/Core/Array.h +329 -0
- data/vendor/eigen/Eigen/src/Core/ArrayBase.h +226 -0
- data/vendor/eigen/Eigen/src/Core/ArrayWrapper.h +209 -0
- data/vendor/eigen/Eigen/src/Core/Assign.h +90 -0
- data/vendor/eigen/Eigen/src/Core/AssignEvaluator.h +935 -0
- data/vendor/eigen/Eigen/src/Core/Assign_MKL.h +178 -0
- data/vendor/eigen/Eigen/src/Core/BandMatrix.h +353 -0
- data/vendor/eigen/Eigen/src/Core/Block.h +452 -0
- data/vendor/eigen/Eigen/src/Core/BooleanRedux.h +164 -0
- data/vendor/eigen/Eigen/src/Core/CommaInitializer.h +160 -0
- data/vendor/eigen/Eigen/src/Core/ConditionEstimator.h +175 -0
- data/vendor/eigen/Eigen/src/Core/CoreEvaluators.h +1688 -0
- data/vendor/eigen/Eigen/src/Core/CoreIterators.h +127 -0
- data/vendor/eigen/Eigen/src/Core/CwiseBinaryOp.h +184 -0
- data/vendor/eigen/Eigen/src/Core/CwiseNullaryOp.h +866 -0
- data/vendor/eigen/Eigen/src/Core/CwiseTernaryOp.h +197 -0
- data/vendor/eigen/Eigen/src/Core/CwiseUnaryOp.h +103 -0
- data/vendor/eigen/Eigen/src/Core/CwiseUnaryView.h +128 -0
- data/vendor/eigen/Eigen/src/Core/DenseBase.h +611 -0
- data/vendor/eigen/Eigen/src/Core/DenseCoeffsBase.h +681 -0
- data/vendor/eigen/Eigen/src/Core/DenseStorage.h +570 -0
- data/vendor/eigen/Eigen/src/Core/Diagonal.h +260 -0
- data/vendor/eigen/Eigen/src/Core/DiagonalMatrix.h +343 -0
- data/vendor/eigen/Eigen/src/Core/DiagonalProduct.h +28 -0
- data/vendor/eigen/Eigen/src/Core/Dot.h +318 -0
- data/vendor/eigen/Eigen/src/Core/EigenBase.h +159 -0
- data/vendor/eigen/Eigen/src/Core/ForceAlignedAccess.h +146 -0
- data/vendor/eigen/Eigen/src/Core/Fuzzy.h +155 -0
- data/vendor/eigen/Eigen/src/Core/GeneralProduct.h +455 -0
- data/vendor/eigen/Eigen/src/Core/GenericPacketMath.h +593 -0
- data/vendor/eigen/Eigen/src/Core/GlobalFunctions.h +187 -0
- data/vendor/eigen/Eigen/src/Core/IO.h +225 -0
- data/vendor/eigen/Eigen/src/Core/Inverse.h +118 -0
- data/vendor/eigen/Eigen/src/Core/Map.h +171 -0
- data/vendor/eigen/Eigen/src/Core/MapBase.h +303 -0
- data/vendor/eigen/Eigen/src/Core/MathFunctions.h +1415 -0
- data/vendor/eigen/Eigen/src/Core/MathFunctionsImpl.h +101 -0
- data/vendor/eigen/Eigen/src/Core/Matrix.h +459 -0
- data/vendor/eigen/Eigen/src/Core/MatrixBase.h +529 -0
- data/vendor/eigen/Eigen/src/Core/NestByValue.h +110 -0
- data/vendor/eigen/Eigen/src/Core/NoAlias.h +108 -0
- data/vendor/eigen/Eigen/src/Core/NumTraits.h +248 -0
- data/vendor/eigen/Eigen/src/Core/PermutationMatrix.h +633 -0
- data/vendor/eigen/Eigen/src/Core/PlainObjectBase.h +1035 -0
- data/vendor/eigen/Eigen/src/Core/Product.h +186 -0
- data/vendor/eigen/Eigen/src/Core/ProductEvaluators.h +1112 -0
- data/vendor/eigen/Eigen/src/Core/Random.h +182 -0
- data/vendor/eigen/Eigen/src/Core/Redux.h +505 -0
- data/vendor/eigen/Eigen/src/Core/Ref.h +283 -0
- data/vendor/eigen/Eigen/src/Core/Replicate.h +142 -0
- data/vendor/eigen/Eigen/src/Core/ReturnByValue.h +117 -0
- data/vendor/eigen/Eigen/src/Core/Reverse.h +211 -0
- data/vendor/eigen/Eigen/src/Core/Select.h +162 -0
- data/vendor/eigen/Eigen/src/Core/SelfAdjointView.h +352 -0
- data/vendor/eigen/Eigen/src/Core/SelfCwiseBinaryOp.h +47 -0
- data/vendor/eigen/Eigen/src/Core/Solve.h +188 -0
- data/vendor/eigen/Eigen/src/Core/SolveTriangular.h +235 -0
- data/vendor/eigen/Eigen/src/Core/SolverBase.h +130 -0
- data/vendor/eigen/Eigen/src/Core/StableNorm.h +221 -0
- data/vendor/eigen/Eigen/src/Core/Stride.h +111 -0
- data/vendor/eigen/Eigen/src/Core/Swap.h +67 -0
- data/vendor/eigen/Eigen/src/Core/Transpose.h +403 -0
- data/vendor/eigen/Eigen/src/Core/Transpositions.h +407 -0
- data/vendor/eigen/Eigen/src/Core/TriangularMatrix.h +983 -0
- data/vendor/eigen/Eigen/src/Core/VectorBlock.h +96 -0
- data/vendor/eigen/Eigen/src/Core/VectorwiseOp.h +695 -0
- data/vendor/eigen/Eigen/src/Core/Visitor.h +273 -0
- data/vendor/eigen/Eigen/src/Core/arch/AVX/Complex.h +451 -0
- data/vendor/eigen/Eigen/src/Core/arch/AVX/MathFunctions.h +439 -0
- data/vendor/eigen/Eigen/src/Core/arch/AVX/PacketMath.h +637 -0
- data/vendor/eigen/Eigen/src/Core/arch/AVX/TypeCasting.h +51 -0
- data/vendor/eigen/Eigen/src/Core/arch/AVX512/MathFunctions.h +391 -0
- data/vendor/eigen/Eigen/src/Core/arch/AVX512/PacketMath.h +1316 -0
- data/vendor/eigen/Eigen/src/Core/arch/AltiVec/Complex.h +430 -0
- data/vendor/eigen/Eigen/src/Core/arch/AltiVec/MathFunctions.h +322 -0
- data/vendor/eigen/Eigen/src/Core/arch/AltiVec/PacketMath.h +1061 -0
- data/vendor/eigen/Eigen/src/Core/arch/CUDA/Complex.h +103 -0
- data/vendor/eigen/Eigen/src/Core/arch/CUDA/Half.h +674 -0
- data/vendor/eigen/Eigen/src/Core/arch/CUDA/MathFunctions.h +91 -0
- data/vendor/eigen/Eigen/src/Core/arch/CUDA/PacketMath.h +333 -0
- data/vendor/eigen/Eigen/src/Core/arch/CUDA/PacketMathHalf.h +1124 -0
- data/vendor/eigen/Eigen/src/Core/arch/CUDA/TypeCasting.h +212 -0
- data/vendor/eigen/Eigen/src/Core/arch/Default/ConjHelper.h +29 -0
- data/vendor/eigen/Eigen/src/Core/arch/Default/Settings.h +49 -0
- data/vendor/eigen/Eigen/src/Core/arch/NEON/Complex.h +490 -0
- data/vendor/eigen/Eigen/src/Core/arch/NEON/MathFunctions.h +91 -0
- data/vendor/eigen/Eigen/src/Core/arch/NEON/PacketMath.h +760 -0
- data/vendor/eigen/Eigen/src/Core/arch/SSE/Complex.h +471 -0
- data/vendor/eigen/Eigen/src/Core/arch/SSE/MathFunctions.h +562 -0
- data/vendor/eigen/Eigen/src/Core/arch/SSE/PacketMath.h +895 -0
- data/vendor/eigen/Eigen/src/Core/arch/SSE/TypeCasting.h +77 -0
- data/vendor/eigen/Eigen/src/Core/arch/ZVector/Complex.h +397 -0
- data/vendor/eigen/Eigen/src/Core/arch/ZVector/MathFunctions.h +137 -0
- data/vendor/eigen/Eigen/src/Core/arch/ZVector/PacketMath.h +945 -0
- data/vendor/eigen/Eigen/src/Core/functors/AssignmentFunctors.h +168 -0
- data/vendor/eigen/Eigen/src/Core/functors/BinaryFunctors.h +475 -0
- data/vendor/eigen/Eigen/src/Core/functors/NullaryFunctors.h +188 -0
- data/vendor/eigen/Eigen/src/Core/functors/StlFunctors.h +136 -0
- data/vendor/eigen/Eigen/src/Core/functors/TernaryFunctors.h +25 -0
- data/vendor/eigen/Eigen/src/Core/functors/UnaryFunctors.h +792 -0
- data/vendor/eigen/Eigen/src/Core/products/GeneralBlockPanelKernel.h +2156 -0
- data/vendor/eigen/Eigen/src/Core/products/GeneralMatrixMatrix.h +492 -0
- data/vendor/eigen/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h +311 -0
- data/vendor/eigen/Eigen/src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h +145 -0
- data/vendor/eigen/Eigen/src/Core/products/GeneralMatrixMatrix_BLAS.h +122 -0
- data/vendor/eigen/Eigen/src/Core/products/GeneralMatrixVector.h +619 -0
- data/vendor/eigen/Eigen/src/Core/products/GeneralMatrixVector_BLAS.h +136 -0
- data/vendor/eigen/Eigen/src/Core/products/Parallelizer.h +163 -0
- data/vendor/eigen/Eigen/src/Core/products/SelfadjointMatrixMatrix.h +521 -0
- data/vendor/eigen/Eigen/src/Core/products/SelfadjointMatrixMatrix_BLAS.h +287 -0
- data/vendor/eigen/Eigen/src/Core/products/SelfadjointMatrixVector.h +260 -0
- data/vendor/eigen/Eigen/src/Core/products/SelfadjointMatrixVector_BLAS.h +118 -0
- data/vendor/eigen/Eigen/src/Core/products/SelfadjointProduct.h +133 -0
- data/vendor/eigen/Eigen/src/Core/products/SelfadjointRank2Update.h +93 -0
- data/vendor/eigen/Eigen/src/Core/products/TriangularMatrixMatrix.h +466 -0
- data/vendor/eigen/Eigen/src/Core/products/TriangularMatrixMatrix_BLAS.h +315 -0
- data/vendor/eigen/Eigen/src/Core/products/TriangularMatrixVector.h +350 -0
- data/vendor/eigen/Eigen/src/Core/products/TriangularMatrixVector_BLAS.h +255 -0
- data/vendor/eigen/Eigen/src/Core/products/TriangularSolverMatrix.h +335 -0
- data/vendor/eigen/Eigen/src/Core/products/TriangularSolverMatrix_BLAS.h +163 -0
- data/vendor/eigen/Eigen/src/Core/products/TriangularSolverVector.h +145 -0
- data/vendor/eigen/Eigen/src/Core/util/BlasUtil.h +398 -0
- data/vendor/eigen/Eigen/src/Core/util/Constants.h +547 -0
- data/vendor/eigen/Eigen/src/Core/util/DisableStupidWarnings.h +83 -0
- data/vendor/eigen/Eigen/src/Core/util/ForwardDeclarations.h +302 -0
- data/vendor/eigen/Eigen/src/Core/util/MKL_support.h +130 -0
- data/vendor/eigen/Eigen/src/Core/util/Macros.h +1001 -0
- data/vendor/eigen/Eigen/src/Core/util/Memory.h +993 -0
- data/vendor/eigen/Eigen/src/Core/util/Meta.h +534 -0
- data/vendor/eigen/Eigen/src/Core/util/NonMPL2.h +3 -0
- data/vendor/eigen/Eigen/src/Core/util/ReenableStupidWarnings.h +27 -0
- data/vendor/eigen/Eigen/src/Core/util/StaticAssert.h +218 -0
- data/vendor/eigen/Eigen/src/Core/util/XprHelper.h +821 -0
- data/vendor/eigen/Eigen/src/Eigenvalues/ComplexEigenSolver.h +346 -0
- data/vendor/eigen/Eigen/src/Eigenvalues/ComplexSchur.h +459 -0
- data/vendor/eigen/Eigen/src/Eigenvalues/ComplexSchur_LAPACKE.h +91 -0
- data/vendor/eigen/Eigen/src/Eigenvalues/EigenSolver.h +622 -0
- data/vendor/eigen/Eigen/src/Eigenvalues/GeneralizedEigenSolver.h +418 -0
- data/vendor/eigen/Eigen/src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h +226 -0
- data/vendor/eigen/Eigen/src/Eigenvalues/HessenbergDecomposition.h +374 -0
- data/vendor/eigen/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h +158 -0
- data/vendor/eigen/Eigen/src/Eigenvalues/RealQZ.h +654 -0
- data/vendor/eigen/Eigen/src/Eigenvalues/RealSchur.h +546 -0
- data/vendor/eigen/Eigen/src/Eigenvalues/RealSchur_LAPACKE.h +77 -0
- data/vendor/eigen/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h +870 -0
- data/vendor/eigen/Eigen/src/Eigenvalues/SelfAdjointEigenSolver_LAPACKE.h +87 -0
- data/vendor/eigen/Eigen/src/Eigenvalues/Tridiagonalization.h +556 -0
- data/vendor/eigen/Eigen/src/Geometry/AlignedBox.h +392 -0
- data/vendor/eigen/Eigen/src/Geometry/AngleAxis.h +247 -0
- data/vendor/eigen/Eigen/src/Geometry/EulerAngles.h +114 -0
- data/vendor/eigen/Eigen/src/Geometry/Homogeneous.h +497 -0
- data/vendor/eigen/Eigen/src/Geometry/Hyperplane.h +282 -0
- data/vendor/eigen/Eigen/src/Geometry/OrthoMethods.h +234 -0
- data/vendor/eigen/Eigen/src/Geometry/ParametrizedLine.h +195 -0
- data/vendor/eigen/Eigen/src/Geometry/Quaternion.h +814 -0
- data/vendor/eigen/Eigen/src/Geometry/Rotation2D.h +199 -0
- data/vendor/eigen/Eigen/src/Geometry/RotationBase.h +206 -0
- data/vendor/eigen/Eigen/src/Geometry/Scaling.h +170 -0
- data/vendor/eigen/Eigen/src/Geometry/Transform.h +1542 -0
- data/vendor/eigen/Eigen/src/Geometry/Translation.h +208 -0
- data/vendor/eigen/Eigen/src/Geometry/Umeyama.h +166 -0
- data/vendor/eigen/Eigen/src/Geometry/arch/Geometry_SSE.h +161 -0
- data/vendor/eigen/Eigen/src/Householder/BlockHouseholder.h +103 -0
- data/vendor/eigen/Eigen/src/Householder/Householder.h +172 -0
- data/vendor/eigen/Eigen/src/Householder/HouseholderSequence.h +470 -0
- data/vendor/eigen/Eigen/src/IterativeLinearSolvers/BasicPreconditioners.h +226 -0
- data/vendor/eigen/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h +228 -0
- data/vendor/eigen/Eigen/src/IterativeLinearSolvers/ConjugateGradient.h +246 -0
- data/vendor/eigen/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h +400 -0
- data/vendor/eigen/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h +462 -0
- data/vendor/eigen/Eigen/src/IterativeLinearSolvers/IterativeSolverBase.h +394 -0
- data/vendor/eigen/Eigen/src/IterativeLinearSolvers/LeastSquareConjugateGradient.h +216 -0
- data/vendor/eigen/Eigen/src/IterativeLinearSolvers/SolveWithGuess.h +115 -0
- data/vendor/eigen/Eigen/src/Jacobi/Jacobi.h +462 -0
- data/vendor/eigen/Eigen/src/LU/Determinant.h +101 -0
- data/vendor/eigen/Eigen/src/LU/FullPivLU.h +891 -0
- data/vendor/eigen/Eigen/src/LU/InverseImpl.h +415 -0
- data/vendor/eigen/Eigen/src/LU/PartialPivLU.h +611 -0
- data/vendor/eigen/Eigen/src/LU/PartialPivLU_LAPACKE.h +83 -0
- data/vendor/eigen/Eigen/src/LU/arch/Inverse_SSE.h +338 -0
- data/vendor/eigen/Eigen/src/MetisSupport/MetisSupport.h +137 -0
- data/vendor/eigen/Eigen/src/OrderingMethods/Amd.h +445 -0
- data/vendor/eigen/Eigen/src/OrderingMethods/Eigen_Colamd.h +1843 -0
- data/vendor/eigen/Eigen/src/OrderingMethods/Ordering.h +157 -0
- data/vendor/eigen/Eigen/src/PaStiXSupport/PaStiXSupport.h +678 -0
- data/vendor/eigen/Eigen/src/PardisoSupport/PardisoSupport.h +543 -0
- data/vendor/eigen/Eigen/src/QR/ColPivHouseholderQR.h +653 -0
- data/vendor/eigen/Eigen/src/QR/ColPivHouseholderQR_LAPACKE.h +97 -0
- data/vendor/eigen/Eigen/src/QR/CompleteOrthogonalDecomposition.h +562 -0
- data/vendor/eigen/Eigen/src/QR/FullPivHouseholderQR.h +676 -0
- data/vendor/eigen/Eigen/src/QR/HouseholderQR.h +409 -0
- data/vendor/eigen/Eigen/src/QR/HouseholderQR_LAPACKE.h +68 -0
- data/vendor/eigen/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h +313 -0
- data/vendor/eigen/Eigen/src/SVD/BDCSVD.h +1246 -0
- data/vendor/eigen/Eigen/src/SVD/JacobiSVD.h +804 -0
- data/vendor/eigen/Eigen/src/SVD/JacobiSVD_LAPACKE.h +91 -0
- data/vendor/eigen/Eigen/src/SVD/SVDBase.h +315 -0
- data/vendor/eigen/Eigen/src/SVD/UpperBidiagonalization.h +414 -0
- data/vendor/eigen/Eigen/src/SparseCholesky/SimplicialCholesky.h +689 -0
- data/vendor/eigen/Eigen/src/SparseCholesky/SimplicialCholesky_impl.h +199 -0
- data/vendor/eigen/Eigen/src/SparseCore/AmbiVector.h +377 -0
- data/vendor/eigen/Eigen/src/SparseCore/CompressedStorage.h +258 -0
- data/vendor/eigen/Eigen/src/SparseCore/ConservativeSparseSparseProduct.h +352 -0
- data/vendor/eigen/Eigen/src/SparseCore/MappedSparseMatrix.h +67 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseAssign.h +216 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseBlock.h +603 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseColEtree.h +206 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseCompressedBase.h +341 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +726 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseCwiseUnaryOp.h +148 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseDenseProduct.h +320 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseDiagonalProduct.h +138 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseDot.h +98 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseFuzzy.h +29 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseMap.h +305 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseMatrix.h +1403 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseMatrixBase.h +405 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparsePermutation.h +178 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseProduct.h +169 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseRedux.h +49 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseRef.h +397 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseSelfAdjointView.h +656 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseSolverBase.h +124 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseSparseProductWithPruning.h +198 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseTranspose.h +92 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseTriangularView.h +189 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseUtil.h +178 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseVector.h +478 -0
- data/vendor/eigen/Eigen/src/SparseCore/SparseView.h +253 -0
- data/vendor/eigen/Eigen/src/SparseCore/TriangularSolver.h +315 -0
- data/vendor/eigen/Eigen/src/SparseLU/SparseLU.h +773 -0
- data/vendor/eigen/Eigen/src/SparseLU/SparseLUImpl.h +66 -0
- data/vendor/eigen/Eigen/src/SparseLU/SparseLU_Memory.h +226 -0
- data/vendor/eigen/Eigen/src/SparseLU/SparseLU_Structs.h +110 -0
- data/vendor/eigen/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +301 -0
- data/vendor/eigen/Eigen/src/SparseLU/SparseLU_Utils.h +80 -0
- data/vendor/eigen/Eigen/src/SparseLU/SparseLU_column_bmod.h +181 -0
- data/vendor/eigen/Eigen/src/SparseLU/SparseLU_column_dfs.h +179 -0
- data/vendor/eigen/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h +107 -0
- data/vendor/eigen/Eigen/src/SparseLU/SparseLU_gemm_kernel.h +280 -0
- data/vendor/eigen/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +126 -0
- data/vendor/eigen/Eigen/src/SparseLU/SparseLU_kernel_bmod.h +130 -0
- data/vendor/eigen/Eigen/src/SparseLU/SparseLU_panel_bmod.h +223 -0
- data/vendor/eigen/Eigen/src/SparseLU/SparseLU_panel_dfs.h +258 -0
- data/vendor/eigen/Eigen/src/SparseLU/SparseLU_pivotL.h +137 -0
- data/vendor/eigen/Eigen/src/SparseLU/SparseLU_pruneL.h +136 -0
- data/vendor/eigen/Eigen/src/SparseLU/SparseLU_relax_snode.h +83 -0
- data/vendor/eigen/Eigen/src/SparseQR/SparseQR.h +745 -0
- data/vendor/eigen/Eigen/src/StlSupport/StdDeque.h +126 -0
- data/vendor/eigen/Eigen/src/StlSupport/StdList.h +106 -0
- data/vendor/eigen/Eigen/src/StlSupport/StdVector.h +131 -0
- data/vendor/eigen/Eigen/src/StlSupport/details.h +84 -0
- data/vendor/eigen/Eigen/src/SuperLUSupport/SuperLUSupport.h +1027 -0
- data/vendor/eigen/Eigen/src/UmfPackSupport/UmfPackSupport.h +506 -0
- data/vendor/eigen/Eigen/src/misc/Image.h +82 -0
- data/vendor/eigen/Eigen/src/misc/Kernel.h +79 -0
- data/vendor/eigen/Eigen/src/misc/RealSvd2x2.h +55 -0
- data/vendor/eigen/Eigen/src/misc/blas.h +440 -0
- data/vendor/eigen/Eigen/src/misc/lapack.h +152 -0
- data/vendor/eigen/Eigen/src/misc/lapacke.h +16291 -0
- data/vendor/eigen/Eigen/src/misc/lapacke_mangling.h +17 -0
- data/vendor/eigen/Eigen/src/plugins/ArrayCwiseBinaryOps.h +332 -0
- data/vendor/eigen/Eigen/src/plugins/ArrayCwiseUnaryOps.h +552 -0
- data/vendor/eigen/Eigen/src/plugins/BlockMethods.h +1058 -0
- data/vendor/eigen/Eigen/src/plugins/CommonCwiseBinaryOps.h +115 -0
- data/vendor/eigen/Eigen/src/plugins/CommonCwiseUnaryOps.h +163 -0
- data/vendor/eigen/Eigen/src/plugins/MatrixCwiseBinaryOps.h +152 -0
- data/vendor/eigen/Eigen/src/plugins/MatrixCwiseUnaryOps.h +85 -0
- data/vendor/eigen/README.md +3 -0
- data/vendor/eigen/bench/README.txt +55 -0
- data/vendor/eigen/bench/btl/COPYING +340 -0
- data/vendor/eigen/bench/btl/README +154 -0
- data/vendor/eigen/bench/tensors/README +21 -0
- data/vendor/eigen/blas/README.txt +6 -0
- data/vendor/eigen/demos/mandelbrot/README +10 -0
- data/vendor/eigen/demos/mix_eigen_and_c/README +9 -0
- data/vendor/eigen/demos/opengl/README +13 -0
- data/vendor/eigen/unsupported/Eigen/CXX11/src/Tensor/README.md +1760 -0
- data/vendor/eigen/unsupported/README.txt +50 -0
- data/vendor/tomotopy/LICENSE +21 -0
- data/vendor/tomotopy/README.kr.rst +375 -0
- data/vendor/tomotopy/README.rst +382 -0
- data/vendor/tomotopy/src/Labeling/FoRelevance.cpp +362 -0
- data/vendor/tomotopy/src/Labeling/FoRelevance.h +88 -0
- data/vendor/tomotopy/src/Labeling/Labeler.h +50 -0
- data/vendor/tomotopy/src/TopicModel/CT.h +37 -0
- data/vendor/tomotopy/src/TopicModel/CTModel.cpp +13 -0
- data/vendor/tomotopy/src/TopicModel/CTModel.hpp +293 -0
- data/vendor/tomotopy/src/TopicModel/DMR.h +51 -0
- data/vendor/tomotopy/src/TopicModel/DMRModel.cpp +13 -0
- data/vendor/tomotopy/src/TopicModel/DMRModel.hpp +374 -0
- data/vendor/tomotopy/src/TopicModel/DT.h +65 -0
- data/vendor/tomotopy/src/TopicModel/DTM.h +22 -0
- data/vendor/tomotopy/src/TopicModel/DTModel.cpp +15 -0
- data/vendor/tomotopy/src/TopicModel/DTModel.hpp +572 -0
- data/vendor/tomotopy/src/TopicModel/GDMR.h +37 -0
- data/vendor/tomotopy/src/TopicModel/GDMRModel.cpp +14 -0
- data/vendor/tomotopy/src/TopicModel/GDMRModel.hpp +485 -0
- data/vendor/tomotopy/src/TopicModel/HDP.h +74 -0
- data/vendor/tomotopy/src/TopicModel/HDPModel.cpp +13 -0
- data/vendor/tomotopy/src/TopicModel/HDPModel.hpp +592 -0
- data/vendor/tomotopy/src/TopicModel/HLDA.h +40 -0
- data/vendor/tomotopy/src/TopicModel/HLDAModel.cpp +13 -0
- data/vendor/tomotopy/src/TopicModel/HLDAModel.hpp +681 -0
- data/vendor/tomotopy/src/TopicModel/HPA.h +27 -0
- data/vendor/tomotopy/src/TopicModel/HPAModel.cpp +21 -0
- data/vendor/tomotopy/src/TopicModel/HPAModel.hpp +588 -0
- data/vendor/tomotopy/src/TopicModel/LDA.h +144 -0
- data/vendor/tomotopy/src/TopicModel/LDACVB0Model.hpp +442 -0
- data/vendor/tomotopy/src/TopicModel/LDAModel.cpp +13 -0
- data/vendor/tomotopy/src/TopicModel/LDAModel.hpp +1058 -0
- data/vendor/tomotopy/src/TopicModel/LLDA.h +45 -0
- data/vendor/tomotopy/src/TopicModel/LLDAModel.cpp +13 -0
- data/vendor/tomotopy/src/TopicModel/LLDAModel.hpp +203 -0
- data/vendor/tomotopy/src/TopicModel/MGLDA.h +63 -0
- data/vendor/tomotopy/src/TopicModel/MGLDAModel.cpp +17 -0
- data/vendor/tomotopy/src/TopicModel/MGLDAModel.hpp +558 -0
- data/vendor/tomotopy/src/TopicModel/PA.h +43 -0
- data/vendor/tomotopy/src/TopicModel/PAModel.cpp +13 -0
- data/vendor/tomotopy/src/TopicModel/PAModel.hpp +467 -0
- data/vendor/tomotopy/src/TopicModel/PLDA.h +17 -0
- data/vendor/tomotopy/src/TopicModel/PLDAModel.cpp +13 -0
- data/vendor/tomotopy/src/TopicModel/PLDAModel.hpp +214 -0
- data/vendor/tomotopy/src/TopicModel/SLDA.h +54 -0
- data/vendor/tomotopy/src/TopicModel/SLDAModel.cpp +17 -0
- data/vendor/tomotopy/src/TopicModel/SLDAModel.hpp +456 -0
- data/vendor/tomotopy/src/TopicModel/TopicModel.hpp +692 -0
- data/vendor/tomotopy/src/Utils/AliasMethod.hpp +169 -0
- data/vendor/tomotopy/src/Utils/Dictionary.h +80 -0
- data/vendor/tomotopy/src/Utils/EigenAddonOps.hpp +181 -0
- data/vendor/tomotopy/src/Utils/LBFGS.h +202 -0
- data/vendor/tomotopy/src/Utils/LBFGS/LineSearchBacktracking.h +120 -0
- data/vendor/tomotopy/src/Utils/LBFGS/LineSearchBracketing.h +122 -0
- data/vendor/tomotopy/src/Utils/LBFGS/Param.h +213 -0
- data/vendor/tomotopy/src/Utils/LUT.hpp +82 -0
- data/vendor/tomotopy/src/Utils/MultiNormalDistribution.hpp +69 -0
- data/vendor/tomotopy/src/Utils/PolyaGamma.hpp +200 -0
- data/vendor/tomotopy/src/Utils/PolyaGammaHybrid.hpp +672 -0
- data/vendor/tomotopy/src/Utils/ThreadPool.hpp +150 -0
- data/vendor/tomotopy/src/Utils/Trie.hpp +220 -0
- data/vendor/tomotopy/src/Utils/TruncMultiNormal.hpp +94 -0
- data/vendor/tomotopy/src/Utils/Utils.hpp +337 -0
- data/vendor/tomotopy/src/Utils/avx_gamma.h +46 -0
- data/vendor/tomotopy/src/Utils/avx_mathfun.h +736 -0
- data/vendor/tomotopy/src/Utils/exception.h +28 -0
- data/vendor/tomotopy/src/Utils/math.h +281 -0
- data/vendor/tomotopy/src/Utils/rtnorm.hpp +2690 -0
- data/vendor/tomotopy/src/Utils/sample.hpp +192 -0
- data/vendor/tomotopy/src/Utils/serializer.hpp +695 -0
- data/vendor/tomotopy/src/Utils/slp.hpp +131 -0
- data/vendor/tomotopy/src/Utils/sse_gamma.h +48 -0
- data/vendor/tomotopy/src/Utils/sse_mathfun.h +710 -0
- data/vendor/tomotopy/src/Utils/text.hpp +49 -0
- data/vendor/tomotopy/src/Utils/tvector.hpp +543 -0
- metadata +531 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
#ifndef EIGEN_WARNINGS_DISABLED
|
|
2
|
+
#define EIGEN_WARNINGS_DISABLED
|
|
3
|
+
|
|
4
|
+
#ifdef _MSC_VER
|
|
5
|
+
// 4100 - unreferenced formal parameter (occurred e.g. in aligned_allocator::destroy(pointer p))
|
|
6
|
+
// 4101 - unreferenced local variable
|
|
7
|
+
// 4127 - conditional expression is constant
|
|
8
|
+
// 4181 - qualifier applied to reference type ignored
|
|
9
|
+
// 4211 - nonstandard extension used : redefined extern to static
|
|
10
|
+
// 4244 - 'argument' : conversion from 'type1' to 'type2', possible loss of data
|
|
11
|
+
// 4273 - QtAlignedMalloc, inconsistent DLL linkage
|
|
12
|
+
// 4324 - structure was padded due to declspec(align())
|
|
13
|
+
// 4503 - decorated name length exceeded, name was truncated
|
|
14
|
+
// 4512 - assignment operator could not be generated
|
|
15
|
+
// 4522 - 'class' : multiple assignment operators specified
|
|
16
|
+
// 4700 - uninitialized local variable 'xyz' used
|
|
17
|
+
// 4714 - function marked as __forceinline not inlined
|
|
18
|
+
// 4717 - 'function' : recursive on all control paths, function will cause runtime stack overflow
|
|
19
|
+
// 4800 - 'type' : forcing value to bool 'true' or 'false' (performance warning)
|
|
20
|
+
#ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
|
|
21
|
+
#pragma warning( push )
|
|
22
|
+
#endif
|
|
23
|
+
#pragma warning( disable : 4100 4101 4127 4181 4211 4244 4273 4324 4503 4512 4522 4700 4714 4717 4800)
|
|
24
|
+
|
|
25
|
+
#elif defined __INTEL_COMPILER
|
|
26
|
+
// 2196 - routine is both "inline" and "noinline" ("noinline" assumed)
|
|
27
|
+
// ICC 12 generates this warning even without any inline keyword, when defining class methods 'inline' i.e. inside of class body
|
|
28
|
+
// typedef that may be a reference type.
|
|
29
|
+
// 279 - controlling expression is constant
|
|
30
|
+
// ICC 12 generates this warning on assert(constant_expression_depending_on_template_params) and frankly this is a legitimate use case.
|
|
31
|
+
// 1684 - conversion from pointer to same-sized integral type (potential portability problem)
|
|
32
|
+
// 2259 - non-pointer conversion from "Eigen::Index={ptrdiff_t={long}}" to "int" may lose significant bits
|
|
33
|
+
#ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
|
|
34
|
+
#pragma warning push
|
|
35
|
+
#endif
|
|
36
|
+
#pragma warning disable 2196 279 1684 2259
|
|
37
|
+
|
|
38
|
+
#elif defined __clang__
|
|
39
|
+
// -Wconstant-logical-operand - warning: use of logical && with constant operand; switch to bitwise & or remove constant
|
|
40
|
+
// this is really a stupid warning as it warns on compile-time expressions involving enums
|
|
41
|
+
#ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
|
|
42
|
+
#pragma clang diagnostic push
|
|
43
|
+
#endif
|
|
44
|
+
#pragma clang diagnostic ignored "-Wconstant-logical-operand"
|
|
45
|
+
|
|
46
|
+
#elif defined __GNUC__
|
|
47
|
+
|
|
48
|
+
#if (!defined(EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS)) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
|
|
49
|
+
#pragma GCC diagnostic push
|
|
50
|
+
#endif
|
|
51
|
+
// g++ warns about local variables shadowing member functions, which is too strict
|
|
52
|
+
#pragma GCC diagnostic ignored "-Wshadow"
|
|
53
|
+
#if __GNUC__ == 4 && __GNUC_MINOR__ < 8
|
|
54
|
+
// Until g++-4.7 there are warnings when comparing unsigned int vs 0, even in templated functions:
|
|
55
|
+
#pragma GCC diagnostic ignored "-Wtype-limits"
|
|
56
|
+
#endif
|
|
57
|
+
#if __GNUC__>=6
|
|
58
|
+
#pragma GCC diagnostic ignored "-Wignored-attributes"
|
|
59
|
+
#endif
|
|
60
|
+
|
|
61
|
+
#endif
|
|
62
|
+
|
|
63
|
+
#if defined __NVCC__
|
|
64
|
+
// Disable the "statement is unreachable" message
|
|
65
|
+
#pragma diag_suppress code_is_unreachable
|
|
66
|
+
// Disable the "dynamic initialization in unreachable code" message
|
|
67
|
+
#pragma diag_suppress initialization_not_reachable
|
|
68
|
+
// Disable the "invalid error number" message that we get with older versions of nvcc
|
|
69
|
+
#pragma diag_suppress 1222
|
|
70
|
+
// Disable the "calling a __host__ function from a __host__ __device__ function is not allowed" messages (yes, there are many of them and they seem to change with every version of the compiler)
|
|
71
|
+
#pragma diag_suppress 2527
|
|
72
|
+
#pragma diag_suppress 2529
|
|
73
|
+
#pragma diag_suppress 2651
|
|
74
|
+
#pragma diag_suppress 2653
|
|
75
|
+
#pragma diag_suppress 2668
|
|
76
|
+
#pragma diag_suppress 2669
|
|
77
|
+
#pragma diag_suppress 2670
|
|
78
|
+
#pragma diag_suppress 2671
|
|
79
|
+
#pragma diag_suppress 2735
|
|
80
|
+
#pragma diag_suppress 2737
|
|
81
|
+
#endif
|
|
82
|
+
|
|
83
|
+
#endif // not EIGEN_WARNINGS_DISABLED
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
// This file is part of Eigen, a lightweight C++ template library
|
|
2
|
+
// for linear algebra.
|
|
3
|
+
//
|
|
4
|
+
// Copyright (C) 2007-2010 Benoit Jacob <jacob.benoit.1@gmail.com>
|
|
5
|
+
// Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@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_FORWARDDECLARATIONS_H
|
|
12
|
+
#define EIGEN_FORWARDDECLARATIONS_H
|
|
13
|
+
|
|
14
|
+
namespace Eigen {
|
|
15
|
+
namespace internal {
|
|
16
|
+
|
|
17
|
+
template<typename T> struct traits;
|
|
18
|
+
|
|
19
|
+
// here we say once and for all that traits<const T> == traits<T>
|
|
20
|
+
// When constness must affect traits, it has to be constness on template parameters on which T itself depends.
|
|
21
|
+
// For example, traits<Map<const T> > != traits<Map<T> >, but
|
|
22
|
+
// traits<const Map<T> > == traits<Map<T> >
|
|
23
|
+
template<typename T> struct traits<const T> : traits<T> {};
|
|
24
|
+
|
|
25
|
+
template<typename Derived> struct has_direct_access
|
|
26
|
+
{
|
|
27
|
+
enum { ret = (traits<Derived>::Flags & DirectAccessBit) ? 1 : 0 };
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
template<typename Derived> struct accessors_level
|
|
31
|
+
{
|
|
32
|
+
enum { has_direct_access = (traits<Derived>::Flags & DirectAccessBit) ? 1 : 0,
|
|
33
|
+
has_write_access = (traits<Derived>::Flags & LvalueBit) ? 1 : 0,
|
|
34
|
+
value = has_direct_access ? (has_write_access ? DirectWriteAccessors : DirectAccessors)
|
|
35
|
+
: (has_write_access ? WriteAccessors : ReadOnlyAccessors)
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
template<typename T> struct evaluator_traits;
|
|
40
|
+
|
|
41
|
+
template< typename T> struct evaluator;
|
|
42
|
+
|
|
43
|
+
} // end namespace internal
|
|
44
|
+
|
|
45
|
+
template<typename T> struct NumTraits;
|
|
46
|
+
|
|
47
|
+
template<typename Derived> struct EigenBase;
|
|
48
|
+
template<typename Derived> class DenseBase;
|
|
49
|
+
template<typename Derived> class PlainObjectBase;
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
template<typename Derived,
|
|
53
|
+
int Level = internal::accessors_level<Derived>::value >
|
|
54
|
+
class DenseCoeffsBase;
|
|
55
|
+
|
|
56
|
+
template<typename _Scalar, int _Rows, int _Cols,
|
|
57
|
+
int _Options = AutoAlign |
|
|
58
|
+
#if EIGEN_GNUC_AT(3,4)
|
|
59
|
+
// workaround a bug in at least gcc 3.4.6
|
|
60
|
+
// the innermost ?: ternary operator is misparsed. We write it slightly
|
|
61
|
+
// differently and this makes gcc 3.4.6 happy, but it's ugly.
|
|
62
|
+
// The error would only show up with EIGEN_DEFAULT_TO_ROW_MAJOR is defined
|
|
63
|
+
// (when EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION is RowMajor)
|
|
64
|
+
( (_Rows==1 && _Cols!=1) ? Eigen::RowMajor
|
|
65
|
+
: !(_Cols==1 && _Rows!=1) ? EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION
|
|
66
|
+
: Eigen::ColMajor ),
|
|
67
|
+
#else
|
|
68
|
+
( (_Rows==1 && _Cols!=1) ? Eigen::RowMajor
|
|
69
|
+
: (_Cols==1 && _Rows!=1) ? Eigen::ColMajor
|
|
70
|
+
: EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION ),
|
|
71
|
+
#endif
|
|
72
|
+
int _MaxRows = _Rows,
|
|
73
|
+
int _MaxCols = _Cols
|
|
74
|
+
> class Matrix;
|
|
75
|
+
|
|
76
|
+
template<typename Derived> class MatrixBase;
|
|
77
|
+
template<typename Derived> class ArrayBase;
|
|
78
|
+
|
|
79
|
+
template<typename ExpressionType, unsigned int Added, unsigned int Removed> class Flagged;
|
|
80
|
+
template<typename ExpressionType, template <typename> class StorageBase > class NoAlias;
|
|
81
|
+
template<typename ExpressionType> class NestByValue;
|
|
82
|
+
template<typename ExpressionType> class ForceAlignedAccess;
|
|
83
|
+
template<typename ExpressionType> class SwapWrapper;
|
|
84
|
+
|
|
85
|
+
template<typename XprType, int BlockRows=Dynamic, int BlockCols=Dynamic, bool InnerPanel = false> class Block;
|
|
86
|
+
|
|
87
|
+
template<typename MatrixType, int Size=Dynamic> class VectorBlock;
|
|
88
|
+
template<typename MatrixType> class Transpose;
|
|
89
|
+
template<typename MatrixType> class Conjugate;
|
|
90
|
+
template<typename NullaryOp, typename MatrixType> class CwiseNullaryOp;
|
|
91
|
+
template<typename UnaryOp, typename MatrixType> class CwiseUnaryOp;
|
|
92
|
+
template<typename ViewOp, typename MatrixType> class CwiseUnaryView;
|
|
93
|
+
template<typename BinaryOp, typename Lhs, typename Rhs> class CwiseBinaryOp;
|
|
94
|
+
template<typename TernaryOp, typename Arg1, typename Arg2, typename Arg3> class CwiseTernaryOp;
|
|
95
|
+
template<typename Decomposition, typename Rhstype> class Solve;
|
|
96
|
+
template<typename XprType> class Inverse;
|
|
97
|
+
|
|
98
|
+
template<typename Lhs, typename Rhs, int Option = DefaultProduct> class Product;
|
|
99
|
+
|
|
100
|
+
template<typename Derived> class DiagonalBase;
|
|
101
|
+
template<typename _DiagonalVectorType> class DiagonalWrapper;
|
|
102
|
+
template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime=SizeAtCompileTime> class DiagonalMatrix;
|
|
103
|
+
template<typename MatrixType, typename DiagonalType, int ProductOrder> class DiagonalProduct;
|
|
104
|
+
template<typename MatrixType, int Index = 0> class Diagonal;
|
|
105
|
+
template<int SizeAtCompileTime, int MaxSizeAtCompileTime = SizeAtCompileTime, typename IndexType=int> class PermutationMatrix;
|
|
106
|
+
template<int SizeAtCompileTime, int MaxSizeAtCompileTime = SizeAtCompileTime, typename IndexType=int> class Transpositions;
|
|
107
|
+
template<typename Derived> class PermutationBase;
|
|
108
|
+
template<typename Derived> class TranspositionsBase;
|
|
109
|
+
template<typename _IndicesType> class PermutationWrapper;
|
|
110
|
+
template<typename _IndicesType> class TranspositionsWrapper;
|
|
111
|
+
|
|
112
|
+
template<typename Derived,
|
|
113
|
+
int Level = internal::accessors_level<Derived>::has_write_access ? WriteAccessors : ReadOnlyAccessors
|
|
114
|
+
> class MapBase;
|
|
115
|
+
template<int InnerStrideAtCompileTime, int OuterStrideAtCompileTime> class Stride;
|
|
116
|
+
template<int Value = Dynamic> class InnerStride;
|
|
117
|
+
template<int Value = Dynamic> class OuterStride;
|
|
118
|
+
template<typename MatrixType, int MapOptions=Unaligned, typename StrideType = Stride<0,0> > class Map;
|
|
119
|
+
template<typename Derived> class RefBase;
|
|
120
|
+
template<typename PlainObjectType, int Options = 0,
|
|
121
|
+
typename StrideType = typename internal::conditional<PlainObjectType::IsVectorAtCompileTime,InnerStride<1>,OuterStride<> >::type > class Ref;
|
|
122
|
+
|
|
123
|
+
template<typename Derived> class TriangularBase;
|
|
124
|
+
template<typename MatrixType, unsigned int Mode> class TriangularView;
|
|
125
|
+
template<typename MatrixType, unsigned int Mode> class SelfAdjointView;
|
|
126
|
+
template<typename MatrixType> class SparseView;
|
|
127
|
+
template<typename ExpressionType> class WithFormat;
|
|
128
|
+
template<typename MatrixType> struct CommaInitializer;
|
|
129
|
+
template<typename Derived> class ReturnByValue;
|
|
130
|
+
template<typename ExpressionType> class ArrayWrapper;
|
|
131
|
+
template<typename ExpressionType> class MatrixWrapper;
|
|
132
|
+
template<typename Derived> class SolverBase;
|
|
133
|
+
template<typename XprType> class InnerIterator;
|
|
134
|
+
|
|
135
|
+
namespace internal {
|
|
136
|
+
template<typename DecompositionType> struct kernel_retval_base;
|
|
137
|
+
template<typename DecompositionType> struct kernel_retval;
|
|
138
|
+
template<typename DecompositionType> struct image_retval_base;
|
|
139
|
+
template<typename DecompositionType> struct image_retval;
|
|
140
|
+
} // end namespace internal
|
|
141
|
+
|
|
142
|
+
namespace internal {
|
|
143
|
+
template<typename _Scalar, int Rows=Dynamic, int Cols=Dynamic, int Supers=Dynamic, int Subs=Dynamic, int Options=0> class BandMatrix;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
namespace internal {
|
|
147
|
+
template<typename Lhs, typename Rhs> struct product_type;
|
|
148
|
+
|
|
149
|
+
template<bool> struct EnableIf;
|
|
150
|
+
|
|
151
|
+
/** \internal
|
|
152
|
+
* \class product_evaluator
|
|
153
|
+
* Products need their own evaluator with more template arguments allowing for
|
|
154
|
+
* easier partial template specializations.
|
|
155
|
+
*/
|
|
156
|
+
template< typename T,
|
|
157
|
+
int ProductTag = internal::product_type<typename T::Lhs,typename T::Rhs>::ret,
|
|
158
|
+
typename LhsShape = typename evaluator_traits<typename T::Lhs>::Shape,
|
|
159
|
+
typename RhsShape = typename evaluator_traits<typename T::Rhs>::Shape,
|
|
160
|
+
typename LhsScalar = typename traits<typename T::Lhs>::Scalar,
|
|
161
|
+
typename RhsScalar = typename traits<typename T::Rhs>::Scalar
|
|
162
|
+
> struct product_evaluator;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
template<typename Lhs, typename Rhs,
|
|
166
|
+
int ProductType = internal::product_type<Lhs,Rhs>::value>
|
|
167
|
+
struct ProductReturnType;
|
|
168
|
+
|
|
169
|
+
// this is a workaround for sun CC
|
|
170
|
+
template<typename Lhs, typename Rhs> struct LazyProductReturnType;
|
|
171
|
+
|
|
172
|
+
namespace internal {
|
|
173
|
+
|
|
174
|
+
// Provides scalar/packet-wise product and product with accumulation
|
|
175
|
+
// with optional conjugation of the arguments.
|
|
176
|
+
template<typename LhsScalar, typename RhsScalar, bool ConjLhs=false, bool ConjRhs=false> struct conj_helper;
|
|
177
|
+
|
|
178
|
+
template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_sum_op;
|
|
179
|
+
template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_difference_op;
|
|
180
|
+
template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_conj_product_op;
|
|
181
|
+
template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_min_op;
|
|
182
|
+
template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_max_op;
|
|
183
|
+
template<typename Scalar> struct scalar_opposite_op;
|
|
184
|
+
template<typename Scalar> struct scalar_conjugate_op;
|
|
185
|
+
template<typename Scalar> struct scalar_real_op;
|
|
186
|
+
template<typename Scalar> struct scalar_imag_op;
|
|
187
|
+
template<typename Scalar> struct scalar_abs_op;
|
|
188
|
+
template<typename Scalar> struct scalar_abs2_op;
|
|
189
|
+
template<typename Scalar> struct scalar_sqrt_op;
|
|
190
|
+
template<typename Scalar> struct scalar_rsqrt_op;
|
|
191
|
+
template<typename Scalar> struct scalar_exp_op;
|
|
192
|
+
template<typename Scalar> struct scalar_log_op;
|
|
193
|
+
template<typename Scalar> struct scalar_cos_op;
|
|
194
|
+
template<typename Scalar> struct scalar_sin_op;
|
|
195
|
+
template<typename Scalar> struct scalar_acos_op;
|
|
196
|
+
template<typename Scalar> struct scalar_asin_op;
|
|
197
|
+
template<typename Scalar> struct scalar_tan_op;
|
|
198
|
+
template<typename Scalar> struct scalar_inverse_op;
|
|
199
|
+
template<typename Scalar> struct scalar_square_op;
|
|
200
|
+
template<typename Scalar> struct scalar_cube_op;
|
|
201
|
+
template<typename Scalar, typename NewType> struct scalar_cast_op;
|
|
202
|
+
template<typename Scalar> struct scalar_random_op;
|
|
203
|
+
template<typename Scalar> struct scalar_constant_op;
|
|
204
|
+
template<typename Scalar> struct scalar_identity_op;
|
|
205
|
+
template<typename Scalar,bool iscpx> struct scalar_sign_op;
|
|
206
|
+
template<typename Scalar,typename ScalarExponent> struct scalar_pow_op;
|
|
207
|
+
template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_hypot_op;
|
|
208
|
+
template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_product_op;
|
|
209
|
+
template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_quotient_op;
|
|
210
|
+
|
|
211
|
+
// SpecialFunctions module
|
|
212
|
+
template<typename Scalar> struct scalar_lgamma_op;
|
|
213
|
+
template<typename Scalar> struct scalar_digamma_op;
|
|
214
|
+
template<typename Scalar> struct scalar_erf_op;
|
|
215
|
+
template<typename Scalar> struct scalar_erfc_op;
|
|
216
|
+
template<typename Scalar> struct scalar_igamma_op;
|
|
217
|
+
template<typename Scalar> struct scalar_igammac_op;
|
|
218
|
+
template<typename Scalar> struct scalar_zeta_op;
|
|
219
|
+
template<typename Scalar> struct scalar_betainc_op;
|
|
220
|
+
|
|
221
|
+
} // end namespace internal
|
|
222
|
+
|
|
223
|
+
struct IOFormat;
|
|
224
|
+
|
|
225
|
+
// Array module
|
|
226
|
+
template<typename _Scalar, int _Rows, int _Cols,
|
|
227
|
+
int _Options = AutoAlign |
|
|
228
|
+
#if EIGEN_GNUC_AT(3,4)
|
|
229
|
+
// workaround a bug in at least gcc 3.4.6
|
|
230
|
+
// the innermost ?: ternary operator is misparsed. We write it slightly
|
|
231
|
+
// differently and this makes gcc 3.4.6 happy, but it's ugly.
|
|
232
|
+
// The error would only show up with EIGEN_DEFAULT_TO_ROW_MAJOR is defined
|
|
233
|
+
// (when EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION is RowMajor)
|
|
234
|
+
( (_Rows==1 && _Cols!=1) ? Eigen::RowMajor
|
|
235
|
+
: !(_Cols==1 && _Rows!=1) ? EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION
|
|
236
|
+
: Eigen::ColMajor ),
|
|
237
|
+
#else
|
|
238
|
+
( (_Rows==1 && _Cols!=1) ? Eigen::RowMajor
|
|
239
|
+
: (_Cols==1 && _Rows!=1) ? Eigen::ColMajor
|
|
240
|
+
: EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION ),
|
|
241
|
+
#endif
|
|
242
|
+
int _MaxRows = _Rows, int _MaxCols = _Cols> class Array;
|
|
243
|
+
template<typename ConditionMatrixType, typename ThenMatrixType, typename ElseMatrixType> class Select;
|
|
244
|
+
template<typename MatrixType, typename BinaryOp, int Direction> class PartialReduxExpr;
|
|
245
|
+
template<typename ExpressionType, int Direction> class VectorwiseOp;
|
|
246
|
+
template<typename MatrixType,int RowFactor,int ColFactor> class Replicate;
|
|
247
|
+
template<typename MatrixType, int Direction = BothDirections> class Reverse;
|
|
248
|
+
|
|
249
|
+
template<typename MatrixType> class FullPivLU;
|
|
250
|
+
template<typename MatrixType> class PartialPivLU;
|
|
251
|
+
namespace internal {
|
|
252
|
+
template<typename MatrixType> struct inverse_impl;
|
|
253
|
+
}
|
|
254
|
+
template<typename MatrixType> class HouseholderQR;
|
|
255
|
+
template<typename MatrixType> class ColPivHouseholderQR;
|
|
256
|
+
template<typename MatrixType> class FullPivHouseholderQR;
|
|
257
|
+
template<typename MatrixType> class CompleteOrthogonalDecomposition;
|
|
258
|
+
template<typename MatrixType, int QRPreconditioner = ColPivHouseholderQRPreconditioner> class JacobiSVD;
|
|
259
|
+
template<typename MatrixType> class BDCSVD;
|
|
260
|
+
template<typename MatrixType, int UpLo = Lower> class LLT;
|
|
261
|
+
template<typename MatrixType, int UpLo = Lower> class LDLT;
|
|
262
|
+
template<typename VectorsType, typename CoeffsType, int Side=OnTheLeft> class HouseholderSequence;
|
|
263
|
+
template<typename Scalar> class JacobiRotation;
|
|
264
|
+
|
|
265
|
+
// Geometry module:
|
|
266
|
+
template<typename Derived, int _Dim> class RotationBase;
|
|
267
|
+
template<typename Lhs, typename Rhs> class Cross;
|
|
268
|
+
template<typename Derived> class QuaternionBase;
|
|
269
|
+
template<typename Scalar> class Rotation2D;
|
|
270
|
+
template<typename Scalar> class AngleAxis;
|
|
271
|
+
template<typename Scalar,int Dim> class Translation;
|
|
272
|
+
template<typename Scalar,int Dim> class AlignedBox;
|
|
273
|
+
template<typename Scalar, int Options = AutoAlign> class Quaternion;
|
|
274
|
+
template<typename Scalar,int Dim,int Mode,int _Options=AutoAlign> class Transform;
|
|
275
|
+
template <typename _Scalar, int _AmbientDim, int Options=AutoAlign> class ParametrizedLine;
|
|
276
|
+
template <typename _Scalar, int _AmbientDim, int Options=AutoAlign> class Hyperplane;
|
|
277
|
+
template<typename Scalar> class UniformScaling;
|
|
278
|
+
template<typename MatrixType,int Direction> class Homogeneous;
|
|
279
|
+
|
|
280
|
+
// Sparse module:
|
|
281
|
+
template<typename Derived> class SparseMatrixBase;
|
|
282
|
+
|
|
283
|
+
// MatrixFunctions module
|
|
284
|
+
template<typename Derived> struct MatrixExponentialReturnValue;
|
|
285
|
+
template<typename Derived> class MatrixFunctionReturnValue;
|
|
286
|
+
template<typename Derived> class MatrixSquareRootReturnValue;
|
|
287
|
+
template<typename Derived> class MatrixLogarithmReturnValue;
|
|
288
|
+
template<typename Derived> class MatrixPowerReturnValue;
|
|
289
|
+
template<typename Derived> class MatrixComplexPowerReturnValue;
|
|
290
|
+
|
|
291
|
+
namespace internal {
|
|
292
|
+
template <typename Scalar>
|
|
293
|
+
struct stem_function
|
|
294
|
+
{
|
|
295
|
+
typedef std::complex<typename NumTraits<Scalar>::Real> ComplexScalar;
|
|
296
|
+
typedef ComplexScalar type(ComplexScalar, int);
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
} // end namespace Eigen
|
|
301
|
+
|
|
302
|
+
#endif // EIGEN_FORWARDDECLARATIONS_H
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2011, Intel Corporation. All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
5
|
+
are permitted provided that the following conditions are met:
|
|
6
|
+
|
|
7
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
8
|
+
list of conditions and the following disclaimer.
|
|
9
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
10
|
+
this list of conditions and the following disclaimer in the documentation
|
|
11
|
+
and/or other materials provided with the distribution.
|
|
12
|
+
* Neither the name of Intel Corporation nor the names of its contributors may
|
|
13
|
+
be used to endorse or promote products derived from this software without
|
|
14
|
+
specific prior written permission.
|
|
15
|
+
|
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
17
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
18
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
19
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
20
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
21
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
22
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
23
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
24
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
25
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
26
|
+
|
|
27
|
+
********************************************************************************
|
|
28
|
+
* Content : Eigen bindings to Intel(R) MKL
|
|
29
|
+
* Include file with common MKL declarations
|
|
30
|
+
********************************************************************************
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
#ifndef EIGEN_MKL_SUPPORT_H
|
|
34
|
+
#define EIGEN_MKL_SUPPORT_H
|
|
35
|
+
|
|
36
|
+
#ifdef EIGEN_USE_MKL_ALL
|
|
37
|
+
#ifndef EIGEN_USE_BLAS
|
|
38
|
+
#define EIGEN_USE_BLAS
|
|
39
|
+
#endif
|
|
40
|
+
#ifndef EIGEN_USE_LAPACKE
|
|
41
|
+
#define EIGEN_USE_LAPACKE
|
|
42
|
+
#endif
|
|
43
|
+
#ifndef EIGEN_USE_MKL_VML
|
|
44
|
+
#define EIGEN_USE_MKL_VML
|
|
45
|
+
#endif
|
|
46
|
+
#endif
|
|
47
|
+
|
|
48
|
+
#ifdef EIGEN_USE_LAPACKE_STRICT
|
|
49
|
+
#define EIGEN_USE_LAPACKE
|
|
50
|
+
#endif
|
|
51
|
+
|
|
52
|
+
#if defined(EIGEN_USE_MKL_VML) && !defined(EIGEN_USE_MKL)
|
|
53
|
+
#define EIGEN_USE_MKL
|
|
54
|
+
#endif
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
#if defined EIGEN_USE_MKL
|
|
58
|
+
# include <mkl.h>
|
|
59
|
+
/*Check IMKL version for compatibility: < 10.3 is not usable with Eigen*/
|
|
60
|
+
# ifndef INTEL_MKL_VERSION
|
|
61
|
+
# undef EIGEN_USE_MKL /* INTEL_MKL_VERSION is not even defined on older versions */
|
|
62
|
+
# elif INTEL_MKL_VERSION < 100305 /* the intel-mkl-103-release-notes say this was when the lapacke.h interface was added*/
|
|
63
|
+
# undef EIGEN_USE_MKL
|
|
64
|
+
# endif
|
|
65
|
+
# ifndef EIGEN_USE_MKL
|
|
66
|
+
/*If the MKL version is too old, undef everything*/
|
|
67
|
+
# undef EIGEN_USE_MKL_ALL
|
|
68
|
+
# undef EIGEN_USE_LAPACKE
|
|
69
|
+
# undef EIGEN_USE_MKL_VML
|
|
70
|
+
# undef EIGEN_USE_LAPACKE_STRICT
|
|
71
|
+
# undef EIGEN_USE_LAPACKE
|
|
72
|
+
# endif
|
|
73
|
+
#endif
|
|
74
|
+
|
|
75
|
+
#if defined EIGEN_USE_MKL
|
|
76
|
+
|
|
77
|
+
#define EIGEN_MKL_VML_THRESHOLD 128
|
|
78
|
+
|
|
79
|
+
/* MKL_DOMAIN_BLAS, etc are defined only in 10.3 update 7 */
|
|
80
|
+
/* MKL_BLAS, etc are not defined in 11.2 */
|
|
81
|
+
#ifdef MKL_DOMAIN_ALL
|
|
82
|
+
#define EIGEN_MKL_DOMAIN_ALL MKL_DOMAIN_ALL
|
|
83
|
+
#else
|
|
84
|
+
#define EIGEN_MKL_DOMAIN_ALL MKL_ALL
|
|
85
|
+
#endif
|
|
86
|
+
|
|
87
|
+
#ifdef MKL_DOMAIN_BLAS
|
|
88
|
+
#define EIGEN_MKL_DOMAIN_BLAS MKL_DOMAIN_BLAS
|
|
89
|
+
#else
|
|
90
|
+
#define EIGEN_MKL_DOMAIN_BLAS MKL_BLAS
|
|
91
|
+
#endif
|
|
92
|
+
|
|
93
|
+
#ifdef MKL_DOMAIN_FFT
|
|
94
|
+
#define EIGEN_MKL_DOMAIN_FFT MKL_DOMAIN_FFT
|
|
95
|
+
#else
|
|
96
|
+
#define EIGEN_MKL_DOMAIN_FFT MKL_FFT
|
|
97
|
+
#endif
|
|
98
|
+
|
|
99
|
+
#ifdef MKL_DOMAIN_VML
|
|
100
|
+
#define EIGEN_MKL_DOMAIN_VML MKL_DOMAIN_VML
|
|
101
|
+
#else
|
|
102
|
+
#define EIGEN_MKL_DOMAIN_VML MKL_VML
|
|
103
|
+
#endif
|
|
104
|
+
|
|
105
|
+
#ifdef MKL_DOMAIN_PARDISO
|
|
106
|
+
#define EIGEN_MKL_DOMAIN_PARDISO MKL_DOMAIN_PARDISO
|
|
107
|
+
#else
|
|
108
|
+
#define EIGEN_MKL_DOMAIN_PARDISO MKL_PARDISO
|
|
109
|
+
#endif
|
|
110
|
+
#endif
|
|
111
|
+
|
|
112
|
+
#if defined(EIGEN_USE_BLAS) && !defined(EIGEN_USE_MKL)
|
|
113
|
+
#include "../../misc/blas.h"
|
|
114
|
+
#endif
|
|
115
|
+
|
|
116
|
+
namespace Eigen {
|
|
117
|
+
|
|
118
|
+
typedef std::complex<double> dcomplex;
|
|
119
|
+
typedef std::complex<float> scomplex;
|
|
120
|
+
|
|
121
|
+
#if defined(EIGEN_USE_MKL)
|
|
122
|
+
typedef MKL_INT BlasIndex;
|
|
123
|
+
#else
|
|
124
|
+
typedef int BlasIndex;
|
|
125
|
+
#endif
|
|
126
|
+
|
|
127
|
+
} // end namespace Eigen
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
#endif // EIGEN_MKL_SUPPORT_H
|