tomoto 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,17 @@
|
|
1
|
+
#ifndef LAPACK_HEADER_INCLUDED
|
2
|
+
#define LAPACK_HEADER_INCLUDED
|
3
|
+
|
4
|
+
#ifndef LAPACK_GLOBAL
|
5
|
+
#if defined(LAPACK_GLOBAL_PATTERN_LC) || defined(ADD_)
|
6
|
+
#define LAPACK_GLOBAL(lcname,UCNAME) lcname##_
|
7
|
+
#elif defined(LAPACK_GLOBAL_PATTERN_UC) || defined(UPPER)
|
8
|
+
#define LAPACK_GLOBAL(lcname,UCNAME) UCNAME
|
9
|
+
#elif defined(LAPACK_GLOBAL_PATTERN_MC) || defined(NOCHANGE)
|
10
|
+
#define LAPACK_GLOBAL(lcname,UCNAME) lcname
|
11
|
+
#else
|
12
|
+
#define LAPACK_GLOBAL(lcname,UCNAME) lcname##_
|
13
|
+
#endif
|
14
|
+
#endif
|
15
|
+
|
16
|
+
#endif
|
17
|
+
|
@@ -0,0 +1,332 @@
|
|
1
|
+
|
2
|
+
/** \returns an expression of the coefficient wise product of \c *this and \a other
|
3
|
+
*
|
4
|
+
* \sa MatrixBase::cwiseProduct
|
5
|
+
*/
|
6
|
+
template<typename OtherDerived>
|
7
|
+
EIGEN_DEVICE_FUNC
|
8
|
+
EIGEN_STRONG_INLINE const EIGEN_CWISE_BINARY_RETURN_TYPE(Derived,OtherDerived,product)
|
9
|
+
operator*(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const
|
10
|
+
{
|
11
|
+
return EIGEN_CWISE_BINARY_RETURN_TYPE(Derived,OtherDerived,product)(derived(), other.derived());
|
12
|
+
}
|
13
|
+
|
14
|
+
/** \returns an expression of the coefficient wise quotient of \c *this and \a other
|
15
|
+
*
|
16
|
+
* \sa MatrixBase::cwiseQuotient
|
17
|
+
*/
|
18
|
+
template<typename OtherDerived>
|
19
|
+
EIGEN_DEVICE_FUNC
|
20
|
+
EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_quotient_op<Scalar,typename OtherDerived::Scalar>, const Derived, const OtherDerived>
|
21
|
+
operator/(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const
|
22
|
+
{
|
23
|
+
return CwiseBinaryOp<internal::scalar_quotient_op<Scalar,typename OtherDerived::Scalar>, const Derived, const OtherDerived>(derived(), other.derived());
|
24
|
+
}
|
25
|
+
|
26
|
+
/** \returns an expression of the coefficient-wise min of \c *this and \a other
|
27
|
+
*
|
28
|
+
* Example: \include Cwise_min.cpp
|
29
|
+
* Output: \verbinclude Cwise_min.out
|
30
|
+
*
|
31
|
+
* \sa max()
|
32
|
+
*/
|
33
|
+
EIGEN_MAKE_CWISE_BINARY_OP(min,min)
|
34
|
+
|
35
|
+
/** \returns an expression of the coefficient-wise min of \c *this and scalar \a other
|
36
|
+
*
|
37
|
+
* \sa max()
|
38
|
+
*/
|
39
|
+
EIGEN_DEVICE_FUNC
|
40
|
+
EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_min_op<Scalar,Scalar>, const Derived,
|
41
|
+
const CwiseNullaryOp<internal::scalar_constant_op<Scalar>, PlainObject> >
|
42
|
+
#ifdef EIGEN_PARSED_BY_DOXYGEN
|
43
|
+
min
|
44
|
+
#else
|
45
|
+
(min)
|
46
|
+
#endif
|
47
|
+
(const Scalar &other) const
|
48
|
+
{
|
49
|
+
return (min)(Derived::PlainObject::Constant(rows(), cols(), other));
|
50
|
+
}
|
51
|
+
|
52
|
+
/** \returns an expression of the coefficient-wise max of \c *this and \a other
|
53
|
+
*
|
54
|
+
* Example: \include Cwise_max.cpp
|
55
|
+
* Output: \verbinclude Cwise_max.out
|
56
|
+
*
|
57
|
+
* \sa min()
|
58
|
+
*/
|
59
|
+
EIGEN_MAKE_CWISE_BINARY_OP(max,max)
|
60
|
+
|
61
|
+
/** \returns an expression of the coefficient-wise max of \c *this and scalar \a other
|
62
|
+
*
|
63
|
+
* \sa min()
|
64
|
+
*/
|
65
|
+
EIGEN_DEVICE_FUNC
|
66
|
+
EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_max_op<Scalar,Scalar>, const Derived,
|
67
|
+
const CwiseNullaryOp<internal::scalar_constant_op<Scalar>, PlainObject> >
|
68
|
+
#ifdef EIGEN_PARSED_BY_DOXYGEN
|
69
|
+
max
|
70
|
+
#else
|
71
|
+
(max)
|
72
|
+
#endif
|
73
|
+
(const Scalar &other) const
|
74
|
+
{
|
75
|
+
return (max)(Derived::PlainObject::Constant(rows(), cols(), other));
|
76
|
+
}
|
77
|
+
|
78
|
+
/** \returns an expression of the coefficient-wise power of \c *this to the given array of \a exponents.
|
79
|
+
*
|
80
|
+
* This function computes the coefficient-wise power.
|
81
|
+
*
|
82
|
+
* Example: \include Cwise_array_power_array.cpp
|
83
|
+
* Output: \verbinclude Cwise_array_power_array.out
|
84
|
+
*/
|
85
|
+
EIGEN_MAKE_CWISE_BINARY_OP(pow,pow)
|
86
|
+
|
87
|
+
#ifndef EIGEN_PARSED_BY_DOXYGEN
|
88
|
+
EIGEN_MAKE_SCALAR_BINARY_OP_ONTHERIGHT(pow,pow)
|
89
|
+
#else
|
90
|
+
/** \returns an expression of the coefficients of \c *this rasied to the constant power \a exponent
|
91
|
+
*
|
92
|
+
* \tparam T is the scalar type of \a exponent. It must be compatible with the scalar type of the given expression.
|
93
|
+
*
|
94
|
+
* This function computes the coefficient-wise power. The function MatrixBase::pow() in the
|
95
|
+
* unsupported module MatrixFunctions computes the matrix power.
|
96
|
+
*
|
97
|
+
* Example: \include Cwise_pow.cpp
|
98
|
+
* Output: \verbinclude Cwise_pow.out
|
99
|
+
*
|
100
|
+
* \sa ArrayBase::pow(ArrayBase), square(), cube(), exp(), log()
|
101
|
+
*/
|
102
|
+
template<typename T>
|
103
|
+
const CwiseBinaryOp<internal::scalar_pow_op<Scalar,T>,Derived,Constant<T> > pow(const T& exponent) const;
|
104
|
+
#endif
|
105
|
+
|
106
|
+
|
107
|
+
// TODO code generating macros could be moved to Macros.h and could include generation of documentation
|
108
|
+
#define EIGEN_MAKE_CWISE_COMP_OP(OP, COMPARATOR) \
|
109
|
+
template<typename OtherDerived> \
|
110
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_cmp_op<Scalar, typename OtherDerived::Scalar, internal::cmp_ ## COMPARATOR>, const Derived, const OtherDerived> \
|
111
|
+
OP(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const \
|
112
|
+
{ \
|
113
|
+
return CwiseBinaryOp<internal::scalar_cmp_op<Scalar, typename OtherDerived::Scalar, internal::cmp_ ## COMPARATOR>, const Derived, const OtherDerived>(derived(), other.derived()); \
|
114
|
+
}\
|
115
|
+
typedef CwiseBinaryOp<internal::scalar_cmp_op<Scalar,Scalar, internal::cmp_ ## COMPARATOR>, const Derived, const CwiseNullaryOp<internal::scalar_constant_op<Scalar>, PlainObject> > Cmp ## COMPARATOR ## ReturnType; \
|
116
|
+
typedef CwiseBinaryOp<internal::scalar_cmp_op<Scalar,Scalar, internal::cmp_ ## COMPARATOR>, const CwiseNullaryOp<internal::scalar_constant_op<Scalar>, PlainObject>, const Derived > RCmp ## COMPARATOR ## ReturnType; \
|
117
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Cmp ## COMPARATOR ## ReturnType \
|
118
|
+
OP(const Scalar& s) const { \
|
119
|
+
return this->OP(Derived::PlainObject::Constant(rows(), cols(), s)); \
|
120
|
+
} \
|
121
|
+
EIGEN_DEVICE_FUNC friend EIGEN_STRONG_INLINE const RCmp ## COMPARATOR ## ReturnType \
|
122
|
+
OP(const Scalar& s, const Derived& d) { \
|
123
|
+
return Derived::PlainObject::Constant(d.rows(), d.cols(), s).OP(d); \
|
124
|
+
}
|
125
|
+
|
126
|
+
#define EIGEN_MAKE_CWISE_COMP_R_OP(OP, R_OP, RCOMPARATOR) \
|
127
|
+
template<typename OtherDerived> \
|
128
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_cmp_op<typename OtherDerived::Scalar, Scalar, internal::cmp_##RCOMPARATOR>, const OtherDerived, const Derived> \
|
129
|
+
OP(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const \
|
130
|
+
{ \
|
131
|
+
return CwiseBinaryOp<internal::scalar_cmp_op<typename OtherDerived::Scalar, Scalar, internal::cmp_##RCOMPARATOR>, const OtherDerived, const Derived>(other.derived(), derived()); \
|
132
|
+
} \
|
133
|
+
EIGEN_DEVICE_FUNC \
|
134
|
+
inline const RCmp ## RCOMPARATOR ## ReturnType \
|
135
|
+
OP(const Scalar& s) const { \
|
136
|
+
return Derived::PlainObject::Constant(rows(), cols(), s).R_OP(*this); \
|
137
|
+
} \
|
138
|
+
friend inline const Cmp ## RCOMPARATOR ## ReturnType \
|
139
|
+
OP(const Scalar& s, const Derived& d) { \
|
140
|
+
return d.R_OP(Derived::PlainObject::Constant(d.rows(), d.cols(), s)); \
|
141
|
+
}
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
/** \returns an expression of the coefficient-wise \< operator of *this and \a other
|
146
|
+
*
|
147
|
+
* Example: \include Cwise_less.cpp
|
148
|
+
* Output: \verbinclude Cwise_less.out
|
149
|
+
*
|
150
|
+
* \sa all(), any(), operator>(), operator<=()
|
151
|
+
*/
|
152
|
+
EIGEN_MAKE_CWISE_COMP_OP(operator<, LT)
|
153
|
+
|
154
|
+
/** \returns an expression of the coefficient-wise \<= operator of *this and \a other
|
155
|
+
*
|
156
|
+
* Example: \include Cwise_less_equal.cpp
|
157
|
+
* Output: \verbinclude Cwise_less_equal.out
|
158
|
+
*
|
159
|
+
* \sa all(), any(), operator>=(), operator<()
|
160
|
+
*/
|
161
|
+
EIGEN_MAKE_CWISE_COMP_OP(operator<=, LE)
|
162
|
+
|
163
|
+
/** \returns an expression of the coefficient-wise \> operator of *this and \a other
|
164
|
+
*
|
165
|
+
* Example: \include Cwise_greater.cpp
|
166
|
+
* Output: \verbinclude Cwise_greater.out
|
167
|
+
*
|
168
|
+
* \sa all(), any(), operator>=(), operator<()
|
169
|
+
*/
|
170
|
+
EIGEN_MAKE_CWISE_COMP_R_OP(operator>, operator<, LT)
|
171
|
+
|
172
|
+
/** \returns an expression of the coefficient-wise \>= operator of *this and \a other
|
173
|
+
*
|
174
|
+
* Example: \include Cwise_greater_equal.cpp
|
175
|
+
* Output: \verbinclude Cwise_greater_equal.out
|
176
|
+
*
|
177
|
+
* \sa all(), any(), operator>(), operator<=()
|
178
|
+
*/
|
179
|
+
EIGEN_MAKE_CWISE_COMP_R_OP(operator>=, operator<=, LE)
|
180
|
+
|
181
|
+
/** \returns an expression of the coefficient-wise == operator of *this and \a other
|
182
|
+
*
|
183
|
+
* \warning this performs an exact comparison, which is generally a bad idea with floating-point types.
|
184
|
+
* In order to check for equality between two vectors or matrices with floating-point coefficients, it is
|
185
|
+
* generally a far better idea to use a fuzzy comparison as provided by isApprox() and
|
186
|
+
* isMuchSmallerThan().
|
187
|
+
*
|
188
|
+
* Example: \include Cwise_equal_equal.cpp
|
189
|
+
* Output: \verbinclude Cwise_equal_equal.out
|
190
|
+
*
|
191
|
+
* \sa all(), any(), isApprox(), isMuchSmallerThan()
|
192
|
+
*/
|
193
|
+
EIGEN_MAKE_CWISE_COMP_OP(operator==, EQ)
|
194
|
+
|
195
|
+
/** \returns an expression of the coefficient-wise != operator of *this and \a other
|
196
|
+
*
|
197
|
+
* \warning this performs an exact comparison, which is generally a bad idea with floating-point types.
|
198
|
+
* In order to check for equality between two vectors or matrices with floating-point coefficients, it is
|
199
|
+
* generally a far better idea to use a fuzzy comparison as provided by isApprox() and
|
200
|
+
* isMuchSmallerThan().
|
201
|
+
*
|
202
|
+
* Example: \include Cwise_not_equal.cpp
|
203
|
+
* Output: \verbinclude Cwise_not_equal.out
|
204
|
+
*
|
205
|
+
* \sa all(), any(), isApprox(), isMuchSmallerThan()
|
206
|
+
*/
|
207
|
+
EIGEN_MAKE_CWISE_COMP_OP(operator!=, NEQ)
|
208
|
+
|
209
|
+
|
210
|
+
#undef EIGEN_MAKE_CWISE_COMP_OP
|
211
|
+
#undef EIGEN_MAKE_CWISE_COMP_R_OP
|
212
|
+
|
213
|
+
// scalar addition
|
214
|
+
#ifndef EIGEN_PARSED_BY_DOXYGEN
|
215
|
+
EIGEN_MAKE_SCALAR_BINARY_OP(operator+,sum)
|
216
|
+
#else
|
217
|
+
/** \returns an expression of \c *this with each coeff incremented by the constant \a scalar
|
218
|
+
*
|
219
|
+
* \tparam T is the scalar type of \a scalar. It must be compatible with the scalar type of the given expression.
|
220
|
+
*
|
221
|
+
* Example: \include Cwise_plus.cpp
|
222
|
+
* Output: \verbinclude Cwise_plus.out
|
223
|
+
*
|
224
|
+
* \sa operator+=(), operator-()
|
225
|
+
*/
|
226
|
+
template<typename T>
|
227
|
+
const CwiseBinaryOp<internal::scalar_sum_op<Scalar,T>,Derived,Constant<T> > operator+(const T& scalar) const;
|
228
|
+
/** \returns an expression of \a expr with each coeff incremented by the constant \a scalar
|
229
|
+
*
|
230
|
+
* \tparam T is the scalar type of \a scalar. It must be compatible with the scalar type of the given expression.
|
231
|
+
*/
|
232
|
+
template<typename T> friend
|
233
|
+
const CwiseBinaryOp<internal::scalar_sum_op<T,Scalar>,Constant<T>,Derived> operator+(const T& scalar, const StorageBaseType& expr);
|
234
|
+
#endif
|
235
|
+
|
236
|
+
#ifndef EIGEN_PARSED_BY_DOXYGEN
|
237
|
+
EIGEN_MAKE_SCALAR_BINARY_OP(operator-,difference)
|
238
|
+
#else
|
239
|
+
/** \returns an expression of \c *this with each coeff decremented by the constant \a scalar
|
240
|
+
*
|
241
|
+
* \tparam T is the scalar type of \a scalar. It must be compatible with the scalar type of the given expression.
|
242
|
+
*
|
243
|
+
* Example: \include Cwise_minus.cpp
|
244
|
+
* Output: \verbinclude Cwise_minus.out
|
245
|
+
*
|
246
|
+
* \sa operator+=(), operator-()
|
247
|
+
*/
|
248
|
+
template<typename T>
|
249
|
+
const CwiseBinaryOp<internal::scalar_difference_op<Scalar,T>,Derived,Constant<T> > operator-(const T& scalar) const;
|
250
|
+
/** \returns an expression of the constant matrix of value \a scalar decremented by the coefficients of \a expr
|
251
|
+
*
|
252
|
+
* \tparam T is the scalar type of \a scalar. It must be compatible with the scalar type of the given expression.
|
253
|
+
*/
|
254
|
+
template<typename T> friend
|
255
|
+
const CwiseBinaryOp<internal::scalar_difference_op<T,Scalar>,Constant<T>,Derived> operator-(const T& scalar, const StorageBaseType& expr);
|
256
|
+
#endif
|
257
|
+
|
258
|
+
|
259
|
+
#ifndef EIGEN_PARSED_BY_DOXYGEN
|
260
|
+
EIGEN_MAKE_SCALAR_BINARY_OP_ONTHELEFT(operator/,quotient)
|
261
|
+
#else
|
262
|
+
/**
|
263
|
+
* \brief Component-wise division of the scalar \a s by array elements of \a a.
|
264
|
+
*
|
265
|
+
* \tparam Scalar is the scalar type of \a x. It must be compatible with the scalar type of the given array expression (\c Derived::Scalar).
|
266
|
+
*/
|
267
|
+
template<typename T> friend
|
268
|
+
inline const CwiseBinaryOp<internal::scalar_quotient_op<T,Scalar>,Constant<T>,Derived>
|
269
|
+
operator/(const T& s,const StorageBaseType& a);
|
270
|
+
#endif
|
271
|
+
|
272
|
+
/** \returns an expression of the coefficient-wise ^ operator of *this and \a other
|
273
|
+
*
|
274
|
+
* \warning this operator is for expression of bool only.
|
275
|
+
*
|
276
|
+
* Example: \include Cwise_boolean_xor.cpp
|
277
|
+
* Output: \verbinclude Cwise_boolean_xor.out
|
278
|
+
*
|
279
|
+
* \sa operator&&(), select()
|
280
|
+
*/
|
281
|
+
template<typename OtherDerived>
|
282
|
+
EIGEN_DEVICE_FUNC
|
283
|
+
inline const CwiseBinaryOp<internal::scalar_boolean_xor_op, const Derived, const OtherDerived>
|
284
|
+
operator^(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const
|
285
|
+
{
|
286
|
+
EIGEN_STATIC_ASSERT((internal::is_same<bool,Scalar>::value && internal::is_same<bool,typename OtherDerived::Scalar>::value),
|
287
|
+
THIS_METHOD_IS_ONLY_FOR_EXPRESSIONS_OF_BOOL);
|
288
|
+
return CwiseBinaryOp<internal::scalar_boolean_xor_op, const Derived, const OtherDerived>(derived(),other.derived());
|
289
|
+
}
|
290
|
+
|
291
|
+
// NOTE disabled until we agree on argument order
|
292
|
+
#if 0
|
293
|
+
/** \cpp11 \returns an expression of the coefficient-wise polygamma function.
|
294
|
+
*
|
295
|
+
* \specialfunctions_module
|
296
|
+
*
|
297
|
+
* It returns the \a n -th derivative of the digamma(psi) evaluated at \c *this.
|
298
|
+
*
|
299
|
+
* \warning Be careful with the order of the parameters: x.polygamma(n) is equivalent to polygamma(n,x)
|
300
|
+
*
|
301
|
+
* \sa Eigen::polygamma()
|
302
|
+
*/
|
303
|
+
template<typename DerivedN>
|
304
|
+
inline const CwiseBinaryOp<internal::scalar_polygamma_op<Scalar>, const DerivedN, const Derived>
|
305
|
+
polygamma(const EIGEN_CURRENT_STORAGE_BASE_CLASS<DerivedN> &n) const
|
306
|
+
{
|
307
|
+
return CwiseBinaryOp<internal::scalar_polygamma_op<Scalar>, const DerivedN, const Derived>(n.derived(), this->derived());
|
308
|
+
}
|
309
|
+
#endif
|
310
|
+
|
311
|
+
/** \returns an expression of the coefficient-wise zeta function.
|
312
|
+
*
|
313
|
+
* \specialfunctions_module
|
314
|
+
*
|
315
|
+
* It returns the Riemann zeta function of two arguments \c *this and \a q:
|
316
|
+
*
|
317
|
+
* \param *this is the exposent, it must be > 1
|
318
|
+
* \param q is the shift, it must be > 0
|
319
|
+
*
|
320
|
+
* \note This function supports only float and double scalar types. To support other scalar types, the user has
|
321
|
+
* to provide implementations of zeta(T,T) for any scalar type T to be supported.
|
322
|
+
*
|
323
|
+
* This method is an alias for zeta(*this,q);
|
324
|
+
*
|
325
|
+
* \sa Eigen::zeta()
|
326
|
+
*/
|
327
|
+
template<typename DerivedQ>
|
328
|
+
inline const CwiseBinaryOp<internal::scalar_zeta_op<Scalar>, const Derived, const DerivedQ>
|
329
|
+
zeta(const EIGEN_CURRENT_STORAGE_BASE_CLASS<DerivedQ> &q) const
|
330
|
+
{
|
331
|
+
return CwiseBinaryOp<internal::scalar_zeta_op<Scalar>, const Derived, const DerivedQ>(this->derived(), q.derived());
|
332
|
+
}
|
@@ -0,0 +1,552 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
typedef CwiseUnaryOp<internal::scalar_abs_op<Scalar>, const Derived> AbsReturnType;
|
4
|
+
typedef CwiseUnaryOp<internal::scalar_arg_op<Scalar>, const Derived> ArgReturnType;
|
5
|
+
typedef CwiseUnaryOp<internal::scalar_abs2_op<Scalar>, const Derived> Abs2ReturnType;
|
6
|
+
typedef CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, const Derived> SqrtReturnType;
|
7
|
+
typedef CwiseUnaryOp<internal::scalar_rsqrt_op<Scalar>, const Derived> RsqrtReturnType;
|
8
|
+
typedef CwiseUnaryOp<internal::scalar_sign_op<Scalar>, const Derived> SignReturnType;
|
9
|
+
typedef CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const Derived> InverseReturnType;
|
10
|
+
typedef CwiseUnaryOp<internal::scalar_boolean_not_op<Scalar>, const Derived> BooleanNotReturnType;
|
11
|
+
|
12
|
+
typedef CwiseUnaryOp<internal::scalar_exp_op<Scalar>, const Derived> ExpReturnType;
|
13
|
+
typedef CwiseUnaryOp<internal::scalar_log_op<Scalar>, const Derived> LogReturnType;
|
14
|
+
typedef CwiseUnaryOp<internal::scalar_log1p_op<Scalar>, const Derived> Log1pReturnType;
|
15
|
+
typedef CwiseUnaryOp<internal::scalar_log10_op<Scalar>, const Derived> Log10ReturnType;
|
16
|
+
typedef CwiseUnaryOp<internal::scalar_cos_op<Scalar>, const Derived> CosReturnType;
|
17
|
+
typedef CwiseUnaryOp<internal::scalar_sin_op<Scalar>, const Derived> SinReturnType;
|
18
|
+
typedef CwiseUnaryOp<internal::scalar_tan_op<Scalar>, const Derived> TanReturnType;
|
19
|
+
typedef CwiseUnaryOp<internal::scalar_acos_op<Scalar>, const Derived> AcosReturnType;
|
20
|
+
typedef CwiseUnaryOp<internal::scalar_asin_op<Scalar>, const Derived> AsinReturnType;
|
21
|
+
typedef CwiseUnaryOp<internal::scalar_atan_op<Scalar>, const Derived> AtanReturnType;
|
22
|
+
typedef CwiseUnaryOp<internal::scalar_tanh_op<Scalar>, const Derived> TanhReturnType;
|
23
|
+
typedef CwiseUnaryOp<internal::scalar_sinh_op<Scalar>, const Derived> SinhReturnType;
|
24
|
+
typedef CwiseUnaryOp<internal::scalar_cosh_op<Scalar>, const Derived> CoshReturnType;
|
25
|
+
typedef CwiseUnaryOp<internal::scalar_square_op<Scalar>, const Derived> SquareReturnType;
|
26
|
+
typedef CwiseUnaryOp<internal::scalar_cube_op<Scalar>, const Derived> CubeReturnType;
|
27
|
+
typedef CwiseUnaryOp<internal::scalar_round_op<Scalar>, const Derived> RoundReturnType;
|
28
|
+
typedef CwiseUnaryOp<internal::scalar_floor_op<Scalar>, const Derived> FloorReturnType;
|
29
|
+
typedef CwiseUnaryOp<internal::scalar_ceil_op<Scalar>, const Derived> CeilReturnType;
|
30
|
+
typedef CwiseUnaryOp<internal::scalar_isnan_op<Scalar>, const Derived> IsNaNReturnType;
|
31
|
+
typedef CwiseUnaryOp<internal::scalar_isinf_op<Scalar>, const Derived> IsInfReturnType;
|
32
|
+
typedef CwiseUnaryOp<internal::scalar_isfinite_op<Scalar>, const Derived> IsFiniteReturnType;
|
33
|
+
|
34
|
+
/** \returns an expression of the coefficient-wise absolute value of \c *this
|
35
|
+
*
|
36
|
+
* Example: \include Cwise_abs.cpp
|
37
|
+
* Output: \verbinclude Cwise_abs.out
|
38
|
+
*
|
39
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_abs">Math functions</a>, abs2()
|
40
|
+
*/
|
41
|
+
EIGEN_DEVICE_FUNC
|
42
|
+
EIGEN_STRONG_INLINE const AbsReturnType
|
43
|
+
abs() const
|
44
|
+
{
|
45
|
+
return AbsReturnType(derived());
|
46
|
+
}
|
47
|
+
|
48
|
+
/** \returns an expression of the coefficient-wise phase angle of \c *this
|
49
|
+
*
|
50
|
+
* Example: \include Cwise_arg.cpp
|
51
|
+
* Output: \verbinclude Cwise_arg.out
|
52
|
+
*
|
53
|
+
* \sa abs()
|
54
|
+
*/
|
55
|
+
EIGEN_DEVICE_FUNC
|
56
|
+
EIGEN_STRONG_INLINE const ArgReturnType
|
57
|
+
arg() const
|
58
|
+
{
|
59
|
+
return ArgReturnType(derived());
|
60
|
+
}
|
61
|
+
|
62
|
+
/** \returns an expression of the coefficient-wise squared absolute value of \c *this
|
63
|
+
*
|
64
|
+
* Example: \include Cwise_abs2.cpp
|
65
|
+
* Output: \verbinclude Cwise_abs2.out
|
66
|
+
*
|
67
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_abs2">Math functions</a>, abs(), square()
|
68
|
+
*/
|
69
|
+
EIGEN_DEVICE_FUNC
|
70
|
+
EIGEN_STRONG_INLINE const Abs2ReturnType
|
71
|
+
abs2() const
|
72
|
+
{
|
73
|
+
return Abs2ReturnType(derived());
|
74
|
+
}
|
75
|
+
|
76
|
+
/** \returns an expression of the coefficient-wise exponential of *this.
|
77
|
+
*
|
78
|
+
* This function computes the coefficient-wise exponential. The function MatrixBase::exp() in the
|
79
|
+
* unsupported module MatrixFunctions computes the matrix exponential.
|
80
|
+
*
|
81
|
+
* Example: \include Cwise_exp.cpp
|
82
|
+
* Output: \verbinclude Cwise_exp.out
|
83
|
+
*
|
84
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_exp">Math functions</a>, pow(), log(), sin(), cos()
|
85
|
+
*/
|
86
|
+
EIGEN_DEVICE_FUNC
|
87
|
+
inline const ExpReturnType
|
88
|
+
exp() const
|
89
|
+
{
|
90
|
+
return ExpReturnType(derived());
|
91
|
+
}
|
92
|
+
|
93
|
+
/** \returns an expression of the coefficient-wise logarithm of *this.
|
94
|
+
*
|
95
|
+
* This function computes the coefficient-wise logarithm. The function MatrixBase::log() in the
|
96
|
+
* unsupported module MatrixFunctions computes the matrix logarithm.
|
97
|
+
*
|
98
|
+
* Example: \include Cwise_log.cpp
|
99
|
+
* Output: \verbinclude Cwise_log.out
|
100
|
+
*
|
101
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_log">Math functions</a>, exp()
|
102
|
+
*/
|
103
|
+
EIGEN_DEVICE_FUNC
|
104
|
+
inline const LogReturnType
|
105
|
+
log() const
|
106
|
+
{
|
107
|
+
return LogReturnType(derived());
|
108
|
+
}
|
109
|
+
|
110
|
+
/** \returns an expression of the coefficient-wise logarithm of 1 plus \c *this.
|
111
|
+
*
|
112
|
+
* In exact arithmetic, \c x.log() is equivalent to \c (x+1).log(),
|
113
|
+
* however, with finite precision, this function is much more accurate when \c x is close to zero.
|
114
|
+
*
|
115
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_log1p">Math functions</a>, log()
|
116
|
+
*/
|
117
|
+
EIGEN_DEVICE_FUNC
|
118
|
+
inline const Log1pReturnType
|
119
|
+
log1p() const
|
120
|
+
{
|
121
|
+
return Log1pReturnType(derived());
|
122
|
+
}
|
123
|
+
|
124
|
+
/** \returns an expression of the coefficient-wise base-10 logarithm of *this.
|
125
|
+
*
|
126
|
+
* This function computes the coefficient-wise base-10 logarithm.
|
127
|
+
*
|
128
|
+
* Example: \include Cwise_log10.cpp
|
129
|
+
* Output: \verbinclude Cwise_log10.out
|
130
|
+
*
|
131
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_log10">Math functions</a>, log()
|
132
|
+
*/
|
133
|
+
EIGEN_DEVICE_FUNC
|
134
|
+
inline const Log10ReturnType
|
135
|
+
log10() const
|
136
|
+
{
|
137
|
+
return Log10ReturnType(derived());
|
138
|
+
}
|
139
|
+
|
140
|
+
/** \returns an expression of the coefficient-wise square root of *this.
|
141
|
+
*
|
142
|
+
* This function computes the coefficient-wise square root. The function MatrixBase::sqrt() in the
|
143
|
+
* unsupported module MatrixFunctions computes the matrix square root.
|
144
|
+
*
|
145
|
+
* Example: \include Cwise_sqrt.cpp
|
146
|
+
* Output: \verbinclude Cwise_sqrt.out
|
147
|
+
*
|
148
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_sqrt">Math functions</a>, pow(), square()
|
149
|
+
*/
|
150
|
+
EIGEN_DEVICE_FUNC
|
151
|
+
inline const SqrtReturnType
|
152
|
+
sqrt() const
|
153
|
+
{
|
154
|
+
return SqrtReturnType(derived());
|
155
|
+
}
|
156
|
+
|
157
|
+
/** \returns an expression of the coefficient-wise inverse square root of *this.
|
158
|
+
*
|
159
|
+
* This function computes the coefficient-wise inverse square root.
|
160
|
+
*
|
161
|
+
* Example: \include Cwise_sqrt.cpp
|
162
|
+
* Output: \verbinclude Cwise_sqrt.out
|
163
|
+
*
|
164
|
+
* \sa pow(), square()
|
165
|
+
*/
|
166
|
+
EIGEN_DEVICE_FUNC
|
167
|
+
inline const RsqrtReturnType
|
168
|
+
rsqrt() const
|
169
|
+
{
|
170
|
+
return RsqrtReturnType(derived());
|
171
|
+
}
|
172
|
+
|
173
|
+
/** \returns an expression of the coefficient-wise signum of *this.
|
174
|
+
*
|
175
|
+
* This function computes the coefficient-wise signum.
|
176
|
+
*
|
177
|
+
* Example: \include Cwise_sign.cpp
|
178
|
+
* Output: \verbinclude Cwise_sign.out
|
179
|
+
*
|
180
|
+
* \sa pow(), square()
|
181
|
+
*/
|
182
|
+
EIGEN_DEVICE_FUNC
|
183
|
+
inline const SignReturnType
|
184
|
+
sign() const
|
185
|
+
{
|
186
|
+
return SignReturnType(derived());
|
187
|
+
}
|
188
|
+
|
189
|
+
|
190
|
+
/** \returns an expression of the coefficient-wise cosine of *this.
|
191
|
+
*
|
192
|
+
* This function computes the coefficient-wise cosine. The function MatrixBase::cos() in the
|
193
|
+
* unsupported module MatrixFunctions computes the matrix cosine.
|
194
|
+
*
|
195
|
+
* Example: \include Cwise_cos.cpp
|
196
|
+
* Output: \verbinclude Cwise_cos.out
|
197
|
+
*
|
198
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_cos">Math functions</a>, sin(), acos()
|
199
|
+
*/
|
200
|
+
EIGEN_DEVICE_FUNC
|
201
|
+
inline const CosReturnType
|
202
|
+
cos() const
|
203
|
+
{
|
204
|
+
return CosReturnType(derived());
|
205
|
+
}
|
206
|
+
|
207
|
+
|
208
|
+
/** \returns an expression of the coefficient-wise sine of *this.
|
209
|
+
*
|
210
|
+
* This function computes the coefficient-wise sine. The function MatrixBase::sin() in the
|
211
|
+
* unsupported module MatrixFunctions computes the matrix sine.
|
212
|
+
*
|
213
|
+
* Example: \include Cwise_sin.cpp
|
214
|
+
* Output: \verbinclude Cwise_sin.out
|
215
|
+
*
|
216
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_sin">Math functions</a>, cos(), asin()
|
217
|
+
*/
|
218
|
+
EIGEN_DEVICE_FUNC
|
219
|
+
inline const SinReturnType
|
220
|
+
sin() const
|
221
|
+
{
|
222
|
+
return SinReturnType(derived());
|
223
|
+
}
|
224
|
+
|
225
|
+
/** \returns an expression of the coefficient-wise tan of *this.
|
226
|
+
*
|
227
|
+
* Example: \include Cwise_tan.cpp
|
228
|
+
* Output: \verbinclude Cwise_tan.out
|
229
|
+
*
|
230
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_tan">Math functions</a>, cos(), sin()
|
231
|
+
*/
|
232
|
+
EIGEN_DEVICE_FUNC
|
233
|
+
inline const TanReturnType
|
234
|
+
tan() const
|
235
|
+
{
|
236
|
+
return TanReturnType(derived());
|
237
|
+
}
|
238
|
+
|
239
|
+
/** \returns an expression of the coefficient-wise arc tan of *this.
|
240
|
+
*
|
241
|
+
* Example: \include Cwise_atan.cpp
|
242
|
+
* Output: \verbinclude Cwise_atan.out
|
243
|
+
*
|
244
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_atan">Math functions</a>, tan(), asin(), acos()
|
245
|
+
*/
|
246
|
+
EIGEN_DEVICE_FUNC
|
247
|
+
inline const AtanReturnType
|
248
|
+
atan() const
|
249
|
+
{
|
250
|
+
return AtanReturnType(derived());
|
251
|
+
}
|
252
|
+
|
253
|
+
/** \returns an expression of the coefficient-wise arc cosine of *this.
|
254
|
+
*
|
255
|
+
* Example: \include Cwise_acos.cpp
|
256
|
+
* Output: \verbinclude Cwise_acos.out
|
257
|
+
*
|
258
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_acos">Math functions</a>, cos(), asin()
|
259
|
+
*/
|
260
|
+
EIGEN_DEVICE_FUNC
|
261
|
+
inline const AcosReturnType
|
262
|
+
acos() const
|
263
|
+
{
|
264
|
+
return AcosReturnType(derived());
|
265
|
+
}
|
266
|
+
|
267
|
+
/** \returns an expression of the coefficient-wise arc sine of *this.
|
268
|
+
*
|
269
|
+
* Example: \include Cwise_asin.cpp
|
270
|
+
* Output: \verbinclude Cwise_asin.out
|
271
|
+
*
|
272
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_asin">Math functions</a>, sin(), acos()
|
273
|
+
*/
|
274
|
+
EIGEN_DEVICE_FUNC
|
275
|
+
inline const AsinReturnType
|
276
|
+
asin() const
|
277
|
+
{
|
278
|
+
return AsinReturnType(derived());
|
279
|
+
}
|
280
|
+
|
281
|
+
/** \returns an expression of the coefficient-wise hyperbolic tan of *this.
|
282
|
+
*
|
283
|
+
* Example: \include Cwise_tanh.cpp
|
284
|
+
* Output: \verbinclude Cwise_tanh.out
|
285
|
+
*
|
286
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_tanh">Math functions</a>, tan(), sinh(), cosh()
|
287
|
+
*/
|
288
|
+
EIGEN_DEVICE_FUNC
|
289
|
+
inline const TanhReturnType
|
290
|
+
tanh() const
|
291
|
+
{
|
292
|
+
return TanhReturnType(derived());
|
293
|
+
}
|
294
|
+
|
295
|
+
/** \returns an expression of the coefficient-wise hyperbolic sin of *this.
|
296
|
+
*
|
297
|
+
* Example: \include Cwise_sinh.cpp
|
298
|
+
* Output: \verbinclude Cwise_sinh.out
|
299
|
+
*
|
300
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_sinh">Math functions</a>, sin(), tanh(), cosh()
|
301
|
+
*/
|
302
|
+
EIGEN_DEVICE_FUNC
|
303
|
+
inline const SinhReturnType
|
304
|
+
sinh() const
|
305
|
+
{
|
306
|
+
return SinhReturnType(derived());
|
307
|
+
}
|
308
|
+
|
309
|
+
/** \returns an expression of the coefficient-wise hyperbolic cos of *this.
|
310
|
+
*
|
311
|
+
* Example: \include Cwise_cosh.cpp
|
312
|
+
* Output: \verbinclude Cwise_cosh.out
|
313
|
+
*
|
314
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_cosh">Math functions</a>, tan(), sinh(), cosh()
|
315
|
+
*/
|
316
|
+
EIGEN_DEVICE_FUNC
|
317
|
+
inline const CoshReturnType
|
318
|
+
cosh() const
|
319
|
+
{
|
320
|
+
return CoshReturnType(derived());
|
321
|
+
}
|
322
|
+
|
323
|
+
/** \returns an expression of the coefficient-wise inverse of *this.
|
324
|
+
*
|
325
|
+
* Example: \include Cwise_inverse.cpp
|
326
|
+
* Output: \verbinclude Cwise_inverse.out
|
327
|
+
*
|
328
|
+
* \sa operator/(), operator*()
|
329
|
+
*/
|
330
|
+
EIGEN_DEVICE_FUNC
|
331
|
+
inline const InverseReturnType
|
332
|
+
inverse() const
|
333
|
+
{
|
334
|
+
return InverseReturnType(derived());
|
335
|
+
}
|
336
|
+
|
337
|
+
/** \returns an expression of the coefficient-wise square of *this.
|
338
|
+
*
|
339
|
+
* Example: \include Cwise_square.cpp
|
340
|
+
* Output: \verbinclude Cwise_square.out
|
341
|
+
*
|
342
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_squareE">Math functions</a>, abs2(), cube(), pow()
|
343
|
+
*/
|
344
|
+
EIGEN_DEVICE_FUNC
|
345
|
+
inline const SquareReturnType
|
346
|
+
square() const
|
347
|
+
{
|
348
|
+
return SquareReturnType(derived());
|
349
|
+
}
|
350
|
+
|
351
|
+
/** \returns an expression of the coefficient-wise cube of *this.
|
352
|
+
*
|
353
|
+
* Example: \include Cwise_cube.cpp
|
354
|
+
* Output: \verbinclude Cwise_cube.out
|
355
|
+
*
|
356
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_cube">Math functions</a>, square(), pow()
|
357
|
+
*/
|
358
|
+
EIGEN_DEVICE_FUNC
|
359
|
+
inline const CubeReturnType
|
360
|
+
cube() const
|
361
|
+
{
|
362
|
+
return CubeReturnType(derived());
|
363
|
+
}
|
364
|
+
|
365
|
+
/** \returns an expression of the coefficient-wise round of *this.
|
366
|
+
*
|
367
|
+
* Example: \include Cwise_round.cpp
|
368
|
+
* Output: \verbinclude Cwise_round.out
|
369
|
+
*
|
370
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_round">Math functions</a>, ceil(), floor()
|
371
|
+
*/
|
372
|
+
EIGEN_DEVICE_FUNC
|
373
|
+
inline const RoundReturnType
|
374
|
+
round() const
|
375
|
+
{
|
376
|
+
return RoundReturnType(derived());
|
377
|
+
}
|
378
|
+
|
379
|
+
/** \returns an expression of the coefficient-wise floor of *this.
|
380
|
+
*
|
381
|
+
* Example: \include Cwise_floor.cpp
|
382
|
+
* Output: \verbinclude Cwise_floor.out
|
383
|
+
*
|
384
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_floor">Math functions</a>, ceil(), round()
|
385
|
+
*/
|
386
|
+
EIGEN_DEVICE_FUNC
|
387
|
+
inline const FloorReturnType
|
388
|
+
floor() const
|
389
|
+
{
|
390
|
+
return FloorReturnType(derived());
|
391
|
+
}
|
392
|
+
|
393
|
+
/** \returns an expression of the coefficient-wise ceil of *this.
|
394
|
+
*
|
395
|
+
* Example: \include Cwise_ceil.cpp
|
396
|
+
* Output: \verbinclude Cwise_ceil.out
|
397
|
+
*
|
398
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_ceil">Math functions</a>, floor(), round()
|
399
|
+
*/
|
400
|
+
EIGEN_DEVICE_FUNC
|
401
|
+
inline const CeilReturnType
|
402
|
+
ceil() const
|
403
|
+
{
|
404
|
+
return CeilReturnType(derived());
|
405
|
+
}
|
406
|
+
|
407
|
+
/** \returns an expression of the coefficient-wise isnan of *this.
|
408
|
+
*
|
409
|
+
* Example: \include Cwise_isNaN.cpp
|
410
|
+
* Output: \verbinclude Cwise_isNaN.out
|
411
|
+
*
|
412
|
+
* \sa isfinite(), isinf()
|
413
|
+
*/
|
414
|
+
EIGEN_DEVICE_FUNC
|
415
|
+
inline const IsNaNReturnType
|
416
|
+
isNaN() const
|
417
|
+
{
|
418
|
+
return IsNaNReturnType(derived());
|
419
|
+
}
|
420
|
+
|
421
|
+
/** \returns an expression of the coefficient-wise isinf of *this.
|
422
|
+
*
|
423
|
+
* Example: \include Cwise_isInf.cpp
|
424
|
+
* Output: \verbinclude Cwise_isInf.out
|
425
|
+
*
|
426
|
+
* \sa isnan(), isfinite()
|
427
|
+
*/
|
428
|
+
EIGEN_DEVICE_FUNC
|
429
|
+
inline const IsInfReturnType
|
430
|
+
isInf() const
|
431
|
+
{
|
432
|
+
return IsInfReturnType(derived());
|
433
|
+
}
|
434
|
+
|
435
|
+
/** \returns an expression of the coefficient-wise isfinite of *this.
|
436
|
+
*
|
437
|
+
* Example: \include Cwise_isFinite.cpp
|
438
|
+
* Output: \verbinclude Cwise_isFinite.out
|
439
|
+
*
|
440
|
+
* \sa isnan(), isinf()
|
441
|
+
*/
|
442
|
+
EIGEN_DEVICE_FUNC
|
443
|
+
inline const IsFiniteReturnType
|
444
|
+
isFinite() const
|
445
|
+
{
|
446
|
+
return IsFiniteReturnType(derived());
|
447
|
+
}
|
448
|
+
|
449
|
+
/** \returns an expression of the coefficient-wise ! operator of *this
|
450
|
+
*
|
451
|
+
* \warning this operator is for expression of bool only.
|
452
|
+
*
|
453
|
+
* Example: \include Cwise_boolean_not.cpp
|
454
|
+
* Output: \verbinclude Cwise_boolean_not.out
|
455
|
+
*
|
456
|
+
* \sa operator!=()
|
457
|
+
*/
|
458
|
+
EIGEN_DEVICE_FUNC
|
459
|
+
inline const BooleanNotReturnType
|
460
|
+
operator!() const
|
461
|
+
{
|
462
|
+
EIGEN_STATIC_ASSERT((internal::is_same<bool,Scalar>::value),
|
463
|
+
THIS_METHOD_IS_ONLY_FOR_EXPRESSIONS_OF_BOOL);
|
464
|
+
return BooleanNotReturnType(derived());
|
465
|
+
}
|
466
|
+
|
467
|
+
|
468
|
+
// --- SpecialFunctions module ---
|
469
|
+
|
470
|
+
typedef CwiseUnaryOp<internal::scalar_lgamma_op<Scalar>, const Derived> LgammaReturnType;
|
471
|
+
typedef CwiseUnaryOp<internal::scalar_digamma_op<Scalar>, const Derived> DigammaReturnType;
|
472
|
+
typedef CwiseUnaryOp<internal::scalar_erf_op<Scalar>, const Derived> ErfReturnType;
|
473
|
+
typedef CwiseUnaryOp<internal::scalar_erfc_op<Scalar>, const Derived> ErfcReturnType;
|
474
|
+
|
475
|
+
/** \cpp11 \returns an expression of the coefficient-wise ln(|gamma(*this)|).
|
476
|
+
*
|
477
|
+
* \specialfunctions_module
|
478
|
+
*
|
479
|
+
* Example: \include Cwise_lgamma.cpp
|
480
|
+
* Output: \verbinclude Cwise_lgamma.out
|
481
|
+
*
|
482
|
+
* \note This function supports only float and double scalar types in c++11 mode. To support other scalar types,
|
483
|
+
* or float/double in non c++11 mode, the user has to provide implementations of lgamma(T) for any scalar
|
484
|
+
* type T to be supported.
|
485
|
+
*
|
486
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_lgamma">Math functions</a>, digamma()
|
487
|
+
*/
|
488
|
+
EIGEN_DEVICE_FUNC
|
489
|
+
inline const LgammaReturnType
|
490
|
+
lgamma() const
|
491
|
+
{
|
492
|
+
return LgammaReturnType(derived());
|
493
|
+
}
|
494
|
+
|
495
|
+
/** \returns an expression of the coefficient-wise digamma (psi, derivative of lgamma).
|
496
|
+
*
|
497
|
+
* \specialfunctions_module
|
498
|
+
*
|
499
|
+
* \note This function supports only float and double scalar types. To support other scalar types,
|
500
|
+
* the user has to provide implementations of digamma(T) for any scalar
|
501
|
+
* type T to be supported.
|
502
|
+
*
|
503
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_digamma">Math functions</a>, Eigen::digamma(), Eigen::polygamma(), lgamma()
|
504
|
+
*/
|
505
|
+
EIGEN_DEVICE_FUNC
|
506
|
+
inline const DigammaReturnType
|
507
|
+
digamma() const
|
508
|
+
{
|
509
|
+
return DigammaReturnType(derived());
|
510
|
+
}
|
511
|
+
|
512
|
+
/** \cpp11 \returns an expression of the coefficient-wise Gauss error
|
513
|
+
* function of *this.
|
514
|
+
*
|
515
|
+
* \specialfunctions_module
|
516
|
+
*
|
517
|
+
* Example: \include Cwise_erf.cpp
|
518
|
+
* Output: \verbinclude Cwise_erf.out
|
519
|
+
*
|
520
|
+
* \note This function supports only float and double scalar types in c++11 mode. To support other scalar types,
|
521
|
+
* or float/double in non c++11 mode, the user has to provide implementations of erf(T) for any scalar
|
522
|
+
* type T to be supported.
|
523
|
+
*
|
524
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_erf">Math functions</a>, erfc()
|
525
|
+
*/
|
526
|
+
EIGEN_DEVICE_FUNC
|
527
|
+
inline const ErfReturnType
|
528
|
+
erf() const
|
529
|
+
{
|
530
|
+
return ErfReturnType(derived());
|
531
|
+
}
|
532
|
+
|
533
|
+
/** \cpp11 \returns an expression of the coefficient-wise Complementary error
|
534
|
+
* function of *this.
|
535
|
+
*
|
536
|
+
* \specialfunctions_module
|
537
|
+
*
|
538
|
+
* Example: \include Cwise_erfc.cpp
|
539
|
+
* Output: \verbinclude Cwise_erfc.out
|
540
|
+
*
|
541
|
+
* \note This function supports only float and double scalar types in c++11 mode. To support other scalar types,
|
542
|
+
* or float/double in non c++11 mode, the user has to provide implementations of erfc(T) for any scalar
|
543
|
+
* type T to be supported.
|
544
|
+
*
|
545
|
+
* \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_erfc">Math functions</a>, erf()
|
546
|
+
*/
|
547
|
+
EIGEN_DEVICE_FUNC
|
548
|
+
inline const ErfcReturnType
|
549
|
+
erfc() const
|
550
|
+
{
|
551
|
+
return ErfcReturnType(derived());
|
552
|
+
}
|