xtgeo 4.10.0__cp313-cp313-macosx_11_0_arm64.whl → 4.10.1__cp313-cp313-macosx_11_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of xtgeo might be problematic. Click here for more details.

Files changed (561) hide show
  1. xtgeo/_internal.cpython-313-darwin.so +0 -0
  2. xtgeo/common/version.py +2 -2
  3. xtgeo/include/fmt/args.h +220 -0
  4. xtgeo/include/fmt/base.h +2989 -0
  5. xtgeo/include/fmt/chrono.h +2330 -0
  6. xtgeo/include/fmt/color.h +637 -0
  7. xtgeo/include/fmt/compile.h +539 -0
  8. xtgeo/include/fmt/core.h +5 -0
  9. xtgeo/include/fmt/format-inl.h +1948 -0
  10. xtgeo/include/fmt/format.h +4244 -0
  11. xtgeo/include/fmt/os.h +427 -0
  12. xtgeo/include/fmt/ostream.h +167 -0
  13. xtgeo/include/fmt/printf.h +633 -0
  14. xtgeo/include/fmt/ranges.h +850 -0
  15. xtgeo/include/fmt/std.h +728 -0
  16. xtgeo/include/fmt/xchar.h +369 -0
  17. xtgeo/lib/cmake/fmt/fmt-config-version.cmake +43 -0
  18. xtgeo/lib/cmake/fmt/fmt-config.cmake +31 -0
  19. xtgeo/lib/cmake/fmt/fmt-targets-release.cmake +19 -0
  20. xtgeo/{share/eigen3/cmake/Eigen3Targets.cmake → lib/cmake/fmt/fmt-targets.cmake} +16 -6
  21. xtgeo/lib/libfmt.a +0 -0
  22. xtgeo/lib/pkgconfig/fmt.pc +11 -0
  23. {xtgeo-4.10.0.dist-info → xtgeo-4.10.1.dist-info}/METADATA +1 -1
  24. xtgeo-4.10.1.dist-info/RECORD +137 -0
  25. xtgeo/include/eigen3/Eigen/Cholesky +0 -45
  26. xtgeo/include/eigen3/Eigen/CholmodSupport +0 -48
  27. xtgeo/include/eigen3/Eigen/Core +0 -384
  28. xtgeo/include/eigen3/Eigen/Dense +0 -7
  29. xtgeo/include/eigen3/Eigen/Eigen +0 -2
  30. xtgeo/include/eigen3/Eigen/Eigenvalues +0 -60
  31. xtgeo/include/eigen3/Eigen/Geometry +0 -59
  32. xtgeo/include/eigen3/Eigen/Householder +0 -29
  33. xtgeo/include/eigen3/Eigen/IterativeLinearSolvers +0 -48
  34. xtgeo/include/eigen3/Eigen/Jacobi +0 -32
  35. xtgeo/include/eigen3/Eigen/KLUSupport +0 -41
  36. xtgeo/include/eigen3/Eigen/LU +0 -47
  37. xtgeo/include/eigen3/Eigen/MetisSupport +0 -35
  38. xtgeo/include/eigen3/Eigen/OrderingMethods +0 -70
  39. xtgeo/include/eigen3/Eigen/PaStiXSupport +0 -49
  40. xtgeo/include/eigen3/Eigen/PardisoSupport +0 -35
  41. xtgeo/include/eigen3/Eigen/QR +0 -50
  42. xtgeo/include/eigen3/Eigen/QtAlignedMalloc +0 -39
  43. xtgeo/include/eigen3/Eigen/SPQRSupport +0 -34
  44. xtgeo/include/eigen3/Eigen/SVD +0 -50
  45. xtgeo/include/eigen3/Eigen/Sparse +0 -34
  46. xtgeo/include/eigen3/Eigen/SparseCholesky +0 -37
  47. xtgeo/include/eigen3/Eigen/SparseCore +0 -69
  48. xtgeo/include/eigen3/Eigen/SparseLU +0 -50
  49. xtgeo/include/eigen3/Eigen/SparseQR +0 -36
  50. xtgeo/include/eigen3/Eigen/StdDeque +0 -27
  51. xtgeo/include/eigen3/Eigen/StdList +0 -26
  52. xtgeo/include/eigen3/Eigen/StdVector +0 -27
  53. xtgeo/include/eigen3/Eigen/SuperLUSupport +0 -64
  54. xtgeo/include/eigen3/Eigen/UmfPackSupport +0 -40
  55. xtgeo/include/eigen3/Eigen/src/Cholesky/LDLT.h +0 -688
  56. xtgeo/include/eigen3/Eigen/src/Cholesky/LLT.h +0 -558
  57. xtgeo/include/eigen3/Eigen/src/Cholesky/LLT_LAPACKE.h +0 -99
  58. xtgeo/include/eigen3/Eigen/src/CholmodSupport/CholmodSupport.h +0 -682
  59. xtgeo/include/eigen3/Eigen/src/Core/ArithmeticSequence.h +0 -413
  60. xtgeo/include/eigen3/Eigen/src/Core/Array.h +0 -417
  61. xtgeo/include/eigen3/Eigen/src/Core/ArrayBase.h +0 -226
  62. xtgeo/include/eigen3/Eigen/src/Core/ArrayWrapper.h +0 -209
  63. xtgeo/include/eigen3/Eigen/src/Core/Assign.h +0 -90
  64. xtgeo/include/eigen3/Eigen/src/Core/AssignEvaluator.h +0 -1010
  65. xtgeo/include/eigen3/Eigen/src/Core/Assign_MKL.h +0 -178
  66. xtgeo/include/eigen3/Eigen/src/Core/BandMatrix.h +0 -353
  67. xtgeo/include/eigen3/Eigen/src/Core/Block.h +0 -448
  68. xtgeo/include/eigen3/Eigen/src/Core/BooleanRedux.h +0 -162
  69. xtgeo/include/eigen3/Eigen/src/Core/CommaInitializer.h +0 -164
  70. xtgeo/include/eigen3/Eigen/src/Core/ConditionEstimator.h +0 -175
  71. xtgeo/include/eigen3/Eigen/src/Core/CoreEvaluators.h +0 -1741
  72. xtgeo/include/eigen3/Eigen/src/Core/CoreIterators.h +0 -132
  73. xtgeo/include/eigen3/Eigen/src/Core/CwiseBinaryOp.h +0 -183
  74. xtgeo/include/eigen3/Eigen/src/Core/CwiseNullaryOp.h +0 -1001
  75. xtgeo/include/eigen3/Eigen/src/Core/CwiseTernaryOp.h +0 -197
  76. xtgeo/include/eigen3/Eigen/src/Core/CwiseUnaryOp.h +0 -103
  77. xtgeo/include/eigen3/Eigen/src/Core/CwiseUnaryView.h +0 -132
  78. xtgeo/include/eigen3/Eigen/src/Core/DenseBase.h +0 -701
  79. xtgeo/include/eigen3/Eigen/src/Core/DenseCoeffsBase.h +0 -685
  80. xtgeo/include/eigen3/Eigen/src/Core/DenseStorage.h +0 -652
  81. xtgeo/include/eigen3/Eigen/src/Core/Diagonal.h +0 -258
  82. xtgeo/include/eigen3/Eigen/src/Core/DiagonalMatrix.h +0 -391
  83. xtgeo/include/eigen3/Eigen/src/Core/DiagonalProduct.h +0 -28
  84. xtgeo/include/eigen3/Eigen/src/Core/Dot.h +0 -318
  85. xtgeo/include/eigen3/Eigen/src/Core/EigenBase.h +0 -160
  86. xtgeo/include/eigen3/Eigen/src/Core/ForceAlignedAccess.h +0 -150
  87. xtgeo/include/eigen3/Eigen/src/Core/Fuzzy.h +0 -155
  88. xtgeo/include/eigen3/Eigen/src/Core/GeneralProduct.h +0 -465
  89. xtgeo/include/eigen3/Eigen/src/Core/GenericPacketMath.h +0 -1040
  90. xtgeo/include/eigen3/Eigen/src/Core/GlobalFunctions.h +0 -194
  91. xtgeo/include/eigen3/Eigen/src/Core/IO.h +0 -258
  92. xtgeo/include/eigen3/Eigen/src/Core/IndexedView.h +0 -237
  93. xtgeo/include/eigen3/Eigen/src/Core/Inverse.h +0 -117
  94. xtgeo/include/eigen3/Eigen/src/Core/Map.h +0 -171
  95. xtgeo/include/eigen3/Eigen/src/Core/MapBase.h +0 -310
  96. xtgeo/include/eigen3/Eigen/src/Core/MathFunctions.h +0 -2057
  97. xtgeo/include/eigen3/Eigen/src/Core/MathFunctionsImpl.h +0 -200
  98. xtgeo/include/eigen3/Eigen/src/Core/Matrix.h +0 -565
  99. xtgeo/include/eigen3/Eigen/src/Core/MatrixBase.h +0 -547
  100. xtgeo/include/eigen3/Eigen/src/Core/NestByValue.h +0 -85
  101. xtgeo/include/eigen3/Eigen/src/Core/NoAlias.h +0 -109
  102. xtgeo/include/eigen3/Eigen/src/Core/NumTraits.h +0 -335
  103. xtgeo/include/eigen3/Eigen/src/Core/PartialReduxEvaluator.h +0 -232
  104. xtgeo/include/eigen3/Eigen/src/Core/PermutationMatrix.h +0 -605
  105. xtgeo/include/eigen3/Eigen/src/Core/PlainObjectBase.h +0 -1128
  106. xtgeo/include/eigen3/Eigen/src/Core/Product.h +0 -191
  107. xtgeo/include/eigen3/Eigen/src/Core/ProductEvaluators.h +0 -1179
  108. xtgeo/include/eigen3/Eigen/src/Core/Random.h +0 -218
  109. xtgeo/include/eigen3/Eigen/src/Core/Redux.h +0 -515
  110. xtgeo/include/eigen3/Eigen/src/Core/Ref.h +0 -381
  111. xtgeo/include/eigen3/Eigen/src/Core/Replicate.h +0 -142
  112. xtgeo/include/eigen3/Eigen/src/Core/Reshaped.h +0 -454
  113. xtgeo/include/eigen3/Eigen/src/Core/ReturnByValue.h +0 -119
  114. xtgeo/include/eigen3/Eigen/src/Core/Reverse.h +0 -217
  115. xtgeo/include/eigen3/Eigen/src/Core/Select.h +0 -164
  116. xtgeo/include/eigen3/Eigen/src/Core/SelfAdjointView.h +0 -365
  117. xtgeo/include/eigen3/Eigen/src/Core/SelfCwiseBinaryOp.h +0 -47
  118. xtgeo/include/eigen3/Eigen/src/Core/Solve.h +0 -188
  119. xtgeo/include/eigen3/Eigen/src/Core/SolveTriangular.h +0 -235
  120. xtgeo/include/eigen3/Eigen/src/Core/SolverBase.h +0 -168
  121. xtgeo/include/eigen3/Eigen/src/Core/StableNorm.h +0 -251
  122. xtgeo/include/eigen3/Eigen/src/Core/StlIterators.h +0 -463
  123. xtgeo/include/eigen3/Eigen/src/Core/Stride.h +0 -116
  124. xtgeo/include/eigen3/Eigen/src/Core/Swap.h +0 -68
  125. xtgeo/include/eigen3/Eigen/src/Core/Transpose.h +0 -464
  126. xtgeo/include/eigen3/Eigen/src/Core/Transpositions.h +0 -386
  127. xtgeo/include/eigen3/Eigen/src/Core/TriangularMatrix.h +0 -1001
  128. xtgeo/include/eigen3/Eigen/src/Core/VectorBlock.h +0 -96
  129. xtgeo/include/eigen3/Eigen/src/Core/VectorwiseOp.h +0 -784
  130. xtgeo/include/eigen3/Eigen/src/Core/Visitor.h +0 -381
  131. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/Complex.h +0 -372
  132. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/MathFunctions.h +0 -228
  133. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/PacketMath.h +0 -1574
  134. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/TypeCasting.h +0 -115
  135. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/Complex.h +0 -422
  136. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/MathFunctions.h +0 -362
  137. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/PacketMath.h +0 -2303
  138. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/TypeCasting.h +0 -89
  139. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/Complex.h +0 -417
  140. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MathFunctions.h +0 -90
  141. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProduct.h +0 -2937
  142. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h +0 -221
  143. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h +0 -629
  144. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/PacketMath.h +0 -2711
  145. xtgeo/include/eigen3/Eigen/src/Core/arch/CUDA/Complex.h +0 -258
  146. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/BFloat16.h +0 -700
  147. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/ConjHelper.h +0 -117
  148. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +0 -1649
  149. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctionsFwd.h +0 -110
  150. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/Half.h +0 -942
  151. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/Settings.h +0 -49
  152. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/TypeCasting.h +0 -120
  153. xtgeo/include/eigen3/Eigen/src/Core/arch/GPU/MathFunctions.h +0 -103
  154. xtgeo/include/eigen3/Eigen/src/Core/arch/GPU/PacketMath.h +0 -1685
  155. xtgeo/include/eigen3/Eigen/src/Core/arch/GPU/TypeCasting.h +0 -80
  156. xtgeo/include/eigen3/Eigen/src/Core/arch/HIP/hcc/math_constants.h +0 -23
  157. xtgeo/include/eigen3/Eigen/src/Core/arch/MSA/Complex.h +0 -648
  158. xtgeo/include/eigen3/Eigen/src/Core/arch/MSA/MathFunctions.h +0 -387
  159. xtgeo/include/eigen3/Eigen/src/Core/arch/MSA/PacketMath.h +0 -1233
  160. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/Complex.h +0 -584
  161. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/GeneralBlockPanelKernel.h +0 -183
  162. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/MathFunctions.h +0 -75
  163. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/PacketMath.h +0 -4587
  164. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/TypeCasting.h +0 -1419
  165. xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/Complex.h +0 -351
  166. xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/MathFunctions.h +0 -199
  167. xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/PacketMath.h +0 -1505
  168. xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/TypeCasting.h +0 -142
  169. xtgeo/include/eigen3/Eigen/src/Core/arch/SVE/MathFunctions.h +0 -44
  170. xtgeo/include/eigen3/Eigen/src/Core/arch/SVE/PacketMath.h +0 -752
  171. xtgeo/include/eigen3/Eigen/src/Core/arch/SVE/TypeCasting.h +0 -49
  172. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/InteropHeaders.h +0 -232
  173. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/MathFunctions.h +0 -301
  174. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/PacketMath.h +0 -670
  175. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/SyclMemoryModel.h +0 -694
  176. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/TypeCasting.h +0 -85
  177. xtgeo/include/eigen3/Eigen/src/Core/arch/ZVector/Complex.h +0 -426
  178. xtgeo/include/eigen3/Eigen/src/Core/arch/ZVector/MathFunctions.h +0 -233
  179. xtgeo/include/eigen3/Eigen/src/Core/arch/ZVector/PacketMath.h +0 -1060
  180. xtgeo/include/eigen3/Eigen/src/Core/functors/AssignmentFunctors.h +0 -177
  181. xtgeo/include/eigen3/Eigen/src/Core/functors/BinaryFunctors.h +0 -541
  182. xtgeo/include/eigen3/Eigen/src/Core/functors/NullaryFunctors.h +0 -189
  183. xtgeo/include/eigen3/Eigen/src/Core/functors/StlFunctors.h +0 -166
  184. xtgeo/include/eigen3/Eigen/src/Core/functors/TernaryFunctors.h +0 -25
  185. xtgeo/include/eigen3/Eigen/src/Core/functors/UnaryFunctors.h +0 -1131
  186. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h +0 -2645
  187. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrix.h +0 -517
  188. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h +0 -317
  189. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h +0 -145
  190. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrix_BLAS.h +0 -124
  191. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixVector.h +0 -518
  192. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixVector_BLAS.h +0 -136
  193. xtgeo/include/eigen3/Eigen/src/Core/products/Parallelizer.h +0 -180
  194. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix.h +0 -544
  195. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix_BLAS.h +0 -295
  196. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixVector.h +0 -262
  197. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixVector_BLAS.h +0 -118
  198. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointProduct.h +0 -133
  199. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointRank2Update.h +0 -94
  200. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixMatrix.h +0 -472
  201. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixMatrix_BLAS.h +0 -317
  202. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixVector.h +0 -350
  203. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixVector_BLAS.h +0 -255
  204. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularSolverMatrix.h +0 -337
  205. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularSolverMatrix_BLAS.h +0 -167
  206. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularSolverVector.h +0 -148
  207. xtgeo/include/eigen3/Eigen/src/Core/util/BlasUtil.h +0 -583
  208. xtgeo/include/eigen3/Eigen/src/Core/util/ConfigureVectorization.h +0 -512
  209. xtgeo/include/eigen3/Eigen/src/Core/util/Constants.h +0 -563
  210. xtgeo/include/eigen3/Eigen/src/Core/util/DisableStupidWarnings.h +0 -106
  211. xtgeo/include/eigen3/Eigen/src/Core/util/ForwardDeclarations.h +0 -322
  212. xtgeo/include/eigen3/Eigen/src/Core/util/IndexedViewHelper.h +0 -186
  213. xtgeo/include/eigen3/Eigen/src/Core/util/IntegralConstant.h +0 -272
  214. xtgeo/include/eigen3/Eigen/src/Core/util/MKL_support.h +0 -137
  215. xtgeo/include/eigen3/Eigen/src/Core/util/Macros.h +0 -1464
  216. xtgeo/include/eigen3/Eigen/src/Core/util/Memory.h +0 -1163
  217. xtgeo/include/eigen3/Eigen/src/Core/util/Meta.h +0 -812
  218. xtgeo/include/eigen3/Eigen/src/Core/util/NonMPL2.h +0 -3
  219. xtgeo/include/eigen3/Eigen/src/Core/util/ReenableStupidWarnings.h +0 -31
  220. xtgeo/include/eigen3/Eigen/src/Core/util/ReshapedHelper.h +0 -51
  221. xtgeo/include/eigen3/Eigen/src/Core/util/StaticAssert.h +0 -221
  222. xtgeo/include/eigen3/Eigen/src/Core/util/SymbolicIndex.h +0 -293
  223. xtgeo/include/eigen3/Eigen/src/Core/util/XprHelper.h +0 -856
  224. xtgeo/include/eigen3/Eigen/src/Eigenvalues/ComplexEigenSolver.h +0 -346
  225. xtgeo/include/eigen3/Eigen/src/Eigenvalues/ComplexSchur.h +0 -462
  226. xtgeo/include/eigen3/Eigen/src/Eigenvalues/ComplexSchur_LAPACKE.h +0 -91
  227. xtgeo/include/eigen3/Eigen/src/Eigenvalues/EigenSolver.h +0 -622
  228. xtgeo/include/eigen3/Eigen/src/Eigenvalues/GeneralizedEigenSolver.h +0 -418
  229. xtgeo/include/eigen3/Eigen/src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h +0 -226
  230. xtgeo/include/eigen3/Eigen/src/Eigenvalues/HessenbergDecomposition.h +0 -374
  231. xtgeo/include/eigen3/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h +0 -158
  232. xtgeo/include/eigen3/Eigen/src/Eigenvalues/RealQZ.h +0 -657
  233. xtgeo/include/eigen3/Eigen/src/Eigenvalues/RealSchur.h +0 -558
  234. xtgeo/include/eigen3/Eigen/src/Eigenvalues/RealSchur_LAPACKE.h +0 -77
  235. xtgeo/include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h +0 -904
  236. xtgeo/include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver_LAPACKE.h +0 -87
  237. xtgeo/include/eigen3/Eigen/src/Eigenvalues/Tridiagonalization.h +0 -561
  238. xtgeo/include/eigen3/Eigen/src/Geometry/AlignedBox.h +0 -486
  239. xtgeo/include/eigen3/Eigen/src/Geometry/AngleAxis.h +0 -247
  240. xtgeo/include/eigen3/Eigen/src/Geometry/EulerAngles.h +0 -114
  241. xtgeo/include/eigen3/Eigen/src/Geometry/Homogeneous.h +0 -501
  242. xtgeo/include/eigen3/Eigen/src/Geometry/Hyperplane.h +0 -282
  243. xtgeo/include/eigen3/Eigen/src/Geometry/OrthoMethods.h +0 -235
  244. xtgeo/include/eigen3/Eigen/src/Geometry/ParametrizedLine.h +0 -232
  245. xtgeo/include/eigen3/Eigen/src/Geometry/Quaternion.h +0 -870
  246. xtgeo/include/eigen3/Eigen/src/Geometry/Rotation2D.h +0 -199
  247. xtgeo/include/eigen3/Eigen/src/Geometry/RotationBase.h +0 -206
  248. xtgeo/include/eigen3/Eigen/src/Geometry/Scaling.h +0 -188
  249. xtgeo/include/eigen3/Eigen/src/Geometry/Transform.h +0 -1563
  250. xtgeo/include/eigen3/Eigen/src/Geometry/Translation.h +0 -202
  251. xtgeo/include/eigen3/Eigen/src/Geometry/Umeyama.h +0 -166
  252. xtgeo/include/eigen3/Eigen/src/Geometry/arch/Geometry_SIMD.h +0 -168
  253. xtgeo/include/eigen3/Eigen/src/Householder/BlockHouseholder.h +0 -110
  254. xtgeo/include/eigen3/Eigen/src/Householder/Householder.h +0 -176
  255. xtgeo/include/eigen3/Eigen/src/Householder/HouseholderSequence.h +0 -545
  256. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/BasicPreconditioners.h +0 -226
  257. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h +0 -212
  258. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/ConjugateGradient.h +0 -229
  259. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h +0 -394
  260. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h +0 -453
  261. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/IterativeSolverBase.h +0 -444
  262. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/LeastSquareConjugateGradient.h +0 -198
  263. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/SolveWithGuess.h +0 -117
  264. xtgeo/include/eigen3/Eigen/src/Jacobi/Jacobi.h +0 -483
  265. xtgeo/include/eigen3/Eigen/src/KLUSupport/KLUSupport.h +0 -358
  266. xtgeo/include/eigen3/Eigen/src/LU/Determinant.h +0 -117
  267. xtgeo/include/eigen3/Eigen/src/LU/FullPivLU.h +0 -877
  268. xtgeo/include/eigen3/Eigen/src/LU/InverseImpl.h +0 -432
  269. xtgeo/include/eigen3/Eigen/src/LU/PartialPivLU.h +0 -624
  270. xtgeo/include/eigen3/Eigen/src/LU/PartialPivLU_LAPACKE.h +0 -83
  271. xtgeo/include/eigen3/Eigen/src/LU/arch/InverseSize4.h +0 -351
  272. xtgeo/include/eigen3/Eigen/src/MetisSupport/MetisSupport.h +0 -137
  273. xtgeo/include/eigen3/Eigen/src/OrderingMethods/Amd.h +0 -435
  274. xtgeo/include/eigen3/Eigen/src/OrderingMethods/Eigen_Colamd.h +0 -1863
  275. xtgeo/include/eigen3/Eigen/src/OrderingMethods/Ordering.h +0 -153
  276. xtgeo/include/eigen3/Eigen/src/PaStiXSupport/PaStiXSupport.h +0 -678
  277. xtgeo/include/eigen3/Eigen/src/PardisoSupport/PardisoSupport.h +0 -545
  278. xtgeo/include/eigen3/Eigen/src/QR/ColPivHouseholderQR.h +0 -674
  279. xtgeo/include/eigen3/Eigen/src/QR/ColPivHouseholderQR_LAPACKE.h +0 -97
  280. xtgeo/include/eigen3/Eigen/src/QR/CompleteOrthogonalDecomposition.h +0 -635
  281. xtgeo/include/eigen3/Eigen/src/QR/FullPivHouseholderQR.h +0 -713
  282. xtgeo/include/eigen3/Eigen/src/QR/HouseholderQR.h +0 -434
  283. xtgeo/include/eigen3/Eigen/src/QR/HouseholderQR_LAPACKE.h +0 -68
  284. xtgeo/include/eigen3/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h +0 -335
  285. xtgeo/include/eigen3/Eigen/src/SVD/BDCSVD.h +0 -1366
  286. xtgeo/include/eigen3/Eigen/src/SVD/JacobiSVD.h +0 -812
  287. xtgeo/include/eigen3/Eigen/src/SVD/JacobiSVD_LAPACKE.h +0 -91
  288. xtgeo/include/eigen3/Eigen/src/SVD/SVDBase.h +0 -376
  289. xtgeo/include/eigen3/Eigen/src/SVD/UpperBidiagonalization.h +0 -414
  290. xtgeo/include/eigen3/Eigen/src/SparseCholesky/SimplicialCholesky.h +0 -697
  291. xtgeo/include/eigen3/Eigen/src/SparseCholesky/SimplicialCholesky_impl.h +0 -174
  292. xtgeo/include/eigen3/Eigen/src/SparseCore/AmbiVector.h +0 -378
  293. xtgeo/include/eigen3/Eigen/src/SparseCore/CompressedStorage.h +0 -274
  294. xtgeo/include/eigen3/Eigen/src/SparseCore/ConservativeSparseSparseProduct.h +0 -352
  295. xtgeo/include/eigen3/Eigen/src/SparseCore/MappedSparseMatrix.h +0 -67
  296. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseAssign.h +0 -270
  297. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseBlock.h +0 -571
  298. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseColEtree.h +0 -206
  299. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseCompressedBase.h +0 -370
  300. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +0 -722
  301. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseCwiseUnaryOp.h +0 -150
  302. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseDenseProduct.h +0 -342
  303. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseDiagonalProduct.h +0 -138
  304. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseDot.h +0 -98
  305. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseFuzzy.h +0 -29
  306. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseMap.h +0 -305
  307. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h +0 -1518
  308. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseMatrixBase.h +0 -398
  309. xtgeo/include/eigen3/Eigen/src/SparseCore/SparsePermutation.h +0 -178
  310. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseProduct.h +0 -181
  311. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseRedux.h +0 -49
  312. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseRef.h +0 -397
  313. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseSelfAdjointView.h +0 -659
  314. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseSolverBase.h +0 -124
  315. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseSparseProductWithPruning.h +0 -198
  316. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseTranspose.h +0 -92
  317. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseTriangularView.h +0 -189
  318. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseUtil.h +0 -186
  319. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseVector.h +0 -478
  320. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseView.h +0 -254
  321. xtgeo/include/eigen3/Eigen/src/SparseCore/TriangularSolver.h +0 -315
  322. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU.h +0 -923
  323. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLUImpl.h +0 -66
  324. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_Memory.h +0 -226
  325. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_Structs.h +0 -110
  326. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +0 -375
  327. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_Utils.h +0 -80
  328. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_column_bmod.h +0 -181
  329. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_column_dfs.h +0 -179
  330. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h +0 -107
  331. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_gemm_kernel.h +0 -280
  332. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +0 -126
  333. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_kernel_bmod.h +0 -130
  334. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_panel_bmod.h +0 -223
  335. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_panel_dfs.h +0 -258
  336. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_pivotL.h +0 -137
  337. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_pruneL.h +0 -136
  338. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_relax_snode.h +0 -83
  339. xtgeo/include/eigen3/Eigen/src/SparseQR/SparseQR.h +0 -758
  340. xtgeo/include/eigen3/Eigen/src/StlSupport/StdDeque.h +0 -116
  341. xtgeo/include/eigen3/Eigen/src/StlSupport/StdList.h +0 -106
  342. xtgeo/include/eigen3/Eigen/src/StlSupport/StdVector.h +0 -131
  343. xtgeo/include/eigen3/Eigen/src/StlSupport/details.h +0 -84
  344. xtgeo/include/eigen3/Eigen/src/SuperLUSupport/SuperLUSupport.h +0 -1025
  345. xtgeo/include/eigen3/Eigen/src/UmfPackSupport/UmfPackSupport.h +0 -642
  346. xtgeo/include/eigen3/Eigen/src/misc/Image.h +0 -82
  347. xtgeo/include/eigen3/Eigen/src/misc/Kernel.h +0 -79
  348. xtgeo/include/eigen3/Eigen/src/misc/RealSvd2x2.h +0 -55
  349. xtgeo/include/eigen3/Eigen/src/misc/blas.h +0 -440
  350. xtgeo/include/eigen3/Eigen/src/misc/lapack.h +0 -152
  351. xtgeo/include/eigen3/Eigen/src/misc/lapacke.h +0 -16292
  352. xtgeo/include/eigen3/Eigen/src/misc/lapacke_mangling.h +0 -17
  353. xtgeo/include/eigen3/Eigen/src/plugins/ArrayCwiseBinaryOps.h +0 -358
  354. xtgeo/include/eigen3/Eigen/src/plugins/ArrayCwiseUnaryOps.h +0 -696
  355. xtgeo/include/eigen3/Eigen/src/plugins/BlockMethods.h +0 -1442
  356. xtgeo/include/eigen3/Eigen/src/plugins/CommonCwiseBinaryOps.h +0 -115
  357. xtgeo/include/eigen3/Eigen/src/plugins/CommonCwiseUnaryOps.h +0 -177
  358. xtgeo/include/eigen3/Eigen/src/plugins/IndexedViewMethods.h +0 -262
  359. xtgeo/include/eigen3/Eigen/src/plugins/MatrixCwiseBinaryOps.h +0 -152
  360. xtgeo/include/eigen3/Eigen/src/plugins/MatrixCwiseUnaryOps.h +0 -95
  361. xtgeo/include/eigen3/Eigen/src/plugins/ReshapedMethods.h +0 -149
  362. xtgeo/include/eigen3/signature_of_eigen3_matrix_library +0 -1
  363. xtgeo/include/eigen3/unsupported/Eigen/AdolcForward +0 -159
  364. xtgeo/include/eigen3/unsupported/Eigen/AlignedVector3 +0 -234
  365. xtgeo/include/eigen3/unsupported/Eigen/ArpackSupport +0 -30
  366. xtgeo/include/eigen3/unsupported/Eigen/AutoDiff +0 -46
  367. xtgeo/include/eigen3/unsupported/Eigen/BVH +0 -95
  368. xtgeo/include/eigen3/unsupported/Eigen/CXX11/Tensor +0 -137
  369. xtgeo/include/eigen3/unsupported/Eigen/CXX11/TensorSymmetry +0 -42
  370. xtgeo/include/eigen3/unsupported/Eigen/CXX11/ThreadPool +0 -74
  371. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/Tensor.h +0 -554
  372. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorArgMax.h +0 -329
  373. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h +0 -247
  374. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h +0 -1176
  375. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h +0 -1559
  376. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h +0 -1093
  377. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h +0 -518
  378. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConcatenation.h +0 -377
  379. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h +0 -1023
  380. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionBlocking.h +0 -73
  381. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionCuda.h +0 -6
  382. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionGpu.h +0 -1413
  383. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionMapper.h +0 -575
  384. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionSycl.h +0 -1650
  385. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h +0 -1679
  386. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConversion.h +0 -456
  387. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConvolution.h +0 -1132
  388. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConvolutionSycl.h +0 -544
  389. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorCostModel.h +0 -214
  390. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorCustomOp.h +0 -347
  391. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDevice.h +0 -137
  392. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h +0 -6
  393. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceDefault.h +0 -104
  394. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceGpu.h +0 -389
  395. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h +0 -1048
  396. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +0 -409
  397. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h +0 -236
  398. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h +0 -490
  399. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvalTo.h +0 -236
  400. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h +0 -983
  401. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h +0 -703
  402. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h +0 -388
  403. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFFT.h +0 -669
  404. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFixedSize.h +0 -379
  405. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorForcedEval.h +0 -237
  406. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h +0 -191
  407. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h +0 -488
  408. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGenerator.h +0 -302
  409. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGlobalFunctions.h +0 -33
  410. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGpuHipCudaDefines.h +0 -99
  411. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGpuHipCudaUndefines.h +0 -44
  412. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIO.h +0 -79
  413. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +0 -603
  414. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h +0 -738
  415. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorInflation.h +0 -247
  416. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorInitializer.h +0 -82
  417. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h +0 -263
  418. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorLayoutSwap.h +0 -216
  419. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMacros.h +0 -98
  420. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h +0 -327
  421. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h +0 -311
  422. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h +0 -1102
  423. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorPadding.h +0 -708
  424. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h +0 -291
  425. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h +0 -322
  426. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h +0 -998
  427. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h +0 -6
  428. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionGpu.h +0 -966
  429. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +0 -582
  430. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h +0 -454
  431. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReverse.h +0 -465
  432. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorScan.h +0 -528
  433. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +0 -513
  434. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorShuffling.h +0 -471
  435. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorStorage.h +0 -161
  436. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorStriding.h +0 -346
  437. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h +0 -303
  438. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h +0 -264
  439. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h +0 -249
  440. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorVolumePatch.h +0 -629
  441. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/DynamicSymmetry.h +0 -293
  442. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/StaticSymmetry.h +0 -236
  443. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/Symmetry.h +0 -338
  444. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/util/TemplateGroupTheory.h +0 -669
  445. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/Barrier.h +0 -67
  446. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/EventCount.h +0 -249
  447. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h +0 -486
  448. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/RunQueue.h +0 -236
  449. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadCancel.h +0 -23
  450. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadEnvironment.h +0 -40
  451. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadLocal.h +0 -301
  452. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h +0 -48
  453. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h +0 -20
  454. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/CXX11Meta.h +0 -537
  455. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/CXX11Workarounds.h +0 -88
  456. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/EmulateArray.h +0 -261
  457. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/MaxSizeVector.h +0 -158
  458. xtgeo/include/eigen3/unsupported/Eigen/EulerAngles +0 -43
  459. xtgeo/include/eigen3/unsupported/Eigen/FFT +0 -419
  460. xtgeo/include/eigen3/unsupported/Eigen/IterativeSolvers +0 -51
  461. xtgeo/include/eigen3/unsupported/Eigen/KroneckerProduct +0 -36
  462. xtgeo/include/eigen3/unsupported/Eigen/LevenbergMarquardt +0 -49
  463. xtgeo/include/eigen3/unsupported/Eigen/MPRealSupport +0 -213
  464. xtgeo/include/eigen3/unsupported/Eigen/MatrixFunctions +0 -504
  465. xtgeo/include/eigen3/unsupported/Eigen/MoreVectorization +0 -24
  466. xtgeo/include/eigen3/unsupported/Eigen/NonLinearOptimization +0 -140
  467. xtgeo/include/eigen3/unsupported/Eigen/NumericalDiff +0 -56
  468. xtgeo/include/eigen3/unsupported/Eigen/OpenGLSupport +0 -322
  469. xtgeo/include/eigen3/unsupported/Eigen/Polynomials +0 -137
  470. xtgeo/include/eigen3/unsupported/Eigen/Skyline +0 -39
  471. xtgeo/include/eigen3/unsupported/Eigen/SparseExtra +0 -54
  472. xtgeo/include/eigen3/unsupported/Eigen/SpecialFunctions +0 -103
  473. xtgeo/include/eigen3/unsupported/Eigen/Splines +0 -35
  474. xtgeo/include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffJacobian.h +0 -108
  475. xtgeo/include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +0 -730
  476. xtgeo/include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffVector.h +0 -220
  477. xtgeo/include/eigen3/unsupported/Eigen/src/BVH/BVAlgorithms.h +0 -293
  478. xtgeo/include/eigen3/unsupported/Eigen/src/BVH/KdBVH.h +0 -223
  479. xtgeo/include/eigen3/unsupported/Eigen/src/Eigenvalues/ArpackSelfAdjointEigenSolver.h +0 -790
  480. xtgeo/include/eigen3/unsupported/Eigen/src/EulerAngles/EulerAngles.h +0 -355
  481. xtgeo/include/eigen3/unsupported/Eigen/src/EulerAngles/EulerSystem.h +0 -305
  482. xtgeo/include/eigen3/unsupported/Eigen/src/FFT/ei_fftw_impl.h +0 -261
  483. xtgeo/include/eigen3/unsupported/Eigen/src/FFT/ei_kissfft_impl.h +0 -449
  484. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/ConstrainedConjGrad.h +0 -187
  485. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/DGMRES.h +0 -511
  486. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/GMRES.h +0 -335
  487. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/IDRS.h +0 -436
  488. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/IncompleteLU.h +0 -90
  489. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/IterationController.h +0 -154
  490. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/MINRES.h +0 -267
  491. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/Scaling.h +0 -193
  492. xtgeo/include/eigen3/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h +0 -305
  493. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMcovar.h +0 -84
  494. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMonestep.h +0 -202
  495. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMpar.h +0 -160
  496. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMqrsolv.h +0 -188
  497. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LevenbergMarquardt.h +0 -396
  498. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +0 -441
  499. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h +0 -569
  500. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h +0 -373
  501. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixPower.h +0 -705
  502. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h +0 -368
  503. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/StemFunction.h +0 -117
  504. xtgeo/include/eigen3/unsupported/Eigen/src/MoreVectorization/MathFunctions.h +0 -95
  505. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/HybridNonLinearSolver.h +0 -601
  506. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h +0 -657
  507. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/chkder.h +0 -66
  508. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/covar.h +0 -70
  509. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/dogleg.h +0 -107
  510. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/fdjac1.h +0 -79
  511. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/lmpar.h +0 -298
  512. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h +0 -91
  513. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/r1mpyq.h +0 -30
  514. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/r1updt.h +0 -99
  515. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h +0 -49
  516. xtgeo/include/eigen3/unsupported/Eigen/src/NumericalDiff/NumericalDiff.h +0 -130
  517. xtgeo/include/eigen3/unsupported/Eigen/src/Polynomials/Companion.h +0 -280
  518. xtgeo/include/eigen3/unsupported/Eigen/src/Polynomials/PolynomialSolver.h +0 -428
  519. xtgeo/include/eigen3/unsupported/Eigen/src/Polynomials/PolynomialUtils.h +0 -143
  520. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineInplaceLU.h +0 -352
  521. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineMatrix.h +0 -862
  522. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineMatrixBase.h +0 -212
  523. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineProduct.h +0 -295
  524. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineStorage.h +0 -259
  525. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineUtil.h +0 -89
  526. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/BlockOfDynamicSparseMatrix.h +0 -122
  527. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h +0 -1079
  528. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/DynamicSparseMatrix.h +0 -404
  529. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/MarketIO.h +0 -282
  530. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/MatrixMarketIterator.h +0 -247
  531. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/RandomSetter.h +0 -349
  532. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsArrayAPI.h +0 -286
  533. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsBFloat16.h +0 -68
  534. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsFunctors.h +0 -357
  535. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsHalf.h +0 -66
  536. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsImpl.h +0 -1959
  537. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsPacketMath.h +0 -118
  538. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/HipVectorCompatibility.h +0 -67
  539. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsArrayAPI.h +0 -167
  540. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsBFloat16.h +0 -58
  541. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsFunctors.h +0 -330
  542. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsHalf.h +0 -58
  543. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +0 -2045
  544. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsPacketMath.h +0 -79
  545. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX/BesselFunctions.h +0 -46
  546. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX/SpecialFunctions.h +0 -16
  547. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX512/BesselFunctions.h +0 -46
  548. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX512/SpecialFunctions.h +0 -16
  549. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/GPU/SpecialFunctions.h +0 -369
  550. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/NEON/BesselFunctions.h +0 -54
  551. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/NEON/SpecialFunctions.h +0 -34
  552. xtgeo/include/eigen3/unsupported/Eigen/src/Splines/Spline.h +0 -507
  553. xtgeo/include/eigen3/unsupported/Eigen/src/Splines/SplineFitting.h +0 -431
  554. xtgeo/include/eigen3/unsupported/Eigen/src/Splines/SplineFwd.h +0 -93
  555. xtgeo/share/eigen3/cmake/Eigen3Config.cmake +0 -37
  556. xtgeo/share/eigen3/cmake/Eigen3ConfigVersion.cmake +0 -65
  557. xtgeo/share/eigen3/cmake/UseEigen3.cmake +0 -6
  558. xtgeo/share/pkgconfig/eigen3.pc +0 -9
  559. xtgeo-4.10.0.dist-info/RECORD +0 -652
  560. {xtgeo-4.10.0.dist-info → xtgeo-4.10.1.dist-info}/WHEEL +0 -0
  561. {xtgeo-4.10.0.dist-info → xtgeo-4.10.1.dist-info}/licenses/LICENSE.md +0 -0
