xtgeo 4.10.0__cp312-cp312-macosx_11_0_arm64.whl → 4.11.0__cp312-cp312-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 (566) hide show
  1. xtgeo/_cxtgeo.cpython-312-darwin.so +0 -0
  2. xtgeo/_internal.cpython-312-darwin.so +0 -0
  3. xtgeo/common/version.py +16 -3
  4. xtgeo/cube/_cube_window_attributes.py +13 -4
  5. xtgeo/grid3d/_grid_etc1.py +10 -5
  6. xtgeo/grid3d/grid.py +22 -6
  7. xtgeo/include/fmt/args.h +220 -0
  8. xtgeo/include/fmt/base.h +2989 -0
  9. xtgeo/include/fmt/chrono.h +2330 -0
  10. xtgeo/include/fmt/color.h +637 -0
  11. xtgeo/include/fmt/compile.h +539 -0
  12. xtgeo/include/fmt/core.h +5 -0
  13. xtgeo/include/fmt/format-inl.h +1948 -0
  14. xtgeo/include/fmt/format.h +4244 -0
  15. xtgeo/include/fmt/os.h +427 -0
  16. xtgeo/include/fmt/ostream.h +167 -0
  17. xtgeo/include/fmt/printf.h +633 -0
  18. xtgeo/include/fmt/ranges.h +850 -0
  19. xtgeo/include/fmt/std.h +728 -0
  20. xtgeo/include/fmt/xchar.h +369 -0
  21. xtgeo/lib/cmake/fmt/fmt-config-version.cmake +43 -0
  22. xtgeo/lib/cmake/fmt/fmt-config.cmake +31 -0
  23. xtgeo/lib/cmake/fmt/fmt-targets-release.cmake +19 -0
  24. xtgeo/{share/eigen3/cmake/Eigen3Targets.cmake → lib/cmake/fmt/fmt-targets.cmake} +16 -6
  25. xtgeo/lib/libfmt.a +0 -0
  26. xtgeo/lib/pkgconfig/fmt.pc +11 -0
  27. xtgeo/metadata/metadata.py +20 -13
  28. {xtgeo-4.10.0.dist-info → xtgeo-4.11.0.dist-info}/METADATA +1 -1
  29. xtgeo-4.11.0.dist-info/RECORD +137 -0
  30. {xtgeo-4.10.0.dist-info → xtgeo-4.11.0.dist-info}/WHEEL +1 -1
  31. xtgeo/include/eigen3/Eigen/Cholesky +0 -45
  32. xtgeo/include/eigen3/Eigen/CholmodSupport +0 -48
  33. xtgeo/include/eigen3/Eigen/Core +0 -384
  34. xtgeo/include/eigen3/Eigen/Dense +0 -7
  35. xtgeo/include/eigen3/Eigen/Eigen +0 -2
  36. xtgeo/include/eigen3/Eigen/Eigenvalues +0 -60
  37. xtgeo/include/eigen3/Eigen/Geometry +0 -59
  38. xtgeo/include/eigen3/Eigen/Householder +0 -29
  39. xtgeo/include/eigen3/Eigen/IterativeLinearSolvers +0 -48
  40. xtgeo/include/eigen3/Eigen/Jacobi +0 -32
  41. xtgeo/include/eigen3/Eigen/KLUSupport +0 -41
  42. xtgeo/include/eigen3/Eigen/LU +0 -47
  43. xtgeo/include/eigen3/Eigen/MetisSupport +0 -35
  44. xtgeo/include/eigen3/Eigen/OrderingMethods +0 -70
  45. xtgeo/include/eigen3/Eigen/PaStiXSupport +0 -49
  46. xtgeo/include/eigen3/Eigen/PardisoSupport +0 -35
  47. xtgeo/include/eigen3/Eigen/QR +0 -50
  48. xtgeo/include/eigen3/Eigen/QtAlignedMalloc +0 -39
  49. xtgeo/include/eigen3/Eigen/SPQRSupport +0 -34
  50. xtgeo/include/eigen3/Eigen/SVD +0 -50
  51. xtgeo/include/eigen3/Eigen/Sparse +0 -34
  52. xtgeo/include/eigen3/Eigen/SparseCholesky +0 -37
  53. xtgeo/include/eigen3/Eigen/SparseCore +0 -69
  54. xtgeo/include/eigen3/Eigen/SparseLU +0 -50
  55. xtgeo/include/eigen3/Eigen/SparseQR +0 -36
  56. xtgeo/include/eigen3/Eigen/StdDeque +0 -27
  57. xtgeo/include/eigen3/Eigen/StdList +0 -26
  58. xtgeo/include/eigen3/Eigen/StdVector +0 -27
  59. xtgeo/include/eigen3/Eigen/SuperLUSupport +0 -64
  60. xtgeo/include/eigen3/Eigen/UmfPackSupport +0 -40
  61. xtgeo/include/eigen3/Eigen/src/Cholesky/LDLT.h +0 -688
  62. xtgeo/include/eigen3/Eigen/src/Cholesky/LLT.h +0 -558
  63. xtgeo/include/eigen3/Eigen/src/Cholesky/LLT_LAPACKE.h +0 -99
  64. xtgeo/include/eigen3/Eigen/src/CholmodSupport/CholmodSupport.h +0 -682
  65. xtgeo/include/eigen3/Eigen/src/Core/ArithmeticSequence.h +0 -413
  66. xtgeo/include/eigen3/Eigen/src/Core/Array.h +0 -417
  67. xtgeo/include/eigen3/Eigen/src/Core/ArrayBase.h +0 -226
  68. xtgeo/include/eigen3/Eigen/src/Core/ArrayWrapper.h +0 -209
  69. xtgeo/include/eigen3/Eigen/src/Core/Assign.h +0 -90
  70. xtgeo/include/eigen3/Eigen/src/Core/AssignEvaluator.h +0 -1010
  71. xtgeo/include/eigen3/Eigen/src/Core/Assign_MKL.h +0 -178
  72. xtgeo/include/eigen3/Eigen/src/Core/BandMatrix.h +0 -353
  73. xtgeo/include/eigen3/Eigen/src/Core/Block.h +0 -448
  74. xtgeo/include/eigen3/Eigen/src/Core/BooleanRedux.h +0 -162
  75. xtgeo/include/eigen3/Eigen/src/Core/CommaInitializer.h +0 -164
  76. xtgeo/include/eigen3/Eigen/src/Core/ConditionEstimator.h +0 -175
  77. xtgeo/include/eigen3/Eigen/src/Core/CoreEvaluators.h +0 -1741
  78. xtgeo/include/eigen3/Eigen/src/Core/CoreIterators.h +0 -132
  79. xtgeo/include/eigen3/Eigen/src/Core/CwiseBinaryOp.h +0 -183
  80. xtgeo/include/eigen3/Eigen/src/Core/CwiseNullaryOp.h +0 -1001
  81. xtgeo/include/eigen3/Eigen/src/Core/CwiseTernaryOp.h +0 -197
  82. xtgeo/include/eigen3/Eigen/src/Core/CwiseUnaryOp.h +0 -103
  83. xtgeo/include/eigen3/Eigen/src/Core/CwiseUnaryView.h +0 -132
  84. xtgeo/include/eigen3/Eigen/src/Core/DenseBase.h +0 -701
  85. xtgeo/include/eigen3/Eigen/src/Core/DenseCoeffsBase.h +0 -685
  86. xtgeo/include/eigen3/Eigen/src/Core/DenseStorage.h +0 -652
  87. xtgeo/include/eigen3/Eigen/src/Core/Diagonal.h +0 -258
  88. xtgeo/include/eigen3/Eigen/src/Core/DiagonalMatrix.h +0 -391
  89. xtgeo/include/eigen3/Eigen/src/Core/DiagonalProduct.h +0 -28
  90. xtgeo/include/eigen3/Eigen/src/Core/Dot.h +0 -318
  91. xtgeo/include/eigen3/Eigen/src/Core/EigenBase.h +0 -160
  92. xtgeo/include/eigen3/Eigen/src/Core/ForceAlignedAccess.h +0 -150
  93. xtgeo/include/eigen3/Eigen/src/Core/Fuzzy.h +0 -155
  94. xtgeo/include/eigen3/Eigen/src/Core/GeneralProduct.h +0 -465
  95. xtgeo/include/eigen3/Eigen/src/Core/GenericPacketMath.h +0 -1040
  96. xtgeo/include/eigen3/Eigen/src/Core/GlobalFunctions.h +0 -194
  97. xtgeo/include/eigen3/Eigen/src/Core/IO.h +0 -258
  98. xtgeo/include/eigen3/Eigen/src/Core/IndexedView.h +0 -237
  99. xtgeo/include/eigen3/Eigen/src/Core/Inverse.h +0 -117
  100. xtgeo/include/eigen3/Eigen/src/Core/Map.h +0 -171
  101. xtgeo/include/eigen3/Eigen/src/Core/MapBase.h +0 -310
  102. xtgeo/include/eigen3/Eigen/src/Core/MathFunctions.h +0 -2057
  103. xtgeo/include/eigen3/Eigen/src/Core/MathFunctionsImpl.h +0 -200
  104. xtgeo/include/eigen3/Eigen/src/Core/Matrix.h +0 -565
  105. xtgeo/include/eigen3/Eigen/src/Core/MatrixBase.h +0 -547
  106. xtgeo/include/eigen3/Eigen/src/Core/NestByValue.h +0 -85
  107. xtgeo/include/eigen3/Eigen/src/Core/NoAlias.h +0 -109
  108. xtgeo/include/eigen3/Eigen/src/Core/NumTraits.h +0 -335
  109. xtgeo/include/eigen3/Eigen/src/Core/PartialReduxEvaluator.h +0 -232
  110. xtgeo/include/eigen3/Eigen/src/Core/PermutationMatrix.h +0 -605
  111. xtgeo/include/eigen3/Eigen/src/Core/PlainObjectBase.h +0 -1128
  112. xtgeo/include/eigen3/Eigen/src/Core/Product.h +0 -191
  113. xtgeo/include/eigen3/Eigen/src/Core/ProductEvaluators.h +0 -1179
  114. xtgeo/include/eigen3/Eigen/src/Core/Random.h +0 -218
  115. xtgeo/include/eigen3/Eigen/src/Core/Redux.h +0 -515
  116. xtgeo/include/eigen3/Eigen/src/Core/Ref.h +0 -381
  117. xtgeo/include/eigen3/Eigen/src/Core/Replicate.h +0 -142
  118. xtgeo/include/eigen3/Eigen/src/Core/Reshaped.h +0 -454
  119. xtgeo/include/eigen3/Eigen/src/Core/ReturnByValue.h +0 -119
  120. xtgeo/include/eigen3/Eigen/src/Core/Reverse.h +0 -217
  121. xtgeo/include/eigen3/Eigen/src/Core/Select.h +0 -164
  122. xtgeo/include/eigen3/Eigen/src/Core/SelfAdjointView.h +0 -365
  123. xtgeo/include/eigen3/Eigen/src/Core/SelfCwiseBinaryOp.h +0 -47
  124. xtgeo/include/eigen3/Eigen/src/Core/Solve.h +0 -188
  125. xtgeo/include/eigen3/Eigen/src/Core/SolveTriangular.h +0 -235
  126. xtgeo/include/eigen3/Eigen/src/Core/SolverBase.h +0 -168
  127. xtgeo/include/eigen3/Eigen/src/Core/StableNorm.h +0 -251
  128. xtgeo/include/eigen3/Eigen/src/Core/StlIterators.h +0 -463
  129. xtgeo/include/eigen3/Eigen/src/Core/Stride.h +0 -116
  130. xtgeo/include/eigen3/Eigen/src/Core/Swap.h +0 -68
  131. xtgeo/include/eigen3/Eigen/src/Core/Transpose.h +0 -464
  132. xtgeo/include/eigen3/Eigen/src/Core/Transpositions.h +0 -386
  133. xtgeo/include/eigen3/Eigen/src/Core/TriangularMatrix.h +0 -1001
  134. xtgeo/include/eigen3/Eigen/src/Core/VectorBlock.h +0 -96
  135. xtgeo/include/eigen3/Eigen/src/Core/VectorwiseOp.h +0 -784
  136. xtgeo/include/eigen3/Eigen/src/Core/Visitor.h +0 -381
  137. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/Complex.h +0 -372
  138. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/MathFunctions.h +0 -228
  139. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/PacketMath.h +0 -1574
  140. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/TypeCasting.h +0 -115
  141. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/Complex.h +0 -422
  142. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/MathFunctions.h +0 -362
  143. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/PacketMath.h +0 -2303
  144. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/TypeCasting.h +0 -89
  145. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/Complex.h +0 -417
  146. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MathFunctions.h +0 -90
  147. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProduct.h +0 -2937
  148. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h +0 -221
  149. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h +0 -629
  150. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/PacketMath.h +0 -2711
  151. xtgeo/include/eigen3/Eigen/src/Core/arch/CUDA/Complex.h +0 -258
  152. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/BFloat16.h +0 -700
  153. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/ConjHelper.h +0 -117
  154. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +0 -1649
  155. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctionsFwd.h +0 -110
  156. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/Half.h +0 -942
  157. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/Settings.h +0 -49
  158. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/TypeCasting.h +0 -120
  159. xtgeo/include/eigen3/Eigen/src/Core/arch/GPU/MathFunctions.h +0 -103
  160. xtgeo/include/eigen3/Eigen/src/Core/arch/GPU/PacketMath.h +0 -1685
  161. xtgeo/include/eigen3/Eigen/src/Core/arch/GPU/TypeCasting.h +0 -80
  162. xtgeo/include/eigen3/Eigen/src/Core/arch/HIP/hcc/math_constants.h +0 -23
  163. xtgeo/include/eigen3/Eigen/src/Core/arch/MSA/Complex.h +0 -648
  164. xtgeo/include/eigen3/Eigen/src/Core/arch/MSA/MathFunctions.h +0 -387
  165. xtgeo/include/eigen3/Eigen/src/Core/arch/MSA/PacketMath.h +0 -1233
  166. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/Complex.h +0 -584
  167. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/GeneralBlockPanelKernel.h +0 -183
  168. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/MathFunctions.h +0 -75
  169. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/PacketMath.h +0 -4587
  170. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/TypeCasting.h +0 -1419
  171. xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/Complex.h +0 -351
  172. xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/MathFunctions.h +0 -199
  173. xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/PacketMath.h +0 -1505
  174. xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/TypeCasting.h +0 -142
  175. xtgeo/include/eigen3/Eigen/src/Core/arch/SVE/MathFunctions.h +0 -44
  176. xtgeo/include/eigen3/Eigen/src/Core/arch/SVE/PacketMath.h +0 -752
  177. xtgeo/include/eigen3/Eigen/src/Core/arch/SVE/TypeCasting.h +0 -49
  178. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/InteropHeaders.h +0 -232
  179. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/MathFunctions.h +0 -301
  180. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/PacketMath.h +0 -670
  181. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/SyclMemoryModel.h +0 -694
  182. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/TypeCasting.h +0 -85
  183. xtgeo/include/eigen3/Eigen/src/Core/arch/ZVector/Complex.h +0 -426
  184. xtgeo/include/eigen3/Eigen/src/Core/arch/ZVector/MathFunctions.h +0 -233
  185. xtgeo/include/eigen3/Eigen/src/Core/arch/ZVector/PacketMath.h +0 -1060
  186. xtgeo/include/eigen3/Eigen/src/Core/functors/AssignmentFunctors.h +0 -177
  187. xtgeo/include/eigen3/Eigen/src/Core/functors/BinaryFunctors.h +0 -541
  188. xtgeo/include/eigen3/Eigen/src/Core/functors/NullaryFunctors.h +0 -189
  189. xtgeo/include/eigen3/Eigen/src/Core/functors/StlFunctors.h +0 -166
  190. xtgeo/include/eigen3/Eigen/src/Core/functors/TernaryFunctors.h +0 -25
  191. xtgeo/include/eigen3/Eigen/src/Core/functors/UnaryFunctors.h +0 -1131
  192. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h +0 -2645
  193. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrix.h +0 -517
  194. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h +0 -317
  195. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h +0 -145
  196. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrix_BLAS.h +0 -124
  197. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixVector.h +0 -518
  198. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixVector_BLAS.h +0 -136
  199. xtgeo/include/eigen3/Eigen/src/Core/products/Parallelizer.h +0 -180
  200. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix.h +0 -544
  201. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix_BLAS.h +0 -295
  202. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixVector.h +0 -262
  203. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixVector_BLAS.h +0 -118
  204. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointProduct.h +0 -133
  205. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointRank2Update.h +0 -94
  206. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixMatrix.h +0 -472
  207. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixMatrix_BLAS.h +0 -317
  208. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixVector.h +0 -350
  209. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixVector_BLAS.h +0 -255
  210. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularSolverMatrix.h +0 -337
  211. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularSolverMatrix_BLAS.h +0 -167
  212. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularSolverVector.h +0 -148
  213. xtgeo/include/eigen3/Eigen/src/Core/util/BlasUtil.h +0 -583
  214. xtgeo/include/eigen3/Eigen/src/Core/util/ConfigureVectorization.h +0 -512
  215. xtgeo/include/eigen3/Eigen/src/Core/util/Constants.h +0 -563
  216. xtgeo/include/eigen3/Eigen/src/Core/util/DisableStupidWarnings.h +0 -106
  217. xtgeo/include/eigen3/Eigen/src/Core/util/ForwardDeclarations.h +0 -322
  218. xtgeo/include/eigen3/Eigen/src/Core/util/IndexedViewHelper.h +0 -186
  219. xtgeo/include/eigen3/Eigen/src/Core/util/IntegralConstant.h +0 -272
  220. xtgeo/include/eigen3/Eigen/src/Core/util/MKL_support.h +0 -137
  221. xtgeo/include/eigen3/Eigen/src/Core/util/Macros.h +0 -1464
  222. xtgeo/include/eigen3/Eigen/src/Core/util/Memory.h +0 -1163
  223. xtgeo/include/eigen3/Eigen/src/Core/util/Meta.h +0 -812
  224. xtgeo/include/eigen3/Eigen/src/Core/util/NonMPL2.h +0 -3
  225. xtgeo/include/eigen3/Eigen/src/Core/util/ReenableStupidWarnings.h +0 -31
  226. xtgeo/include/eigen3/Eigen/src/Core/util/ReshapedHelper.h +0 -51
  227. xtgeo/include/eigen3/Eigen/src/Core/util/StaticAssert.h +0 -221
  228. xtgeo/include/eigen3/Eigen/src/Core/util/SymbolicIndex.h +0 -293
  229. xtgeo/include/eigen3/Eigen/src/Core/util/XprHelper.h +0 -856
  230. xtgeo/include/eigen3/Eigen/src/Eigenvalues/ComplexEigenSolver.h +0 -346
  231. xtgeo/include/eigen3/Eigen/src/Eigenvalues/ComplexSchur.h +0 -462
  232. xtgeo/include/eigen3/Eigen/src/Eigenvalues/ComplexSchur_LAPACKE.h +0 -91
  233. xtgeo/include/eigen3/Eigen/src/Eigenvalues/EigenSolver.h +0 -622
  234. xtgeo/include/eigen3/Eigen/src/Eigenvalues/GeneralizedEigenSolver.h +0 -418
  235. xtgeo/include/eigen3/Eigen/src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h +0 -226
  236. xtgeo/include/eigen3/Eigen/src/Eigenvalues/HessenbergDecomposition.h +0 -374
  237. xtgeo/include/eigen3/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h +0 -158
  238. xtgeo/include/eigen3/Eigen/src/Eigenvalues/RealQZ.h +0 -657
  239. xtgeo/include/eigen3/Eigen/src/Eigenvalues/RealSchur.h +0 -558
  240. xtgeo/include/eigen3/Eigen/src/Eigenvalues/RealSchur_LAPACKE.h +0 -77
  241. xtgeo/include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h +0 -904
  242. xtgeo/include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver_LAPACKE.h +0 -87
  243. xtgeo/include/eigen3/Eigen/src/Eigenvalues/Tridiagonalization.h +0 -561
  244. xtgeo/include/eigen3/Eigen/src/Geometry/AlignedBox.h +0 -486
  245. xtgeo/include/eigen3/Eigen/src/Geometry/AngleAxis.h +0 -247
  246. xtgeo/include/eigen3/Eigen/src/Geometry/EulerAngles.h +0 -114
  247. xtgeo/include/eigen3/Eigen/src/Geometry/Homogeneous.h +0 -501
  248. xtgeo/include/eigen3/Eigen/src/Geometry/Hyperplane.h +0 -282
  249. xtgeo/include/eigen3/Eigen/src/Geometry/OrthoMethods.h +0 -235
  250. xtgeo/include/eigen3/Eigen/src/Geometry/ParametrizedLine.h +0 -232
  251. xtgeo/include/eigen3/Eigen/src/Geometry/Quaternion.h +0 -870
  252. xtgeo/include/eigen3/Eigen/src/Geometry/Rotation2D.h +0 -199
  253. xtgeo/include/eigen3/Eigen/src/Geometry/RotationBase.h +0 -206
  254. xtgeo/include/eigen3/Eigen/src/Geometry/Scaling.h +0 -188
  255. xtgeo/include/eigen3/Eigen/src/Geometry/Transform.h +0 -1563
  256. xtgeo/include/eigen3/Eigen/src/Geometry/Translation.h +0 -202
  257. xtgeo/include/eigen3/Eigen/src/Geometry/Umeyama.h +0 -166
  258. xtgeo/include/eigen3/Eigen/src/Geometry/arch/Geometry_SIMD.h +0 -168
  259. xtgeo/include/eigen3/Eigen/src/Householder/BlockHouseholder.h +0 -110
  260. xtgeo/include/eigen3/Eigen/src/Householder/Householder.h +0 -176
  261. xtgeo/include/eigen3/Eigen/src/Householder/HouseholderSequence.h +0 -545
  262. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/BasicPreconditioners.h +0 -226
  263. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h +0 -212
  264. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/ConjugateGradient.h +0 -229
  265. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h +0 -394
  266. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h +0 -453
  267. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/IterativeSolverBase.h +0 -444
  268. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/LeastSquareConjugateGradient.h +0 -198
  269. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/SolveWithGuess.h +0 -117
  270. xtgeo/include/eigen3/Eigen/src/Jacobi/Jacobi.h +0 -483
  271. xtgeo/include/eigen3/Eigen/src/KLUSupport/KLUSupport.h +0 -358
  272. xtgeo/include/eigen3/Eigen/src/LU/Determinant.h +0 -117
  273. xtgeo/include/eigen3/Eigen/src/LU/FullPivLU.h +0 -877
  274. xtgeo/include/eigen3/Eigen/src/LU/InverseImpl.h +0 -432
  275. xtgeo/include/eigen3/Eigen/src/LU/PartialPivLU.h +0 -624
  276. xtgeo/include/eigen3/Eigen/src/LU/PartialPivLU_LAPACKE.h +0 -83
  277. xtgeo/include/eigen3/Eigen/src/LU/arch/InverseSize4.h +0 -351
  278. xtgeo/include/eigen3/Eigen/src/MetisSupport/MetisSupport.h +0 -137
  279. xtgeo/include/eigen3/Eigen/src/OrderingMethods/Amd.h +0 -435
  280. xtgeo/include/eigen3/Eigen/src/OrderingMethods/Eigen_Colamd.h +0 -1863
  281. xtgeo/include/eigen3/Eigen/src/OrderingMethods/Ordering.h +0 -153
  282. xtgeo/include/eigen3/Eigen/src/PaStiXSupport/PaStiXSupport.h +0 -678
  283. xtgeo/include/eigen3/Eigen/src/PardisoSupport/PardisoSupport.h +0 -545
  284. xtgeo/include/eigen3/Eigen/src/QR/ColPivHouseholderQR.h +0 -674
  285. xtgeo/include/eigen3/Eigen/src/QR/ColPivHouseholderQR_LAPACKE.h +0 -97
  286. xtgeo/include/eigen3/Eigen/src/QR/CompleteOrthogonalDecomposition.h +0 -635
  287. xtgeo/include/eigen3/Eigen/src/QR/FullPivHouseholderQR.h +0 -713
  288. xtgeo/include/eigen3/Eigen/src/QR/HouseholderQR.h +0 -434
  289. xtgeo/include/eigen3/Eigen/src/QR/HouseholderQR_LAPACKE.h +0 -68
  290. xtgeo/include/eigen3/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h +0 -335
  291. xtgeo/include/eigen3/Eigen/src/SVD/BDCSVD.h +0 -1366
  292. xtgeo/include/eigen3/Eigen/src/SVD/JacobiSVD.h +0 -812
  293. xtgeo/include/eigen3/Eigen/src/SVD/JacobiSVD_LAPACKE.h +0 -91
  294. xtgeo/include/eigen3/Eigen/src/SVD/SVDBase.h +0 -376
  295. xtgeo/include/eigen3/Eigen/src/SVD/UpperBidiagonalization.h +0 -414
  296. xtgeo/include/eigen3/Eigen/src/SparseCholesky/SimplicialCholesky.h +0 -697
  297. xtgeo/include/eigen3/Eigen/src/SparseCholesky/SimplicialCholesky_impl.h +0 -174
  298. xtgeo/include/eigen3/Eigen/src/SparseCore/AmbiVector.h +0 -378
  299. xtgeo/include/eigen3/Eigen/src/SparseCore/CompressedStorage.h +0 -274
  300. xtgeo/include/eigen3/Eigen/src/SparseCore/ConservativeSparseSparseProduct.h +0 -352
  301. xtgeo/include/eigen3/Eigen/src/SparseCore/MappedSparseMatrix.h +0 -67
  302. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseAssign.h +0 -270
  303. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseBlock.h +0 -571
  304. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseColEtree.h +0 -206
  305. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseCompressedBase.h +0 -370
  306. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +0 -722
  307. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseCwiseUnaryOp.h +0 -150
  308. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseDenseProduct.h +0 -342
  309. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseDiagonalProduct.h +0 -138
  310. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseDot.h +0 -98
  311. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseFuzzy.h +0 -29
  312. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseMap.h +0 -305
  313. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h +0 -1518
  314. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseMatrixBase.h +0 -398
  315. xtgeo/include/eigen3/Eigen/src/SparseCore/SparsePermutation.h +0 -178
  316. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseProduct.h +0 -181
  317. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseRedux.h +0 -49
  318. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseRef.h +0 -397
  319. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseSelfAdjointView.h +0 -659
  320. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseSolverBase.h +0 -124
  321. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseSparseProductWithPruning.h +0 -198
  322. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseTranspose.h +0 -92
  323. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseTriangularView.h +0 -189
  324. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseUtil.h +0 -186
  325. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseVector.h +0 -478
  326. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseView.h +0 -254
  327. xtgeo/include/eigen3/Eigen/src/SparseCore/TriangularSolver.h +0 -315
  328. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU.h +0 -923
  329. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLUImpl.h +0 -66
  330. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_Memory.h +0 -226
  331. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_Structs.h +0 -110
  332. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +0 -375
  333. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_Utils.h +0 -80
  334. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_column_bmod.h +0 -181
  335. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_column_dfs.h +0 -179
  336. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h +0 -107
  337. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_gemm_kernel.h +0 -280
  338. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +0 -126
  339. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_kernel_bmod.h +0 -130
  340. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_panel_bmod.h +0 -223
  341. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_panel_dfs.h +0 -258
  342. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_pivotL.h +0 -137
  343. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_pruneL.h +0 -136
  344. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_relax_snode.h +0 -83
  345. xtgeo/include/eigen3/Eigen/src/SparseQR/SparseQR.h +0 -758
  346. xtgeo/include/eigen3/Eigen/src/StlSupport/StdDeque.h +0 -116
  347. xtgeo/include/eigen3/Eigen/src/StlSupport/StdList.h +0 -106
  348. xtgeo/include/eigen3/Eigen/src/StlSupport/StdVector.h +0 -131
  349. xtgeo/include/eigen3/Eigen/src/StlSupport/details.h +0 -84
  350. xtgeo/include/eigen3/Eigen/src/SuperLUSupport/SuperLUSupport.h +0 -1025
  351. xtgeo/include/eigen3/Eigen/src/UmfPackSupport/UmfPackSupport.h +0 -642
  352. xtgeo/include/eigen3/Eigen/src/misc/Image.h +0 -82
  353. xtgeo/include/eigen3/Eigen/src/misc/Kernel.h +0 -79
  354. xtgeo/include/eigen3/Eigen/src/misc/RealSvd2x2.h +0 -55
  355. xtgeo/include/eigen3/Eigen/src/misc/blas.h +0 -440
  356. xtgeo/include/eigen3/Eigen/src/misc/lapack.h +0 -152
  357. xtgeo/include/eigen3/Eigen/src/misc/lapacke.h +0 -16292
  358. xtgeo/include/eigen3/Eigen/src/misc/lapacke_mangling.h +0 -17
  359. xtgeo/include/eigen3/Eigen/src/plugins/ArrayCwiseBinaryOps.h +0 -358
  360. xtgeo/include/eigen3/Eigen/src/plugins/ArrayCwiseUnaryOps.h +0 -696
  361. xtgeo/include/eigen3/Eigen/src/plugins/BlockMethods.h +0 -1442
  362. xtgeo/include/eigen3/Eigen/src/plugins/CommonCwiseBinaryOps.h +0 -115
  363. xtgeo/include/eigen3/Eigen/src/plugins/CommonCwiseUnaryOps.h +0 -177
  364. xtgeo/include/eigen3/Eigen/src/plugins/IndexedViewMethods.h +0 -262
  365. xtgeo/include/eigen3/Eigen/src/plugins/MatrixCwiseBinaryOps.h +0 -152
  366. xtgeo/include/eigen3/Eigen/src/plugins/MatrixCwiseUnaryOps.h +0 -95
  367. xtgeo/include/eigen3/Eigen/src/plugins/ReshapedMethods.h +0 -149
  368. xtgeo/include/eigen3/signature_of_eigen3_matrix_library +0 -1
  369. xtgeo/include/eigen3/unsupported/Eigen/AdolcForward +0 -159
  370. xtgeo/include/eigen3/unsupported/Eigen/AlignedVector3 +0 -234
  371. xtgeo/include/eigen3/unsupported/Eigen/ArpackSupport +0 -30
  372. xtgeo/include/eigen3/unsupported/Eigen/AutoDiff +0 -46
  373. xtgeo/include/eigen3/unsupported/Eigen/BVH +0 -95
  374. xtgeo/include/eigen3/unsupported/Eigen/CXX11/Tensor +0 -137
  375. xtgeo/include/eigen3/unsupported/Eigen/CXX11/TensorSymmetry +0 -42
  376. xtgeo/include/eigen3/unsupported/Eigen/CXX11/ThreadPool +0 -74
  377. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/Tensor.h +0 -554
  378. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorArgMax.h +0 -329
  379. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h +0 -247
  380. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h +0 -1176
  381. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h +0 -1559
  382. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h +0 -1093
  383. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h +0 -518
  384. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConcatenation.h +0 -377
  385. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h +0 -1023
  386. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionBlocking.h +0 -73
  387. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionCuda.h +0 -6
  388. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionGpu.h +0 -1413
  389. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionMapper.h +0 -575
  390. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionSycl.h +0 -1650
  391. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h +0 -1679
  392. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConversion.h +0 -456
  393. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConvolution.h +0 -1132
  394. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConvolutionSycl.h +0 -544
  395. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorCostModel.h +0 -214
  396. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorCustomOp.h +0 -347
  397. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDevice.h +0 -137
  398. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h +0 -6
  399. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceDefault.h +0 -104
  400. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceGpu.h +0 -389
  401. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h +0 -1048
  402. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +0 -409
  403. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h +0 -236
  404. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h +0 -490
  405. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvalTo.h +0 -236
  406. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h +0 -983
  407. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h +0 -703
  408. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h +0 -388
  409. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFFT.h +0 -669
  410. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFixedSize.h +0 -379
  411. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorForcedEval.h +0 -237
  412. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h +0 -191
  413. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h +0 -488
  414. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGenerator.h +0 -302
  415. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGlobalFunctions.h +0 -33
  416. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGpuHipCudaDefines.h +0 -99
  417. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGpuHipCudaUndefines.h +0 -44
  418. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIO.h +0 -79
  419. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +0 -603
  420. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h +0 -738
  421. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorInflation.h +0 -247
  422. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorInitializer.h +0 -82
  423. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h +0 -263
  424. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorLayoutSwap.h +0 -216
  425. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMacros.h +0 -98
  426. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h +0 -327
  427. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h +0 -311
  428. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h +0 -1102
  429. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorPadding.h +0 -708
  430. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h +0 -291
  431. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h +0 -322
  432. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h +0 -998
  433. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h +0 -6
  434. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionGpu.h +0 -966
  435. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +0 -582
  436. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h +0 -454
  437. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReverse.h +0 -465
  438. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorScan.h +0 -528
  439. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +0 -513
  440. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorShuffling.h +0 -471
  441. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorStorage.h +0 -161
  442. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorStriding.h +0 -346
  443. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h +0 -303
  444. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h +0 -264
  445. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h +0 -249
  446. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorVolumePatch.h +0 -629
  447. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/DynamicSymmetry.h +0 -293
  448. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/StaticSymmetry.h +0 -236
  449. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/Symmetry.h +0 -338
  450. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/util/TemplateGroupTheory.h +0 -669
  451. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/Barrier.h +0 -67
  452. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/EventCount.h +0 -249
  453. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h +0 -486
  454. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/RunQueue.h +0 -236
  455. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadCancel.h +0 -23
  456. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadEnvironment.h +0 -40
  457. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadLocal.h +0 -301
  458. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h +0 -48
  459. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h +0 -20
  460. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/CXX11Meta.h +0 -537
  461. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/CXX11Workarounds.h +0 -88
  462. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/EmulateArray.h +0 -261
  463. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/MaxSizeVector.h +0 -158
  464. xtgeo/include/eigen3/unsupported/Eigen/EulerAngles +0 -43
  465. xtgeo/include/eigen3/unsupported/Eigen/FFT +0 -419
  466. xtgeo/include/eigen3/unsupported/Eigen/IterativeSolvers +0 -51
  467. xtgeo/include/eigen3/unsupported/Eigen/KroneckerProduct +0 -36
  468. xtgeo/include/eigen3/unsupported/Eigen/LevenbergMarquardt +0 -49
  469. xtgeo/include/eigen3/unsupported/Eigen/MPRealSupport +0 -213
  470. xtgeo/include/eigen3/unsupported/Eigen/MatrixFunctions +0 -504
  471. xtgeo/include/eigen3/unsupported/Eigen/MoreVectorization +0 -24
  472. xtgeo/include/eigen3/unsupported/Eigen/NonLinearOptimization +0 -140
  473. xtgeo/include/eigen3/unsupported/Eigen/NumericalDiff +0 -56
  474. xtgeo/include/eigen3/unsupported/Eigen/OpenGLSupport +0 -322
  475. xtgeo/include/eigen3/unsupported/Eigen/Polynomials +0 -137
  476. xtgeo/include/eigen3/unsupported/Eigen/Skyline +0 -39
  477. xtgeo/include/eigen3/unsupported/Eigen/SparseExtra +0 -54
  478. xtgeo/include/eigen3/unsupported/Eigen/SpecialFunctions +0 -103
  479. xtgeo/include/eigen3/unsupported/Eigen/Splines +0 -35
  480. xtgeo/include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffJacobian.h +0 -108
  481. xtgeo/include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +0 -730
  482. xtgeo/include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffVector.h +0 -220
  483. xtgeo/include/eigen3/unsupported/Eigen/src/BVH/BVAlgorithms.h +0 -293
  484. xtgeo/include/eigen3/unsupported/Eigen/src/BVH/KdBVH.h +0 -223
  485. xtgeo/include/eigen3/unsupported/Eigen/src/Eigenvalues/ArpackSelfAdjointEigenSolver.h +0 -790
  486. xtgeo/include/eigen3/unsupported/Eigen/src/EulerAngles/EulerAngles.h +0 -355
  487. xtgeo/include/eigen3/unsupported/Eigen/src/EulerAngles/EulerSystem.h +0 -305
  488. xtgeo/include/eigen3/unsupported/Eigen/src/FFT/ei_fftw_impl.h +0 -261
  489. xtgeo/include/eigen3/unsupported/Eigen/src/FFT/ei_kissfft_impl.h +0 -449
  490. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/ConstrainedConjGrad.h +0 -187
  491. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/DGMRES.h +0 -511
  492. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/GMRES.h +0 -335
  493. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/IDRS.h +0 -436
  494. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/IncompleteLU.h +0 -90
  495. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/IterationController.h +0 -154
  496. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/MINRES.h +0 -267
  497. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/Scaling.h +0 -193
  498. xtgeo/include/eigen3/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h +0 -305
  499. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMcovar.h +0 -84
  500. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMonestep.h +0 -202
  501. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMpar.h +0 -160
  502. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMqrsolv.h +0 -188
  503. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LevenbergMarquardt.h +0 -396
  504. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +0 -441
  505. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h +0 -569
  506. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h +0 -373
  507. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixPower.h +0 -705
  508. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h +0 -368
  509. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/StemFunction.h +0 -117
  510. xtgeo/include/eigen3/unsupported/Eigen/src/MoreVectorization/MathFunctions.h +0 -95
  511. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/HybridNonLinearSolver.h +0 -601
  512. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h +0 -657
  513. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/chkder.h +0 -66
  514. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/covar.h +0 -70
  515. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/dogleg.h +0 -107
  516. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/fdjac1.h +0 -79
  517. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/lmpar.h +0 -298
  518. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h +0 -91
  519. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/r1mpyq.h +0 -30
  520. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/r1updt.h +0 -99
  521. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h +0 -49
  522. xtgeo/include/eigen3/unsupported/Eigen/src/NumericalDiff/NumericalDiff.h +0 -130
  523. xtgeo/include/eigen3/unsupported/Eigen/src/Polynomials/Companion.h +0 -280
  524. xtgeo/include/eigen3/unsupported/Eigen/src/Polynomials/PolynomialSolver.h +0 -428
  525. xtgeo/include/eigen3/unsupported/Eigen/src/Polynomials/PolynomialUtils.h +0 -143
  526. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineInplaceLU.h +0 -352
  527. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineMatrix.h +0 -862
  528. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineMatrixBase.h +0 -212
  529. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineProduct.h +0 -295
  530. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineStorage.h +0 -259
  531. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineUtil.h +0 -89
  532. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/BlockOfDynamicSparseMatrix.h +0 -122
  533. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h +0 -1079
  534. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/DynamicSparseMatrix.h +0 -404
  535. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/MarketIO.h +0 -282
  536. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/MatrixMarketIterator.h +0 -247
  537. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/RandomSetter.h +0 -349
  538. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsArrayAPI.h +0 -286
  539. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsBFloat16.h +0 -68
  540. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsFunctors.h +0 -357
  541. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsHalf.h +0 -66
  542. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsImpl.h +0 -1959
  543. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsPacketMath.h +0 -118
  544. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/HipVectorCompatibility.h +0 -67
  545. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsArrayAPI.h +0 -167
  546. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsBFloat16.h +0 -58
  547. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsFunctors.h +0 -330
  548. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsHalf.h +0 -58
  549. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +0 -2045
  550. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsPacketMath.h +0 -79
  551. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX/BesselFunctions.h +0 -46
  552. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX/SpecialFunctions.h +0 -16
  553. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX512/BesselFunctions.h +0 -46
  554. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX512/SpecialFunctions.h +0 -16
  555. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/GPU/SpecialFunctions.h +0 -369
  556. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/NEON/BesselFunctions.h +0 -54
  557. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/NEON/SpecialFunctions.h +0 -34
  558. xtgeo/include/eigen3/unsupported/Eigen/src/Splines/Spline.h +0 -507
  559. xtgeo/include/eigen3/unsupported/Eigen/src/Splines/SplineFitting.h +0 -431
  560. xtgeo/include/eigen3/unsupported/Eigen/src/Splines/SplineFwd.h +0 -93
  561. xtgeo/share/eigen3/cmake/Eigen3Config.cmake +0 -37
  562. xtgeo/share/eigen3/cmake/Eigen3ConfigVersion.cmake +0 -65
  563. xtgeo/share/eigen3/cmake/UseEigen3.cmake +0 -6
  564. xtgeo/share/pkgconfig/eigen3.pc +0 -9
  565. xtgeo-4.10.0.dist-info/RECORD +0 -652
  566. {xtgeo-4.10.0.dist-info → xtgeo-4.11.0.dist-info}/licenses/LICENSE.md +0 -0
