xtgeo 4.10.0__cp310-cp310-win_amd64.whl → 4.11.0__cp310-cp310-win_amd64.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 (546) hide show
  1. xtgeo/_cxtgeo.cp310-win_amd64.pyd +0 -0
  2. xtgeo/_internal.cp310-win_amd64.pyd +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/metadata/metadata.py +20 -13
  8. {xtgeo-4.10.0.dist-info → xtgeo-4.11.0.dist-info}/METADATA +1 -1
  9. xtgeo-4.11.0.dist-info/RECORD +117 -0
  10. {xtgeo-4.10.0.dist-info → xtgeo-4.11.0.dist-info}/WHEEL +1 -1
  11. xtgeo/include/eigen3/Eigen/Cholesky +0 -45
  12. xtgeo/include/eigen3/Eigen/CholmodSupport +0 -48
  13. xtgeo/include/eigen3/Eigen/Core +0 -384
  14. xtgeo/include/eigen3/Eigen/Dense +0 -7
  15. xtgeo/include/eigen3/Eigen/Eigen +0 -2
  16. xtgeo/include/eigen3/Eigen/Eigenvalues +0 -60
  17. xtgeo/include/eigen3/Eigen/Geometry +0 -59
  18. xtgeo/include/eigen3/Eigen/Householder +0 -29
  19. xtgeo/include/eigen3/Eigen/IterativeLinearSolvers +0 -48
  20. xtgeo/include/eigen3/Eigen/Jacobi +0 -32
  21. xtgeo/include/eigen3/Eigen/KLUSupport +0 -41
  22. xtgeo/include/eigen3/Eigen/LU +0 -47
  23. xtgeo/include/eigen3/Eigen/MetisSupport +0 -35
  24. xtgeo/include/eigen3/Eigen/OrderingMethods +0 -70
  25. xtgeo/include/eigen3/Eigen/PaStiXSupport +0 -49
  26. xtgeo/include/eigen3/Eigen/PardisoSupport +0 -35
  27. xtgeo/include/eigen3/Eigen/QR +0 -50
  28. xtgeo/include/eigen3/Eigen/QtAlignedMalloc +0 -39
  29. xtgeo/include/eigen3/Eigen/SPQRSupport +0 -34
  30. xtgeo/include/eigen3/Eigen/SVD +0 -50
  31. xtgeo/include/eigen3/Eigen/Sparse +0 -34
  32. xtgeo/include/eigen3/Eigen/SparseCholesky +0 -37
  33. xtgeo/include/eigen3/Eigen/SparseCore +0 -69
  34. xtgeo/include/eigen3/Eigen/SparseLU +0 -50
  35. xtgeo/include/eigen3/Eigen/SparseQR +0 -36
  36. xtgeo/include/eigen3/Eigen/StdDeque +0 -27
  37. xtgeo/include/eigen3/Eigen/StdList +0 -26
  38. xtgeo/include/eigen3/Eigen/StdVector +0 -27
  39. xtgeo/include/eigen3/Eigen/SuperLUSupport +0 -64
  40. xtgeo/include/eigen3/Eigen/UmfPackSupport +0 -40
  41. xtgeo/include/eigen3/Eigen/src/Cholesky/LDLT.h +0 -688
  42. xtgeo/include/eigen3/Eigen/src/Cholesky/LLT.h +0 -558
  43. xtgeo/include/eigen3/Eigen/src/Cholesky/LLT_LAPACKE.h +0 -99
  44. xtgeo/include/eigen3/Eigen/src/CholmodSupport/CholmodSupport.h +0 -682
  45. xtgeo/include/eigen3/Eigen/src/Core/ArithmeticSequence.h +0 -413
  46. xtgeo/include/eigen3/Eigen/src/Core/Array.h +0 -417
  47. xtgeo/include/eigen3/Eigen/src/Core/ArrayBase.h +0 -226
  48. xtgeo/include/eigen3/Eigen/src/Core/ArrayWrapper.h +0 -209
  49. xtgeo/include/eigen3/Eigen/src/Core/Assign.h +0 -90
  50. xtgeo/include/eigen3/Eigen/src/Core/AssignEvaluator.h +0 -1010
  51. xtgeo/include/eigen3/Eigen/src/Core/Assign_MKL.h +0 -178
  52. xtgeo/include/eigen3/Eigen/src/Core/BandMatrix.h +0 -353
  53. xtgeo/include/eigen3/Eigen/src/Core/Block.h +0 -448
  54. xtgeo/include/eigen3/Eigen/src/Core/BooleanRedux.h +0 -162
  55. xtgeo/include/eigen3/Eigen/src/Core/CommaInitializer.h +0 -164
  56. xtgeo/include/eigen3/Eigen/src/Core/ConditionEstimator.h +0 -175
  57. xtgeo/include/eigen3/Eigen/src/Core/CoreEvaluators.h +0 -1741
  58. xtgeo/include/eigen3/Eigen/src/Core/CoreIterators.h +0 -132
  59. xtgeo/include/eigen3/Eigen/src/Core/CwiseBinaryOp.h +0 -183
  60. xtgeo/include/eigen3/Eigen/src/Core/CwiseNullaryOp.h +0 -1001
  61. xtgeo/include/eigen3/Eigen/src/Core/CwiseTernaryOp.h +0 -197
  62. xtgeo/include/eigen3/Eigen/src/Core/CwiseUnaryOp.h +0 -103
  63. xtgeo/include/eigen3/Eigen/src/Core/CwiseUnaryView.h +0 -132
  64. xtgeo/include/eigen3/Eigen/src/Core/DenseBase.h +0 -701
  65. xtgeo/include/eigen3/Eigen/src/Core/DenseCoeffsBase.h +0 -685
  66. xtgeo/include/eigen3/Eigen/src/Core/DenseStorage.h +0 -652
  67. xtgeo/include/eigen3/Eigen/src/Core/Diagonal.h +0 -258
  68. xtgeo/include/eigen3/Eigen/src/Core/DiagonalMatrix.h +0 -391
  69. xtgeo/include/eigen3/Eigen/src/Core/DiagonalProduct.h +0 -28
  70. xtgeo/include/eigen3/Eigen/src/Core/Dot.h +0 -318
  71. xtgeo/include/eigen3/Eigen/src/Core/EigenBase.h +0 -160
  72. xtgeo/include/eigen3/Eigen/src/Core/ForceAlignedAccess.h +0 -150
  73. xtgeo/include/eigen3/Eigen/src/Core/Fuzzy.h +0 -155
  74. xtgeo/include/eigen3/Eigen/src/Core/GeneralProduct.h +0 -465
  75. xtgeo/include/eigen3/Eigen/src/Core/GenericPacketMath.h +0 -1040
  76. xtgeo/include/eigen3/Eigen/src/Core/GlobalFunctions.h +0 -194
  77. xtgeo/include/eigen3/Eigen/src/Core/IO.h +0 -258
  78. xtgeo/include/eigen3/Eigen/src/Core/IndexedView.h +0 -237
  79. xtgeo/include/eigen3/Eigen/src/Core/Inverse.h +0 -117
  80. xtgeo/include/eigen3/Eigen/src/Core/Map.h +0 -171
  81. xtgeo/include/eigen3/Eigen/src/Core/MapBase.h +0 -310
  82. xtgeo/include/eigen3/Eigen/src/Core/MathFunctions.h +0 -2057
  83. xtgeo/include/eigen3/Eigen/src/Core/MathFunctionsImpl.h +0 -200
  84. xtgeo/include/eigen3/Eigen/src/Core/Matrix.h +0 -565
  85. xtgeo/include/eigen3/Eigen/src/Core/MatrixBase.h +0 -547
  86. xtgeo/include/eigen3/Eigen/src/Core/NestByValue.h +0 -85
  87. xtgeo/include/eigen3/Eigen/src/Core/NoAlias.h +0 -109
  88. xtgeo/include/eigen3/Eigen/src/Core/NumTraits.h +0 -335
  89. xtgeo/include/eigen3/Eigen/src/Core/PartialReduxEvaluator.h +0 -232
  90. xtgeo/include/eigen3/Eigen/src/Core/PermutationMatrix.h +0 -605
  91. xtgeo/include/eigen3/Eigen/src/Core/PlainObjectBase.h +0 -1128
  92. xtgeo/include/eigen3/Eigen/src/Core/Product.h +0 -191
  93. xtgeo/include/eigen3/Eigen/src/Core/ProductEvaluators.h +0 -1179
  94. xtgeo/include/eigen3/Eigen/src/Core/Random.h +0 -218
  95. xtgeo/include/eigen3/Eigen/src/Core/Redux.h +0 -515
  96. xtgeo/include/eigen3/Eigen/src/Core/Ref.h +0 -381
  97. xtgeo/include/eigen3/Eigen/src/Core/Replicate.h +0 -142
  98. xtgeo/include/eigen3/Eigen/src/Core/Reshaped.h +0 -454
  99. xtgeo/include/eigen3/Eigen/src/Core/ReturnByValue.h +0 -119
  100. xtgeo/include/eigen3/Eigen/src/Core/Reverse.h +0 -217
  101. xtgeo/include/eigen3/Eigen/src/Core/Select.h +0 -164
  102. xtgeo/include/eigen3/Eigen/src/Core/SelfAdjointView.h +0 -365
  103. xtgeo/include/eigen3/Eigen/src/Core/SelfCwiseBinaryOp.h +0 -47
  104. xtgeo/include/eigen3/Eigen/src/Core/Solve.h +0 -188
  105. xtgeo/include/eigen3/Eigen/src/Core/SolveTriangular.h +0 -235
  106. xtgeo/include/eigen3/Eigen/src/Core/SolverBase.h +0 -168
  107. xtgeo/include/eigen3/Eigen/src/Core/StableNorm.h +0 -251
  108. xtgeo/include/eigen3/Eigen/src/Core/StlIterators.h +0 -463
  109. xtgeo/include/eigen3/Eigen/src/Core/Stride.h +0 -116
  110. xtgeo/include/eigen3/Eigen/src/Core/Swap.h +0 -68
  111. xtgeo/include/eigen3/Eigen/src/Core/Transpose.h +0 -464
  112. xtgeo/include/eigen3/Eigen/src/Core/Transpositions.h +0 -386
  113. xtgeo/include/eigen3/Eigen/src/Core/TriangularMatrix.h +0 -1001
  114. xtgeo/include/eigen3/Eigen/src/Core/VectorBlock.h +0 -96
  115. xtgeo/include/eigen3/Eigen/src/Core/VectorwiseOp.h +0 -784
  116. xtgeo/include/eigen3/Eigen/src/Core/Visitor.h +0 -381
  117. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/Complex.h +0 -372
  118. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/MathFunctions.h +0 -228
  119. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/PacketMath.h +0 -1574
  120. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/TypeCasting.h +0 -115
  121. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/Complex.h +0 -422
  122. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/MathFunctions.h +0 -362
  123. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/PacketMath.h +0 -2303
  124. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/TypeCasting.h +0 -89
  125. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/Complex.h +0 -417
  126. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MathFunctions.h +0 -90
  127. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProduct.h +0 -2937
  128. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h +0 -221
  129. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h +0 -629
  130. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/PacketMath.h +0 -2711
  131. xtgeo/include/eigen3/Eigen/src/Core/arch/CUDA/Complex.h +0 -258
  132. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/BFloat16.h +0 -700
  133. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/ConjHelper.h +0 -117
  134. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +0 -1649
  135. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctionsFwd.h +0 -110
  136. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/Half.h +0 -942
  137. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/Settings.h +0 -49
  138. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/TypeCasting.h +0 -120
  139. xtgeo/include/eigen3/Eigen/src/Core/arch/GPU/MathFunctions.h +0 -103
  140. xtgeo/include/eigen3/Eigen/src/Core/arch/GPU/PacketMath.h +0 -1685
  141. xtgeo/include/eigen3/Eigen/src/Core/arch/GPU/TypeCasting.h +0 -80
  142. xtgeo/include/eigen3/Eigen/src/Core/arch/HIP/hcc/math_constants.h +0 -23
  143. xtgeo/include/eigen3/Eigen/src/Core/arch/MSA/Complex.h +0 -648
  144. xtgeo/include/eigen3/Eigen/src/Core/arch/MSA/MathFunctions.h +0 -387
  145. xtgeo/include/eigen3/Eigen/src/Core/arch/MSA/PacketMath.h +0 -1233
  146. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/Complex.h +0 -584
  147. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/GeneralBlockPanelKernel.h +0 -183
  148. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/MathFunctions.h +0 -75
  149. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/PacketMath.h +0 -4587
  150. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/TypeCasting.h +0 -1419
  151. xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/Complex.h +0 -351
  152. xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/MathFunctions.h +0 -199
  153. xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/PacketMath.h +0 -1505
  154. xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/TypeCasting.h +0 -142
  155. xtgeo/include/eigen3/Eigen/src/Core/arch/SVE/MathFunctions.h +0 -44
  156. xtgeo/include/eigen3/Eigen/src/Core/arch/SVE/PacketMath.h +0 -752
  157. xtgeo/include/eigen3/Eigen/src/Core/arch/SVE/TypeCasting.h +0 -49
  158. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/InteropHeaders.h +0 -232
  159. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/MathFunctions.h +0 -301
  160. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/PacketMath.h +0 -670
  161. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/SyclMemoryModel.h +0 -694
  162. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/TypeCasting.h +0 -85
  163. xtgeo/include/eigen3/Eigen/src/Core/arch/ZVector/Complex.h +0 -426
  164. xtgeo/include/eigen3/Eigen/src/Core/arch/ZVector/MathFunctions.h +0 -233
  165. xtgeo/include/eigen3/Eigen/src/Core/arch/ZVector/PacketMath.h +0 -1060
  166. xtgeo/include/eigen3/Eigen/src/Core/functors/AssignmentFunctors.h +0 -177
  167. xtgeo/include/eigen3/Eigen/src/Core/functors/BinaryFunctors.h +0 -541
  168. xtgeo/include/eigen3/Eigen/src/Core/functors/NullaryFunctors.h +0 -189
  169. xtgeo/include/eigen3/Eigen/src/Core/functors/StlFunctors.h +0 -166
  170. xtgeo/include/eigen3/Eigen/src/Core/functors/TernaryFunctors.h +0 -25
  171. xtgeo/include/eigen3/Eigen/src/Core/functors/UnaryFunctors.h +0 -1131
  172. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h +0 -2645
  173. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrix.h +0 -517
  174. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h +0 -317
  175. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h +0 -145
  176. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrix_BLAS.h +0 -124
  177. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixVector.h +0 -518
  178. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixVector_BLAS.h +0 -136
  179. xtgeo/include/eigen3/Eigen/src/Core/products/Parallelizer.h +0 -180
  180. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix.h +0 -544
  181. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix_BLAS.h +0 -295
  182. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixVector.h +0 -262
  183. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixVector_BLAS.h +0 -118
  184. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointProduct.h +0 -133
  185. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointRank2Update.h +0 -94
  186. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixMatrix.h +0 -472
  187. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixMatrix_BLAS.h +0 -317
  188. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixVector.h +0 -350
  189. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixVector_BLAS.h +0 -255
  190. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularSolverMatrix.h +0 -337
  191. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularSolverMatrix_BLAS.h +0 -167
  192. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularSolverVector.h +0 -148
  193. xtgeo/include/eigen3/Eigen/src/Core/util/BlasUtil.h +0 -583
  194. xtgeo/include/eigen3/Eigen/src/Core/util/ConfigureVectorization.h +0 -512
  195. xtgeo/include/eigen3/Eigen/src/Core/util/Constants.h +0 -563
  196. xtgeo/include/eigen3/Eigen/src/Core/util/DisableStupidWarnings.h +0 -106
  197. xtgeo/include/eigen3/Eigen/src/Core/util/ForwardDeclarations.h +0 -322
  198. xtgeo/include/eigen3/Eigen/src/Core/util/IndexedViewHelper.h +0 -186
  199. xtgeo/include/eigen3/Eigen/src/Core/util/IntegralConstant.h +0 -272
  200. xtgeo/include/eigen3/Eigen/src/Core/util/MKL_support.h +0 -137
  201. xtgeo/include/eigen3/Eigen/src/Core/util/Macros.h +0 -1464
  202. xtgeo/include/eigen3/Eigen/src/Core/util/Memory.h +0 -1163
  203. xtgeo/include/eigen3/Eigen/src/Core/util/Meta.h +0 -812
  204. xtgeo/include/eigen3/Eigen/src/Core/util/NonMPL2.h +0 -3
  205. xtgeo/include/eigen3/Eigen/src/Core/util/ReenableStupidWarnings.h +0 -31
  206. xtgeo/include/eigen3/Eigen/src/Core/util/ReshapedHelper.h +0 -51
  207. xtgeo/include/eigen3/Eigen/src/Core/util/StaticAssert.h +0 -221
  208. xtgeo/include/eigen3/Eigen/src/Core/util/SymbolicIndex.h +0 -293
  209. xtgeo/include/eigen3/Eigen/src/Core/util/XprHelper.h +0 -856
  210. xtgeo/include/eigen3/Eigen/src/Eigenvalues/ComplexEigenSolver.h +0 -346
  211. xtgeo/include/eigen3/Eigen/src/Eigenvalues/ComplexSchur.h +0 -462
  212. xtgeo/include/eigen3/Eigen/src/Eigenvalues/ComplexSchur_LAPACKE.h +0 -91
  213. xtgeo/include/eigen3/Eigen/src/Eigenvalues/EigenSolver.h +0 -622
  214. xtgeo/include/eigen3/Eigen/src/Eigenvalues/GeneralizedEigenSolver.h +0 -418
  215. xtgeo/include/eigen3/Eigen/src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h +0 -226
  216. xtgeo/include/eigen3/Eigen/src/Eigenvalues/HessenbergDecomposition.h +0 -374
  217. xtgeo/include/eigen3/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h +0 -158
  218. xtgeo/include/eigen3/Eigen/src/Eigenvalues/RealQZ.h +0 -657
  219. xtgeo/include/eigen3/Eigen/src/Eigenvalues/RealSchur.h +0 -558
  220. xtgeo/include/eigen3/Eigen/src/Eigenvalues/RealSchur_LAPACKE.h +0 -77
  221. xtgeo/include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h +0 -904
  222. xtgeo/include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver_LAPACKE.h +0 -87
  223. xtgeo/include/eigen3/Eigen/src/Eigenvalues/Tridiagonalization.h +0 -561
  224. xtgeo/include/eigen3/Eigen/src/Geometry/AlignedBox.h +0 -486
  225. xtgeo/include/eigen3/Eigen/src/Geometry/AngleAxis.h +0 -247
  226. xtgeo/include/eigen3/Eigen/src/Geometry/EulerAngles.h +0 -114
  227. xtgeo/include/eigen3/Eigen/src/Geometry/Homogeneous.h +0 -501
  228. xtgeo/include/eigen3/Eigen/src/Geometry/Hyperplane.h +0 -282
  229. xtgeo/include/eigen3/Eigen/src/Geometry/OrthoMethods.h +0 -235
  230. xtgeo/include/eigen3/Eigen/src/Geometry/ParametrizedLine.h +0 -232
  231. xtgeo/include/eigen3/Eigen/src/Geometry/Quaternion.h +0 -870
  232. xtgeo/include/eigen3/Eigen/src/Geometry/Rotation2D.h +0 -199
  233. xtgeo/include/eigen3/Eigen/src/Geometry/RotationBase.h +0 -206
  234. xtgeo/include/eigen3/Eigen/src/Geometry/Scaling.h +0 -188
  235. xtgeo/include/eigen3/Eigen/src/Geometry/Transform.h +0 -1563
  236. xtgeo/include/eigen3/Eigen/src/Geometry/Translation.h +0 -202
  237. xtgeo/include/eigen3/Eigen/src/Geometry/Umeyama.h +0 -166
  238. xtgeo/include/eigen3/Eigen/src/Geometry/arch/Geometry_SIMD.h +0 -168
  239. xtgeo/include/eigen3/Eigen/src/Householder/BlockHouseholder.h +0 -110
  240. xtgeo/include/eigen3/Eigen/src/Householder/Householder.h +0 -176
  241. xtgeo/include/eigen3/Eigen/src/Householder/HouseholderSequence.h +0 -545
  242. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/BasicPreconditioners.h +0 -226
  243. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h +0 -212
  244. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/ConjugateGradient.h +0 -229
  245. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h +0 -394
  246. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h +0 -453
  247. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/IterativeSolverBase.h +0 -444
  248. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/LeastSquareConjugateGradient.h +0 -198
  249. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/SolveWithGuess.h +0 -117
  250. xtgeo/include/eigen3/Eigen/src/Jacobi/Jacobi.h +0 -483
  251. xtgeo/include/eigen3/Eigen/src/KLUSupport/KLUSupport.h +0 -358
  252. xtgeo/include/eigen3/Eigen/src/LU/Determinant.h +0 -117
  253. xtgeo/include/eigen3/Eigen/src/LU/FullPivLU.h +0 -877
  254. xtgeo/include/eigen3/Eigen/src/LU/InverseImpl.h +0 -432
  255. xtgeo/include/eigen3/Eigen/src/LU/PartialPivLU.h +0 -624
  256. xtgeo/include/eigen3/Eigen/src/LU/PartialPivLU_LAPACKE.h +0 -83
  257. xtgeo/include/eigen3/Eigen/src/LU/arch/InverseSize4.h +0 -351
  258. xtgeo/include/eigen3/Eigen/src/MetisSupport/MetisSupport.h +0 -137
  259. xtgeo/include/eigen3/Eigen/src/OrderingMethods/Amd.h +0 -435
  260. xtgeo/include/eigen3/Eigen/src/OrderingMethods/Eigen_Colamd.h +0 -1863
  261. xtgeo/include/eigen3/Eigen/src/OrderingMethods/Ordering.h +0 -153
  262. xtgeo/include/eigen3/Eigen/src/PaStiXSupport/PaStiXSupport.h +0 -678
  263. xtgeo/include/eigen3/Eigen/src/PardisoSupport/PardisoSupport.h +0 -545
  264. xtgeo/include/eigen3/Eigen/src/QR/ColPivHouseholderQR.h +0 -674
  265. xtgeo/include/eigen3/Eigen/src/QR/ColPivHouseholderQR_LAPACKE.h +0 -97
  266. xtgeo/include/eigen3/Eigen/src/QR/CompleteOrthogonalDecomposition.h +0 -635
  267. xtgeo/include/eigen3/Eigen/src/QR/FullPivHouseholderQR.h +0 -713
  268. xtgeo/include/eigen3/Eigen/src/QR/HouseholderQR.h +0 -434
  269. xtgeo/include/eigen3/Eigen/src/QR/HouseholderQR_LAPACKE.h +0 -68
  270. xtgeo/include/eigen3/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h +0 -335
  271. xtgeo/include/eigen3/Eigen/src/SVD/BDCSVD.h +0 -1366
  272. xtgeo/include/eigen3/Eigen/src/SVD/JacobiSVD.h +0 -812
  273. xtgeo/include/eigen3/Eigen/src/SVD/JacobiSVD_LAPACKE.h +0 -91
  274. xtgeo/include/eigen3/Eigen/src/SVD/SVDBase.h +0 -376
  275. xtgeo/include/eigen3/Eigen/src/SVD/UpperBidiagonalization.h +0 -414
  276. xtgeo/include/eigen3/Eigen/src/SparseCholesky/SimplicialCholesky.h +0 -697
  277. xtgeo/include/eigen3/Eigen/src/SparseCholesky/SimplicialCholesky_impl.h +0 -174
  278. xtgeo/include/eigen3/Eigen/src/SparseCore/AmbiVector.h +0 -378
  279. xtgeo/include/eigen3/Eigen/src/SparseCore/CompressedStorage.h +0 -274
  280. xtgeo/include/eigen3/Eigen/src/SparseCore/ConservativeSparseSparseProduct.h +0 -352
  281. xtgeo/include/eigen3/Eigen/src/SparseCore/MappedSparseMatrix.h +0 -67
  282. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseAssign.h +0 -270
  283. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseBlock.h +0 -571
  284. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseColEtree.h +0 -206
  285. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseCompressedBase.h +0 -370
  286. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +0 -722
  287. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseCwiseUnaryOp.h +0 -150
  288. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseDenseProduct.h +0 -342
  289. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseDiagonalProduct.h +0 -138
  290. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseDot.h +0 -98
  291. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseFuzzy.h +0 -29
  292. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseMap.h +0 -305
  293. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h +0 -1518
  294. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseMatrixBase.h +0 -398
  295. xtgeo/include/eigen3/Eigen/src/SparseCore/SparsePermutation.h +0 -178
  296. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseProduct.h +0 -181
  297. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseRedux.h +0 -49
  298. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseRef.h +0 -397
  299. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseSelfAdjointView.h +0 -659
  300. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseSolverBase.h +0 -124
  301. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseSparseProductWithPruning.h +0 -198
  302. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseTranspose.h +0 -92
  303. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseTriangularView.h +0 -189
  304. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseUtil.h +0 -186
  305. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseVector.h +0 -478
  306. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseView.h +0 -254
  307. xtgeo/include/eigen3/Eigen/src/SparseCore/TriangularSolver.h +0 -315
  308. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU.h +0 -923
  309. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLUImpl.h +0 -66
  310. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_Memory.h +0 -226
  311. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_Structs.h +0 -110
  312. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +0 -375
  313. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_Utils.h +0 -80
  314. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_column_bmod.h +0 -181
  315. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_column_dfs.h +0 -179
  316. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h +0 -107
  317. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_gemm_kernel.h +0 -280
  318. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +0 -126
  319. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_kernel_bmod.h +0 -130
  320. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_panel_bmod.h +0 -223
  321. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_panel_dfs.h +0 -258
  322. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_pivotL.h +0 -137
  323. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_pruneL.h +0 -136
  324. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_relax_snode.h +0 -83
  325. xtgeo/include/eigen3/Eigen/src/SparseQR/SparseQR.h +0 -758
  326. xtgeo/include/eigen3/Eigen/src/StlSupport/StdDeque.h +0 -116
  327. xtgeo/include/eigen3/Eigen/src/StlSupport/StdList.h +0 -106
  328. xtgeo/include/eigen3/Eigen/src/StlSupport/StdVector.h +0 -131
  329. xtgeo/include/eigen3/Eigen/src/StlSupport/details.h +0 -84
  330. xtgeo/include/eigen3/Eigen/src/SuperLUSupport/SuperLUSupport.h +0 -1025
  331. xtgeo/include/eigen3/Eigen/src/UmfPackSupport/UmfPackSupport.h +0 -642
  332. xtgeo/include/eigen3/Eigen/src/misc/Image.h +0 -82
  333. xtgeo/include/eigen3/Eigen/src/misc/Kernel.h +0 -79
  334. xtgeo/include/eigen3/Eigen/src/misc/RealSvd2x2.h +0 -55
  335. xtgeo/include/eigen3/Eigen/src/misc/blas.h +0 -440
  336. xtgeo/include/eigen3/Eigen/src/misc/lapack.h +0 -152
  337. xtgeo/include/eigen3/Eigen/src/misc/lapacke.h +0 -16292
  338. xtgeo/include/eigen3/Eigen/src/misc/lapacke_mangling.h +0 -17
  339. xtgeo/include/eigen3/Eigen/src/plugins/ArrayCwiseBinaryOps.h +0 -358
  340. xtgeo/include/eigen3/Eigen/src/plugins/ArrayCwiseUnaryOps.h +0 -696
  341. xtgeo/include/eigen3/Eigen/src/plugins/BlockMethods.h +0 -1442
  342. xtgeo/include/eigen3/Eigen/src/plugins/CommonCwiseBinaryOps.h +0 -115
  343. xtgeo/include/eigen3/Eigen/src/plugins/CommonCwiseUnaryOps.h +0 -177
  344. xtgeo/include/eigen3/Eigen/src/plugins/IndexedViewMethods.h +0 -262
  345. xtgeo/include/eigen3/Eigen/src/plugins/MatrixCwiseBinaryOps.h +0 -152
  346. xtgeo/include/eigen3/Eigen/src/plugins/MatrixCwiseUnaryOps.h +0 -95
  347. xtgeo/include/eigen3/Eigen/src/plugins/ReshapedMethods.h +0 -149
  348. xtgeo/include/eigen3/signature_of_eigen3_matrix_library +0 -1
  349. xtgeo/include/eigen3/unsupported/Eigen/AdolcForward +0 -159
  350. xtgeo/include/eigen3/unsupported/Eigen/AlignedVector3 +0 -234
  351. xtgeo/include/eigen3/unsupported/Eigen/ArpackSupport +0 -30
  352. xtgeo/include/eigen3/unsupported/Eigen/AutoDiff +0 -46
  353. xtgeo/include/eigen3/unsupported/Eigen/BVH +0 -95
  354. xtgeo/include/eigen3/unsupported/Eigen/CXX11/Tensor +0 -137
  355. xtgeo/include/eigen3/unsupported/Eigen/CXX11/TensorSymmetry +0 -42
  356. xtgeo/include/eigen3/unsupported/Eigen/CXX11/ThreadPool +0 -74
  357. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/Tensor.h +0 -554
  358. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorArgMax.h +0 -329
  359. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h +0 -247
  360. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h +0 -1176
  361. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h +0 -1559
  362. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h +0 -1093
  363. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h +0 -518
  364. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConcatenation.h +0 -377
  365. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h +0 -1023
  366. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionBlocking.h +0 -73
  367. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionCuda.h +0 -6
  368. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionGpu.h +0 -1413
  369. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionMapper.h +0 -575
  370. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionSycl.h +0 -1650
  371. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h +0 -1679
  372. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConversion.h +0 -456
  373. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConvolution.h +0 -1132
  374. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConvolutionSycl.h +0 -544
  375. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorCostModel.h +0 -214
  376. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorCustomOp.h +0 -347
  377. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDevice.h +0 -137
  378. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h +0 -6
  379. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceDefault.h +0 -104
  380. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceGpu.h +0 -389
  381. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h +0 -1048
  382. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +0 -409
  383. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h +0 -236
  384. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h +0 -490
  385. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvalTo.h +0 -236
  386. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h +0 -983
  387. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h +0 -703
  388. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h +0 -388
  389. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFFT.h +0 -669
  390. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFixedSize.h +0 -379
  391. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorForcedEval.h +0 -237
  392. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h +0 -191
  393. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h +0 -488
  394. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGenerator.h +0 -302
  395. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGlobalFunctions.h +0 -33
  396. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGpuHipCudaDefines.h +0 -99
  397. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGpuHipCudaUndefines.h +0 -44
  398. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIO.h +0 -79
  399. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +0 -603
  400. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h +0 -738
  401. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorInflation.h +0 -247
  402. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorInitializer.h +0 -82
  403. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h +0 -263
  404. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorLayoutSwap.h +0 -216
  405. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMacros.h +0 -98
  406. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h +0 -327
  407. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h +0 -311
  408. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h +0 -1102
  409. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorPadding.h +0 -708
  410. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h +0 -291
  411. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h +0 -322
  412. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h +0 -998
  413. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h +0 -6
  414. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionGpu.h +0 -966
  415. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +0 -582
  416. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h +0 -454
  417. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReverse.h +0 -465
  418. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorScan.h +0 -528
  419. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +0 -513
  420. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorShuffling.h +0 -471
  421. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorStorage.h +0 -161
  422. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorStriding.h +0 -346
  423. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h +0 -303
  424. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h +0 -264
  425. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h +0 -249
  426. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorVolumePatch.h +0 -629
  427. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/DynamicSymmetry.h +0 -293
  428. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/StaticSymmetry.h +0 -236
  429. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/Symmetry.h +0 -338
  430. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/util/TemplateGroupTheory.h +0 -669
  431. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/Barrier.h +0 -67
  432. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/EventCount.h +0 -249
  433. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h +0 -486
  434. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/RunQueue.h +0 -236
  435. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadCancel.h +0 -23
  436. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadEnvironment.h +0 -40
  437. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadLocal.h +0 -301
  438. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h +0 -48
  439. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h +0 -20
  440. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/CXX11Meta.h +0 -537
  441. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/CXX11Workarounds.h +0 -88
  442. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/EmulateArray.h +0 -261
  443. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/MaxSizeVector.h +0 -158
  444. xtgeo/include/eigen3/unsupported/Eigen/EulerAngles +0 -43
  445. xtgeo/include/eigen3/unsupported/Eigen/FFT +0 -419
  446. xtgeo/include/eigen3/unsupported/Eigen/IterativeSolvers +0 -51
  447. xtgeo/include/eigen3/unsupported/Eigen/KroneckerProduct +0 -36
  448. xtgeo/include/eigen3/unsupported/Eigen/LevenbergMarquardt +0 -49
  449. xtgeo/include/eigen3/unsupported/Eigen/MPRealSupport +0 -213
  450. xtgeo/include/eigen3/unsupported/Eigen/MatrixFunctions +0 -504
  451. xtgeo/include/eigen3/unsupported/Eigen/MoreVectorization +0 -24
  452. xtgeo/include/eigen3/unsupported/Eigen/NonLinearOptimization +0 -140
  453. xtgeo/include/eigen3/unsupported/Eigen/NumericalDiff +0 -56
  454. xtgeo/include/eigen3/unsupported/Eigen/OpenGLSupport +0 -322
  455. xtgeo/include/eigen3/unsupported/Eigen/Polynomials +0 -137
  456. xtgeo/include/eigen3/unsupported/Eigen/Skyline +0 -39
  457. xtgeo/include/eigen3/unsupported/Eigen/SparseExtra +0 -54
  458. xtgeo/include/eigen3/unsupported/Eigen/SpecialFunctions +0 -103
  459. xtgeo/include/eigen3/unsupported/Eigen/Splines +0 -35
  460. xtgeo/include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffJacobian.h +0 -108
  461. xtgeo/include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +0 -730
  462. xtgeo/include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffVector.h +0 -220
  463. xtgeo/include/eigen3/unsupported/Eigen/src/BVH/BVAlgorithms.h +0 -293
  464. xtgeo/include/eigen3/unsupported/Eigen/src/BVH/KdBVH.h +0 -223
  465. xtgeo/include/eigen3/unsupported/Eigen/src/Eigenvalues/ArpackSelfAdjointEigenSolver.h +0 -790
  466. xtgeo/include/eigen3/unsupported/Eigen/src/EulerAngles/EulerAngles.h +0 -355
  467. xtgeo/include/eigen3/unsupported/Eigen/src/EulerAngles/EulerSystem.h +0 -305
  468. xtgeo/include/eigen3/unsupported/Eigen/src/FFT/ei_fftw_impl.h +0 -261
  469. xtgeo/include/eigen3/unsupported/Eigen/src/FFT/ei_kissfft_impl.h +0 -449
  470. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/ConstrainedConjGrad.h +0 -187
  471. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/DGMRES.h +0 -511
  472. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/GMRES.h +0 -335
  473. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/IDRS.h +0 -436
  474. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/IncompleteLU.h +0 -90
  475. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/IterationController.h +0 -154
  476. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/MINRES.h +0 -267
  477. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/Scaling.h +0 -193
  478. xtgeo/include/eigen3/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h +0 -305
  479. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMcovar.h +0 -84
  480. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMonestep.h +0 -202
  481. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMpar.h +0 -160
  482. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMqrsolv.h +0 -188
  483. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LevenbergMarquardt.h +0 -396
  484. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +0 -441
  485. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h +0 -569
  486. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h +0 -373
  487. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixPower.h +0 -705
  488. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h +0 -368
  489. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/StemFunction.h +0 -117
  490. xtgeo/include/eigen3/unsupported/Eigen/src/MoreVectorization/MathFunctions.h +0 -95
  491. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/HybridNonLinearSolver.h +0 -601
  492. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h +0 -657
  493. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/chkder.h +0 -66
  494. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/covar.h +0 -70
  495. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/dogleg.h +0 -107
  496. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/fdjac1.h +0 -79
  497. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/lmpar.h +0 -298
  498. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h +0 -91
  499. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/r1mpyq.h +0 -30
  500. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/r1updt.h +0 -99
  501. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h +0 -49
  502. xtgeo/include/eigen3/unsupported/Eigen/src/NumericalDiff/NumericalDiff.h +0 -130
  503. xtgeo/include/eigen3/unsupported/Eigen/src/Polynomials/Companion.h +0 -280
  504. xtgeo/include/eigen3/unsupported/Eigen/src/Polynomials/PolynomialSolver.h +0 -428
  505. xtgeo/include/eigen3/unsupported/Eigen/src/Polynomials/PolynomialUtils.h +0 -143
  506. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineInplaceLU.h +0 -352
  507. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineMatrix.h +0 -862
  508. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineMatrixBase.h +0 -212
  509. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineProduct.h +0 -295
  510. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineStorage.h +0 -259
  511. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineUtil.h +0 -89
  512. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/BlockOfDynamicSparseMatrix.h +0 -122
  513. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h +0 -1079
  514. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/DynamicSparseMatrix.h +0 -404
  515. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/MarketIO.h +0 -282
  516. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/MatrixMarketIterator.h +0 -247
  517. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/RandomSetter.h +0 -349
  518. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsArrayAPI.h +0 -286
  519. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsBFloat16.h +0 -68
  520. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsFunctors.h +0 -357
  521. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsHalf.h +0 -66
  522. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsImpl.h +0 -1959
  523. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsPacketMath.h +0 -118
  524. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/HipVectorCompatibility.h +0 -67
  525. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsArrayAPI.h +0 -167
  526. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsBFloat16.h +0 -58
  527. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsFunctors.h +0 -330
  528. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsHalf.h +0 -58
  529. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +0 -2045
  530. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsPacketMath.h +0 -79
  531. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX/BesselFunctions.h +0 -46
  532. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX/SpecialFunctions.h +0 -16
  533. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX512/BesselFunctions.h +0 -46
  534. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX512/SpecialFunctions.h +0 -16
  535. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/GPU/SpecialFunctions.h +0 -369
  536. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/NEON/BesselFunctions.h +0 -54
  537. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/NEON/SpecialFunctions.h +0 -34
  538. xtgeo/include/eigen3/unsupported/Eigen/src/Splines/Spline.h +0 -507
  539. xtgeo/include/eigen3/unsupported/Eigen/src/Splines/SplineFitting.h +0 -431
  540. xtgeo/include/eigen3/unsupported/Eigen/src/Splines/SplineFwd.h +0 -93
  541. xtgeo/share/eigen3/cmake/Eigen3Config.cmake +0 -37
  542. xtgeo/share/eigen3/cmake/Eigen3ConfigVersion.cmake +0 -65
  543. xtgeo/share/eigen3/cmake/Eigen3Targets.cmake +0 -106
  544. xtgeo/share/eigen3/cmake/UseEigen3.cmake +0 -6
  545. xtgeo-4.10.0.dist-info/RECORD +0 -651
  546. {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