@@ -1,998 +0,0 @@
1
- // This file is part of Eigen, a lightweight C++ template library
2
- // for linear algebra.
3
- //
4
- // Copyright (C) 2014 Benoit Steiner <benoit.steiner.goog@gmail.com>
5
- // Copyright (C) 2016 Mehdi Goli, Codeplay Software Ltd <eigen@codeplay.com>
6
- //
7
- // This Source Code Form is subject to the terms of the Mozilla
8
- // Public License v. 2.0. If a copy of the MPL was not distributed
9
- // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
10
-
11
- #ifndef EIGEN_CXX11_TENSOR_TENSOR_REDUCTION_H
12
- #define EIGEN_CXX11_TENSOR_TENSOR_REDUCTION_H
13
-
14
- // clang is incompatible with the CUDA syntax wrt making a kernel a class friend,
15
- // so we'll use a macro to make clang happy.
16
- #ifndef KERNEL_FRIEND
17
- #if defined(__clang__) && (defined(__CUDA__) || defined(__HIP__))
18
- #define KERNEL_FRIEND friend __global__ EIGEN_HIP_LAUNCH_BOUNDS_1024
19
- #else
20
- #define KERNEL_FRIEND friend
21
- #endif
22
- #endif
23
-
24
-
25
- namespace Eigen {
26
-
27
-
28
- /** \class TensorReduction
29
- * \ingroup CXX11_Tensor_Module
30
- *
31
- * \brief Tensor reduction class.
32
- *
33
- */
34
-
35
- namespace internal {
36
- template<typename Op, typename Dims, typename XprType,template <class> class MakePointer_ >
37
- struct traits<TensorReductionOp<Op, Dims, XprType, MakePointer_> >
38
- : traits<XprType>
39
- {
40
- typedef traits<XprType> XprTraits;
41
- typedef typename XprTraits::Scalar Scalar;
42
- typedef typename XprTraits::StorageKind StorageKind;
43
- typedef typename XprTraits::Index Index;
44
- typedef typename XprType::Nested Nested;
45
- static const int NumDimensions = XprTraits::NumDimensions - array_size<Dims>::value;
46
- static const int Layout = XprTraits::Layout;
47
- typedef typename XprTraits::PointerType PointerType;
48
-
49
- template <class T> struct MakePointer {
50
- // Intermediate typedef to workaround MSVC issue.
51
- typedef MakePointer_<T> MakePointerT;
52
- typedef typename MakePointerT::Type Type;
53
- };
54
- };
55
-
56
- template<typename Op, typename Dims, typename XprType, template <class> class MakePointer_>
57
- struct eval<TensorReductionOp<Op, Dims, XprType, MakePointer_>, Eigen::Dense>
58
- {
59
- typedef const TensorReductionOp<Op, Dims, XprType, MakePointer_>& type;
60
- };
61
-
62
- template<typename Op, typename Dims, typename XprType, template <class> class MakePointer_>
63
- struct nested<TensorReductionOp<Op, Dims, XprType, MakePointer_>, 1, typename eval<TensorReductionOp<Op, Dims, XprType, MakePointer_> >::type>
64
- {
65
- typedef TensorReductionOp<Op, Dims, XprType, MakePointer_> type;
66
- };
67
-
68
-
69
- template <typename OutputDims> struct DimInitializer {
70
- template <typename InputDims, typename ReducedDims> EIGEN_DEVICE_FUNC
71
- static void run(const InputDims& input_dims,
72
- const array<bool, internal::array_size<InputDims>::value>& reduced,
73
- OutputDims* output_dims, ReducedDims* reduced_dims) {
74
- const int NumInputDims = internal::array_size<InputDims>::value;
75
- int outputIndex = 0;
76
- int reduceIndex = 0;
77
- for (int i = 0; i < NumInputDims; ++i) {
78
- if (reduced[i]) {
79
- (*reduced_dims)[reduceIndex] = input_dims[i];
80
- ++reduceIndex;
81
- } else {
82
- (*output_dims)[outputIndex] = input_dims[i];
83
- ++outputIndex;
84
- }
85
- }
86
- }
87
- };
88
-
89
- template <> struct DimInitializer<Sizes<> > {
90
- template <typename InputDims, typename Index, size_t Rank> EIGEN_DEVICE_FUNC
91
- static void run(const InputDims& input_dims, const array<bool, Rank>&,
92
- Sizes<>*, array<Index, Rank>* reduced_dims) {
93
- const int NumInputDims = internal::array_size<InputDims>::value;
94
- for (int i = 0; i < NumInputDims; ++i) {
95
- (*reduced_dims)[i] = input_dims[i];
96
- }
97
- }
98
- };
99
-
100
-
101
- template <typename ReducedDims, int NumTensorDims, int Layout>
102
- struct are_inner_most_dims {
103
- static const bool value = false;
104
- };
105
- template <typename ReducedDims, int NumTensorDims, int Layout>
106
- struct preserve_inner_most_dims {
107
- static const bool value = false;
108
- };
109
-
110
- #if EIGEN_HAS_CONSTEXPR && EIGEN_HAS_VARIADIC_TEMPLATES
111
- template <typename ReducedDims, int NumTensorDims>
112
- struct are_inner_most_dims<ReducedDims, NumTensorDims, ColMajor>{
113
- static const bool tmp1 = indices_statically_known_to_increase<ReducedDims>();
114
- static const bool tmp2 = index_statically_eq<ReducedDims>(0, 0);
115
- static const bool tmp3 = index_statically_eq<ReducedDims>(array_size<ReducedDims>::value-1, array_size<ReducedDims>::value-1);
116
- static const bool value = tmp1 & tmp2 & tmp3;
117
- };
118
- template <typename ReducedDims, int NumTensorDims>
119
- struct are_inner_most_dims<ReducedDims, NumTensorDims, RowMajor>{
120
- static const bool tmp1 = indices_statically_known_to_increase<ReducedDims>();
121
- static const bool tmp2 = index_statically_eq<ReducedDims>(0, NumTensorDims - array_size<ReducedDims>::value);
122
- static const bool tmp3 = index_statically_eq<ReducedDims>(array_size<ReducedDims>::value - 1, NumTensorDims - 1);
123
- static const bool value = tmp1 & tmp2 & tmp3;
124
-
125
- };
126
- template <typename ReducedDims, int NumTensorDims>
127
- struct preserve_inner_most_dims<ReducedDims, NumTensorDims, ColMajor>{
128
- static const bool tmp1 = indices_statically_known_to_increase<ReducedDims>();
129
- static const bool tmp2 = index_statically_gt<ReducedDims>(0, 0);
130
- static const bool value = tmp1 & tmp2;
131
-
132
- };
133
- template <typename ReducedDims, int NumTensorDims>
134
- struct preserve_inner_most_dims<ReducedDims, NumTensorDims, RowMajor>{
135
- static const bool tmp1 = indices_statically_known_to_increase<ReducedDims>();
136
- static const bool tmp2 = index_statically_lt<ReducedDims>(array_size<ReducedDims>::value - 1, NumTensorDims - 1);
137
- static const bool value = tmp1 & tmp2;
138
- };
139
- #endif
140
-
141
-
142
- template <int DimIndex, typename Self, typename Op>
143
- struct GenericDimReducer {
144
- static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void reduce(const Self& self, typename Self::Index firstIndex, Op& reducer, typename Self::CoeffReturnType* accum) {
145
- EIGEN_STATIC_ASSERT((DimIndex > 0), YOU_MADE_A_PROGRAMMING_MISTAKE);
146
- for (int j = 0; j < self.m_reducedDims[DimIndex]; ++j) {
147
- const typename Self::Index input = firstIndex + j * self.m_reducedStrides[DimIndex];
148
- GenericDimReducer<DimIndex-1, Self, Op>::reduce(self, input, reducer, accum);
149
- }
150
- }
151
- };
152
- template <typename Self, typename Op>
153
- struct GenericDimReducer<0, Self, Op> {
154
- static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void reduce(const Self& self, typename Self::Index firstIndex, Op& reducer, typename Self::CoeffReturnType* accum) {
155
- for (int j = 0; j < self.m_reducedDims[0]; ++j) {
156
- const typename Self::Index input = firstIndex + j * self.m_reducedStrides[0];
157
- reducer.reduce(self.m_impl.coeff(input), accum);
158
- }
159
- }
160
- };
161
- template <typename Self, typename Op>
162
- struct GenericDimReducer<-1, Self, Op> {
163
- static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void reduce(const Self& self, typename Self::Index index, Op& reducer, typename Self::CoeffReturnType* accum) {
164
- reducer.reduce(self.m_impl.coeff(index), accum);
165
- }
166
- };
167
-
168
- template <typename Self, typename Op, bool Vectorizable = (Self::InputPacketAccess && Self::ReducerTraits::PacketAccess),
169
- bool UseTreeReduction = (!Self::ReducerTraits::IsStateful &&
170
- !Self::ReducerTraits::IsExactlyAssociative)>
171
- struct InnerMostDimReducer {
172
- static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE typename Self::CoeffReturnType reduce(const Self& self, typename Self::Index firstIndex, typename Self::Index numValuesToReduce, Op& reducer) {
173
- typename Self::CoeffReturnType accum = reducer.initialize();
174
- for (typename Self::Index j = 0; j < numValuesToReduce; ++j) {
175
- reducer.reduce(self.m_impl.coeff(firstIndex + j), &accum);
176
- }
177
- return reducer.finalize(accum);
178
- }
179
- };
180
-
181
- template <typename Self, typename Op>
182
- struct InnerMostDimReducer<Self, Op, true, false> {
183
- static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE typename Self::CoeffReturnType reduce(const Self& self, typename Self::Index firstIndex, typename Self::Index numValuesToReduce, Op& reducer) {
184
- const typename Self::Index packetSize = internal::unpacket_traits<typename Self::PacketReturnType>::size;
185
- const typename Self::Index VectorizedSize = (numValuesToReduce / packetSize) * packetSize;
186
- typename Self::PacketReturnType paccum = reducer.template initializePacket<typename Self::PacketReturnType>();
187
- for (typename Self::Index j = 0; j < VectorizedSize; j += packetSize) {
188
- reducer.reducePacket(self.m_impl.template packet<Unaligned>(firstIndex + j), &paccum);
189
- }
190
- typename Self::CoeffReturnType accum = reducer.initialize();
191
- for (typename Self::Index j = VectorizedSize; j < numValuesToReduce; ++j) {
192
- reducer.reduce(self.m_impl.coeff(firstIndex + j), &accum);
193
- }
194
- return reducer.finalizeBoth(accum, paccum);
195
- }
196
- };
197
-
198
- #if !defined(EIGEN_HIPCC)
199
- static const int kLeafSize = 1024;
200
-
201
- template <typename Self, typename Op>
202
- struct InnerMostDimReducer<Self, Op, false, true> {
203
- static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE typename Self::CoeffReturnType
204
- reduce(const Self& self, typename Self::Index firstIndex,
205
- typename Self::Index numValuesToReduce, Op& reducer) {
206
- typename Self::CoeffReturnType accum = reducer.initialize();
207
- if (numValuesToReduce > kLeafSize) {
208
- const typename Self::Index half = numValuesToReduce / 2;
209
- reducer.reduce(reduce(self, firstIndex, half, reducer), &accum);
210
- reducer.reduce(
211
- reduce(self, firstIndex + half, numValuesToReduce - half, reducer),
212
- &accum);
213
- } else {
214
- for (typename Self::Index j = 0; j < numValuesToReduce; ++j) {
215
- reducer.reduce(self.m_impl.coeff(firstIndex + j), &accum);
216
- }
217
- }
218
- return reducer.finalize(accum);
219
- }
220
- };
221
-
222
- template <typename Self, typename Op>
223
- struct InnerMostDimReducer<Self, Op, true, true> {
224
- static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE typename Self::CoeffReturnType
225
- reduce(const Self& self, typename Self::Index firstIndex,
226
- typename Self::Index numValuesToReduce, Op& reducer) {
227
- const typename Self::Index packetSize =
228
- internal::unpacket_traits<typename Self::PacketReturnType>::size;
229
- typename Self::CoeffReturnType accum = reducer.initialize();
230
- if (numValuesToReduce > packetSize * kLeafSize) {
231
- // Make sure the split point is aligned on a packet boundary.
232
- const typename Self::Index split =
233
- packetSize *
234
- divup(firstIndex + divup(numValuesToReduce, typename Self::Index(2)),
235
- packetSize);
236
- const typename Self::Index num_left =
237
- numext::mini(split - firstIndex, numValuesToReduce);
238
- reducer.reduce(reduce(self, firstIndex, num_left, reducer), &accum);
239
- if (num_left < numValuesToReduce) {
240
- reducer.reduce(
241
- reduce(self, split, numValuesToReduce - num_left, reducer), &accum);
242
- }
243
- return reducer.finalize(accum);
244
- } else {
245
- const typename Self::Index UnrollSize =
246
- (numValuesToReduce / (2*packetSize)) * 2*packetSize;
247
- const typename Self::Index VectorizedSize =
248
- (numValuesToReduce / packetSize) * packetSize;
249
- typename Self::PacketReturnType paccum =
250
- reducer.template initializePacket<typename Self::PacketReturnType>();
251
- typename Self::PacketReturnType paccum2 =
252
- reducer.template initializePacket<typename Self::PacketReturnType>();
253
- for (typename Self::Index j = 0; j < UnrollSize; j += packetSize * 2) {
254
- reducer.reducePacket(
255
- self.m_impl.template packet<Unaligned>(firstIndex + j), &paccum);
256
- reducer.reducePacket(
257
- self.m_impl.template packet<Unaligned>(firstIndex + j + packetSize),
258
- &paccum2);
259
- }
260
- for (typename Self::Index j = UnrollSize; j < VectorizedSize; j+= packetSize) {
261
- reducer.reducePacket(self.m_impl.template packet<Unaligned>(
262
- firstIndex + j), &paccum);
263
- }
264
- reducer.reducePacket(paccum2, &paccum);
265
- for (typename Self::Index j = VectorizedSize; j < numValuesToReduce;
266
- ++j) {
267
- reducer.reduce(self.m_impl.coeff(firstIndex + j), &accum);
268
- }
269
- return reducer.finalizeBoth(accum, paccum);
270
- }
271
- }
272
- };
273
- #endif
274
-
275
- template <int DimIndex, typename Self, typename Op, bool vectorizable = (Self::InputPacketAccess && Self::ReducerTraits::PacketAccess)>
276
- struct InnerMostDimPreserver {
277
- static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void reduce(const Self&, typename Self::Index, Op&, typename Self::PacketReturnType*) {
278
- eigen_assert(false && "should never be called");
279
- }
280
- };
281
-
282
- template <int DimIndex, typename Self, typename Op>
283
- struct InnerMostDimPreserver<DimIndex, Self, Op, true> {
284
- static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void reduce(const Self& self, typename Self::Index firstIndex, Op& reducer, typename Self::PacketReturnType* accum) {
285
- EIGEN_STATIC_ASSERT((DimIndex > 0), YOU_MADE_A_PROGRAMMING_MISTAKE);
286
- for (typename Self::Index j = 0; j < self.m_reducedDims[DimIndex]; ++j) {
287
- const typename Self::Index input = firstIndex + j * self.m_reducedStrides[DimIndex];
288
- InnerMostDimPreserver<DimIndex-1, Self, Op>::reduce(self, input, reducer, accum);
289
- }
290
- }
291
- };
292
-
293
- template <typename Self, typename Op>
294
- struct InnerMostDimPreserver<0, Self, Op, true> {
295
- static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void reduce(const Self& self, typename Self::Index firstIndex, Op& reducer, typename Self::PacketReturnType* accum) {
296
- for (typename Self::Index j = 0; j < self.m_reducedDims[0]; ++j) {
297
- const typename Self::Index input = firstIndex + j * self.m_reducedStrides[0];
298
- reducer.reducePacket(self.m_impl.template packet<Unaligned>(input), accum);
299
- }
300
- }
301
- };
302
- template <typename Self, typename Op>
303
- struct InnerMostDimPreserver<-1, Self, Op, true> {
304
- static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void reduce(const Self&, typename Self::Index, Op&, typename Self::PacketReturnType*) {
305
- eigen_assert(false && "should never be called");
306
- }
307
- };
308
-
309
- // Default full reducer
310
- template <typename Self, typename Op, typename Device, bool Vectorizable = (Self::InputPacketAccess && Self::ReducerTraits::PacketAccess)>
311
- struct FullReducer {
312
- static const bool HasOptimizedImplementation = false;
313
-
314
- static EIGEN_DEVICE_FUNC void run(const Self& self, Op& reducer, const Device&, typename Self::EvaluatorPointerType output) {
315
- const typename Self::Index num_coeffs = array_prod(self.m_impl.dimensions());
316
- *output = InnerMostDimReducer<Self, Op, Vectorizable>::reduce(self, 0, num_coeffs, reducer);
317
- }
318
- };
319
-
320
-
321
- #ifdef EIGEN_USE_THREADS
322
- // Multithreaded full reducers
323
- template <typename Self, typename Op,
324
- bool Vectorizable = (Self::InputPacketAccess && Self::ReducerTraits::PacketAccess)>
325
- struct FullReducerShard {
326
- static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void run(const Self& self, typename Self::Index firstIndex,
327
- typename Self::Index numValuesToReduce, Op& reducer,
328
- typename Self::CoeffReturnType* output) {
329
- *output = InnerMostDimReducer<Self, Op, Vectorizable>::reduce(
330
- self, firstIndex, numValuesToReduce, reducer);
331
- }
332
- };
333
-
334
- // Multithreaded full reducer
335
- template <typename Self, typename Op, bool Vectorizable>
336
- struct FullReducer<Self, Op, ThreadPoolDevice, Vectorizable> {
337
- static const bool HasOptimizedImplementation = !Self::ReducerTraits::IsStateful;
338
- static const Index PacketSize =
339
- unpacket_traits<typename Self::PacketReturnType>::size;
340
-
341
- // launch one reducer per thread and accumulate the result.
342
- static void run(const Self& self, Op& reducer, const ThreadPoolDevice& device,
343
- typename Self::CoeffReturnType* output) {
344
- typedef typename Self::Index Index;
345
- const Index num_coeffs = array_prod(self.m_impl.dimensions());
346
- if (num_coeffs == 0) {
347
- *output = reducer.finalize(reducer.initialize());
348
- return;
349
- }
350
- const TensorOpCost cost =
351
- self.m_impl.costPerCoeff(Vectorizable) +
352
- TensorOpCost(0, 0, internal::functor_traits<Op>::Cost, Vectorizable,
353
- PacketSize);
354
- const int num_threads = TensorCostModel<ThreadPoolDevice>::numThreads(
355
- num_coeffs, cost, device.numThreads());
356
- if (num_threads == 1) {
357
- *output =
358
- InnerMostDimReducer<Self, Op, Vectorizable>::reduce(self, 0, num_coeffs, reducer);
359
- return;
360
- }
361
- const Index blocksize =
362
- std::floor<Index>(static_cast<float>(num_coeffs) / num_threads);
363
- const Index numblocks = blocksize > 0 ? num_coeffs / blocksize : 0;
364
- eigen_assert(num_coeffs >= numblocks * blocksize);
365
-
366
- Barrier barrier(internal::convert_index<unsigned int>(numblocks));
367
- MaxSizeVector<typename Self::CoeffReturnType> shards(numblocks, reducer.initialize());
368
- for (Index i = 0; i < numblocks; ++i) {
369
- device.enqueue_with_barrier(&barrier, &FullReducerShard<Self, Op, Vectorizable>::run,
370
- self, i * blocksize, blocksize, reducer,
371
- &shards[i]);
372
- }
373
- typename Self::CoeffReturnType finalShard;
374
- if (numblocks * blocksize < num_coeffs) {
375
- finalShard = InnerMostDimReducer<Self, Op, Vectorizable>::reduce(
376
- self, numblocks * blocksize, num_coeffs - numblocks * blocksize,
377
- reducer);
378
- } else {
379
- finalShard = reducer.initialize();
380
- }
381
- barrier.Wait();
382
-
383
- for (Index i = 0; i < numblocks; ++i) {
384
- reducer.reduce(shards[i], &finalShard);
385
- }
386
- *output = reducer.finalize(finalShard);
387
- }
388
- };
389
-
390
- #endif
391
-
392
-
393
- // Default inner reducer
394
- template <typename Self, typename Op, typename Device>
395
- struct InnerReducer {
396
- static const bool HasOptimizedImplementation = false;
397
-
398
- EIGEN_DEVICE_FUNC static bool run(const Self&, Op&, const Device&, typename Self::CoeffReturnType*, typename Self::Index, typename Self::Index) {
399
- eigen_assert(false && "Not implemented");
400
- return true;
401
- }
402
- };
403
-
404
- // Default outer reducer
405
- template <typename Self, typename Op, typename Device>
406
- struct OuterReducer {
407
- static const bool HasOptimizedImplementation = false;
408
-
409
- EIGEN_DEVICE_FUNC static bool run(const Self&, Op&, const Device&, typename Self::CoeffReturnType*, typename Self::Index, typename Self::Index) {
410
- eigen_assert(false && "Not implemented");
411
- return true;
412
- }
413
- };
414
-
415
- #ifdef EIGEN_USE_SYCL
416
- // Default Generic reducer
417
- template <typename Self, typename Op, typename Device>
418
- struct GenericReducer {
419
- static const bool HasOptimizedImplementation = false;
420
-
421
- EIGEN_DEVICE_FUNC static bool run(const Self&, Op&, const Device&, typename Self::CoeffReturnType*, typename Self::Index, typename Self::Index) {
422
- eigen_assert(false && "Not implemented");
423
- return true;
424
- }
425
- };
426
- #endif
427
-
428
- #if defined(EIGEN_USE_GPU) && (defined(EIGEN_GPUCC))
429
- template <int B, int N, typename S, typename R, typename I_>
430
- __global__ EIGEN_HIP_LAUNCH_BOUNDS_1024 void FullReductionKernel(R, const S, I_, typename S::CoeffReturnType*, unsigned int*);
431
-
432
-
433
- #if defined(EIGEN_HAS_GPU_FP16)
434
- template <typename S, typename R, typename I_>
435
- __global__ EIGEN_HIP_LAUNCH_BOUNDS_1024 void ReductionInitFullReduxKernelHalfFloat(R, const S, I_, internal::packet_traits<half>::type*);
436
- template <int B, int N, typename S, typename R, typename I_>
437
- __global__ EIGEN_HIP_LAUNCH_BOUNDS_1024 void FullReductionKernelHalfFloat(R, const S, I_, half*, internal::packet_traits<half>::type*);
438
- template <int NPT, typename S, typename R, typename I_>
439
- __global__ EIGEN_HIP_LAUNCH_BOUNDS_1024 void InnerReductionKernelHalfFloat(R, const S, I_, I_, half*);
440
-
441
- #endif
442
-
443
- template <int NPT, typename S, typename R, typename I_>
444
- __global__ EIGEN_HIP_LAUNCH_BOUNDS_1024 void InnerReductionKernel(R, const S, I_, I_, typename S::CoeffReturnType*);
445
-
446
- template <int NPT, typename S, typename R, typename I_>
447
- __global__ EIGEN_HIP_LAUNCH_BOUNDS_1024 void OuterReductionKernel(R, const S, I_, I_, typename S::CoeffReturnType*);
448
- #endif
449
-
450
- /**
451
- * For SYCL, the return type of the reduction is deduced from the initialize method of the given Op.
452
- * This allows the reduction to have a different type for the accumulator than the input data type.
453
- * If this is the case, the functor needs to have two reduce method: one for reducing an element of the input
454
- * with the accumulator and the other for reducing two accumulators.
455
- * Such a reducer can be useful for instance when the accumulator is a boolean or a bitset that checks for
456
- * some properties of the input.
457
- */
458
- template <typename Op, typename CoeffReturnType>
459
- struct ReductionReturnType {
460
- #if defined(EIGEN_USE_SYCL)
461
- typedef typename remove_const<decltype(std::declval<Op>().initialize())>::type type;
462
- #else
463
- typedef typename remove_const<CoeffReturnType>::type type;
464
- #endif
465
- };
466
-
467
- } // end namespace internal
468
-
469
-
470
- template <typename Op, typename Dims, typename XprType, template <class> class MakePointer_>
471
- class TensorReductionOp : public TensorBase<TensorReductionOp<Op, Dims, XprType, MakePointer_>, ReadOnlyAccessors> {
472
- public:
473
- typedef typename Eigen::internal::traits<TensorReductionOp>::Scalar Scalar;
474
- typedef typename Eigen::NumTraits<Scalar>::Real RealScalar;
475
- typedef typename internal::remove_const<typename XprType::CoeffReturnType>::type CoeffReturnType;
476
- typedef typename Eigen::internal::nested<TensorReductionOp>::type Nested;
477
- typedef typename Eigen::internal::traits<TensorReductionOp>::StorageKind StorageKind;
478
- typedef typename Eigen::internal::traits<TensorReductionOp>::Index Index;
479
-
480
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
481
- TensorReductionOp(const XprType& expr, const Dims& dims) : m_expr(expr), m_dims(dims)
482
- { }
483
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
484
- TensorReductionOp(const XprType& expr, const Dims& dims, const Op& reducer) : m_expr(expr), m_dims(dims), m_reducer(reducer)
485
- { }
486
-
487
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
488
- const XprType& expression() const { return m_expr; }
489
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
490
- const Dims& dims() const { return m_dims; }
491
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
492
- const Op& reducer() const { return m_reducer; }
493
-
494
- protected:
495
- typename XprType::Nested m_expr;
496
- const Dims m_dims;
497
- const Op m_reducer;
498
- };
499
-
500
- template<typename ArgType, typename Device>
501
- struct TensorReductionEvaluatorBase;
502
-
503
- // Eval as rvalue
504
- template<typename Op, typename Dims, typename ArgType, template <class> class MakePointer_, typename Device>
505
- struct TensorReductionEvaluatorBase<const TensorReductionOp<Op, Dims, ArgType, MakePointer_>, Device>
506
- {
507
- typedef internal::reducer_traits<Op, Device> ReducerTraits;
508
- typedef Dims ReducedDims;
509
- typedef TensorReductionOp<Op, Dims, ArgType, MakePointer_> XprType;
510
- typedef typename XprType::Index Index;
511
- typedef ArgType ChildType;
512
- typedef typename TensorEvaluator<ArgType, Device>::Dimensions InputDimensions;
513
- static const int NumInputDims = internal::array_size<InputDimensions>::value;
514
- static const int NumReducedDims = internal::array_size<Dims>::value;
515
- static const int NumOutputDims = NumInputDims - NumReducedDims;
516
- typedef typename internal::conditional<NumOutputDims==0, Sizes<>, DSizes<Index, NumOutputDims> >::type Dimensions;
517
- typedef typename XprType::Scalar Scalar;
518
- typedef TensorReductionEvaluatorBase<const TensorReductionOp<Op, Dims, ArgType, MakePointer_>, Device> Self;
519
- static const bool InputPacketAccess = TensorEvaluator<ArgType, Device>::PacketAccess;
520
- typedef typename internal::ReductionReturnType<Op, typename XprType::CoeffReturnType>::type CoeffReturnType;
521
- typedef typename PacketType<CoeffReturnType, Device>::type PacketReturnType;
522
- static const Index PacketSize = PacketType<CoeffReturnType, Device>::size;
523
-
524
- typedef typename Eigen::internal::traits<XprType>::PointerType TensorPointerType;
525
- typedef StorageMemory<CoeffReturnType, Device> Storage;
526
- typedef typename Storage::Type EvaluatorPointerType;
527
-
528
- // Subset of strides of the input tensor for the non-reduced dimensions.
529
- // Indexed by output dimensions.
530
- static const int NumPreservedStrides = max_n_1<NumOutputDims>::size;
531
-
532
- enum {
533
- IsAligned = false,
534
- PacketAccess = Self::InputPacketAccess && ReducerTraits::PacketAccess,
535
- BlockAccess = false,
536
- PreferBlockAccess = true,
537
- Layout = TensorEvaluator<ArgType, Device>::Layout,
538
- CoordAccess = false, // to be implemented
539
- RawAccess = false
540
- };
541
-
542
- typedef typename internal::remove_const<Scalar>::type ScalarNoConst;
543
-
544
- //===- Tensor block evaluation strategy (see TensorBlock.h) -------------===//
545
- typedef internal::TensorBlockNotImplemented TensorBlock;
546
- //===--------------------------------------------------------------------===//
547
-
548
- static const bool ReducingInnerMostDims = internal::are_inner_most_dims<Dims, NumInputDims, Layout>::value;
549
- static const bool PreservingInnerMostDims = internal::preserve_inner_most_dims<Dims, NumInputDims, Layout>::value;
550
- static const bool RunningFullReduction = (NumOutputDims==0);
551
-
552
- EIGEN_STRONG_INLINE TensorReductionEvaluatorBase(const XprType& op, const Device& device)
553
- : m_impl(op.expression(), device), m_reducer(op.reducer()), m_result(NULL), m_device(device)
554
- {
555
- EIGEN_STATIC_ASSERT((NumInputDims >= NumReducedDims), YOU_MADE_A_PROGRAMMING_MISTAKE);
556
- EIGEN_STATIC_ASSERT((!ReducingInnerMostDims | !PreservingInnerMostDims | (NumReducedDims == NumInputDims)),
557
- YOU_MADE_A_PROGRAMMING_MISTAKE);
558
-
559
- // Build the bitmap indicating if an input dimension is reduced or not.
560
- for (int i = 0; i < NumInputDims; ++i) {
561
- m_reduced[i] = false;
562
- }
563
- for (int i = 0; i < NumReducedDims; ++i) {
564
- eigen_assert(op.dims()[i] >= 0);
565
- eigen_assert(op.dims()[i] < NumInputDims);
566
- m_reduced[op.dims()[i]] = true;
567
- }
568
-
569
- const typename TensorEvaluator<ArgType, Device>::Dimensions& input_dims = m_impl.dimensions();
570
- internal::DimInitializer<Dimensions>::run(input_dims, m_reduced, &m_dimensions, &m_reducedDims);
571
-
572
- // Precompute output strides.
573
- if (NumOutputDims > 0) {
574
- if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
575
- m_outputStrides[0] = 1;
576
- for (int i = 1; i < NumOutputDims; ++i) {
577
- m_outputStrides[i] = m_outputStrides[i - 1] * m_dimensions[i - 1];
578
- m_fastOutputStrides[i] = internal::TensorIntDivisor<Index>(m_outputStrides[i]);
579
- }
580
- } else {
581
- m_outputStrides[NumOutputDims - 1] = 1;
582
- for (int i = NumOutputDims - 2; i >= 0; --i) {
583
- m_outputStrides[i] = m_outputStrides[i + 1] * m_dimensions[i + 1];
584
- m_fastOutputStrides[i] = internal::TensorIntDivisor<Index>(m_outputStrides[i]);
585
- }
586
- }
587
- }
588
-
589
- // Precompute input strides.
590
- if (NumInputDims > 0) {
591
- array<Index, NumInputDims> input_strides;
592
- if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
593
- input_strides[0] = 1;
594
- for (int i = 1; i < NumInputDims; ++i) {
595
- input_strides[i] = input_strides[i-1] * input_dims[i-1];
596
- }
597
- } else {
598
- input_strides.back() = 1;
599
- for (int i = NumInputDims - 2; i >= 0; --i) {
600
- input_strides[i] = input_strides[i + 1] * input_dims[i + 1];
601
- }
602
- }
603
-
604
- int outputIndex = 0;
605
- int reduceIndex = 0;
606
- for (int i = 0; i < NumInputDims; ++i) {
607
- if (m_reduced[i]) {
608
- m_reducedStrides[reduceIndex] = input_strides[i];
609
- ++reduceIndex;
610
- } else {
611
- m_preservedStrides[outputIndex] = input_strides[i];
612
- m_output_to_input_dim_map[outputIndex] = i;
613
- ++outputIndex;
614
- }
615
- }
616
- }
617
-
618
- // Special case for full reductions
619
- if (NumOutputDims == 0) {
620
- m_preservedStrides[0] = internal::array_prod(input_dims);
621
- }
622
-
623
- m_numValuesToReduce =
624
- NumOutputDims == 0
625
- ? internal::array_prod(input_dims)
626
- : (static_cast<int>(Layout) == static_cast<int>(ColMajor))
627
- ? m_preservedStrides[0]
628
- : m_preservedStrides[NumOutputDims - 1];
629
- }
630
-
631
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dimensions& dimensions() const { return m_dimensions; }
632
-
633
- EIGEN_STRONG_INLINE
634
- bool evalSubExprsIfNeededCommon(EvaluatorPointerType data) {
635
- // Use the FullReducer if possible.
636
- if ((RunningFullReduction && RunningOnSycl) ||(RunningFullReduction &&
637
- internal::FullReducer<Self, Op, Device>::HasOptimizedImplementation &&
638
- ((RunningOnGPU && (m_device.majorDeviceVersion() >= 3)) ||
639
- !RunningOnGPU))) {
640
- bool need_assign = false;
641
- if (!data) {
642
- m_result = static_cast<EvaluatorPointerType>(m_device.get((CoeffReturnType*)m_device.allocate_temp(sizeof(CoeffReturnType))));
643
- data = m_result;
644
- need_assign = true;
645
- }
646
- Op reducer(m_reducer);
647
- internal::FullReducer<Self, Op, Device>::run(*this, reducer, m_device, data);
648
- return need_assign;
649
- }
650
-
651
- // Attempt to use an optimized reduction.
652
- else if ((RunningOnGPU && (m_device.majorDeviceVersion() >= 3)) || (RunningOnSycl)) {
653
- bool reducing_inner_dims = true;
654
- for (int i = 0; i < NumReducedDims; ++i) {
655
- if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
656
- reducing_inner_dims &= m_reduced[i];
657
- } else {
658
- reducing_inner_dims &= m_reduced[NumInputDims - 1 - i];
659
- }
660
- }
661
- if (internal::InnerReducer<Self, Op, Device>::HasOptimizedImplementation &&
662
- (reducing_inner_dims || ReducingInnerMostDims)) {
663
- const Index num_values_to_reduce = internal::array_prod(m_reducedDims);
664
- const Index num_coeffs_to_preserve = internal::array_prod(m_dimensions);
665
- if (!data) {
666
- if ((num_coeffs_to_preserve < 1024 && num_values_to_reduce > num_coeffs_to_preserve && num_values_to_reduce > 128) || (RunningOnSycl)) {
667
- data = static_cast<EvaluatorPointerType>(m_device.get((CoeffReturnType*)m_device.allocate_temp(sizeof(CoeffReturnType) * num_coeffs_to_preserve)));
668
- m_result = data;
669
- }
670
- else {
671
- return true;
672
- }
673
- }
674
- Op reducer(m_reducer);
675
- // For SYCL this if always return false
676
- if (internal::InnerReducer<Self, Op, Device>::run(*this, reducer, m_device, data, num_values_to_reduce, num_coeffs_to_preserve)) {
677
- if (m_result) {
678
- m_device.deallocate_temp(m_result);
679
- m_result = NULL;
680
- }
681
- return true;
682
- } else {
683
- return (m_result != NULL);
684
- }
685
- }
686
-
687
- bool preserving_inner_dims = true;
688
- for (int i = 0; i < NumReducedDims; ++i) {
689
- if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
690
- preserving_inner_dims &= m_reduced[NumInputDims - 1 - i];
691
- } else {
692
- preserving_inner_dims &= m_reduced[i];
693
- }
694
- }
695
- if (internal::OuterReducer<Self, Op, Device>::HasOptimizedImplementation &&
696
- preserving_inner_dims) {
697
- const Index num_values_to_reduce = internal::array_prod(m_reducedDims);
698
- const Index num_coeffs_to_preserve = internal::array_prod(m_dimensions);
699
- if (!data) {
700
- if ((num_coeffs_to_preserve < 1024 && num_values_to_reduce > num_coeffs_to_preserve && num_values_to_reduce > 32) || (RunningOnSycl)) {
701
- data = static_cast<EvaluatorPointerType>(m_device.get((CoeffReturnType*)m_device.allocate_temp(sizeof(CoeffReturnType) * num_coeffs_to_preserve)));
702
- m_result = data;
703
- }
704
- else {
705
- return true;
706
- }
707
- }
708
- Op reducer(m_reducer);
709
- // For SYCL this if always return false
710
- if (internal::OuterReducer<Self, Op, Device>::run(*this, reducer, m_device, data, num_values_to_reduce, num_coeffs_to_preserve)) {
711
- if (m_result) {
712
- m_device.deallocate_temp(m_result);
713
- m_result = NULL;
714
- }
715
- return true;
716
- } else {
717
- return (m_result != NULL);
718
- }
719
- }
720
- #if defined(EIGEN_USE_SYCL)
721
- // If there is no Optimised version for SYCL, the reduction expression
722
- // must break into two subexpression and use the SYCL generic Reducer on the device.
723
- if(RunningOnSycl) {
724
- const Index num_values_to_reduce = internal::array_prod(m_reducedDims);
725
- const Index num_coeffs_to_preserve = internal::array_prod(m_dimensions);
726
- if (!data) {
727
- data = static_cast<EvaluatorPointerType>(m_device.get((CoeffReturnType*)m_device.allocate_temp(sizeof(CoeffReturnType) * num_coeffs_to_preserve)));
728
- m_result = data;
729
- }
730
- Op reducer(m_reducer);
731
- internal::GenericReducer<Self, Op, Device>::run(*this, reducer, m_device, data, num_values_to_reduce, num_coeffs_to_preserve);
732
- return (m_result != NULL);
733
- }
734
- #endif
735
- }
736
- return true;
737
- }
738
-
739
- #ifdef EIGEN_USE_THREADS
740
- template <typename EvalSubExprsCallback>
741
- EIGEN_STRONG_INLINE
742
- void
743
- evalSubExprsIfNeededAsync(EvaluatorPointerType data,
744
- EvalSubExprsCallback done) {
745
- m_impl.evalSubExprsIfNeededAsync(NULL, [this, data, done](bool) {
746
- done(evalSubExprsIfNeededCommon(data));
747
- });
748
- }
749
- #endif
750
-
751
- EIGEN_STRONG_INLINE
752
- bool evalSubExprsIfNeeded(EvaluatorPointerType data) {
753
- m_impl.evalSubExprsIfNeeded(NULL);
754
- return evalSubExprsIfNeededCommon(data);
755
- }
756
-
757
- EIGEN_STRONG_INLINE void cleanup() {
758
- m_impl.cleanup();
759
- if (m_result) {
760
- m_device.deallocate_temp(m_result);
761
- m_result = NULL;
762
- }
763
- }
764
-
765
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType coeff(Index index) const
766
- {
767
- if (( RunningFullReduction || RunningOnGPU) && m_result ) {
768
- return *(m_result + index);
769
- }
770
- Op reducer(m_reducer);
771
- if (ReducingInnerMostDims || RunningFullReduction) {
772
- const Index num_values_to_reduce =
773
- (static_cast<int>(Layout) == static_cast<int>(ColMajor)) ? m_preservedStrides[0] : m_preservedStrides[NumPreservedStrides - 1];
774
- return internal::InnerMostDimReducer<Self, Op>::reduce(*this, firstInput(index),
775
- num_values_to_reduce, reducer);
776
- } else {
777
- typename Self::CoeffReturnType accum = reducer.initialize();
778
- internal::GenericDimReducer<NumReducedDims-1, Self, Op>::reduce(*this, firstInput(index), reducer, &accum);
779
- return reducer.finalize(accum);
780
- }
781
- }
782
-
783
- // TODO(bsteiner): provide a more efficient implementation.
784
- template<int LoadMode>
785
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PacketReturnType packet(Index index) const
786
- {
787
- EIGEN_STATIC_ASSERT((PacketSize > 1), YOU_MADE_A_PROGRAMMING_MISTAKE)
788
- eigen_assert(index + PacketSize - 1 < Index(internal::array_prod(dimensions())));
789
-
790
- if (RunningOnGPU && m_result) {
791
- return internal::pload<PacketReturnType>(m_result + index);
792
- }
793
-
794
- EIGEN_ALIGN_MAX typename internal::remove_const<CoeffReturnType>::type values[PacketSize];
795
- if (ReducingInnerMostDims) {
796
- const Index num_values_to_reduce =
797
- (static_cast<int>(Layout) == static_cast<int>(ColMajor)) ? m_preservedStrides[0] : m_preservedStrides[NumPreservedStrides - 1];
798
- const Index firstIndex = firstInput(index);
799
- for (Index i = 0; i < PacketSize; ++i) {
800
- Op reducer(m_reducer);
801
- values[i] = internal::InnerMostDimReducer<Self, Op>::reduce(*this, firstIndex + i * num_values_to_reduce,
802
- num_values_to_reduce, reducer);
803
- }
804
- } else if (PreservingInnerMostDims) {
805
- const Index firstIndex = firstInput(index);
806
- const int innermost_dim = (static_cast<int>(Layout) == static_cast<int>(ColMajor)) ? 0 : NumOutputDims - 1;
807
- // TBD: extend this the the n innermost dimensions that we preserve.
808
- if (((firstIndex % m_dimensions[innermost_dim]) + PacketSize - 1) < m_dimensions[innermost_dim]) {
809
- Op reducer(m_reducer);
810
- typename Self::PacketReturnType accum = reducer.template initializePacket<typename Self::PacketReturnType>();
811
- internal::InnerMostDimPreserver<NumReducedDims-1, Self, Op>::reduce(*this, firstIndex, reducer, &accum);
812
- return reducer.finalizePacket(accum);
813
- } else {
814
- for (int i = 0; i < PacketSize; ++i) {
815
- values[i] = coeff(index + i);
816
- }
817
- }
818
- } else {
819
- for (int i = 0; i < PacketSize; ++i) {
820
- values[i] = coeff(index + i);
821
- }
822
- }
823
- PacketReturnType rslt = internal::pload<PacketReturnType>(values);
824
- return rslt;
825
- }
826
-
827
- // Must be called after evalSubExprsIfNeeded().
828
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorOpCost costPerCoeff(bool vectorized) const {
829
- if (RunningFullReduction && m_result) {
830
- return TensorOpCost(sizeof(CoeffReturnType), 0, 0, vectorized, PacketSize);
831
- } else {
832
- const Index num_values_to_reduce = internal::array_prod(m_reducedDims);
833
- const double compute_cost = num_values_to_reduce * internal::functor_traits<Op>::Cost;
834
- return m_impl.costPerCoeff(vectorized) * num_values_to_reduce +
835
- TensorOpCost(0, 0, compute_cost, vectorized, PacketSize);
836
- }
837
- }
838
-
839
- EIGEN_DEVICE_FUNC EvaluatorPointerType data() const { return m_result; }
840
- EIGEN_DEVICE_FUNC const TensorEvaluator<ArgType, Device>& impl() const { return m_impl; }
841
- EIGEN_DEVICE_FUNC const Device& device() const { return m_device; }
842
- #ifdef EIGEN_USE_SYCL
843
- // binding placeholder accessors to a command group handler for SYCL
844
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void bind(cl::sycl::handler &cgh) const {
845
- m_impl.bind(cgh);
846
- m_result.bind(cgh);
847
- }
848
- #endif
849
-
850
- private:
851
- template <int, typename, typename> friend struct internal::GenericDimReducer;
852
- template <typename, typename, bool, bool> friend struct internal::InnerMostDimReducer;
853
- template <int, typename, typename, bool> friend struct internal::InnerMostDimPreserver;
854
- template <typename S, typename O, typename D, bool V> friend struct internal::FullReducer;
855
- #ifdef EIGEN_USE_THREADS
856
- template <typename S, typename O, bool V> friend struct internal::FullReducerShard;
857
- #endif
858
- #if defined(EIGEN_USE_GPU) && (defined(EIGEN_GPUCC))
859
- template <int B, int N, typename S, typename R, typename I_> KERNEL_FRIEND void internal::FullReductionKernel(R, const S, I_, typename S::CoeffReturnType*, unsigned int*);
860
- #if defined(EIGEN_HAS_GPU_FP16)
861
- template <typename S, typename R, typename I_> KERNEL_FRIEND void internal::ReductionInitFullReduxKernelHalfFloat(R, const S, I_, internal::packet_traits<Eigen::half>::type*);
862
- template <int B, int N, typename S, typename R, typename I_> KERNEL_FRIEND void internal::FullReductionKernelHalfFloat(R, const S, I_, half*, internal::packet_traits<Eigen::half>::type*);
863
- template <int NPT, typename S, typename R, typename I_> KERNEL_FRIEND void internal::InnerReductionKernelHalfFloat(R, const S, I_, I_, half*);
864
- #endif
865
- template <int NPT, typename S, typename R, typename I_> KERNEL_FRIEND void internal::InnerReductionKernel(R, const S, I_, I_, typename S::CoeffReturnType*);
866
-
867
- template <int NPT, typename S, typename R, typename I_> KERNEL_FRIEND void internal::OuterReductionKernel(R, const S, I_, I_, typename S::CoeffReturnType*);
868
- #endif
869
-
870
- #if defined(EIGEN_USE_SYCL)
871
- template < typename Evaluator_, typename Op__> friend class TensorSycl::internal::GenericNondeterministicReducer;
872
- // SYCL need the Generic reducer for the case the recution algorithm is neither inner, outer, and full reducer
873
- template <typename, typename, typename> friend struct internal::GenericReducer;
874
- #endif
875
-
876
-
877
- template <typename S, typename O, typename D> friend struct internal::InnerReducer;
878
-
879
- struct BlockIteratorState {
880
- Index input_dim;
881
- Index output_size;
882
- Index output_count;
883
- };
884
-
885
- // Returns the Index in the input tensor of the first value that needs to be
886
- // used to compute the reduction at output index "index".
887
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index firstInput(Index index) const {
888
- if (ReducingInnerMostDims) {
889
- if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
890
- return index * m_preservedStrides[0];
891
- } else {
892
- return index * m_preservedStrides[NumPreservedStrides - 1];
893
- }
894
- }
895
- // TBD: optimize the case where we preserve the innermost dimensions.
896
- Index startInput = 0;
897
- if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
898
- for (int i = NumOutputDims - 1; i > 0; --i) {
899
- // This is index_i in the output tensor.
900
- const Index idx = index / m_outputStrides[i];
901
- startInput += idx * m_preservedStrides[i];
902
- index -= idx * m_outputStrides[i];
903
- }
904
- if (PreservingInnerMostDims) {
905
- eigen_assert(m_preservedStrides[0] == 1);
906
- startInput += index;
907
- } else {
908
- startInput += index * m_preservedStrides[0];
909
- }
910
- } else {
911
- for (int i = 0; i < NumOutputDims - 1; ++i) {
912
- // This is index_i in the output tensor.
913
- const Index idx = index / m_outputStrides[i];
914
- startInput += idx * m_preservedStrides[i];
915
- index -= idx * m_outputStrides[i];
916
- }
917
- if (PreservingInnerMostDims) {
918
- eigen_assert(m_preservedStrides[NumPreservedStrides - 1] == 1);
919
- startInput += index;
920
- } else {
921
- startInput += index * m_preservedStrides[NumPreservedStrides - 1];
922
- }
923
- }
924
- return startInput;
925
- }
926
-
927
- // Bitmap indicating if an input dimension is reduced or not.
928
- array<bool, NumInputDims> m_reduced;
929
- // Dimensions of the output of the operation.
930
- Dimensions m_dimensions;
931
- // Precomputed strides for the output tensor.
932
- array<Index, NumOutputDims> m_outputStrides;
933
- array<internal::TensorIntDivisor<Index>, NumOutputDims> m_fastOutputStrides;
934
- array<Index, NumPreservedStrides> m_preservedStrides;
935
- // Map from output to input dimension index.
936
- array<Index, NumOutputDims> m_output_to_input_dim_map;
937
- // How many values go into each reduction
938
- Index m_numValuesToReduce;
939
-
940
- // Subset of strides of the input tensor for the reduced dimensions.
941
- // Indexed by reduced dimensions.
942
- array<Index, NumReducedDims> m_reducedStrides;
943
- // Size of the input dimensions that are reduced.
944
- // Indexed by reduced dimensions.
945
- array<Index, NumReducedDims> m_reducedDims;
946
-
947
- // Evaluator for the input expression.
948
- TensorEvaluator<ArgType, Device> m_impl;
949
-
950
- // Operation to apply for computing the reduction.
951
- Op m_reducer;
952
-
953
- // For full reductions
954
- #if defined(EIGEN_USE_GPU) && (defined(EIGEN_GPUCC))
955
- static const bool RunningOnGPU = internal::is_same<Device, Eigen::GpuDevice>::value;
956
- static const bool RunningOnSycl = false;
957
- #elif defined(EIGEN_USE_SYCL)
958
- static const bool RunningOnSycl = internal::is_same<typename internal::remove_all<Device>::type, Eigen::SyclDevice>::value;
959
- static const bool RunningOnGPU = false;
960
- #else
961
- static const bool RunningOnGPU = false;
962
- static const bool RunningOnSycl = false;
963
- #endif
964
- EvaluatorPointerType m_result;
965
-
966
- const Device EIGEN_DEVICE_REF m_device;
967
- };
968
-
969
- template<typename Op, typename Dims, typename ArgType, template <class> class MakePointer_, typename Device>
970
- struct TensorEvaluator<const TensorReductionOp<Op, Dims, ArgType, MakePointer_>, Device>
971
- : public TensorReductionEvaluatorBase<const TensorReductionOp<Op, Dims, ArgType, MakePointer_>, Device> {
972
- typedef TensorReductionEvaluatorBase<const TensorReductionOp<Op, Dims, ArgType, MakePointer_>, Device> Base;
973
- EIGEN_STRONG_INLINE TensorEvaluator(const typename Base::XprType& op, const Device& device) : Base(op, device){}
974
- };
975
-
976
-
977
- template<typename Op, typename Dims, typename ArgType, template <class> class MakePointer_>
978
- struct TensorEvaluator<const TensorReductionOp<Op, Dims, ArgType, MakePointer_>, Eigen::SyclDevice>
979
- : public TensorReductionEvaluatorBase<const TensorReductionOp<Op, Dims, ArgType, MakePointer_>, Eigen::SyclDevice> {
980
-
981
- typedef TensorReductionEvaluatorBase<const TensorReductionOp<Op, Dims, ArgType, MakePointer_>, Eigen::SyclDevice> Base;
982
- EIGEN_STRONG_INLINE TensorEvaluator(const typename Base::XprType& op, const Eigen::SyclDevice& device) : Base(op, device){}
983
- // The coeff function in the base the recursive method which is not an standard layout and cannot be used in the SYCL kernel
984
- //Therefore the coeff function should be overridden by for SYCL kernel
985
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE typename Base::CoeffReturnType coeff(typename Base::Index index) const {
986
- return *(this->data() + index);
987
- }
988
- // The packet function in the base the recursive method which is not an standard layout and cannot be used in the SYCL kernel
989
- //Therefore the packet function should be overridden by for SYCL kernel
990
- template<int LoadMode>
991
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE typename Base::PacketReturnType packet(typename Base::Index index) const {
992
- return internal::pload<typename Base::PacketReturnType>(this->data() + index);
993
- }
994
- };
995
-
996
- } // end namespace Eigen
997
-
998
- #endif // EIGEN_CXX11_TENSOR_TENSOR_REDUCTION_H