@@ -1,1102 +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
- //
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_CXX11_TENSOR_TENSOR_MORPHING_H
11
- #define EIGEN_CXX11_TENSOR_TENSOR_MORPHING_H
12
-
13
- namespace Eigen {
14
-
15
- /** \class TensorReshaping
16
- * \ingroup CXX11_Tensor_Module
17
- *
18
- * \brief Tensor reshaping class.
19
- *
20
- *
21
- */
22
- namespace internal {
23
- template<typename NewDimensions, typename XprType>
24
- struct traits<TensorReshapingOp<NewDimensions, XprType> > : public traits<XprType>
25
- {
26
- typedef typename XprType::Scalar Scalar;
27
- typedef traits<XprType> XprTraits;
28
- typedef typename XprTraits::StorageKind StorageKind;
29
- typedef typename XprTraits::Index Index;
30
- typedef typename XprType::Nested Nested;
31
- typedef typename remove_reference<Nested>::type _Nested;
32
- static const int NumDimensions = array_size<NewDimensions>::value;
33
- static const int Layout = XprTraits::Layout;
34
- typedef typename XprTraits::PointerType PointerType;
35
- };
36
-
37
- template<typename NewDimensions, typename XprType>
38
- struct eval<TensorReshapingOp<NewDimensions, XprType>, Eigen::Dense>
39
- {
40
- typedef const TensorReshapingOp<NewDimensions, XprType>EIGEN_DEVICE_REF type;
41
- };
42
-
43
- template<typename NewDimensions, typename XprType>
44
- struct nested<TensorReshapingOp<NewDimensions, XprType>, 1, typename eval<TensorReshapingOp<NewDimensions, XprType> >::type>
45
- {
46
- typedef TensorReshapingOp<NewDimensions, XprType> type;
47
- };
48
-
49
- } // end namespace internal
50
-
51
-
52
-
53
- template<typename NewDimensions, typename XprType>
54
- class TensorReshapingOp : public TensorBase<TensorReshapingOp<NewDimensions, XprType>, WriteAccessors>
55
- {
56
- public:
57
- typedef TensorBase<TensorReshapingOp<NewDimensions, XprType>, WriteAccessors> Base;
58
- typedef typename Eigen::internal::traits<TensorReshapingOp>::Scalar Scalar;
59
- typedef typename internal::remove_const<typename XprType::CoeffReturnType>::type CoeffReturnType;
60
- typedef typename Eigen::internal::nested<TensorReshapingOp>::type Nested;
61
- typedef typename Eigen::internal::traits<TensorReshapingOp>::StorageKind StorageKind;
62
- typedef typename Eigen::internal::traits<TensorReshapingOp>::Index Index;
63
-
64
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorReshapingOp(const XprType& expr, const NewDimensions& dims)
65
- : m_xpr(expr), m_dims(dims) {}
66
-
67
- EIGEN_DEVICE_FUNC
68
- const NewDimensions& dimensions() const { return m_dims; }
69
-
70
- EIGEN_DEVICE_FUNC
71
- const typename internal::remove_all<typename XprType::Nested>::type&
72
- expression() const { return m_xpr; }
73
-
74
- EIGEN_TENSOR_INHERIT_ASSIGNMENT_OPERATORS(TensorReshapingOp)
75
-
76
- protected:
77
- typename XprType::Nested m_xpr;
78
- const NewDimensions m_dims;
79
- };
80
-
81
-
82
- // Eval as rvalue
83
- template<typename NewDimensions, typename ArgType, typename Device>
84
- struct TensorEvaluator<const TensorReshapingOp<NewDimensions, ArgType>, Device>
85
- {
86
- typedef TensorReshapingOp<NewDimensions, ArgType> XprType;
87
- typedef NewDimensions Dimensions;
88
-
89
- typedef typename XprType::Index Index;
90
- typedef typename XprType::Scalar Scalar;
91
- typedef typename XprType::CoeffReturnType CoeffReturnType;
92
- typedef typename PacketType<CoeffReturnType, Device>::type PacketReturnType;
93
- typedef StorageMemory<CoeffReturnType, Device> Storage;
94
- typedef typename Storage::Type EvaluatorPointerType;
95
- typedef StorageMemory<typename internal::remove_const<CoeffReturnType>::type, Device> ConstCastStorage;
96
-
97
- static const int NumOutputDims = internal::array_size<Dimensions>::value;
98
- static const int NumInputDims = internal::array_size<typename TensorEvaluator<ArgType, Device>::Dimensions>::value;
99
-
100
- enum ReshapingKind {
101
- // We do not use layout information to determine reshaping kind.
102
- // Depending on the layout `N` can be inner or outer dimension.
103
- OneByN = 0, // expr.reshape(1, N)
104
- NByOne = 1, // expr.reshape(N, 1)
105
- Runtime = 2 // Reshape dimensions are dynamic (specified at runtime).
106
- };
107
-
108
- // clang-format off
109
- static const ReshapingKind kind =
110
- #if defined(EIGEN_HAS_INDEX_LIST)
111
- (NumOutputDims == 2 && internal::index_statically_eq<NewDimensions>(/*index=*/0, /*value=*/1)) ? OneByN
112
- : (NumOutputDims == 2 && internal::index_statically_eq<NewDimensions>(/*index=*/1, /*value=*/1)) ? NByOne
113
- : Runtime;
114
- #else
115
- Runtime;
116
- #endif
117
- // clang-format on
118
-
119
- enum {
120
- IsAligned = TensorEvaluator<ArgType, Device>::IsAligned,
121
- PacketAccess = TensorEvaluator<ArgType, Device>::PacketAccess,
122
- // For trivial reshapes with raw access to underlying data we will provide
123
- // zero overhead block access.
124
- // TODO(ezhulenev): Consider adding block access without raw access?
125
- BlockAccess = TensorEvaluator<ArgType, Device>::RawAccess &&
126
- NumInputDims > 0 && NumOutputDims > 0,
127
- PreferBlockAccess = false,
128
- Layout = TensorEvaluator<ArgType, Device>::Layout,
129
- CoordAccess = false, // to be implemented
130
- RawAccess = TensorEvaluator<ArgType, Device>::RawAccess
131
- };
132
-
133
- typedef typename internal::remove_const<Scalar>::type ScalarNoConst;
134
-
135
- //===- Tensor block evaluation strategy (see TensorBlock.h) -------------===//
136
- typedef internal::TensorBlockDescriptor<NumOutputDims, Index> TensorBlockDesc;
137
- typedef internal::TensorBlockScratchAllocator<Device> TensorBlockScratch;
138
-
139
- typedef
140
- typename internal::TensorMaterializedBlock<ScalarNoConst, NumOutputDims,
141
- Layout, Index>
142
- TensorBlock;
143
- //===--------------------------------------------------------------------===//
144
-
145
- EIGEN_STRONG_INLINE TensorEvaluator(const XprType& op, const Device& device)
146
- : m_impl(op.expression(), device), m_dimensions(op.dimensions())
147
- {
148
- // The total size of the reshaped tensor must be equal to the total size
149
- // of the input tensor.
150
- eigen_assert(internal::array_prod(m_impl.dimensions()) == internal::array_prod(op.dimensions()));
151
- }
152
-
153
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dimensions& dimensions() const { return m_dimensions; }
154
-
155
- #ifdef EIGEN_USE_THREADS
156
- template <typename EvalSubExprsCallback>
157
- EIGEN_STRONG_INLINE void evalSubExprsIfNeededAsync(
158
- EvaluatorPointerType data, EvalSubExprsCallback done) {
159
- m_impl.evalSubExprsIfNeededAsync(data, std::move(done));
160
- }
161
- #endif
162
-
163
- EIGEN_STRONG_INLINE bool evalSubExprsIfNeeded(EvaluatorPointerType data) {
164
- return m_impl.evalSubExprsIfNeeded(data);
165
- }
166
- EIGEN_STRONG_INLINE void cleanup() {
167
- m_impl.cleanup();
168
- }
169
-
170
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType coeff(Index index) const
171
- {
172
- return m_impl.coeff(index);
173
- }
174
-
175
- template<int LoadMode>
176
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PacketReturnType packet(Index index) const
177
- {
178
- return m_impl.template packet<LoadMode>(index);
179
- }
180
-
181
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorOpCost costPerCoeff(bool vectorized) const {
182
- return m_impl.costPerCoeff(vectorized);
183
- }
184
-
185
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
186
- internal::TensorBlockResourceRequirements getResourceRequirements() const {
187
- return internal::TensorBlockResourceRequirements::any();
188
- }
189
-
190
- // required in block(OutputTensorBlock* output_block) const
191
- // For C++03 compatibility this must be defined outside the method
192
- struct BlockIteratorState {
193
- Index stride;
194
- Index span;
195
- Index size;
196
- Index count;
197
- };
198
-
199
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorBlock
200
- block(TensorBlockDesc& desc, TensorBlockScratch& scratch,
201
- bool /*root_of_expr_ast*/ = false) const {
202
- eigen_assert(m_impl.data() != NULL);
203
- eigen_assert((kind == Runtime) ||
204
- (kind == OneByN && desc.dimensions()[0] == 1) ||
205
- (kind == NByOne && desc.dimensions()[1] == 1));
206
-
207
- if (kind == OneByN || kind == NByOne) {
208
- // We can guarantee at compile time that block is just a contiguous slice
209
- // of the underlying expression memory buffer.
210
- return TensorBlock(internal::TensorBlockKind::kView,
211
- m_impl.data() + desc.offset(), desc.dimensions());
212
- } else {
213
- // This will do additional runtime checks, and in the end it might be also
214
- // a view, or it might be a block materialized in the temporary buffer.
215
- return TensorBlock::materialize(m_impl.data(), m_dimensions, desc,
216
- scratch);
217
- }
218
- }
219
-
220
- EIGEN_DEVICE_FUNC typename Storage::Type data() const {
221
- return constCast(m_impl.data());
222
- }
223
-
224
- EIGEN_DEVICE_FUNC const TensorEvaluator<ArgType, Device>& impl() const { return m_impl; }
225
-
226
- #ifdef EIGEN_USE_SYCL
227
- // binding placeholder accessors to a command group handler for SYCL
228
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void bind(cl::sycl::handler &cgh) const {
229
- m_impl.bind(cgh);
230
- }
231
- #endif
232
- protected:
233
- TensorEvaluator<ArgType, Device> m_impl;
234
- NewDimensions m_dimensions;
235
- };
236
-
237
-
238
- // Eval as lvalue
239
- template<typename NewDimensions, typename ArgType, typename Device>
240
- struct TensorEvaluator<TensorReshapingOp<NewDimensions, ArgType>, Device>
241
- : public TensorEvaluator<const TensorReshapingOp<NewDimensions, ArgType>, Device>
242
-
243
- {
244
- typedef TensorEvaluator<const TensorReshapingOp<NewDimensions, ArgType>, Device> Base;
245
- typedef TensorReshapingOp<NewDimensions, ArgType> XprType;
246
- typedef NewDimensions Dimensions;
247
-
248
- enum {
249
- IsAligned = TensorEvaluator<ArgType, Device>::IsAligned,
250
- PacketAccess = TensorEvaluator<ArgType, Device>::PacketAccess,
251
- BlockAccess = TensorEvaluator<ArgType, Device>::RawAccess,
252
- PreferBlockAccess = false,
253
- Layout = TensorEvaluator<ArgType, Device>::Layout,
254
- CoordAccess = false, // to be implemented
255
- RawAccess = TensorEvaluator<ArgType, Device>::RawAccess
256
- };
257
-
258
- EIGEN_STRONG_INLINE TensorEvaluator(const XprType& op, const Device& device)
259
- : Base(op, device)
260
- { }
261
-
262
- typedef typename XprType::Index Index;
263
- typedef typename XprType::Scalar Scalar;
264
- typedef typename XprType::CoeffReturnType CoeffReturnType;
265
- typedef typename PacketType<CoeffReturnType, Device>::type PacketReturnType;
266
-
267
- //===- Tensor block evaluation strategy (see TensorBlock.h) -------------===//
268
- typedef internal::TensorBlockDescriptor<TensorEvaluator::NumOutputDims, Index>
269
- TensorBlockDesc;
270
- //===--------------------------------------------------------------------===//
271
-
272
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType& coeffRef(Index index)
273
- {
274
- return this->m_impl.coeffRef(index);
275
- }
276
-
277
- template <int StoreMode> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
278
- void writePacket(Index index, const PacketReturnType& x)
279
- {
280
- this->m_impl.template writePacket<StoreMode>(index, x);
281
- }
282
-
283
- template <typename TensorBlock>
284
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void writeBlock(
285
- const TensorBlockDesc& desc, const TensorBlock& block) {
286
- assert(this->m_impl.data() != NULL);
287
-
288
- typedef typename TensorBlock::XprType TensorBlockExpr;
289
- typedef internal::TensorBlockAssignment<
290
- Scalar, TensorEvaluator::NumOutputDims, TensorBlockExpr, Index>
291
- TensorBlockAssign;
292
-
293
- TensorBlockAssign::Run(
294
- TensorBlockAssign::target(desc.dimensions(),
295
- internal::strides<Layout>(this->dimensions()),
296
- this->m_impl.data(), desc.offset()),
297
- block.expr());
298
- }
299
- };
300
-
301
-
302
- /** \class TensorSlicing
303
- * \ingroup CXX11_Tensor_Module
304
- *
305
- * \brief Tensor slicing class.
306
- *
307
- *
308
- */
309
- namespace internal {
310
- template<typename StartIndices, typename Sizes, typename XprType>
311
- struct traits<TensorSlicingOp<StartIndices, Sizes, XprType> > : public traits<XprType>
312
- {
313
- typedef typename XprType::Scalar Scalar;
314
- typedef traits<XprType> XprTraits;
315
- typedef typename XprTraits::StorageKind StorageKind;
316
- typedef typename XprTraits::Index Index;
317
- typedef typename XprType::Nested Nested;
318
- typedef typename remove_reference<Nested>::type _Nested;
319
- static const int NumDimensions = array_size<StartIndices>::value;
320
- static const int Layout = XprTraits::Layout;
321
- typedef typename XprTraits::PointerType PointerType;
322
- };
323
-
324
- template<typename StartIndices, typename Sizes, typename XprType>
325
- struct eval<TensorSlicingOp<StartIndices, Sizes, XprType>, Eigen::Dense>
326
- {
327
- typedef const TensorSlicingOp<StartIndices, Sizes, XprType>EIGEN_DEVICE_REF type;
328
- };
329
-
330
- template<typename StartIndices, typename Sizes, typename XprType>
331
- struct nested<TensorSlicingOp<StartIndices, Sizes, XprType>, 1, typename eval<TensorSlicingOp<StartIndices, Sizes, XprType> >::type>
332
- {
333
- typedef TensorSlicingOp<StartIndices, Sizes, XprType> type;
334
- };
335
-
336
- } // end namespace internal
337
-
338
-
339
-
340
- template<typename StartIndices, typename Sizes, typename XprType>
341
- class TensorSlicingOp : public TensorBase<TensorSlicingOp<StartIndices, Sizes, XprType> >
342
- {
343
- public:
344
- typedef TensorBase<TensorSlicingOp<StartIndices, Sizes, XprType> > Base;
345
- typedef typename Eigen::internal::traits<TensorSlicingOp>::Scalar Scalar;
346
- typedef typename XprType::CoeffReturnType CoeffReturnType;
347
- typedef typename Eigen::internal::nested<TensorSlicingOp>::type Nested;
348
- typedef typename Eigen::internal::traits<TensorSlicingOp>::StorageKind StorageKind;
349
- typedef typename Eigen::internal::traits<TensorSlicingOp>::Index Index;
350
-
351
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorSlicingOp(const XprType& expr, const StartIndices& indices, const Sizes& sizes)
352
- : m_xpr(expr), m_indices(indices), m_sizes(sizes) {}
353
-
354
- EIGEN_DEVICE_FUNC
355
- const StartIndices& startIndices() const { return m_indices; }
356
- EIGEN_DEVICE_FUNC
357
- const Sizes& sizes() const { return m_sizes; }
358
-
359
- EIGEN_DEVICE_FUNC
360
- const typename internal::remove_all<typename XprType::Nested>::type&
361
- expression() const { return m_xpr; }
362
-
363
- EIGEN_TENSOR_INHERIT_ASSIGNMENT_OPERATORS(TensorSlicingOp)
364
-
365
- protected:
366
- typename XprType::Nested m_xpr;
367
- const StartIndices m_indices;
368
- const Sizes m_sizes;
369
- };
370
-
371
-
372
- // Fixme: figure out the exact threshold
373
- namespace {
374
- template <typename Index, typename Device, bool BlockAccess> struct MemcpyTriggerForSlicing {
375
- EIGEN_DEVICE_FUNC MemcpyTriggerForSlicing(const Device& device) : threshold_(2 * device.numThreads()) { }
376
- EIGEN_DEVICE_FUNC bool operator ()(Index total, Index contiguous) const {
377
- const bool prefer_block_evaluation = BlockAccess && total > 32*1024;
378
- return !prefer_block_evaluation && contiguous > threshold_;
379
- }
380
-
381
- private:
382
- Index threshold_;
383
- };
384
-
385
- // It is very expensive to start the memcpy kernel on GPU: we therefore only
386
- // use it for large copies.
387
- #ifdef EIGEN_USE_GPU
388
- template <typename Index, bool BlockAccess> struct MemcpyTriggerForSlicing<Index, GpuDevice, BlockAccess> {
389
- EIGEN_DEVICE_FUNC MemcpyTriggerForSlicing(const GpuDevice&) { }
390
- EIGEN_DEVICE_FUNC bool operator ()(Index, Index contiguous) const { return contiguous > 4*1024*1024; }
391
- };
392
- #endif
393
-
394
- // It is very expensive to start the memcpy kernel on GPU: we therefore only
395
- // use it for large copies.
396
- #ifdef EIGEN_USE_SYCL
397
- template <typename Index, bool BlockAccess> struct MemcpyTriggerForSlicing<Index, Eigen::SyclDevice, BlockAccess> {
398
- EIGEN_DEVICE_FUNC MemcpyTriggerForSlicing(const SyclDevice&) { }
399
- EIGEN_DEVICE_FUNC bool operator ()(Index, Index contiguous) const { return contiguous > 4*1024*1024; }
400
- };
401
- #endif
402
-
403
- }
404
-
405
- // Eval as rvalue
406
- template<typename StartIndices, typename Sizes, typename ArgType, typename Device>
407
- struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Device>
408
- {
409
- typedef TensorSlicingOp<StartIndices, Sizes, ArgType> XprType;
410
- static const int NumDims = internal::array_size<Sizes>::value;
411
-
412
- typedef typename XprType::Index Index;
413
- typedef typename XprType::Scalar Scalar;
414
- typedef typename XprType::CoeffReturnType CoeffReturnType;
415
- typedef typename PacketType<CoeffReturnType, Device>::type PacketReturnType;
416
- typedef Sizes Dimensions;
417
- typedef StorageMemory<CoeffReturnType, Device> Storage;
418
- typedef StorageMemory<typename internal::remove_const<CoeffReturnType>::type, Device> ConstCastStorage;
419
- typedef typename Storage::Type EvaluatorPointerType;
420
-
421
- enum {
422
- // Alignment can't be guaranteed at compile time since it depends on the
423
- // slice offsets and sizes.
424
- IsAligned = false,
425
- PacketAccess = TensorEvaluator<ArgType, Device>::PacketAccess,
426
- BlockAccess = TensorEvaluator<ArgType, Device>::BlockAccess &&
427
- // FIXME: Temporary workaround for bug in slicing of bool tensors.
428
- !internal::is_same<typename internal::remove_const<Scalar>::type, bool>::value,
429
- PreferBlockAccess = true,
430
- Layout = TensorEvaluator<ArgType, Device>::Layout,
431
- CoordAccess = false,
432
- RawAccess = false
433
- };
434
-
435
- typedef typename internal::remove_const<Scalar>::type ScalarNoConst;
436
-
437
- //===- Tensor block evaluation strategy (see TensorBlock.h) -------------===//
438
- typedef internal::TensorBlockDescriptor<NumDims, Index> TensorBlockDesc;
439
- typedef internal::TensorBlockScratchAllocator<Device> TensorBlockScratch;
440
-
441
- // Tensor slicing does not change the block type.
442
- typedef typename TensorEvaluator<const ArgType, Device>::TensorBlock
443
- TensorBlock;
444
- //===--------------------------------------------------------------------===//
445
-
446
- EIGEN_STRONG_INLINE TensorEvaluator(const XprType& op, const Device& device)
447
- : m_impl(op.expression(), device), m_device(device), m_dimensions(op.sizes()), m_offsets(op.startIndices())
448
- {
449
- m_is_identity = true;
450
- for (int i = 0; i < internal::array_size<Dimensions>::value; ++i) {
451
- eigen_assert(m_impl.dimensions()[i] >=
452
- op.sizes()[i] + op.startIndices()[i]);
453
- if (m_impl.dimensions()[i] != op.sizes()[i] ||
454
- op.startIndices()[i] != 0) {
455
- m_is_identity = false;
456
- }
457
- }
458
-
459
- // No strides for scalars.
460
- if (NumDims == 0) return;
461
-
462
- const typename TensorEvaluator<ArgType, Device>::Dimensions& input_dims = m_impl.dimensions();
463
- const Sizes& output_dims = op.sizes();
464
- if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
465
- m_inputStrides[0] = 1;
466
- for (int i = 1; i < NumDims; ++i) {
467
- m_inputStrides[i] = m_inputStrides[i-1] * input_dims[i-1];
468
- }
469
-
470
- // Don't initialize m_fastOutputStrides[0] since it won't ever be accessed.
471
- m_outputStrides[0] = 1;
472
- for (int i = 1; i < NumDims; ++i) {
473
- m_outputStrides[i] = m_outputStrides[i-1] * output_dims[i-1];
474
- m_fastOutputStrides[i] = internal::TensorIntDivisor<Index>(m_outputStrides[i] > 0 ? m_outputStrides[i] : 1);
475
- }
476
- } else {
477
- m_inputStrides[NumDims-1] = 1;
478
- for (int i = NumDims - 2; i >= 0; --i) {
479
- m_inputStrides[i] = m_inputStrides[i+1] * input_dims[i+1];
480
- }
481
-
482
- // Don't initialize m_fastOutputStrides[NumDims-1] since it won't ever be accessed.
483
- m_outputStrides[NumDims-1] = 1;
484
- for (int i = NumDims - 2; i >= 0; --i) {
485
- m_outputStrides[i] = m_outputStrides[i+1] * output_dims[i+1];
486
- m_fastOutputStrides[i] = internal::TensorIntDivisor<Index>(m_outputStrides[i] > 0 ? m_outputStrides[i] : 1);
487
- }
488
- }
489
- }
490
-
491
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dimensions& dimensions() const { return m_dimensions; }
492
-
493
- EIGEN_STRONG_INLINE bool evalSubExprsIfNeeded(EvaluatorPointerType data) {
494
- m_impl.evalSubExprsIfNeeded(NULL);
495
- if (!NumTraits<typename internal::remove_const<Scalar>::type>::RequireInitialization
496
- && data && m_impl.data()) {
497
- Index contiguous_values = 1;
498
- if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
499
- for (int i = 0; i < NumDims; ++i) {
500
- contiguous_values *= dimensions()[i];
501
- if (dimensions()[i] != m_impl.dimensions()[i]) {
502
- break;
503
- }
504
- }
505
- } else {
506
- for (int i = NumDims-1; i >= 0; --i) {
507
- contiguous_values *= dimensions()[i];
508
- if (dimensions()[i] != m_impl.dimensions()[i]) {
509
- break;
510
- }
511
- }
512
- }
513
- // Use memcpy if it's going to be faster than using the regular evaluation.
514
- const MemcpyTriggerForSlicing<Index, Device, BlockAccess> trigger(m_device);
515
- if (trigger(internal::array_prod(dimensions()), contiguous_values)) {
516
- EvaluatorPointerType src = (EvaluatorPointerType)m_impl.data();
517
- for (Index i = 0; i < internal::array_prod(dimensions()); i += contiguous_values) {
518
- Index offset = srcCoeff(i);
519
- m_device.memcpy((void*)(m_device.get(data + i)), m_device.get(src+offset), contiguous_values * sizeof(Scalar));
520
- }
521
- return false;
522
- }
523
- }
524
- return true;
525
- }
526
-
527
- #ifdef EIGEN_USE_THREADS
528
- template <typename EvalSubExprsCallback>
529
- EIGEN_STRONG_INLINE void evalSubExprsIfNeededAsync(
530
- EvaluatorPointerType /*data*/, EvalSubExprsCallback done) {
531
- m_impl.evalSubExprsIfNeededAsync(nullptr, [done](bool) { done(true); });
532
- }
533
- #endif // EIGEN_USE_THREADS
534
-
535
- EIGEN_STRONG_INLINE void cleanup() {
536
- m_impl.cleanup();
537
- }
538
-
539
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType coeff(Index index) const
540
- {
541
- if (m_is_identity) {
542
- return m_impl.coeff(index);
543
- } else {
544
- return m_impl.coeff(srcCoeff(index));
545
- }
546
- }
547
-
548
- template<int LoadMode>
549
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PacketReturnType packet(Index index) const
550
- {
551
- const int packetSize = PacketType<CoeffReturnType, Device>::size;
552
- EIGEN_STATIC_ASSERT((packetSize > 1), YOU_MADE_A_PROGRAMMING_MISTAKE)
553
- eigen_assert(index+packetSize-1 < internal::array_prod(dimensions()));
554
-
555
- if (m_is_identity) {
556
- return m_impl.template packet<LoadMode>(index);
557
- }
558
-
559
- Index inputIndices[] = {0, 0};
560
- Index indices[] = {index, index + packetSize - 1};
561
- if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
562
- EIGEN_UNROLL_LOOP
563
- for (int i = NumDims - 1; i > 0; --i) {
564
- const Index idx0 = indices[0] / m_fastOutputStrides[i];
565
- const Index idx1 = indices[1] / m_fastOutputStrides[i];
566
- inputIndices[0] += (idx0 + m_offsets[i]) * m_inputStrides[i];
567
- inputIndices[1] += (idx1 + m_offsets[i]) * m_inputStrides[i];
568
- indices[0] -= idx0 * m_outputStrides[i];
569
- indices[1] -= idx1 * m_outputStrides[i];
570
- }
571
- inputIndices[0] += (indices[0] + m_offsets[0]);
572
- inputIndices[1] += (indices[1] + m_offsets[0]);
573
- } else {
574
- EIGEN_UNROLL_LOOP
575
- for (int i = 0; i < NumDims - 1; ++i) {
576
- const Index idx0 = indices[0] / m_fastOutputStrides[i];
577
- const Index idx1 = indices[1] / m_fastOutputStrides[i];
578
- inputIndices[0] += (idx0 + m_offsets[i]) * m_inputStrides[i];
579
- inputIndices[1] += (idx1 + m_offsets[i]) * m_inputStrides[i];
580
- indices[0] -= idx0 * m_outputStrides[i];
581
- indices[1] -= idx1 * m_outputStrides[i];
582
- }
583
- inputIndices[0] += (indices[0] + m_offsets[NumDims-1]);
584
- inputIndices[1] += (indices[1] + m_offsets[NumDims-1]);
585
- }
586
- if (inputIndices[1] - inputIndices[0] == packetSize - 1) {
587
- PacketReturnType rslt = m_impl.template packet<Unaligned>(inputIndices[0]);
588
- return rslt;
589
- }
590
- else {
591
- EIGEN_ALIGN_MAX typename internal::remove_const<CoeffReturnType>::type values[packetSize];
592
- values[0] = m_impl.coeff(inputIndices[0]);
593
- values[packetSize-1] = m_impl.coeff(inputIndices[1]);
594
- EIGEN_UNROLL_LOOP
595
- for (int i = 1; i < packetSize-1; ++i) {
596
- values[i] = coeff(index+i);
597
- }
598
- PacketReturnType rslt = internal::pload<PacketReturnType>(values);
599
- return rslt;
600
- }
601
- }
602
-
603
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorOpCost costPerCoeff(bool vectorized) const {
604
- return m_impl.costPerCoeff(vectorized) + TensorOpCost(0, 0, m_is_identity ? 1 : NumDims);
605
- }
606
-
607
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
608
- internal::TensorBlockResourceRequirements getResourceRequirements() const {
609
- const size_t target_size = m_device.lastLevelCacheSize();
610
- return internal::TensorBlockResourceRequirements::merge(
611
- internal::TensorBlockResourceRequirements::skewed<Scalar>(target_size),
612
- m_impl.getResourceRequirements());
613
- }
614
-
615
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorBlock
616
- block(TensorBlockDesc& desc, TensorBlockScratch& scratch,
617
- bool /*root_of_expr_ast*/ = false) const {
618
- TensorBlockDesc arg_desc = desc.WithOffset(srcCoeff(desc.offset()));
619
- TensorBlock block = m_impl.block(arg_desc, scratch);
620
- if (!arg_desc.HasDestinationBuffer()) desc.DropDestinationBuffer();
621
- return block;
622
- }
623
-
624
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE typename Storage::Type data() const {
625
- typename Storage::Type result = constCast(m_impl.data());
626
- if (result) {
627
- Index offset = 0;
628
- if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
629
- for (int i = 0; i < NumDims; ++i) {
630
- if (m_dimensions[i] != m_impl.dimensions()[i]) {
631
- offset += m_offsets[i] * m_inputStrides[i];
632
- for (int j = i+1; j < NumDims; ++j) {
633
- if (m_dimensions[j] > 1) {
634
- return NULL;
635
- }
636
- offset += m_offsets[j] * m_inputStrides[j];
637
- }
638
- break;
639
- }
640
- }
641
- } else {
642
- for (int i = NumDims - 1; i >= 0; --i) {
643
- if (m_dimensions[i] != m_impl.dimensions()[i]) {
644
- offset += m_offsets[i] * m_inputStrides[i];
645
- for (int j = i-1; j >= 0; --j) {
646
- if (m_dimensions[j] > 1) {
647
- return NULL;
648
- }
649
- offset += m_offsets[j] * m_inputStrides[j];
650
- }
651
- break;
652
- }
653
- }
654
- }
655
- return result + offset;
656
- }
657
- return NULL;
658
- }
659
- #ifdef EIGEN_USE_SYCL
660
- // binding placeholder accessors to a command group handler for SYCL
661
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void bind(cl::sycl::handler &cgh) const {
662
- m_impl.bind(cgh);
663
- }
664
- #endif
665
-
666
- protected:
667
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index srcCoeff(Index index) const
668
- {
669
- Index inputIndex = 0;
670
- if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
671
- EIGEN_UNROLL_LOOP
672
- for (int i = NumDims - 1; i > 0; --i) {
673
- const Index idx = index / m_fastOutputStrides[i];
674
- inputIndex += (idx + m_offsets[i]) * m_inputStrides[i];
675
- index -= idx * m_outputStrides[i];
676
- }
677
- inputIndex += (index + m_offsets[0]);
678
- } else {
679
- EIGEN_UNROLL_LOOP
680
- for (int i = 0; i < NumDims - 1; ++i) {
681
- const Index idx = index / m_fastOutputStrides[i];
682
- inputIndex += (idx + m_offsets[i]) * m_inputStrides[i];
683
- index -= idx * m_outputStrides[i];
684
- }
685
- inputIndex += (index + m_offsets[NumDims-1]);
686
- }
687
- return inputIndex;
688
- }
689
-
690
- array<Index, NumDims> m_outputStrides;
691
- array<internal::TensorIntDivisor<Index>, NumDims> m_fastOutputStrides;
692
- array<Index, NumDims> m_inputStrides;
693
- TensorEvaluator<ArgType, Device> m_impl;
694
- const Device EIGEN_DEVICE_REF m_device;
695
- Dimensions m_dimensions;
696
- bool m_is_identity;
697
- const StartIndices m_offsets;
698
- };
699
-
700
-
701
- // Eval as lvalue
702
- template<typename StartIndices, typename Sizes, typename ArgType, typename Device>
703
- struct TensorEvaluator<TensorSlicingOp<StartIndices, Sizes, ArgType>, Device>
704
- : public TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Device>
705
- {
706
- typedef TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Device> Base;
707
- typedef TensorSlicingOp<StartIndices, Sizes, ArgType> XprType;
708
- static const int NumDims = internal::array_size<Sizes>::value;
709
-
710
- typedef typename XprType::Index Index;
711
- typedef typename XprType::Scalar Scalar;
712
- typedef typename XprType::CoeffReturnType CoeffReturnType;
713
- typedef typename PacketType<CoeffReturnType, Device>::type PacketReturnType;
714
- typedef Sizes Dimensions;
715
-
716
- enum {
717
- IsAligned = false,
718
- PacketAccess = TensorEvaluator<ArgType, Device>::PacketAccess,
719
- BlockAccess = TensorEvaluator<ArgType, Device>::BlockAccess,
720
- PreferBlockAccess = true,
721
- Layout = TensorEvaluator<ArgType, Device>::Layout,
722
- CoordAccess = false,
723
- RawAccess = (NumDims == 1) & TensorEvaluator<ArgType, Device>::RawAccess
724
- };
725
-
726
- typedef typename internal::remove_const<Scalar>::type ScalarNoConst;
727
-
728
- //===- Tensor block evaluation strategy (see TensorBlock.h) -------------===//
729
- typedef internal::TensorBlockDescriptor<NumDims, Index> TensorBlockDesc;
730
- typedef internal::TensorBlockScratchAllocator<Device> TensorBlockScratch;
731
- //===--------------------------------------------------------------------===//
732
-
733
- EIGEN_STRONG_INLINE TensorEvaluator(const XprType& op, const Device& device)
734
- : Base(op, device)
735
- { }
736
-
737
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType& coeffRef(Index index)
738
- {
739
- if (this->m_is_identity) {
740
- return this->m_impl.coeffRef(index);
741
- } else {
742
- return this->m_impl.coeffRef(this->srcCoeff(index));
743
- }
744
- }
745
-
746
- template <int StoreMode> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
747
- void writePacket(Index index, const PacketReturnType& x)
748
- {
749
- if (this->m_is_identity) {
750
- this->m_impl.template writePacket<StoreMode>(index, x);
751
- return;
752
- }
753
-
754
- const int packetSize = PacketType<CoeffReturnType, Device>::size;
755
- Index inputIndices[] = {0, 0};
756
- Index indices[] = {index, index + packetSize - 1};
757
- if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
758
- EIGEN_UNROLL_LOOP
759
- for (int i = NumDims - 1; i > 0; --i) {
760
- const Index idx0 = indices[0] / this->m_fastOutputStrides[i];
761
- const Index idx1 = indices[1] / this->m_fastOutputStrides[i];
762
- inputIndices[0] += (idx0 + this->m_offsets[i]) * this->m_inputStrides[i];
763
- inputIndices[1] += (idx1 + this->m_offsets[i]) * this->m_inputStrides[i];
764
- indices[0] -= idx0 * this->m_outputStrides[i];
765
- indices[1] -= idx1 * this->m_outputStrides[i];
766
- }
767
- inputIndices[0] += (indices[0] + this->m_offsets[0]);
768
- inputIndices[1] += (indices[1] + this->m_offsets[0]);
769
- } else {
770
- EIGEN_UNROLL_LOOP
771
- for (int i = 0; i < NumDims - 1; ++i) {
772
- const Index idx0 = indices[0] / this->m_fastOutputStrides[i];
773
- const Index idx1 = indices[1] / this->m_fastOutputStrides[i];
774
- inputIndices[0] += (idx0 + this->m_offsets[i]) * this->m_inputStrides[i];
775
- inputIndices[1] += (idx1 + this->m_offsets[i]) * this->m_inputStrides[i];
776
- indices[0] -= idx0 * this->m_outputStrides[i];
777
- indices[1] -= idx1 * this->m_outputStrides[i];
778
- }
779
- inputIndices[0] += (indices[0] + this->m_offsets[NumDims-1]);
780
- inputIndices[1] += (indices[1] + this->m_offsets[NumDims-1]);
781
- }
782
- if (inputIndices[1] - inputIndices[0] == packetSize - 1) {
783
- this->m_impl.template writePacket<StoreMode>(inputIndices[0], x);
784
- }
785
- else {
786
- EIGEN_ALIGN_MAX CoeffReturnType values[packetSize];
787
- internal::pstore<CoeffReturnType, PacketReturnType>(values, x);
788
- this->m_impl.coeffRef(inputIndices[0]) = values[0];
789
- this->m_impl.coeffRef(inputIndices[1]) = values[packetSize-1];
790
- EIGEN_UNROLL_LOOP
791
- for (int i = 1; i < packetSize-1; ++i) {
792
- this->coeffRef(index+i) = values[i];
793
- }
794
- }
795
- }
796
-
797
- template<typename TensorBlock>
798
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void writeBlock(
799
- const TensorBlockDesc& desc, const TensorBlock& block) {
800
- TensorBlockDesc arg_desc = desc.WithOffset(this->srcCoeff(desc.offset()));
801
- this->m_impl.writeBlock(arg_desc, block);
802
- }
803
- };
804
-
805
- namespace internal {
806
- template<typename StartIndices, typename StopIndices, typename Strides, typename XprType>
807
- struct traits<TensorStridingSlicingOp<StartIndices, StopIndices, Strides, XprType> > : public traits<XprType>
808
- {
809
- typedef typename XprType::Scalar Scalar;
810
- typedef traits<XprType> XprTraits;
811
- typedef typename XprTraits::StorageKind StorageKind;
812
- typedef typename XprTraits::Index Index;
813
- typedef typename XprType::Nested Nested;
814
- typedef typename remove_reference<Nested>::type _Nested;
815
- static const int NumDimensions = array_size<StartIndices>::value;
816
- static const int Layout = XprTraits::Layout;
817
- typedef typename XprTraits::PointerType PointerType;
818
- };
819
-
820
- template<typename StartIndices, typename StopIndices, typename Strides, typename XprType>
821
- struct eval<TensorStridingSlicingOp<StartIndices, StopIndices, Strides, XprType>, Eigen::Dense>
822
- {
823
- typedef const TensorStridingSlicingOp<StartIndices, StopIndices, Strides, XprType>EIGEN_DEVICE_REF type;
824
- };
825
-
826
- template<typename StartIndices, typename StopIndices, typename Strides, typename XprType>
827
- struct nested<TensorStridingSlicingOp<StartIndices, StopIndices, Strides, XprType>, 1, typename eval<TensorStridingSlicingOp<StartIndices, StopIndices, Strides, XprType> >::type>
828
- {
829
- typedef TensorStridingSlicingOp<StartIndices, StopIndices, Strides, XprType> type;
830
- };
831
-
832
- } // end namespace internal
833
-
834
-
835
- template<typename StartIndices, typename StopIndices, typename Strides, typename XprType>
836
- class TensorStridingSlicingOp : public TensorBase<TensorStridingSlicingOp<StartIndices, StopIndices, Strides, XprType> >
837
- {
838
- public:
839
- typedef TensorBase<TensorStridingSlicingOp<StartIndices, StopIndices, Strides, XprType> > Base;
840
- typedef typename internal::traits<TensorStridingSlicingOp>::Scalar Scalar;
841
- typedef typename XprType::CoeffReturnType CoeffReturnType;
842
- typedef typename internal::nested<TensorStridingSlicingOp>::type Nested;
843
- typedef typename internal::traits<TensorStridingSlicingOp>::StorageKind StorageKind;
844
- typedef typename internal::traits<TensorStridingSlicingOp>::Index Index;
845
-
846
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorStridingSlicingOp(
847
- const XprType& expr, const StartIndices& startIndices,
848
- const StopIndices& stopIndices, const Strides& strides)
849
- : m_xpr(expr), m_startIndices(startIndices), m_stopIndices(stopIndices),
850
- m_strides(strides) {}
851
-
852
- EIGEN_DEVICE_FUNC
853
- const StartIndices& startIndices() const { return m_startIndices; }
854
- EIGEN_DEVICE_FUNC
855
- const StartIndices& stopIndices() const { return m_stopIndices; }
856
- EIGEN_DEVICE_FUNC
857
- const StartIndices& strides() const { return m_strides; }
858
-
859
- EIGEN_DEVICE_FUNC
860
- const typename internal::remove_all<typename XprType::Nested>::type&
861
- expression() const { return m_xpr; }
862
-
863
- EIGEN_TENSOR_INHERIT_ASSIGNMENT_OPERATORS(TensorStridingSlicingOp)
864
-
865
- protected:
866
- typename XprType::Nested m_xpr;
867
- const StartIndices m_startIndices;
868
- const StopIndices m_stopIndices;
869
- const Strides m_strides;
870
- };
871
-
872
- // Eval as rvalue
873
- template<typename StartIndices, typename StopIndices, typename Strides, typename ArgType, typename Device>
874
- struct TensorEvaluator<const TensorStridingSlicingOp<StartIndices, StopIndices, Strides, ArgType>, Device>
875
- {
876
- typedef TensorStridingSlicingOp<StartIndices, StopIndices, Strides, ArgType> XprType;
877
- static const int NumDims = internal::array_size<Strides>::value;
878
- typedef typename XprType::Index Index;
879
- typedef typename XprType::Scalar Scalar;
880
- typedef typename XprType::CoeffReturnType CoeffReturnType;
881
- typedef typename PacketType<CoeffReturnType, Device>::type PacketReturnType;
882
- typedef StorageMemory<CoeffReturnType, Device> Storage;
883
- typedef typename Storage::Type EvaluatorPointerType;
884
- typedef Strides Dimensions;
885
-
886
- enum {
887
- // Alignment can't be guaranteed at compile time since it depends on the
888
- // slice offsets and sizes.
889
- IsAligned = false,
890
- PacketAccess = false,
891
- BlockAccess = false,
892
- PreferBlockAccess = TensorEvaluator<ArgType, Device>::PreferBlockAccess,
893
- Layout = TensorEvaluator<ArgType, Device>::Layout,
894
- RawAccess = false
895
- };
896
-
897
- //===- Tensor block evaluation strategy (see TensorBlock.h) -------------===//
898
- typedef internal::TensorBlockNotImplemented TensorBlock;
899
- //===--------------------------------------------------------------------===//
900
-
901
- EIGEN_STRONG_INLINE TensorEvaluator(const XprType& op, const Device& device)
902
- : m_impl(op.expression(), device),
903
- m_device(device),
904
- m_strides(op.strides())
905
- {
906
- // Handle degenerate intervals by gracefully clamping and allowing m_dimensions to be zero
907
- DSizes<Index, NumDims> startIndicesClamped, stopIndicesClamped;
908
- for (ptrdiff_t i = 0; i < internal::array_size<Dimensions>::value; ++i) {
909
- eigen_assert(m_strides[i] != 0 && "0 stride is invalid");
910
- if (m_strides[i] > 0) {
911
- startIndicesClamped[i] =
912
- clamp(op.startIndices()[i], 0, m_impl.dimensions()[i]);
913
- stopIndicesClamped[i] =
914
- clamp(op.stopIndices()[i], 0, m_impl.dimensions()[i]);
915
- } else {
916
- /* implies m_strides[i] < 0 by assert */
917
- startIndicesClamped[i] =
918
- clamp(op.startIndices()[i], -1, m_impl.dimensions()[i] - 1);
919
- stopIndicesClamped[i] =
920
- clamp(op.stopIndices()[i], -1, m_impl.dimensions()[i] - 1);
921
- }
922
- m_startIndices[i] = startIndicesClamped[i];
923
- }
924
-
925
- typedef typename TensorEvaluator<ArgType, Device>::Dimensions InputDimensions;
926
- const InputDimensions& input_dims = m_impl.dimensions();
927
-
928
- // compute output tensor shape
929
- m_is_identity = true;
930
- for (int i = 0; i < NumDims; i++) {
931
- Index interval = stopIndicesClamped[i] - startIndicesClamped[i];
932
- if (interval == 0 || ((interval < 0) != (m_strides[i] < 0))) {
933
- m_dimensions[i] = 0;
934
- } else {
935
- m_dimensions[i] =
936
- (interval / m_strides[i]) + (interval % m_strides[i] != 0 ? 1 : 0);
937
- eigen_assert(m_dimensions[i] >= 0);
938
- }
939
- if (m_strides[i] != 1 || interval != m_impl.dimensions()[i]) {
940
- m_is_identity = false;
941
- }
942
- }
943
-
944
- Strides output_dims = m_dimensions;
945
-
946
- if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
947
- m_inputStrides[0] = m_strides[0];
948
- m_offsets[0] = startIndicesClamped[0];
949
- Index previousDimProduct = 1;
950
- for (int i = 1; i < NumDims; ++i) {
951
- previousDimProduct *= input_dims[i-1];
952
- m_inputStrides[i] = previousDimProduct * m_strides[i];
953
- m_offsets[i] = startIndicesClamped[i] * previousDimProduct;
954
- }
955
-
956
- // Don't initialize m_fastOutputStrides[0] since it won't ever be accessed.
957
- m_outputStrides[0] = 1;
958
- for (int i = 1; i < NumDims; ++i) {
959
- m_outputStrides[i] = m_outputStrides[i-1] * output_dims[i-1];
960
- m_fastOutputStrides[i] = internal::TensorIntDivisor<Index>(m_outputStrides[i] > 0 ? m_outputStrides[i] : 1);
961
- }
962
- } else {
963
- m_inputStrides[NumDims-1] = m_strides[NumDims-1];
964
- m_offsets[NumDims-1] = startIndicesClamped[NumDims-1];
965
- Index previousDimProduct = 1;
966
- for (int i = NumDims - 2; i >= 0; --i) {
967
- previousDimProduct *= input_dims[i+1];
968
- m_inputStrides[i] = previousDimProduct * m_strides[i];
969
- m_offsets[i] = startIndicesClamped[i] * previousDimProduct;
970
- }
971
-
972
- m_outputStrides[NumDims-1] = 1;
973
- for (int i = NumDims - 2; i >= 0; --i) {
974
- m_outputStrides[i] = m_outputStrides[i+1] * output_dims[i+1];
975
- m_fastOutputStrides[i] = internal::TensorIntDivisor<Index>(m_outputStrides[i] > 0 ? m_outputStrides[i] : 1);
976
- }
977
- }
978
- }
979
-
980
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dimensions& dimensions() const { return m_dimensions; }
981
-
982
-
983
- EIGEN_STRONG_INLINE bool evalSubExprsIfNeeded(EvaluatorPointerType) {
984
- m_impl.evalSubExprsIfNeeded(NULL);
985
- return true;
986
- }
987
-
988
- EIGEN_STRONG_INLINE void cleanup() {
989
- m_impl.cleanup();
990
- }
991
-
992
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType coeff(Index index) const
993
- {
994
- if (m_is_identity) {
995
- return m_impl.coeff(index);
996
- } else {
997
- return m_impl.coeff(srcCoeff(index));
998
- }
999
- }
1000
-
1001
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorOpCost costPerCoeff(bool vectorized) const {
1002
- return m_impl.costPerCoeff(vectorized) + TensorOpCost(0, 0, m_is_identity ? 1 : NumDims);
1003
- }
1004
-
1005
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE typename Storage::Type data() const {
1006
- return NULL;
1007
- }
1008
- #ifdef EIGEN_USE_SYCL
1009
- // binding placeholder accessors to a command group handler for SYCL
1010
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void bind(cl::sycl::handler &cgh) const {
1011
- m_impl.bind(cgh);
1012
- }
1013
- #endif
1014
- protected:
1015
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index srcCoeff(Index index) const
1016
- {
1017
- Index inputIndex = 0;
1018
- if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
1019
- EIGEN_UNROLL_LOOP
1020
- for (int i = NumDims - 1; i >= 0; --i) {
1021
- const Index idx = index / m_fastOutputStrides[i];
1022
- inputIndex += idx * m_inputStrides[i] + m_offsets[i];
1023
- index -= idx * m_outputStrides[i];
1024
- }
1025
- } else {
1026
- EIGEN_UNROLL_LOOP
1027
- for (int i = 0; i < NumDims; ++i) {
1028
- const Index idx = index / m_fastOutputStrides[i];
1029
- inputIndex += idx * m_inputStrides[i] + m_offsets[i];
1030
- index -= idx * m_outputStrides[i];
1031
- }
1032
- }
1033
- return inputIndex;
1034
- }
1035
-
1036
- static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index clamp(Index value, Index min, Index max) {
1037
- #ifndef SYCL_DEVICE_ONLY
1038
- return numext::maxi(min, numext::mini(max,value));
1039
- #else
1040
- return cl::sycl::clamp(value, min, max);
1041
- #endif
1042
- }
1043
-
1044
- array<Index, NumDims> m_outputStrides;
1045
- array<internal::TensorIntDivisor<Index>, NumDims> m_fastOutputStrides;
1046
- array<Index, NumDims> m_inputStrides;
1047
- bool m_is_identity;
1048
- TensorEvaluator<ArgType, Device> m_impl;
1049
- const Device EIGEN_DEVICE_REF m_device;
1050
- DSizes<Index, NumDims> m_startIndices; // clamped startIndices
1051
- DSizes<Index, NumDims> m_dimensions;
1052
- DSizes<Index, NumDims> m_offsets; // offset in a flattened shape
1053
- const Strides m_strides;
1054
- };
1055
-
1056
- // Eval as lvalue
1057
- template<typename StartIndices, typename StopIndices, typename Strides, typename ArgType, typename Device>
1058
- struct TensorEvaluator<TensorStridingSlicingOp<StartIndices, StopIndices, Strides, ArgType>, Device>
1059
- : public TensorEvaluator<const TensorStridingSlicingOp<StartIndices, StopIndices, Strides, ArgType>, Device>
1060
- {
1061
- typedef TensorEvaluator<const TensorStridingSlicingOp<StartIndices, StopIndices, Strides, ArgType>, Device> Base;
1062
- typedef TensorStridingSlicingOp<StartIndices, StopIndices, Strides, ArgType> XprType;
1063
- static const int NumDims = internal::array_size<Strides>::value;
1064
-
1065
- enum {
1066
- IsAligned = false,
1067
- PacketAccess = false,
1068
- BlockAccess = false,
1069
- PreferBlockAccess = TensorEvaluator<ArgType, Device>::PreferBlockAccess,
1070
- Layout = TensorEvaluator<ArgType, Device>::Layout,
1071
- CoordAccess = TensorEvaluator<ArgType, Device>::CoordAccess,
1072
- RawAccess = false
1073
- };
1074
-
1075
- //===- Tensor block evaluation strategy (see TensorBlock.h) -------------===//
1076
- typedef internal::TensorBlockNotImplemented TensorBlock;
1077
- //===--------------------------------------------------------------------===//
1078
-
1079
- EIGEN_STRONG_INLINE TensorEvaluator(const XprType& op, const Device& device)
1080
- : Base(op, device)
1081
- { }
1082
-
1083
- typedef typename XprType::Index Index;
1084
- typedef typename XprType::Scalar Scalar;
1085
- typedef typename XprType::CoeffReturnType CoeffReturnType;
1086
- typedef typename PacketType<CoeffReturnType, Device>::type PacketReturnType;
1087
- typedef Strides Dimensions;
1088
-
1089
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType& coeffRef(Index index)
1090
- {
1091
- if (this->m_is_identity) {
1092
- return this->m_impl.coeffRef(index);
1093
- } else {
1094
- return this->m_impl.coeffRef(this->srcCoeff(index));
1095
- }
1096
- }
1097
- };
1098
-
1099
-
1100
- } // end namespace Eigen
1101
-
1102
- #endif // EIGEN_CXX11_TENSOR_TENSOR_MORPHING_H