umappp 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +25 -0
- data/README.md +110 -0
- data/ext/umappp/extconf.rb +25 -0
- data/ext/umappp/numo.hpp +867 -0
- data/ext/umappp/umappp.cpp +225 -0
- data/lib/umappp/version.rb +5 -0
- data/lib/umappp.rb +41 -0
- data/vendor/Eigen/Cholesky +45 -0
- data/vendor/Eigen/CholmodSupport +48 -0
- data/vendor/Eigen/Core +384 -0
- data/vendor/Eigen/Dense +7 -0
- data/vendor/Eigen/Eigen +2 -0
- data/vendor/Eigen/Eigenvalues +60 -0
- data/vendor/Eigen/Geometry +59 -0
- data/vendor/Eigen/Householder +29 -0
- data/vendor/Eigen/IterativeLinearSolvers +48 -0
- data/vendor/Eigen/Jacobi +32 -0
- data/vendor/Eigen/KLUSupport +41 -0
- data/vendor/Eigen/LU +47 -0
- data/vendor/Eigen/MetisSupport +35 -0
- data/vendor/Eigen/OrderingMethods +70 -0
- data/vendor/Eigen/PaStiXSupport +49 -0
- data/vendor/Eigen/PardisoSupport +35 -0
- data/vendor/Eigen/QR +50 -0
- data/vendor/Eigen/QtAlignedMalloc +39 -0
- data/vendor/Eigen/SPQRSupport +34 -0
- data/vendor/Eigen/SVD +50 -0
- data/vendor/Eigen/Sparse +34 -0
- data/vendor/Eigen/SparseCholesky +37 -0
- data/vendor/Eigen/SparseCore +69 -0
- data/vendor/Eigen/SparseLU +50 -0
- data/vendor/Eigen/SparseQR +36 -0
- data/vendor/Eigen/StdDeque +27 -0
- data/vendor/Eigen/StdList +26 -0
- data/vendor/Eigen/StdVector +27 -0
- data/vendor/Eigen/SuperLUSupport +64 -0
- data/vendor/Eigen/UmfPackSupport +40 -0
- data/vendor/Eigen/src/Cholesky/LDLT.h +688 -0
- data/vendor/Eigen/src/Cholesky/LLT.h +558 -0
- data/vendor/Eigen/src/Cholesky/LLT_LAPACKE.h +99 -0
- data/vendor/Eigen/src/CholmodSupport/CholmodSupport.h +682 -0
- data/vendor/Eigen/src/Core/ArithmeticSequence.h +413 -0
- data/vendor/Eigen/src/Core/Array.h +417 -0
- data/vendor/Eigen/src/Core/ArrayBase.h +226 -0
- data/vendor/Eigen/src/Core/ArrayWrapper.h +209 -0
- data/vendor/Eigen/src/Core/Assign.h +90 -0
- data/vendor/Eigen/src/Core/AssignEvaluator.h +1010 -0
- data/vendor/Eigen/src/Core/Assign_MKL.h +178 -0
- data/vendor/Eigen/src/Core/BandMatrix.h +353 -0
- data/vendor/Eigen/src/Core/Block.h +448 -0
- data/vendor/Eigen/src/Core/BooleanRedux.h +162 -0
- data/vendor/Eigen/src/Core/CommaInitializer.h +164 -0
- data/vendor/Eigen/src/Core/ConditionEstimator.h +175 -0
- data/vendor/Eigen/src/Core/CoreEvaluators.h +1741 -0
- data/vendor/Eigen/src/Core/CoreIterators.h +132 -0
- data/vendor/Eigen/src/Core/CwiseBinaryOp.h +183 -0
- data/vendor/Eigen/src/Core/CwiseNullaryOp.h +1001 -0
- data/vendor/Eigen/src/Core/CwiseTernaryOp.h +197 -0
- data/vendor/Eigen/src/Core/CwiseUnaryOp.h +103 -0
- data/vendor/Eigen/src/Core/CwiseUnaryView.h +132 -0
- data/vendor/Eigen/src/Core/DenseBase.h +701 -0
- data/vendor/Eigen/src/Core/DenseCoeffsBase.h +685 -0
- data/vendor/Eigen/src/Core/DenseStorage.h +652 -0
- data/vendor/Eigen/src/Core/Diagonal.h +258 -0
- data/vendor/Eigen/src/Core/DiagonalMatrix.h +391 -0
- data/vendor/Eigen/src/Core/DiagonalProduct.h +28 -0
- data/vendor/Eigen/src/Core/Dot.h +318 -0
- data/vendor/Eigen/src/Core/EigenBase.h +160 -0
- data/vendor/Eigen/src/Core/ForceAlignedAccess.h +150 -0
- data/vendor/Eigen/src/Core/Fuzzy.h +155 -0
- data/vendor/Eigen/src/Core/GeneralProduct.h +465 -0
- data/vendor/Eigen/src/Core/GenericPacketMath.h +1040 -0
- data/vendor/Eigen/src/Core/GlobalFunctions.h +194 -0
- data/vendor/Eigen/src/Core/IO.h +258 -0
- data/vendor/Eigen/src/Core/IndexedView.h +237 -0
- data/vendor/Eigen/src/Core/Inverse.h +117 -0
- data/vendor/Eigen/src/Core/Map.h +171 -0
- data/vendor/Eigen/src/Core/MapBase.h +310 -0
- data/vendor/Eigen/src/Core/MathFunctions.h +2057 -0
- data/vendor/Eigen/src/Core/MathFunctionsImpl.h +200 -0
- data/vendor/Eigen/src/Core/Matrix.h +565 -0
- data/vendor/Eigen/src/Core/MatrixBase.h +547 -0
- data/vendor/Eigen/src/Core/NestByValue.h +85 -0
- data/vendor/Eigen/src/Core/NoAlias.h +109 -0
- data/vendor/Eigen/src/Core/NumTraits.h +335 -0
- data/vendor/Eigen/src/Core/PartialReduxEvaluator.h +232 -0
- data/vendor/Eigen/src/Core/PermutationMatrix.h +605 -0
- data/vendor/Eigen/src/Core/PlainObjectBase.h +1128 -0
- data/vendor/Eigen/src/Core/Product.h +191 -0
- data/vendor/Eigen/src/Core/ProductEvaluators.h +1179 -0
- data/vendor/Eigen/src/Core/Random.h +218 -0
- data/vendor/Eigen/src/Core/Redux.h +515 -0
- data/vendor/Eigen/src/Core/Ref.h +381 -0
- data/vendor/Eigen/src/Core/Replicate.h +142 -0
- data/vendor/Eigen/src/Core/Reshaped.h +454 -0
- data/vendor/Eigen/src/Core/ReturnByValue.h +119 -0
- data/vendor/Eigen/src/Core/Reverse.h +217 -0
- data/vendor/Eigen/src/Core/Select.h +164 -0
- data/vendor/Eigen/src/Core/SelfAdjointView.h +365 -0
- data/vendor/Eigen/src/Core/SelfCwiseBinaryOp.h +47 -0
- data/vendor/Eigen/src/Core/Solve.h +188 -0
- data/vendor/Eigen/src/Core/SolveTriangular.h +235 -0
- data/vendor/Eigen/src/Core/SolverBase.h +168 -0
- data/vendor/Eigen/src/Core/StableNorm.h +251 -0
- data/vendor/Eigen/src/Core/StlIterators.h +463 -0
- data/vendor/Eigen/src/Core/Stride.h +116 -0
- data/vendor/Eigen/src/Core/Swap.h +68 -0
- data/vendor/Eigen/src/Core/Transpose.h +464 -0
- data/vendor/Eigen/src/Core/Transpositions.h +386 -0
- data/vendor/Eigen/src/Core/TriangularMatrix.h +1001 -0
- data/vendor/Eigen/src/Core/VectorBlock.h +96 -0
- data/vendor/Eigen/src/Core/VectorwiseOp.h +784 -0
- data/vendor/Eigen/src/Core/Visitor.h +381 -0
- data/vendor/Eigen/src/Core/arch/AVX/Complex.h +372 -0
- data/vendor/Eigen/src/Core/arch/AVX/MathFunctions.h +228 -0
- data/vendor/Eigen/src/Core/arch/AVX/PacketMath.h +1574 -0
- data/vendor/Eigen/src/Core/arch/AVX/TypeCasting.h +115 -0
- data/vendor/Eigen/src/Core/arch/AVX512/Complex.h +422 -0
- data/vendor/Eigen/src/Core/arch/AVX512/MathFunctions.h +362 -0
- data/vendor/Eigen/src/Core/arch/AVX512/PacketMath.h +2303 -0
- data/vendor/Eigen/src/Core/arch/AVX512/TypeCasting.h +89 -0
- data/vendor/Eigen/src/Core/arch/AltiVec/Complex.h +417 -0
- data/vendor/Eigen/src/Core/arch/AltiVec/MathFunctions.h +90 -0
- data/vendor/Eigen/src/Core/arch/AltiVec/MatrixProduct.h +2937 -0
- data/vendor/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h +221 -0
- data/vendor/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h +629 -0
- data/vendor/Eigen/src/Core/arch/AltiVec/PacketMath.h +2711 -0
- data/vendor/Eigen/src/Core/arch/CUDA/Complex.h +258 -0
- data/vendor/Eigen/src/Core/arch/Default/BFloat16.h +700 -0
- data/vendor/Eigen/src/Core/arch/Default/ConjHelper.h +117 -0
- data/vendor/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +1649 -0
- data/vendor/Eigen/src/Core/arch/Default/GenericPacketMathFunctionsFwd.h +110 -0
- data/vendor/Eigen/src/Core/arch/Default/Half.h +942 -0
- data/vendor/Eigen/src/Core/arch/Default/Settings.h +49 -0
- data/vendor/Eigen/src/Core/arch/Default/TypeCasting.h +120 -0
- data/vendor/Eigen/src/Core/arch/GPU/MathFunctions.h +103 -0
- data/vendor/Eigen/src/Core/arch/GPU/PacketMath.h +1685 -0
- data/vendor/Eigen/src/Core/arch/GPU/TypeCasting.h +80 -0
- data/vendor/Eigen/src/Core/arch/HIP/hcc/math_constants.h +23 -0
- data/vendor/Eigen/src/Core/arch/MSA/Complex.h +648 -0
- data/vendor/Eigen/src/Core/arch/MSA/MathFunctions.h +387 -0
- data/vendor/Eigen/src/Core/arch/MSA/PacketMath.h +1233 -0
- data/vendor/Eigen/src/Core/arch/NEON/Complex.h +584 -0
- data/vendor/Eigen/src/Core/arch/NEON/GeneralBlockPanelKernel.h +183 -0
- data/vendor/Eigen/src/Core/arch/NEON/MathFunctions.h +75 -0
- data/vendor/Eigen/src/Core/arch/NEON/PacketMath.h +4587 -0
- data/vendor/Eigen/src/Core/arch/NEON/TypeCasting.h +1419 -0
- data/vendor/Eigen/src/Core/arch/SSE/Complex.h +351 -0
- data/vendor/Eigen/src/Core/arch/SSE/MathFunctions.h +199 -0
- data/vendor/Eigen/src/Core/arch/SSE/PacketMath.h +1505 -0
- data/vendor/Eigen/src/Core/arch/SSE/TypeCasting.h +142 -0
- data/vendor/Eigen/src/Core/arch/SVE/MathFunctions.h +44 -0
- data/vendor/Eigen/src/Core/arch/SVE/PacketMath.h +752 -0
- data/vendor/Eigen/src/Core/arch/SVE/TypeCasting.h +49 -0
- data/vendor/Eigen/src/Core/arch/SYCL/InteropHeaders.h +232 -0
- data/vendor/Eigen/src/Core/arch/SYCL/MathFunctions.h +301 -0
- data/vendor/Eigen/src/Core/arch/SYCL/PacketMath.h +670 -0
- data/vendor/Eigen/src/Core/arch/SYCL/SyclMemoryModel.h +694 -0
- data/vendor/Eigen/src/Core/arch/SYCL/TypeCasting.h +85 -0
- data/vendor/Eigen/src/Core/arch/ZVector/Complex.h +426 -0
- data/vendor/Eigen/src/Core/arch/ZVector/MathFunctions.h +233 -0
- data/vendor/Eigen/src/Core/arch/ZVector/PacketMath.h +1060 -0
- data/vendor/Eigen/src/Core/functors/AssignmentFunctors.h +177 -0
- data/vendor/Eigen/src/Core/functors/BinaryFunctors.h +541 -0
- data/vendor/Eigen/src/Core/functors/NullaryFunctors.h +189 -0
- data/vendor/Eigen/src/Core/functors/StlFunctors.h +166 -0
- data/vendor/Eigen/src/Core/functors/TernaryFunctors.h +25 -0
- data/vendor/Eigen/src/Core/functors/UnaryFunctors.h +1131 -0
- data/vendor/Eigen/src/Core/products/GeneralBlockPanelKernel.h +2645 -0
- data/vendor/Eigen/src/Core/products/GeneralMatrixMatrix.h +517 -0
- data/vendor/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h +317 -0
- data/vendor/Eigen/src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h +145 -0
- data/vendor/Eigen/src/Core/products/GeneralMatrixMatrix_BLAS.h +124 -0
- data/vendor/Eigen/src/Core/products/GeneralMatrixVector.h +518 -0
- data/vendor/Eigen/src/Core/products/GeneralMatrixVector_BLAS.h +136 -0
- data/vendor/Eigen/src/Core/products/Parallelizer.h +180 -0
- data/vendor/Eigen/src/Core/products/SelfadjointMatrixMatrix.h +544 -0
- data/vendor/Eigen/src/Core/products/SelfadjointMatrixMatrix_BLAS.h +295 -0
- data/vendor/Eigen/src/Core/products/SelfadjointMatrixVector.h +262 -0
- data/vendor/Eigen/src/Core/products/SelfadjointMatrixVector_BLAS.h +118 -0
- data/vendor/Eigen/src/Core/products/SelfadjointProduct.h +133 -0
- data/vendor/Eigen/src/Core/products/SelfadjointRank2Update.h +94 -0
- data/vendor/Eigen/src/Core/products/TriangularMatrixMatrix.h +472 -0
- data/vendor/Eigen/src/Core/products/TriangularMatrixMatrix_BLAS.h +317 -0
- data/vendor/Eigen/src/Core/products/TriangularMatrixVector.h +350 -0
- data/vendor/Eigen/src/Core/products/TriangularMatrixVector_BLAS.h +255 -0
- data/vendor/Eigen/src/Core/products/TriangularSolverMatrix.h +337 -0
- data/vendor/Eigen/src/Core/products/TriangularSolverMatrix_BLAS.h +167 -0
- data/vendor/Eigen/src/Core/products/TriangularSolverVector.h +148 -0
- data/vendor/Eigen/src/Core/util/BlasUtil.h +583 -0
- data/vendor/Eigen/src/Core/util/ConfigureVectorization.h +512 -0
- data/vendor/Eigen/src/Core/util/Constants.h +563 -0
- data/vendor/Eigen/src/Core/util/DisableStupidWarnings.h +106 -0
- data/vendor/Eigen/src/Core/util/ForwardDeclarations.h +322 -0
- data/vendor/Eigen/src/Core/util/IndexedViewHelper.h +186 -0
- data/vendor/Eigen/src/Core/util/IntegralConstant.h +272 -0
- data/vendor/Eigen/src/Core/util/MKL_support.h +137 -0
- data/vendor/Eigen/src/Core/util/Macros.h +1464 -0
- data/vendor/Eigen/src/Core/util/Memory.h +1163 -0
- data/vendor/Eigen/src/Core/util/Meta.h +812 -0
- data/vendor/Eigen/src/Core/util/NonMPL2.h +3 -0
- data/vendor/Eigen/src/Core/util/ReenableStupidWarnings.h +31 -0
- data/vendor/Eigen/src/Core/util/ReshapedHelper.h +51 -0
- data/vendor/Eigen/src/Core/util/StaticAssert.h +221 -0
- data/vendor/Eigen/src/Core/util/SymbolicIndex.h +293 -0
- data/vendor/Eigen/src/Core/util/XprHelper.h +856 -0
- data/vendor/Eigen/src/Eigenvalues/ComplexEigenSolver.h +346 -0
- data/vendor/Eigen/src/Eigenvalues/ComplexSchur.h +462 -0
- data/vendor/Eigen/src/Eigenvalues/ComplexSchur_LAPACKE.h +91 -0
- data/vendor/Eigen/src/Eigenvalues/EigenSolver.h +622 -0
- data/vendor/Eigen/src/Eigenvalues/GeneralizedEigenSolver.h +418 -0
- data/vendor/Eigen/src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h +226 -0
- data/vendor/Eigen/src/Eigenvalues/HessenbergDecomposition.h +374 -0
- data/vendor/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h +158 -0
- data/vendor/Eigen/src/Eigenvalues/RealQZ.h +657 -0
- data/vendor/Eigen/src/Eigenvalues/RealSchur.h +558 -0
- data/vendor/Eigen/src/Eigenvalues/RealSchur_LAPACKE.h +77 -0
- data/vendor/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h +904 -0
- data/vendor/Eigen/src/Eigenvalues/SelfAdjointEigenSolver_LAPACKE.h +87 -0
- data/vendor/Eigen/src/Eigenvalues/Tridiagonalization.h +561 -0
- data/vendor/Eigen/src/Geometry/AlignedBox.h +486 -0
- data/vendor/Eigen/src/Geometry/AngleAxis.h +247 -0
- data/vendor/Eigen/src/Geometry/EulerAngles.h +114 -0
- data/vendor/Eigen/src/Geometry/Homogeneous.h +501 -0
- data/vendor/Eigen/src/Geometry/Hyperplane.h +282 -0
- data/vendor/Eigen/src/Geometry/OrthoMethods.h +235 -0
- data/vendor/Eigen/src/Geometry/ParametrizedLine.h +232 -0
- data/vendor/Eigen/src/Geometry/Quaternion.h +870 -0
- data/vendor/Eigen/src/Geometry/Rotation2D.h +199 -0
- data/vendor/Eigen/src/Geometry/RotationBase.h +206 -0
- data/vendor/Eigen/src/Geometry/Scaling.h +188 -0
- data/vendor/Eigen/src/Geometry/Transform.h +1563 -0
- data/vendor/Eigen/src/Geometry/Translation.h +202 -0
- data/vendor/Eigen/src/Geometry/Umeyama.h +166 -0
- data/vendor/Eigen/src/Geometry/arch/Geometry_SIMD.h +168 -0
- data/vendor/Eigen/src/Householder/BlockHouseholder.h +110 -0
- data/vendor/Eigen/src/Householder/Householder.h +176 -0
- data/vendor/Eigen/src/Householder/HouseholderSequence.h +545 -0
- data/vendor/Eigen/src/IterativeLinearSolvers/BasicPreconditioners.h +226 -0
- data/vendor/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h +212 -0
- data/vendor/Eigen/src/IterativeLinearSolvers/ConjugateGradient.h +229 -0
- data/vendor/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h +394 -0
- data/vendor/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h +453 -0
- data/vendor/Eigen/src/IterativeLinearSolvers/IterativeSolverBase.h +444 -0
- data/vendor/Eigen/src/IterativeLinearSolvers/LeastSquareConjugateGradient.h +198 -0
- data/vendor/Eigen/src/IterativeLinearSolvers/SolveWithGuess.h +117 -0
- data/vendor/Eigen/src/Jacobi/Jacobi.h +483 -0
- data/vendor/Eigen/src/KLUSupport/KLUSupport.h +358 -0
- data/vendor/Eigen/src/LU/Determinant.h +117 -0
- data/vendor/Eigen/src/LU/FullPivLU.h +877 -0
- data/vendor/Eigen/src/LU/InverseImpl.h +432 -0
- data/vendor/Eigen/src/LU/PartialPivLU.h +624 -0
- data/vendor/Eigen/src/LU/PartialPivLU_LAPACKE.h +83 -0
- data/vendor/Eigen/src/LU/arch/InverseSize4.h +351 -0
- data/vendor/Eigen/src/MetisSupport/MetisSupport.h +137 -0
- data/vendor/Eigen/src/OrderingMethods/Amd.h +435 -0
- data/vendor/Eigen/src/OrderingMethods/Eigen_Colamd.h +1863 -0
- data/vendor/Eigen/src/OrderingMethods/Ordering.h +153 -0
- data/vendor/Eigen/src/PaStiXSupport/PaStiXSupport.h +678 -0
- data/vendor/Eigen/src/PardisoSupport/PardisoSupport.h +545 -0
- data/vendor/Eigen/src/QR/ColPivHouseholderQR.h +674 -0
- data/vendor/Eigen/src/QR/ColPivHouseholderQR_LAPACKE.h +97 -0
- data/vendor/Eigen/src/QR/CompleteOrthogonalDecomposition.h +635 -0
- data/vendor/Eigen/src/QR/FullPivHouseholderQR.h +713 -0
- data/vendor/Eigen/src/QR/HouseholderQR.h +434 -0
- data/vendor/Eigen/src/QR/HouseholderQR_LAPACKE.h +68 -0
- data/vendor/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h +335 -0
- data/vendor/Eigen/src/SVD/BDCSVD.h +1366 -0
- data/vendor/Eigen/src/SVD/JacobiSVD.h +812 -0
- data/vendor/Eigen/src/SVD/JacobiSVD_LAPACKE.h +91 -0
- data/vendor/Eigen/src/SVD/SVDBase.h +376 -0
- data/vendor/Eigen/src/SVD/UpperBidiagonalization.h +414 -0
- data/vendor/Eigen/src/SparseCholesky/SimplicialCholesky.h +697 -0
- data/vendor/Eigen/src/SparseCholesky/SimplicialCholesky_impl.h +174 -0
- data/vendor/Eigen/src/SparseCore/AmbiVector.h +378 -0
- data/vendor/Eigen/src/SparseCore/CompressedStorage.h +274 -0
- data/vendor/Eigen/src/SparseCore/ConservativeSparseSparseProduct.h +352 -0
- data/vendor/Eigen/src/SparseCore/MappedSparseMatrix.h +67 -0
- data/vendor/Eigen/src/SparseCore/SparseAssign.h +270 -0
- data/vendor/Eigen/src/SparseCore/SparseBlock.h +571 -0
- data/vendor/Eigen/src/SparseCore/SparseColEtree.h +206 -0
- data/vendor/Eigen/src/SparseCore/SparseCompressedBase.h +370 -0
- data/vendor/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +722 -0
- data/vendor/Eigen/src/SparseCore/SparseCwiseUnaryOp.h +150 -0
- data/vendor/Eigen/src/SparseCore/SparseDenseProduct.h +342 -0
- data/vendor/Eigen/src/SparseCore/SparseDiagonalProduct.h +138 -0
- data/vendor/Eigen/src/SparseCore/SparseDot.h +98 -0
- data/vendor/Eigen/src/SparseCore/SparseFuzzy.h +29 -0
- data/vendor/Eigen/src/SparseCore/SparseMap.h +305 -0
- data/vendor/Eigen/src/SparseCore/SparseMatrix.h +1518 -0
- data/vendor/Eigen/src/SparseCore/SparseMatrixBase.h +398 -0
- data/vendor/Eigen/src/SparseCore/SparsePermutation.h +178 -0
- data/vendor/Eigen/src/SparseCore/SparseProduct.h +181 -0
- data/vendor/Eigen/src/SparseCore/SparseRedux.h +49 -0
- data/vendor/Eigen/src/SparseCore/SparseRef.h +397 -0
- data/vendor/Eigen/src/SparseCore/SparseSelfAdjointView.h +659 -0
- data/vendor/Eigen/src/SparseCore/SparseSolverBase.h +124 -0
- data/vendor/Eigen/src/SparseCore/SparseSparseProductWithPruning.h +198 -0
- data/vendor/Eigen/src/SparseCore/SparseTranspose.h +92 -0
- data/vendor/Eigen/src/SparseCore/SparseTriangularView.h +189 -0
- data/vendor/Eigen/src/SparseCore/SparseUtil.h +186 -0
- data/vendor/Eigen/src/SparseCore/SparseVector.h +478 -0
- data/vendor/Eigen/src/SparseCore/SparseView.h +254 -0
- data/vendor/Eigen/src/SparseCore/TriangularSolver.h +315 -0
- data/vendor/Eigen/src/SparseLU/SparseLU.h +923 -0
- data/vendor/Eigen/src/SparseLU/SparseLUImpl.h +66 -0
- data/vendor/Eigen/src/SparseLU/SparseLU_Memory.h +226 -0
- data/vendor/Eigen/src/SparseLU/SparseLU_Structs.h +110 -0
- data/vendor/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +375 -0
- data/vendor/Eigen/src/SparseLU/SparseLU_Utils.h +80 -0
- data/vendor/Eigen/src/SparseLU/SparseLU_column_bmod.h +181 -0
- data/vendor/Eigen/src/SparseLU/SparseLU_column_dfs.h +179 -0
- data/vendor/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h +107 -0
- data/vendor/Eigen/src/SparseLU/SparseLU_gemm_kernel.h +280 -0
- data/vendor/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +126 -0
- data/vendor/Eigen/src/SparseLU/SparseLU_kernel_bmod.h +130 -0
- data/vendor/Eigen/src/SparseLU/SparseLU_panel_bmod.h +223 -0
- data/vendor/Eigen/src/SparseLU/SparseLU_panel_dfs.h +258 -0
- data/vendor/Eigen/src/SparseLU/SparseLU_pivotL.h +137 -0
- data/vendor/Eigen/src/SparseLU/SparseLU_pruneL.h +136 -0
- data/vendor/Eigen/src/SparseLU/SparseLU_relax_snode.h +83 -0
- data/vendor/Eigen/src/SparseQR/SparseQR.h +758 -0
- data/vendor/Eigen/src/StlSupport/StdDeque.h +116 -0
- data/vendor/Eigen/src/StlSupport/StdList.h +106 -0
- data/vendor/Eigen/src/StlSupport/StdVector.h +131 -0
- data/vendor/Eigen/src/StlSupport/details.h +84 -0
- data/vendor/Eigen/src/SuperLUSupport/SuperLUSupport.h +1025 -0
- data/vendor/Eigen/src/UmfPackSupport/UmfPackSupport.h +642 -0
- data/vendor/Eigen/src/misc/Image.h +82 -0
- data/vendor/Eigen/src/misc/Kernel.h +79 -0
- data/vendor/Eigen/src/misc/RealSvd2x2.h +55 -0
- data/vendor/Eigen/src/misc/blas.h +440 -0
- data/vendor/Eigen/src/misc/lapack.h +152 -0
- data/vendor/Eigen/src/misc/lapacke.h +16292 -0
- data/vendor/Eigen/src/misc/lapacke_mangling.h +17 -0
- data/vendor/Eigen/src/plugins/ArrayCwiseBinaryOps.h +358 -0
- data/vendor/Eigen/src/plugins/ArrayCwiseUnaryOps.h +696 -0
- data/vendor/Eigen/src/plugins/BlockMethods.h +1442 -0
- data/vendor/Eigen/src/plugins/CommonCwiseBinaryOps.h +115 -0
- data/vendor/Eigen/src/plugins/CommonCwiseUnaryOps.h +177 -0
- data/vendor/Eigen/src/plugins/IndexedViewMethods.h +262 -0
- data/vendor/Eigen/src/plugins/MatrixCwiseBinaryOps.h +152 -0
- data/vendor/Eigen/src/plugins/MatrixCwiseUnaryOps.h +95 -0
- data/vendor/Eigen/src/plugins/ReshapedMethods.h +149 -0
- data/vendor/aarand/aarand.hpp +114 -0
- data/vendor/annoy/annoylib.h +1495 -0
- data/vendor/annoy/kissrandom.h +120 -0
- data/vendor/annoy/mman.h +242 -0
- data/vendor/hnswlib/bruteforce.h +152 -0
- data/vendor/hnswlib/hnswalg.h +1192 -0
- data/vendor/hnswlib/hnswlib.h +108 -0
- data/vendor/hnswlib/space_ip.h +282 -0
- data/vendor/hnswlib/space_l2.h +281 -0
- data/vendor/hnswlib/visited_list_pool.h +79 -0
- data/vendor/irlba/irlba.hpp +575 -0
- data/vendor/irlba/lanczos.hpp +212 -0
- data/vendor/irlba/parallel.hpp +474 -0
- data/vendor/irlba/utils.hpp +224 -0
- data/vendor/irlba/wrappers.hpp +228 -0
- data/vendor/kmeans/Base.hpp +75 -0
- data/vendor/kmeans/Details.hpp +79 -0
- data/vendor/kmeans/HartiganWong.hpp +492 -0
- data/vendor/kmeans/InitializeKmeansPP.hpp +144 -0
- data/vendor/kmeans/InitializeNone.hpp +44 -0
- data/vendor/kmeans/InitializePCAPartition.hpp +309 -0
- data/vendor/kmeans/InitializeRandom.hpp +91 -0
- data/vendor/kmeans/Kmeans.hpp +161 -0
- data/vendor/kmeans/Lloyd.hpp +134 -0
- data/vendor/kmeans/MiniBatch.hpp +269 -0
- data/vendor/kmeans/QuickSearch.hpp +179 -0
- data/vendor/kmeans/compute_centroids.hpp +32 -0
- data/vendor/kmeans/compute_wcss.hpp +27 -0
- data/vendor/kmeans/is_edge_case.hpp +42 -0
- data/vendor/kmeans/random.hpp +55 -0
- data/vendor/knncolle/Annoy/Annoy.hpp +193 -0
- data/vendor/knncolle/BruteForce/BruteForce.hpp +120 -0
- data/vendor/knncolle/Hnsw/Hnsw.hpp +225 -0
- data/vendor/knncolle/Kmknn/Kmknn.hpp +286 -0
- data/vendor/knncolle/VpTree/VpTree.hpp +256 -0
- data/vendor/knncolle/knncolle.hpp +34 -0
- data/vendor/knncolle/utils/Base.hpp +100 -0
- data/vendor/knncolle/utils/NeighborQueue.hpp +94 -0
- data/vendor/knncolle/utils/distances.hpp +98 -0
- data/vendor/knncolle/utils/find_nearest_neighbors.hpp +112 -0
- data/vendor/powerit/PowerIterations.hpp +157 -0
- data/vendor/umappp/NeighborList.hpp +37 -0
- data/vendor/umappp/Umap.hpp +662 -0
- data/vendor/umappp/combine_neighbor_sets.hpp +95 -0
- data/vendor/umappp/find_ab.hpp +157 -0
- data/vendor/umappp/neighbor_similarities.hpp +136 -0
- data/vendor/umappp/optimize_layout.hpp +285 -0
- data/vendor/umappp/spectral_init.hpp +181 -0
- data/vendor/umappp/umappp.hpp +13 -0
- metadata +465 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
// This file is part of Eigen, a lightweight C++ template library
|
2
|
+
// for linear algebra.
|
3
|
+
//
|
4
|
+
// Copyright (C) 2020, Arm Limited and Contributors
|
5
|
+
//
|
6
|
+
// This Source Code Form is subject to the terms of the Mozilla
|
7
|
+
// Public License v. 2.0. If a copy of the MPL was not distributed
|
8
|
+
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
9
|
+
|
10
|
+
#ifndef EIGEN_TYPE_CASTING_SVE_H
|
11
|
+
#define EIGEN_TYPE_CASTING_SVE_H
|
12
|
+
|
13
|
+
namespace Eigen {
|
14
|
+
namespace internal {
|
15
|
+
|
16
|
+
template <>
|
17
|
+
struct type_casting_traits<float, numext::int32_t> {
|
18
|
+
enum { VectorizedCast = 1, SrcCoeffRatio = 1, TgtCoeffRatio = 1 };
|
19
|
+
};
|
20
|
+
|
21
|
+
template <>
|
22
|
+
struct type_casting_traits<numext::int32_t, float> {
|
23
|
+
enum { VectorizedCast = 1, SrcCoeffRatio = 1, TgtCoeffRatio = 1 };
|
24
|
+
};
|
25
|
+
|
26
|
+
template <>
|
27
|
+
EIGEN_STRONG_INLINE PacketXf pcast<PacketXi, PacketXf>(const PacketXi& a) {
|
28
|
+
return svcvt_f32_s32_z(svptrue_b32(), a);
|
29
|
+
}
|
30
|
+
|
31
|
+
template <>
|
32
|
+
EIGEN_STRONG_INLINE PacketXi pcast<PacketXf, PacketXi>(const PacketXf& a) {
|
33
|
+
return svcvt_s32_f32_z(svptrue_b32(), a);
|
34
|
+
}
|
35
|
+
|
36
|
+
template <>
|
37
|
+
EIGEN_STRONG_INLINE PacketXf preinterpret<PacketXf, PacketXi>(const PacketXi& a) {
|
38
|
+
return svreinterpret_f32_s32(a);
|
39
|
+
}
|
40
|
+
|
41
|
+
template <>
|
42
|
+
EIGEN_STRONG_INLINE PacketXi preinterpret<PacketXi, PacketXf>(const PacketXf& a) {
|
43
|
+
return svreinterpret_s32_f32(a);
|
44
|
+
}
|
45
|
+
|
46
|
+
} // namespace internal
|
47
|
+
} // namespace Eigen
|
48
|
+
|
49
|
+
#endif // EIGEN_TYPE_CASTING_SVE_H
|
@@ -0,0 +1,232 @@
|
|
1
|
+
// This file is part of Eigen, a lightweight C++ template library
|
2
|
+
// for linear algebra.
|
3
|
+
//
|
4
|
+
// Mehdi Goli Codeplay Software Ltd.
|
5
|
+
// Ralph Potter Codeplay Software Ltd.
|
6
|
+
// Luke Iwanski Codeplay Software Ltd.
|
7
|
+
// Contact: <eigen@codeplay.com>
|
8
|
+
//
|
9
|
+
// This Source Code Form is subject to the terms of the Mozilla
|
10
|
+
// Public License v. 2.0. If a copy of the MPL was not distributed
|
11
|
+
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
12
|
+
|
13
|
+
/*****************************************************************
|
14
|
+
* InteropHeaders.h
|
15
|
+
*
|
16
|
+
* \brief:
|
17
|
+
* InteropHeaders
|
18
|
+
*
|
19
|
+
*****************************************************************/
|
20
|
+
|
21
|
+
#ifndef EIGEN_INTEROP_HEADERS_SYCL_H
|
22
|
+
#define EIGEN_INTEROP_HEADERS_SYCL_H
|
23
|
+
|
24
|
+
namespace Eigen {
|
25
|
+
|
26
|
+
#if !defined(EIGEN_DONT_VECTORIZE_SYCL)
|
27
|
+
|
28
|
+
namespace internal {
|
29
|
+
|
30
|
+
template <int has_blend, int lengths>
|
31
|
+
struct sycl_packet_traits : default_packet_traits {
|
32
|
+
enum {
|
33
|
+
Vectorizable = 1,
|
34
|
+
AlignedOnScalar = 1,
|
35
|
+
size = lengths,
|
36
|
+
HasHalfPacket = 0,
|
37
|
+
HasDiv = 1,
|
38
|
+
HasLog = 1,
|
39
|
+
HasExp = 1,
|
40
|
+
HasSqrt = 1,
|
41
|
+
HasRsqrt = 1,
|
42
|
+
HasSin = 1,
|
43
|
+
HasCos = 1,
|
44
|
+
HasTan = 1,
|
45
|
+
HasASin = 1,
|
46
|
+
HasACos = 1,
|
47
|
+
HasATan = 1,
|
48
|
+
HasSinh = 1,
|
49
|
+
HasCosh = 1,
|
50
|
+
HasTanh = 1,
|
51
|
+
HasLGamma = 0,
|
52
|
+
HasDiGamma = 0,
|
53
|
+
HasZeta = 0,
|
54
|
+
HasPolygamma = 0,
|
55
|
+
HasErf = 0,
|
56
|
+
HasErfc = 0,
|
57
|
+
HasNdtri = 0,
|
58
|
+
HasIGamma = 0,
|
59
|
+
HasIGammac = 0,
|
60
|
+
HasBetaInc = 0,
|
61
|
+
HasBlend = has_blend,
|
62
|
+
// This flag is used to indicate whether packet comparison is supported.
|
63
|
+
// pcmp_eq, pcmp_lt and pcmp_le should be defined for it to be true.
|
64
|
+
HasCmp = 1,
|
65
|
+
HasMax = 1,
|
66
|
+
HasMin = 1,
|
67
|
+
HasMul = 1,
|
68
|
+
HasAdd = 1,
|
69
|
+
HasFloor = 1,
|
70
|
+
HasRound = 1,
|
71
|
+
HasRint = 1,
|
72
|
+
HasLog1p = 1,
|
73
|
+
HasExpm1 = 1,
|
74
|
+
HasCeil = 1,
|
75
|
+
};
|
76
|
+
};
|
77
|
+
|
78
|
+
#ifdef SYCL_DEVICE_ONLY
|
79
|
+
#define SYCL_PACKET_TRAITS(packet_type, has_blend, unpacket_type, lengths) \
|
80
|
+
template <> \
|
81
|
+
struct packet_traits<unpacket_type> \
|
82
|
+
: sycl_packet_traits<has_blend, lengths> { \
|
83
|
+
typedef packet_type type; \
|
84
|
+
typedef packet_type half; \
|
85
|
+
};
|
86
|
+
|
87
|
+
SYCL_PACKET_TRAITS(cl::sycl::cl_float4, 1, float, 4)
|
88
|
+
SYCL_PACKET_TRAITS(cl::sycl::cl_float4, 1, const float, 4)
|
89
|
+
SYCL_PACKET_TRAITS(cl::sycl::cl_double2, 0, double, 2)
|
90
|
+
SYCL_PACKET_TRAITS(cl::sycl::cl_double2, 0, const double, 2)
|
91
|
+
#undef SYCL_PACKET_TRAITS
|
92
|
+
|
93
|
+
// Make sure this is only available when targeting a GPU: we don't want to
|
94
|
+
// introduce conflicts between these packet_traits definitions and the ones
|
95
|
+
// we'll use on the host side (SSE, AVX, ...)
|
96
|
+
#define SYCL_ARITHMETIC(packet_type) \
|
97
|
+
template <> \
|
98
|
+
struct is_arithmetic<packet_type> { \
|
99
|
+
enum { value = true }; \
|
100
|
+
};
|
101
|
+
SYCL_ARITHMETIC(cl::sycl::cl_float4)
|
102
|
+
SYCL_ARITHMETIC(cl::sycl::cl_double2)
|
103
|
+
#undef SYCL_ARITHMETIC
|
104
|
+
|
105
|
+
#define SYCL_UNPACKET_TRAITS(packet_type, unpacket_type, lengths) \
|
106
|
+
template <> \
|
107
|
+
struct unpacket_traits<packet_type> { \
|
108
|
+
typedef unpacket_type type; \
|
109
|
+
enum { size = lengths, vectorizable = true, alignment = Aligned16 }; \
|
110
|
+
typedef packet_type half; \
|
111
|
+
};
|
112
|
+
SYCL_UNPACKET_TRAITS(cl::sycl::cl_float4, float, 4)
|
113
|
+
SYCL_UNPACKET_TRAITS(cl::sycl::cl_double2, double, 2)
|
114
|
+
|
115
|
+
#undef SYCL_UNPACKET_TRAITS
|
116
|
+
#endif
|
117
|
+
|
118
|
+
} // end namespace internal
|
119
|
+
|
120
|
+
#endif
|
121
|
+
|
122
|
+
namespace TensorSycl {
|
123
|
+
namespace internal {
|
124
|
+
|
125
|
+
template <typename PacketReturnType, int PacketSize>
|
126
|
+
struct PacketWrapper;
|
127
|
+
// This function should never get called on the device
|
128
|
+
#ifndef SYCL_DEVICE_ONLY
|
129
|
+
template <typename PacketReturnType, int PacketSize>
|
130
|
+
struct PacketWrapper {
|
131
|
+
typedef typename ::Eigen::internal::unpacket_traits<PacketReturnType>::type
|
132
|
+
Scalar;
|
133
|
+
template <typename Index>
|
134
|
+
EIGEN_DEVICE_FUNC static Scalar scalarize(Index, PacketReturnType &) {
|
135
|
+
eigen_assert(false && "THERE IS NO PACKETIZE VERSION FOR THE CHOSEN TYPE");
|
136
|
+
abort();
|
137
|
+
}
|
138
|
+
EIGEN_DEVICE_FUNC static PacketReturnType convert_to_packet_type(Scalar in,
|
139
|
+
Scalar) {
|
140
|
+
return ::Eigen::internal::template plset<PacketReturnType>(in);
|
141
|
+
}
|
142
|
+
EIGEN_DEVICE_FUNC static void set_packet(PacketReturnType, Scalar *) {
|
143
|
+
eigen_assert(false && "THERE IS NO PACKETIZE VERSION FOR THE CHOSEN TYPE");
|
144
|
+
abort();
|
145
|
+
}
|
146
|
+
};
|
147
|
+
|
148
|
+
#elif defined(SYCL_DEVICE_ONLY)
|
149
|
+
template <typename PacketReturnType>
|
150
|
+
struct PacketWrapper<PacketReturnType, 4> {
|
151
|
+
typedef typename ::Eigen::internal::unpacket_traits<PacketReturnType>::type
|
152
|
+
Scalar;
|
153
|
+
template <typename Index>
|
154
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE static Scalar scalarize(Index index, PacketReturnType &in) {
|
155
|
+
switch (index) {
|
156
|
+
case 0:
|
157
|
+
return in.x();
|
158
|
+
case 1:
|
159
|
+
return in.y();
|
160
|
+
case 2:
|
161
|
+
return in.z();
|
162
|
+
case 3:
|
163
|
+
return in.w();
|
164
|
+
default:
|
165
|
+
//INDEX MUST BE BETWEEN 0 and 3.There is no abort function in SYCL kernel. so we cannot use abort here.
|
166
|
+
// The code will never reach here
|
167
|
+
__builtin_unreachable();
|
168
|
+
}
|
169
|
+
__builtin_unreachable();
|
170
|
+
}
|
171
|
+
|
172
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE static PacketReturnType convert_to_packet_type(
|
173
|
+
Scalar in, Scalar other) {
|
174
|
+
return PacketReturnType(in, other, other, other);
|
175
|
+
}
|
176
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE static void set_packet(PacketReturnType &lhs, Scalar *rhs) {
|
177
|
+
lhs = PacketReturnType(rhs[0], rhs[1], rhs[2], rhs[3]);
|
178
|
+
}
|
179
|
+
};
|
180
|
+
|
181
|
+
template <typename PacketReturnType>
|
182
|
+
struct PacketWrapper<PacketReturnType, 1> {
|
183
|
+
typedef typename ::Eigen::internal::unpacket_traits<PacketReturnType>::type
|
184
|
+
Scalar;
|
185
|
+
template <typename Index>
|
186
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE static Scalar scalarize(Index, PacketReturnType &in) {
|
187
|
+
return in;
|
188
|
+
}
|
189
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE static PacketReturnType convert_to_packet_type(Scalar in,
|
190
|
+
Scalar) {
|
191
|
+
return PacketReturnType(in);
|
192
|
+
}
|
193
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE static void set_packet(PacketReturnType &lhs, Scalar *rhs) {
|
194
|
+
lhs = rhs[0];
|
195
|
+
}
|
196
|
+
};
|
197
|
+
|
198
|
+
template <typename PacketReturnType>
|
199
|
+
struct PacketWrapper<PacketReturnType, 2> {
|
200
|
+
typedef typename ::Eigen::internal::unpacket_traits<PacketReturnType>::type
|
201
|
+
Scalar;
|
202
|
+
template <typename Index>
|
203
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE static Scalar scalarize(Index index, PacketReturnType &in) {
|
204
|
+
switch (index) {
|
205
|
+
case 0:
|
206
|
+
return in.x();
|
207
|
+
case 1:
|
208
|
+
return in.y();
|
209
|
+
default:
|
210
|
+
//INDEX MUST BE BETWEEN 0 and 1.There is no abort function in SYCL kernel. so we cannot use abort here.
|
211
|
+
// The code will never reach here
|
212
|
+
__builtin_unreachable();
|
213
|
+
}
|
214
|
+
__builtin_unreachable();
|
215
|
+
}
|
216
|
+
|
217
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE static PacketReturnType convert_to_packet_type(
|
218
|
+
Scalar in, Scalar other) {
|
219
|
+
return PacketReturnType(in, other);
|
220
|
+
}
|
221
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE static void set_packet(PacketReturnType &lhs, Scalar *rhs) {
|
222
|
+
lhs = PacketReturnType(rhs[0], rhs[1]);
|
223
|
+
}
|
224
|
+
};
|
225
|
+
|
226
|
+
#endif
|
227
|
+
|
228
|
+
} // end namespace internal
|
229
|
+
} // end namespace TensorSycl
|
230
|
+
} // end namespace Eigen
|
231
|
+
|
232
|
+
#endif // EIGEN_INTEROP_HEADERS_SYCL_H
|
@@ -0,0 +1,301 @@
|
|
1
|
+
// This file is part of Eigen, a lightweight C++ template library
|
2
|
+
// for linear algebra.
|
3
|
+
//
|
4
|
+
// Mehdi Goli Codeplay Software Ltd.
|
5
|
+
// Ralph Potter Codeplay Software Ltd.
|
6
|
+
// Luke Iwanski Codeplay Software Ltd.
|
7
|
+
// Contact: <eigen@codeplay.com>
|
8
|
+
//
|
9
|
+
// This Source Code Form is subject to the terms of the Mozilla
|
10
|
+
// Public License v. 2.0. If a copy of the MPL was not distributed
|
11
|
+
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
12
|
+
|
13
|
+
/*****************************************************************
|
14
|
+
* MathFunctions.h
|
15
|
+
*
|
16
|
+
* \brief:
|
17
|
+
* MathFunctions
|
18
|
+
*
|
19
|
+
*****************************************************************/
|
20
|
+
|
21
|
+
#ifndef EIGEN_MATH_FUNCTIONS_SYCL_H
|
22
|
+
#define EIGEN_MATH_FUNCTIONS_SYCL_H
|
23
|
+
namespace Eigen {
|
24
|
+
|
25
|
+
namespace internal {
|
26
|
+
|
27
|
+
// Make sure this is only available when targeting a GPU: we don't want to
|
28
|
+
// introduce conflicts between these packet_traits definitions and the ones
|
29
|
+
// we'll use on the host side (SSE, AVX, ...)
|
30
|
+
#if defined(SYCL_DEVICE_ONLY)
|
31
|
+
#define SYCL_PLOG(packet_type) \
|
32
|
+
template <> \
|
33
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type plog<packet_type>( \
|
34
|
+
const packet_type& a) { \
|
35
|
+
return cl::sycl::log(a); \
|
36
|
+
}
|
37
|
+
|
38
|
+
SYCL_PLOG(cl::sycl::cl_float4)
|
39
|
+
SYCL_PLOG(cl::sycl::cl_double2)
|
40
|
+
#undef SYCL_PLOG
|
41
|
+
|
42
|
+
#define SYCL_PLOG1P(packet_type) \
|
43
|
+
template <> \
|
44
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type plog1p<packet_type>( \
|
45
|
+
const packet_type& a) { \
|
46
|
+
return cl::sycl::log1p(a); \
|
47
|
+
}
|
48
|
+
|
49
|
+
SYCL_PLOG1P(cl::sycl::cl_float4)
|
50
|
+
SYCL_PLOG1P(cl::sycl::cl_double2)
|
51
|
+
#undef SYCL_PLOG1P
|
52
|
+
|
53
|
+
#define SYCL_PLOG10(packet_type) \
|
54
|
+
template <> \
|
55
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type plog10<packet_type>( \
|
56
|
+
const packet_type& a) { \
|
57
|
+
return cl::sycl::log10(a); \
|
58
|
+
}
|
59
|
+
|
60
|
+
SYCL_PLOG10(cl::sycl::cl_float4)
|
61
|
+
SYCL_PLOG10(cl::sycl::cl_double2)
|
62
|
+
#undef SYCL_PLOG10
|
63
|
+
|
64
|
+
#define SYCL_PEXP(packet_type) \
|
65
|
+
template <> \
|
66
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type pexp<packet_type>( \
|
67
|
+
const packet_type& a) { \
|
68
|
+
return cl::sycl::exp(a); \
|
69
|
+
}
|
70
|
+
|
71
|
+
SYCL_PEXP(cl::sycl::cl_float4)
|
72
|
+
SYCL_PEXP(cl::sycl::cl_float)
|
73
|
+
SYCL_PEXP(cl::sycl::cl_double2)
|
74
|
+
#undef SYCL_PEXP
|
75
|
+
|
76
|
+
#define SYCL_PEXPM1(packet_type) \
|
77
|
+
template <> \
|
78
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type pexpm1<packet_type>( \
|
79
|
+
const packet_type& a) { \
|
80
|
+
return cl::sycl::expm1(a); \
|
81
|
+
}
|
82
|
+
|
83
|
+
SYCL_PEXPM1(cl::sycl::cl_float4)
|
84
|
+
SYCL_PEXPM1(cl::sycl::cl_double2)
|
85
|
+
#undef SYCL_PEXPM1
|
86
|
+
|
87
|
+
#define SYCL_PSQRT(packet_type) \
|
88
|
+
template <> \
|
89
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type psqrt<packet_type>( \
|
90
|
+
const packet_type& a) { \
|
91
|
+
return cl::sycl::sqrt(a); \
|
92
|
+
}
|
93
|
+
|
94
|
+
SYCL_PSQRT(cl::sycl::cl_float4)
|
95
|
+
SYCL_PSQRT(cl::sycl::cl_double2)
|
96
|
+
#undef SYCL_PSQRT
|
97
|
+
|
98
|
+
#define SYCL_PRSQRT(packet_type) \
|
99
|
+
template <> \
|
100
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type prsqrt<packet_type>( \
|
101
|
+
const packet_type& a) { \
|
102
|
+
return cl::sycl::rsqrt(a); \
|
103
|
+
}
|
104
|
+
|
105
|
+
SYCL_PRSQRT(cl::sycl::cl_float4)
|
106
|
+
SYCL_PRSQRT(cl::sycl::cl_double2)
|
107
|
+
#undef SYCL_PRSQRT
|
108
|
+
|
109
|
+
/** \internal \returns the hyperbolic sine of \a a (coeff-wise) */
|
110
|
+
#define SYCL_PSIN(packet_type) \
|
111
|
+
template <> \
|
112
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type psin<packet_type>( \
|
113
|
+
const packet_type& a) { \
|
114
|
+
return cl::sycl::sin(a); \
|
115
|
+
}
|
116
|
+
|
117
|
+
SYCL_PSIN(cl::sycl::cl_float4)
|
118
|
+
SYCL_PSIN(cl::sycl::cl_double2)
|
119
|
+
#undef SYCL_PSIN
|
120
|
+
|
121
|
+
/** \internal \returns the hyperbolic cosine of \a a (coeff-wise) */
|
122
|
+
#define SYCL_PCOS(packet_type) \
|
123
|
+
template <> \
|
124
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type pcos<packet_type>( \
|
125
|
+
const packet_type& a) { \
|
126
|
+
return cl::sycl::cos(a); \
|
127
|
+
}
|
128
|
+
|
129
|
+
SYCL_PCOS(cl::sycl::cl_float4)
|
130
|
+
SYCL_PCOS(cl::sycl::cl_double2)
|
131
|
+
#undef SYCL_PCOS
|
132
|
+
|
133
|
+
/** \internal \returns the hyperbolic tan of \a a (coeff-wise) */
|
134
|
+
#define SYCL_PTAN(packet_type) \
|
135
|
+
template <> \
|
136
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type ptan<packet_type>( \
|
137
|
+
const packet_type& a) { \
|
138
|
+
return cl::sycl::tan(a); \
|
139
|
+
}
|
140
|
+
|
141
|
+
SYCL_PTAN(cl::sycl::cl_float4)
|
142
|
+
SYCL_PTAN(cl::sycl::cl_double2)
|
143
|
+
#undef SYCL_PTAN
|
144
|
+
|
145
|
+
/** \internal \returns the hyperbolic sine of \a a (coeff-wise) */
|
146
|
+
#define SYCL_PASIN(packet_type) \
|
147
|
+
template <> \
|
148
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type pasin<packet_type>( \
|
149
|
+
const packet_type& a) { \
|
150
|
+
return cl::sycl::asin(a); \
|
151
|
+
}
|
152
|
+
|
153
|
+
SYCL_PASIN(cl::sycl::cl_float4)
|
154
|
+
SYCL_PASIN(cl::sycl::cl_double2)
|
155
|
+
#undef SYCL_PASIN
|
156
|
+
|
157
|
+
/** \internal \returns the hyperbolic cosine of \a a (coeff-wise) */
|
158
|
+
#define SYCL_PACOS(packet_type) \
|
159
|
+
template <> \
|
160
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type pacos<packet_type>( \
|
161
|
+
const packet_type& a) { \
|
162
|
+
return cl::sycl::acos(a); \
|
163
|
+
}
|
164
|
+
|
165
|
+
SYCL_PACOS(cl::sycl::cl_float4)
|
166
|
+
SYCL_PACOS(cl::sycl::cl_double2)
|
167
|
+
#undef SYCL_PACOS
|
168
|
+
|
169
|
+
/** \internal \returns the hyperbolic tan of \a a (coeff-wise) */
|
170
|
+
#define SYCL_PATAN(packet_type) \
|
171
|
+
template <> \
|
172
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type patan<packet_type>( \
|
173
|
+
const packet_type& a) { \
|
174
|
+
return cl::sycl::atan(a); \
|
175
|
+
}
|
176
|
+
|
177
|
+
SYCL_PATAN(cl::sycl::cl_float4)
|
178
|
+
SYCL_PATAN(cl::sycl::cl_double2)
|
179
|
+
#undef SYCL_PATAN
|
180
|
+
|
181
|
+
/** \internal \returns the hyperbolic sine of \a a (coeff-wise) */
|
182
|
+
#define SYCL_PSINH(packet_type) \
|
183
|
+
template <> \
|
184
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type psinh<packet_type>( \
|
185
|
+
const packet_type& a) { \
|
186
|
+
return cl::sycl::sinh(a); \
|
187
|
+
}
|
188
|
+
|
189
|
+
SYCL_PSINH(cl::sycl::cl_float4)
|
190
|
+
SYCL_PSINH(cl::sycl::cl_double2)
|
191
|
+
#undef SYCL_PSINH
|
192
|
+
|
193
|
+
/** \internal \returns the hyperbolic cosine of \a a (coeff-wise) */
|
194
|
+
#define SYCL_PCOSH(packet_type) \
|
195
|
+
template <> \
|
196
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type pcosh<packet_type>( \
|
197
|
+
const packet_type& a) { \
|
198
|
+
return cl::sycl::cosh(a); \
|
199
|
+
}
|
200
|
+
|
201
|
+
SYCL_PCOSH(cl::sycl::cl_float4)
|
202
|
+
SYCL_PCOSH(cl::sycl::cl_double2)
|
203
|
+
#undef SYCL_PCOSH
|
204
|
+
|
205
|
+
/** \internal \returns the hyperbolic tan of \a a (coeff-wise) */
|
206
|
+
#define SYCL_PTANH(packet_type) \
|
207
|
+
template <> \
|
208
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type ptanh<packet_type>( \
|
209
|
+
const packet_type& a) { \
|
210
|
+
return cl::sycl::tanh(a); \
|
211
|
+
}
|
212
|
+
|
213
|
+
SYCL_PTANH(cl::sycl::cl_float4)
|
214
|
+
SYCL_PTANH(cl::sycl::cl_double2)
|
215
|
+
#undef SYCL_PTANH
|
216
|
+
|
217
|
+
#define SYCL_PCEIL(packet_type) \
|
218
|
+
template <> \
|
219
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type pceil<packet_type>( \
|
220
|
+
const packet_type& a) { \
|
221
|
+
return cl::sycl::ceil(a); \
|
222
|
+
}
|
223
|
+
|
224
|
+
SYCL_PCEIL(cl::sycl::cl_float4)
|
225
|
+
SYCL_PCEIL(cl::sycl::cl_double2)
|
226
|
+
#undef SYCL_PCEIL
|
227
|
+
|
228
|
+
#define SYCL_PROUND(packet_type) \
|
229
|
+
template <> \
|
230
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type pround<packet_type>( \
|
231
|
+
const packet_type& a) { \
|
232
|
+
return cl::sycl::round(a); \
|
233
|
+
}
|
234
|
+
|
235
|
+
SYCL_PROUND(cl::sycl::cl_float4)
|
236
|
+
SYCL_PROUND(cl::sycl::cl_double2)
|
237
|
+
#undef SYCL_PROUND
|
238
|
+
|
239
|
+
#define SYCL_PRINT(packet_type) \
|
240
|
+
template <> \
|
241
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type print<packet_type>( \
|
242
|
+
const packet_type& a) { \
|
243
|
+
return cl::sycl::rint(a); \
|
244
|
+
}
|
245
|
+
|
246
|
+
SYCL_PRINT(cl::sycl::cl_float4)
|
247
|
+
SYCL_PRINT(cl::sycl::cl_double2)
|
248
|
+
#undef SYCL_PRINT
|
249
|
+
|
250
|
+
#define SYCL_FLOOR(packet_type) \
|
251
|
+
template <> \
|
252
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type pfloor<packet_type>( \
|
253
|
+
const packet_type& a) { \
|
254
|
+
return cl::sycl::floor(a); \
|
255
|
+
}
|
256
|
+
|
257
|
+
SYCL_FLOOR(cl::sycl::cl_float4)
|
258
|
+
SYCL_FLOOR(cl::sycl::cl_double2)
|
259
|
+
#undef SYCL_FLOOR
|
260
|
+
|
261
|
+
#define SYCL_PMIN(packet_type, expr) \
|
262
|
+
template <> \
|
263
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type pmin<packet_type>( \
|
264
|
+
const packet_type& a, const packet_type& b) { \
|
265
|
+
return expr; \
|
266
|
+
}
|
267
|
+
|
268
|
+
SYCL_PMIN(cl::sycl::cl_float4, cl::sycl::fmin(a, b))
|
269
|
+
SYCL_PMIN(cl::sycl::cl_double2, cl::sycl::fmin(a, b))
|
270
|
+
#undef SYCL_PMIN
|
271
|
+
|
272
|
+
#define SYCL_PMAX(packet_type, expr) \
|
273
|
+
template <> \
|
274
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type pmax<packet_type>( \
|
275
|
+
const packet_type& a, const packet_type& b) { \
|
276
|
+
return expr; \
|
277
|
+
}
|
278
|
+
|
279
|
+
SYCL_PMAX(cl::sycl::cl_float4, cl::sycl::fmax(a, b))
|
280
|
+
SYCL_PMAX(cl::sycl::cl_double2, cl::sycl::fmax(a, b))
|
281
|
+
#undef SYCL_PMAX
|
282
|
+
|
283
|
+
#define SYCL_PLDEXP(packet_type) \
|
284
|
+
template <> \
|
285
|
+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type pldexp( \
|
286
|
+
const packet_type& a, const packet_type& exponent) { \
|
287
|
+
return cl::sycl::ldexp( \
|
288
|
+
a, exponent.template convert<cl::sycl::cl_int, \
|
289
|
+
cl::sycl::rounding_mode::automatic>()); \
|
290
|
+
}
|
291
|
+
|
292
|
+
SYCL_PLDEXP(cl::sycl::cl_float4)
|
293
|
+
SYCL_PLDEXP(cl::sycl::cl_double2)
|
294
|
+
#undef SYCL_PLDEXP
|
295
|
+
|
296
|
+
#endif
|
297
|
+
} // end namespace internal
|
298
|
+
|
299
|
+
} // end namespace Eigen
|
300
|
+
|
301
|
+
#endif // EIGEN_MATH_FUNCTIONS_SYCL_H
|