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,1563 +0,0 @@
1
- // This file is part of Eigen, a lightweight C++ template library
2
- // for linear algebra.
3
- //
4
- // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
5
- // Copyright (C) 2009 Benoit Jacob <jacob.benoit.1@gmail.com>
6
- // Copyright (C) 2010 Hauke Heibel <hauke.heibel@gmail.com>
7
- //
8
- // This Source Code Form is subject to the terms of the Mozilla
9
- // Public License v. 2.0. If a copy of the MPL was not distributed
10
- // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
11
-
12
- #ifndef EIGEN_TRANSFORM_H
13
- #define EIGEN_TRANSFORM_H
14
-
15
- namespace Eigen {
16
-
17
- namespace internal {
18
-
19
- template<typename Transform>
20
- struct transform_traits
21
- {
22
- enum
23
- {
24
- Dim = Transform::Dim,
25
- HDim = Transform::HDim,
26
- Mode = Transform::Mode,
27
- IsProjective = (int(Mode)==int(Projective))
28
- };
29
- };
30
-
31
- template< typename TransformType,
32
- typename MatrixType,
33
- int Case = transform_traits<TransformType>::IsProjective ? 0
34
- : int(MatrixType::RowsAtCompileTime) == int(transform_traits<TransformType>::HDim) ? 1
35
- : 2,
36
- int RhsCols = MatrixType::ColsAtCompileTime>
37
- struct transform_right_product_impl;
38
-
39
- template< typename Other,
40
- int Mode,
41
- int Options,
42
- int Dim,
43
- int HDim,
44
- int OtherRows=Other::RowsAtCompileTime,
45
- int OtherCols=Other::ColsAtCompileTime>
46
- struct transform_left_product_impl;
47
-
48
- template< typename Lhs,
49
- typename Rhs,
50
- bool AnyProjective =
51
- transform_traits<Lhs>::IsProjective ||
52
- transform_traits<Rhs>::IsProjective>
53
- struct transform_transform_product_impl;
54
-
55
- template< typename Other,
56
- int Mode,
57
- int Options,
58
- int Dim,
59
- int HDim,
60
- int OtherRows=Other::RowsAtCompileTime,
61
- int OtherCols=Other::ColsAtCompileTime>
62
- struct transform_construct_from_matrix;
63
-
64
- template<typename TransformType> struct transform_take_affine_part;
65
-
66
- template<typename _Scalar, int _Dim, int _Mode, int _Options>
67
- struct traits<Transform<_Scalar,_Dim,_Mode,_Options> >
68
- {
69
- typedef _Scalar Scalar;
70
- typedef Eigen::Index StorageIndex;
71
- typedef Dense StorageKind;
72
- enum {
73
- Dim1 = _Dim==Dynamic ? _Dim : _Dim + 1,
74
- RowsAtCompileTime = _Mode==Projective ? Dim1 : _Dim,
75
- ColsAtCompileTime = Dim1,
76
- MaxRowsAtCompileTime = RowsAtCompileTime,
77
- MaxColsAtCompileTime = ColsAtCompileTime,
78
- Flags = 0
79
- };
80
- };
81
-
82
- template<int Mode> struct transform_make_affine;
83
-
84
- } // end namespace internal
85
-
86
- /** \geometry_module \ingroup Geometry_Module
87
- *
88
- * \class Transform
89
- *
90
- * \brief Represents an homogeneous transformation in a N dimensional space
91
- *
92
- * \tparam _Scalar the scalar type, i.e., the type of the coefficients
93
- * \tparam _Dim the dimension of the space
94
- * \tparam _Mode the type of the transformation. Can be:
95
- * - #Affine: the transformation is stored as a (Dim+1)^2 matrix,
96
- * where the last row is assumed to be [0 ... 0 1].
97
- * - #AffineCompact: the transformation is stored as a (Dim)x(Dim+1) matrix.
98
- * - #Projective: the transformation is stored as a (Dim+1)^2 matrix
99
- * without any assumption.
100
- * - #Isometry: same as #Affine with the additional assumption that
101
- * the linear part represents a rotation. This assumption is exploited
102
- * to speed up some functions such as inverse() and rotation().
103
- * \tparam _Options has the same meaning as in class Matrix. It allows to specify DontAlign and/or RowMajor.
104
- * These Options are passed directly to the underlying matrix type.
105
- *
106
- * The homography is internally represented and stored by a matrix which
107
- * is available through the matrix() method. To understand the behavior of
108
- * this class you have to think a Transform object as its internal
109
- * matrix representation. The chosen convention is right multiply:
110
- *
111
- * \code v' = T * v \endcode
112
- *
113
- * Therefore, an affine transformation matrix M is shaped like this:
114
- *
115
- * \f$ \left( \begin{array}{cc}
116
- * linear & translation\\
117
- * 0 ... 0 & 1
118
- * \end{array} \right) \f$
119
- *
120
- * Note that for a projective transformation the last row can be anything,
121
- * and then the interpretation of different parts might be slightly different.
122
- *
123
- * However, unlike a plain matrix, the Transform class provides many features
124
- * simplifying both its assembly and usage. In particular, it can be composed
125
- * with any other transformations (Transform,Translation,RotationBase,DiagonalMatrix)
126
- * and can be directly used to transform implicit homogeneous vectors. All these
127
- * operations are handled via the operator*. For the composition of transformations,
128
- * its principle consists to first convert the right/left hand sides of the product
129
- * to a compatible (Dim+1)^2 matrix and then perform a pure matrix product.
130
- * Of course, internally, operator* tries to perform the minimal number of operations
131
- * according to the nature of each terms. Likewise, when applying the transform
132
- * to points, the latters are automatically promoted to homogeneous vectors
133
- * before doing the matrix product. The conventions to homogeneous representations
134
- * are performed as follow:
135
- *
136
- * \b Translation t (Dim)x(1):
137
- * \f$ \left( \begin{array}{cc}
138
- * I & t \\
139
- * 0\,...\,0 & 1
140
- * \end{array} \right) \f$
141
- *
142
- * \b Rotation R (Dim)x(Dim):
143
- * \f$ \left( \begin{array}{cc}
144
- * R & 0\\
145
- * 0\,...\,0 & 1
146
- * \end{array} \right) \f$
147
- *<!--
148
- * \b Linear \b Matrix L (Dim)x(Dim):
149
- * \f$ \left( \begin{array}{cc}
150
- * L & 0\\
151
- * 0\,...\,0 & 1
152
- * \end{array} \right) \f$
153
- *
154
- * \b Affine \b Matrix A (Dim)x(Dim+1):
155
- * \f$ \left( \begin{array}{c}
156
- * A\\
157
- * 0\,...\,0\,1
158
- * \end{array} \right) \f$
159
- *-->
160
- * \b Scaling \b DiagonalMatrix S (Dim)x(Dim):
161
- * \f$ \left( \begin{array}{cc}
162
- * S & 0\\
163
- * 0\,...\,0 & 1
164
- * \end{array} \right) \f$
165
- *
166
- * \b Column \b point v (Dim)x(1):
167
- * \f$ \left( \begin{array}{c}
168
- * v\\
169
- * 1
170
- * \end{array} \right) \f$
171
- *
172
- * \b Set \b of \b column \b points V1...Vn (Dim)x(n):
173
- * \f$ \left( \begin{array}{ccc}
174
- * v_1 & ... & v_n\\
175
- * 1 & ... & 1
176
- * \end{array} \right) \f$
177
- *
178
- * The concatenation of a Transform object with any kind of other transformation
179
- * always returns a Transform object.
180
- *
181
- * A little exception to the "as pure matrix product" rule is the case of the
182
- * transformation of non homogeneous vectors by an affine transformation. In
183
- * that case the last matrix row can be ignored, and the product returns non
184
- * homogeneous vectors.
185
- *
186
- * Since, for instance, a Dim x Dim matrix is interpreted as a linear transformation,
187
- * it is not possible to directly transform Dim vectors stored in a Dim x Dim matrix.
188
- * The solution is either to use a Dim x Dynamic matrix or explicitly request a
189
- * vector transformation by making the vector homogeneous:
190
- * \code
191
- * m' = T * m.colwise().homogeneous();
192
- * \endcode
193
- * Note that there is zero overhead.
194
- *
195
- * Conversion methods from/to Qt's QMatrix and QTransform are available if the
196
- * preprocessor token EIGEN_QT_SUPPORT is defined.
197
- *
198
- * This class can be extended with the help of the plugin mechanism described on the page
199
- * \ref TopicCustomizing_Plugins by defining the preprocessor symbol \c EIGEN_TRANSFORM_PLUGIN.
200
- *
201
- * \sa class Matrix, class Quaternion
202
- */
203
- template<typename _Scalar, int _Dim, int _Mode, int _Options>
204
- class Transform
205
- {
206
- public:
207
- EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE(_Scalar,_Dim==Dynamic ? Dynamic : (_Dim+1)*(_Dim+1))
208
- enum {
209
- Mode = _Mode,
210
- Options = _Options,
211
- Dim = _Dim, ///< space dimension in which the transformation holds
212
- HDim = _Dim+1, ///< size of a respective homogeneous vector
213
- Rows = int(Mode)==(AffineCompact) ? Dim : HDim
214
- };
215
- /** the scalar type of the coefficients */
216
- typedef _Scalar Scalar;
217
- typedef Eigen::Index StorageIndex;
218
- typedef Eigen::Index Index; ///< \deprecated since Eigen 3.3
219
- /** type of the matrix used to represent the transformation */
220
- typedef typename internal::make_proper_matrix_type<Scalar,Rows,HDim,Options>::type MatrixType;
221
- /** constified MatrixType */
222
- typedef const MatrixType ConstMatrixType;
223
- /** type of the matrix used to represent the linear part of the transformation */
224
- typedef Matrix<Scalar,Dim,Dim,Options> LinearMatrixType;
225
- /** type of read/write reference to the linear part of the transformation */
226
- typedef Block<MatrixType,Dim,Dim,int(Mode)==(AffineCompact) && (int(Options)&RowMajor)==0> LinearPart;
227
- /** type of read reference to the linear part of the transformation */
228
- typedef const Block<ConstMatrixType,Dim,Dim,int(Mode)==(AffineCompact) && (int(Options)&RowMajor)==0> ConstLinearPart;
229
- /** type of read/write reference to the affine part of the transformation */
230
- typedef typename internal::conditional<int(Mode)==int(AffineCompact),
231
- MatrixType&,
232
- Block<MatrixType,Dim,HDim> >::type AffinePart;
233
- /** type of read reference to the affine part of the transformation */
234
- typedef typename internal::conditional<int(Mode)==int(AffineCompact),
235
- const MatrixType&,
236
- const Block<const MatrixType,Dim,HDim> >::type ConstAffinePart;
237
- /** type of a vector */
238
- typedef Matrix<Scalar,Dim,1> VectorType;
239
- /** type of a read/write reference to the translation part of the rotation */
240
- typedef Block<MatrixType,Dim,1,!(internal::traits<MatrixType>::Flags & RowMajorBit)> TranslationPart;
241
- /** type of a read reference to the translation part of the rotation */
242
- typedef const Block<ConstMatrixType,Dim,1,!(internal::traits<MatrixType>::Flags & RowMajorBit)> ConstTranslationPart;
243
- /** corresponding translation type */
244
- typedef Translation<Scalar,Dim> TranslationType;
245
-
246
- // this intermediate enum is needed to avoid an ICE with gcc 3.4 and 4.0
247
- enum { TransformTimeDiagonalMode = ((Mode==int(Isometry))?Affine:int(Mode)) };
248
- /** The return type of the product between a diagonal matrix and a transform */
249
- typedef Transform<Scalar,Dim,TransformTimeDiagonalMode> TransformTimeDiagonalReturnType;
250
-
251
- protected:
252
-
253
- MatrixType m_matrix;
254
-
255
- public:
256
-
257
- /** Default constructor without initialization of the meaningful coefficients.
258
- * If Mode==Affine or Mode==Isometry, then the last row is set to [0 ... 0 1] */
259
- EIGEN_DEVICE_FUNC inline Transform()
260
- {
261
- check_template_params();
262
- internal::transform_make_affine<(int(Mode)==Affine || int(Mode)==Isometry) ? Affine : AffineCompact>::run(m_matrix);
263
- }
264
-
265
- EIGEN_DEVICE_FUNC inline explicit Transform(const TranslationType& t)
266
- {
267
- check_template_params();
268
- *this = t;
269
- }
270
- EIGEN_DEVICE_FUNC inline explicit Transform(const UniformScaling<Scalar>& s)
271
- {
272
- check_template_params();
273
- *this = s;
274
- }
275
- template<typename Derived>
276
- EIGEN_DEVICE_FUNC inline explicit Transform(const RotationBase<Derived, Dim>& r)
277
- {
278
- check_template_params();
279
- *this = r;
280
- }
281
-
282
- typedef internal::transform_take_affine_part<Transform> take_affine_part;
283
-
284
- /** Constructs and initializes a transformation from a Dim^2 or a (Dim+1)^2 matrix. */
285
- template<typename OtherDerived>
286
- EIGEN_DEVICE_FUNC inline explicit Transform(const EigenBase<OtherDerived>& other)
287
- {
288
- EIGEN_STATIC_ASSERT((internal::is_same<Scalar,typename OtherDerived::Scalar>::value),
289
- YOU_MIXED_DIFFERENT_NUMERIC_TYPES__YOU_NEED_TO_USE_THE_CAST_METHOD_OF_MATRIXBASE_TO_CAST_NUMERIC_TYPES_EXPLICITLY);
290
-
291
- check_template_params();
292
- internal::transform_construct_from_matrix<OtherDerived,Mode,Options,Dim,HDim>::run(this, other.derived());
293
- }
294
-
295
- /** Set \c *this from a Dim^2 or (Dim+1)^2 matrix. */
296
- template<typename OtherDerived>
297
- EIGEN_DEVICE_FUNC inline Transform& operator=(const EigenBase<OtherDerived>& other)
298
- {
299
- EIGEN_STATIC_ASSERT((internal::is_same<Scalar,typename OtherDerived::Scalar>::value),
300
- YOU_MIXED_DIFFERENT_NUMERIC_TYPES__YOU_NEED_TO_USE_THE_CAST_METHOD_OF_MATRIXBASE_TO_CAST_NUMERIC_TYPES_EXPLICITLY);
301
-
302
- internal::transform_construct_from_matrix<OtherDerived,Mode,Options,Dim,HDim>::run(this, other.derived());
303
- return *this;
304
- }
305
-
306
- template<int OtherOptions>
307
- EIGEN_DEVICE_FUNC inline Transform(const Transform<Scalar,Dim,Mode,OtherOptions>& other)
308
- {
309
- check_template_params();
310
- // only the options change, we can directly copy the matrices
311
- m_matrix = other.matrix();
312
- }
313
-
314
- template<int OtherMode,int OtherOptions>
315
- EIGEN_DEVICE_FUNC inline Transform(const Transform<Scalar,Dim,OtherMode,OtherOptions>& other)
316
- {
317
- check_template_params();
318
- // prevent conversions as:
319
- // Affine | AffineCompact | Isometry = Projective
320
- EIGEN_STATIC_ASSERT(EIGEN_IMPLIES(OtherMode==int(Projective), Mode==int(Projective)),
321
- YOU_PERFORMED_AN_INVALID_TRANSFORMATION_CONVERSION)
322
-
323
- // prevent conversions as:
324
- // Isometry = Affine | AffineCompact
325
- EIGEN_STATIC_ASSERT(EIGEN_IMPLIES(OtherMode==int(Affine)||OtherMode==int(AffineCompact), Mode!=int(Isometry)),
326
- YOU_PERFORMED_AN_INVALID_TRANSFORMATION_CONVERSION)
327
-
328
- enum { ModeIsAffineCompact = Mode == int(AffineCompact),
329
- OtherModeIsAffineCompact = OtherMode == int(AffineCompact)
330
- };
331
-
332
- if(EIGEN_CONST_CONDITIONAL(ModeIsAffineCompact == OtherModeIsAffineCompact))
333
- {
334
- // We need the block expression because the code is compiled for all
335
- // combinations of transformations and will trigger a compile time error
336
- // if one tries to assign the matrices directly
337
- m_matrix.template block<Dim,Dim+1>(0,0) = other.matrix().template block<Dim,Dim+1>(0,0);
338
- makeAffine();
339
- }
340
- else if(EIGEN_CONST_CONDITIONAL(OtherModeIsAffineCompact))
341
- {
342
- typedef typename Transform<Scalar,Dim,OtherMode,OtherOptions>::MatrixType OtherMatrixType;
343
- internal::transform_construct_from_matrix<OtherMatrixType,Mode,Options,Dim,HDim>::run(this, other.matrix());
344
- }
345
- else
346
- {
347
- // here we know that Mode == AffineCompact and OtherMode != AffineCompact.
348
- // if OtherMode were Projective, the static assert above would already have caught it.
349
- // So the only possibility is that OtherMode == Affine
350
- linear() = other.linear();
351
- translation() = other.translation();
352
- }
353
- }
354
-
355
- template<typename OtherDerived>
356
- EIGEN_DEVICE_FUNC Transform(const ReturnByValue<OtherDerived>& other)
357
- {
358
- check_template_params();
359
- other.evalTo(*this);
360
- }
361
-
362
- template<typename OtherDerived>
363
- EIGEN_DEVICE_FUNC Transform& operator=(const ReturnByValue<OtherDerived>& other)
364
- {
365
- other.evalTo(*this);
366
- return *this;
367
- }
368
-
369
- #ifdef EIGEN_QT_SUPPORT
370
- inline Transform(const QMatrix& other);
371
- inline Transform& operator=(const QMatrix& other);
372
- inline QMatrix toQMatrix(void) const;
373
- inline Transform(const QTransform& other);
374
- inline Transform& operator=(const QTransform& other);
375
- inline QTransform toQTransform(void) const;
376
- #endif
377
-
378
- EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT { return int(Mode)==int(Projective) ? m_matrix.cols() : (m_matrix.cols()-1); }
379
- EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT { return m_matrix.cols(); }
380
-
381
- /** shortcut for m_matrix(row,col);
382
- * \sa MatrixBase::operator(Index,Index) const */
383
- EIGEN_DEVICE_FUNC inline Scalar operator() (Index row, Index col) const { return m_matrix(row,col); }
384
- /** shortcut for m_matrix(row,col);
385
- * \sa MatrixBase::operator(Index,Index) */
386
- EIGEN_DEVICE_FUNC inline Scalar& operator() (Index row, Index col) { return m_matrix(row,col); }
387
-
388
- /** \returns a read-only expression of the transformation matrix */
389
- EIGEN_DEVICE_FUNC inline const MatrixType& matrix() const { return m_matrix; }
390
- /** \returns a writable expression of the transformation matrix */
391
- EIGEN_DEVICE_FUNC inline MatrixType& matrix() { return m_matrix; }
392
-
393
- /** \returns a read-only expression of the linear part of the transformation */
394
- EIGEN_DEVICE_FUNC inline ConstLinearPart linear() const { return ConstLinearPart(m_matrix,0,0); }
395
- /** \returns a writable expression of the linear part of the transformation */
396
- EIGEN_DEVICE_FUNC inline LinearPart linear() { return LinearPart(m_matrix,0,0); }
397
-
398
- /** \returns a read-only expression of the Dim x HDim affine part of the transformation */
399
- EIGEN_DEVICE_FUNC inline ConstAffinePart affine() const { return take_affine_part::run(m_matrix); }
400
- /** \returns a writable expression of the Dim x HDim affine part of the transformation */
401
- EIGEN_DEVICE_FUNC inline AffinePart affine() { return take_affine_part::run(m_matrix); }
402
-
403
- /** \returns a read-only expression of the translation vector of the transformation */
404
- EIGEN_DEVICE_FUNC inline ConstTranslationPart translation() const { return ConstTranslationPart(m_matrix,0,Dim); }
405
- /** \returns a writable expression of the translation vector of the transformation */
406
- EIGEN_DEVICE_FUNC inline TranslationPart translation() { return TranslationPart(m_matrix,0,Dim); }
407
-
408
- /** \returns an expression of the product between the transform \c *this and a matrix expression \a other.
409
- *
410
- * The right-hand-side \a other can be either:
411
- * \li an homogeneous vector of size Dim+1,
412
- * \li a set of homogeneous vectors of size Dim+1 x N,
413
- * \li a transformation matrix of size Dim+1 x Dim+1.
414
- *
415
- * Moreover, if \c *this represents an affine transformation (i.e., Mode!=Projective), then \a other can also be:
416
- * \li a point of size Dim (computes: \code this->linear() * other + this->translation()\endcode),
417
- * \li a set of N points as a Dim x N matrix (computes: \code (this->linear() * other).colwise() + this->translation()\endcode),
418
- *
419
- * In all cases, the return type is a matrix or vector of same sizes as the right-hand-side \a other.
420
- *
421
- * If you want to interpret \a other as a linear or affine transformation, then first convert it to a Transform<> type,
422
- * or do your own cooking.
423
- *
424
- * Finally, if you want to apply Affine transformations to vectors, then explicitly apply the linear part only:
425
- * \code
426
- * Affine3f A;
427
- * Vector3f v1, v2;
428
- * v2 = A.linear() * v1;
429
- * \endcode
430
- *
431
- */
432
- // note: this function is defined here because some compilers cannot find the respective declaration
433
- template<typename OtherDerived>
434
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const typename internal::transform_right_product_impl<Transform, OtherDerived>::ResultType
435
- operator * (const EigenBase<OtherDerived> &other) const
436
- { return internal::transform_right_product_impl<Transform, OtherDerived>::run(*this,other.derived()); }
437
-
438
- /** \returns the product expression of a transformation matrix \a a times a transform \a b
439
- *
440
- * The left hand side \a other can be either:
441
- * \li a linear transformation matrix of size Dim x Dim,
442
- * \li an affine transformation matrix of size Dim x Dim+1,
443
- * \li a general transformation matrix of size Dim+1 x Dim+1.
444
- */
445
- template<typename OtherDerived> friend
446
- EIGEN_DEVICE_FUNC inline const typename internal::transform_left_product_impl<OtherDerived,Mode,Options,_Dim,_Dim+1>::ResultType
447
- operator * (const EigenBase<OtherDerived> &a, const Transform &b)
448
- { return internal::transform_left_product_impl<OtherDerived,Mode,Options,Dim,HDim>::run(a.derived(),b); }
449
-
450
- /** \returns The product expression of a transform \a a times a diagonal matrix \a b
451
- *
452
- * The rhs diagonal matrix is interpreted as an affine scaling transformation. The
453
- * product results in a Transform of the same type (mode) as the lhs only if the lhs
454
- * mode is no isometry. In that case, the returned transform is an affinity.
455
- */
456
- template<typename DiagonalDerived>
457
- EIGEN_DEVICE_FUNC inline const TransformTimeDiagonalReturnType
458
- operator * (const DiagonalBase<DiagonalDerived> &b) const
459
- {
460
- TransformTimeDiagonalReturnType res(*this);
461
- res.linearExt() *= b;
462
- return res;
463
- }
464
-
465
- /** \returns The product expression of a diagonal matrix \a a times a transform \a b
466
- *
467
- * The lhs diagonal matrix is interpreted as an affine scaling transformation. The
468
- * product results in a Transform of the same type (mode) as the lhs only if the lhs
469
- * mode is no isometry. In that case, the returned transform is an affinity.
470
- */
471
- template<typename DiagonalDerived>
472
- EIGEN_DEVICE_FUNC friend inline TransformTimeDiagonalReturnType
473
- operator * (const DiagonalBase<DiagonalDerived> &a, const Transform &b)
474
- {
475
- TransformTimeDiagonalReturnType res;
476
- res.linear().noalias() = a*b.linear();
477
- res.translation().noalias() = a*b.translation();
478
- if (EIGEN_CONST_CONDITIONAL(Mode!=int(AffineCompact)))
479
- res.matrix().row(Dim) = b.matrix().row(Dim);
480
- return res;
481
- }
482
-
483
- template<typename OtherDerived>
484
- EIGEN_DEVICE_FUNC inline Transform& operator*=(const EigenBase<OtherDerived>& other) { return *this = *this * other; }
485
-
486
- /** Concatenates two transformations */
487
- EIGEN_DEVICE_FUNC inline const Transform operator * (const Transform& other) const
488
- {
489
- return internal::transform_transform_product_impl<Transform,Transform>::run(*this,other);
490
- }
491
-
492
- #if EIGEN_COMP_ICC
493
- private:
494
- // this intermediate structure permits to workaround a bug in ICC 11:
495
- // error: template instantiation resulted in unexpected function type of "Eigen::Transform<double, 3, 32, 0>
496
- // (const Eigen::Transform<double, 3, 2, 0> &) const"
497
- // (the meaning of a name may have changed since the template declaration -- the type of the template is:
498
- // "Eigen::internal::transform_transform_product_impl<Eigen::Transform<double, 3, 32, 0>,
499
- // Eigen::Transform<double, 3, Mode, Options>, <expression>>::ResultType (const Eigen::Transform<double, 3, Mode, Options> &) const")
500
- //
501
- template<int OtherMode,int OtherOptions> struct icc_11_workaround
502
- {
503
- typedef internal::transform_transform_product_impl<Transform,Transform<Scalar,Dim,OtherMode,OtherOptions> > ProductType;
504
- typedef typename ProductType::ResultType ResultType;
505
- };
506
-
507
- public:
508
- /** Concatenates two different transformations */
509
- template<int OtherMode,int OtherOptions>
510
- inline typename icc_11_workaround<OtherMode,OtherOptions>::ResultType
511
- operator * (const Transform<Scalar,Dim,OtherMode,OtherOptions>& other) const
512
- {
513
- typedef typename icc_11_workaround<OtherMode,OtherOptions>::ProductType ProductType;
514
- return ProductType::run(*this,other);
515
- }
516
- #else
517
- /** Concatenates two different transformations */
518
- template<int OtherMode,int OtherOptions>
519
- EIGEN_DEVICE_FUNC inline typename internal::transform_transform_product_impl<Transform,Transform<Scalar,Dim,OtherMode,OtherOptions> >::ResultType
520
- operator * (const Transform<Scalar,Dim,OtherMode,OtherOptions>& other) const
521
- {
522
- return internal::transform_transform_product_impl<Transform,Transform<Scalar,Dim,OtherMode,OtherOptions> >::run(*this,other);
523
- }
524
- #endif
525
-
526
- /** \sa MatrixBase::setIdentity() */
527
- EIGEN_DEVICE_FUNC void setIdentity() { m_matrix.setIdentity(); }
528
-
529
- /**
530
- * \brief Returns an identity transformation.
531
- * \todo In the future this function should be returning a Transform expression.
532
- */
533
- EIGEN_DEVICE_FUNC static const Transform Identity()
534
- {
535
- return Transform(MatrixType::Identity());
536
- }
537
-
538
- template<typename OtherDerived>
539
- EIGEN_DEVICE_FUNC
540
- inline Transform& scale(const MatrixBase<OtherDerived> &other);
541
-
542
- template<typename OtherDerived>
543
- EIGEN_DEVICE_FUNC
544
- inline Transform& prescale(const MatrixBase<OtherDerived> &other);
545
-
546
- EIGEN_DEVICE_FUNC inline Transform& scale(const Scalar& s);
547
- EIGEN_DEVICE_FUNC inline Transform& prescale(const Scalar& s);
548
-
549
- template<typename OtherDerived>
550
- EIGEN_DEVICE_FUNC
551
- inline Transform& translate(const MatrixBase<OtherDerived> &other);
552
-
553
- template<typename OtherDerived>
554
- EIGEN_DEVICE_FUNC
555
- inline Transform& pretranslate(const MatrixBase<OtherDerived> &other);
556
-
557
- template<typename RotationType>
558
- EIGEN_DEVICE_FUNC
559
- inline Transform& rotate(const RotationType& rotation);
560
-
561
- template<typename RotationType>
562
- EIGEN_DEVICE_FUNC
563
- inline Transform& prerotate(const RotationType& rotation);
564
-
565
- EIGEN_DEVICE_FUNC Transform& shear(const Scalar& sx, const Scalar& sy);
566
- EIGEN_DEVICE_FUNC Transform& preshear(const Scalar& sx, const Scalar& sy);
567
-
568
- EIGEN_DEVICE_FUNC inline Transform& operator=(const TranslationType& t);
569
-
570
- EIGEN_DEVICE_FUNC
571
- inline Transform& operator*=(const TranslationType& t) { return translate(t.vector()); }
572
-
573
- EIGEN_DEVICE_FUNC inline Transform operator*(const TranslationType& t) const;
574
-
575
- EIGEN_DEVICE_FUNC
576
- inline Transform& operator=(const UniformScaling<Scalar>& t);
577
-
578
- EIGEN_DEVICE_FUNC
579
- inline Transform& operator*=(const UniformScaling<Scalar>& s) { return scale(s.factor()); }
580
-
581
- EIGEN_DEVICE_FUNC
582
- inline TransformTimeDiagonalReturnType operator*(const UniformScaling<Scalar>& s) const
583
- {
584
- TransformTimeDiagonalReturnType res = *this;
585
- res.scale(s.factor());
586
- return res;
587
- }
588
-
589
- EIGEN_DEVICE_FUNC
590
- inline Transform& operator*=(const DiagonalMatrix<Scalar,Dim>& s) { linearExt() *= s; return *this; }
591
-
592
- template<typename Derived>
593
- EIGEN_DEVICE_FUNC inline Transform& operator=(const RotationBase<Derived,Dim>& r);
594
- template<typename Derived>
595
- EIGEN_DEVICE_FUNC inline Transform& operator*=(const RotationBase<Derived,Dim>& r) { return rotate(r.toRotationMatrix()); }
596
- template<typename Derived>
597
- EIGEN_DEVICE_FUNC inline Transform operator*(const RotationBase<Derived,Dim>& r) const;
598
-
599
- typedef typename internal::conditional<int(Mode)==Isometry,ConstLinearPart,const LinearMatrixType>::type RotationReturnType;
600
- EIGEN_DEVICE_FUNC RotationReturnType rotation() const;
601
-
602
- template<typename RotationMatrixType, typename ScalingMatrixType>
603
- EIGEN_DEVICE_FUNC
604
- void computeRotationScaling(RotationMatrixType *rotation, ScalingMatrixType *scaling) const;
605
- template<typename ScalingMatrixType, typename RotationMatrixType>
606
- EIGEN_DEVICE_FUNC
607
- void computeScalingRotation(ScalingMatrixType *scaling, RotationMatrixType *rotation) const;
608
-
609
- template<typename PositionDerived, typename OrientationType, typename ScaleDerived>
610
- EIGEN_DEVICE_FUNC
611
- Transform& fromPositionOrientationScale(const MatrixBase<PositionDerived> &position,
612
- const OrientationType& orientation, const MatrixBase<ScaleDerived> &scale);
613
-
614
- EIGEN_DEVICE_FUNC
615
- inline Transform inverse(TransformTraits traits = (TransformTraits)Mode) const;
616
-
617
- /** \returns a const pointer to the column major internal matrix */
618
- EIGEN_DEVICE_FUNC const Scalar* data() const { return m_matrix.data(); }
619
- /** \returns a non-const pointer to the column major internal matrix */
620
- EIGEN_DEVICE_FUNC Scalar* data() { return m_matrix.data(); }
621
-
622
- /** \returns \c *this with scalar type casted to \a NewScalarType
623
- *
624
- * Note that if \a NewScalarType is equal to the current scalar type of \c *this
625
- * then this function smartly returns a const reference to \c *this.
626
- */
627
- template<typename NewScalarType>
628
- EIGEN_DEVICE_FUNC inline typename internal::cast_return_type<Transform,Transform<NewScalarType,Dim,Mode,Options> >::type cast() const
629
- { return typename internal::cast_return_type<Transform,Transform<NewScalarType,Dim,Mode,Options> >::type(*this); }
630
-
631
- /** Copy constructor with scalar type conversion */
632
- template<typename OtherScalarType>
633
- EIGEN_DEVICE_FUNC inline explicit Transform(const Transform<OtherScalarType,Dim,Mode,Options>& other)
634
- {
635
- check_template_params();
636
- m_matrix = other.matrix().template cast<Scalar>();
637
- }
638
-
639
- /** \returns \c true if \c *this is approximately equal to \a other, within the precision
640
- * determined by \a prec.
641
- *
642
- * \sa MatrixBase::isApprox() */
643
- EIGEN_DEVICE_FUNC bool isApprox(const Transform& other, const typename NumTraits<Scalar>::Real& prec = NumTraits<Scalar>::dummy_precision()) const
644
- { return m_matrix.isApprox(other.m_matrix, prec); }
645
-
646
- /** Sets the last row to [0 ... 0 1]
647
- */
648
- EIGEN_DEVICE_FUNC void makeAffine()
649
- {
650
- internal::transform_make_affine<int(Mode)>::run(m_matrix);
651
- }
652
-
653
- /** \internal
654
- * \returns the Dim x Dim linear part if the transformation is affine,
655
- * and the HDim x Dim part for projective transformations.
656
- */
657
- EIGEN_DEVICE_FUNC inline Block<MatrixType,int(Mode)==int(Projective)?HDim:Dim,Dim> linearExt()
658
- { return m_matrix.template block<int(Mode)==int(Projective)?HDim:Dim,Dim>(0,0); }
659
- /** \internal
660
- * \returns the Dim x Dim linear part if the transformation is affine,
661
- * and the HDim x Dim part for projective transformations.
662
- */
663
- EIGEN_DEVICE_FUNC inline const Block<MatrixType,int(Mode)==int(Projective)?HDim:Dim,Dim> linearExt() const
664
- { return m_matrix.template block<int(Mode)==int(Projective)?HDim:Dim,Dim>(0,0); }
665
-
666
- /** \internal
667
- * \returns the translation part if the transformation is affine,
668
- * and the last column for projective transformations.
669
- */
670
- EIGEN_DEVICE_FUNC inline Block<MatrixType,int(Mode)==int(Projective)?HDim:Dim,1> translationExt()
671
- { return m_matrix.template block<int(Mode)==int(Projective)?HDim:Dim,1>(0,Dim); }
672
- /** \internal
673
- * \returns the translation part if the transformation is affine,
674
- * and the last column for projective transformations.
675
- */
676
- EIGEN_DEVICE_FUNC inline const Block<MatrixType,int(Mode)==int(Projective)?HDim:Dim,1> translationExt() const
677
- { return m_matrix.template block<int(Mode)==int(Projective)?HDim:Dim,1>(0,Dim); }
678
-
679
-
680
- #ifdef EIGEN_TRANSFORM_PLUGIN
681
- #include EIGEN_TRANSFORM_PLUGIN
682
- #endif
683
-
684
- protected:
685
- #ifndef EIGEN_PARSED_BY_DOXYGEN
686
- EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE void check_template_params()
687
- {
688
- EIGEN_STATIC_ASSERT((Options & (DontAlign|RowMajor)) == Options, INVALID_MATRIX_TEMPLATE_PARAMETERS)
689
- }
690
- #endif
691
-
692
- };
693
-
694
- /** \ingroup Geometry_Module */
695
- typedef Transform<float,2,Isometry> Isometry2f;
696
- /** \ingroup Geometry_Module */
697
- typedef Transform<float,3,Isometry> Isometry3f;
698
- /** \ingroup Geometry_Module */
699
- typedef Transform<double,2,Isometry> Isometry2d;
700
- /** \ingroup Geometry_Module */
701
- typedef Transform<double,3,Isometry> Isometry3d;
702
-
703
- /** \ingroup Geometry_Module */
704
- typedef Transform<float,2,Affine> Affine2f;
705
- /** \ingroup Geometry_Module */
706
- typedef Transform<float,3,Affine> Affine3f;
707
- /** \ingroup Geometry_Module */
708
- typedef Transform<double,2,Affine> Affine2d;
709
- /** \ingroup Geometry_Module */
710
- typedef Transform<double,3,Affine> Affine3d;
711
-
712
- /** \ingroup Geometry_Module */
713
- typedef Transform<float,2,AffineCompact> AffineCompact2f;
714
- /** \ingroup Geometry_Module */
715
- typedef Transform<float,3,AffineCompact> AffineCompact3f;
716
- /** \ingroup Geometry_Module */
717
- typedef Transform<double,2,AffineCompact> AffineCompact2d;
718
- /** \ingroup Geometry_Module */
719
- typedef Transform<double,3,AffineCompact> AffineCompact3d;
720
-
721
- /** \ingroup Geometry_Module */
722
- typedef Transform<float,2,Projective> Projective2f;
723
- /** \ingroup Geometry_Module */
724
- typedef Transform<float,3,Projective> Projective3f;
725
- /** \ingroup Geometry_Module */
726
- typedef Transform<double,2,Projective> Projective2d;
727
- /** \ingroup Geometry_Module */
728
- typedef Transform<double,3,Projective> Projective3d;
729
-
730
- /**************************
731
- *** Optional QT support ***
732
- **************************/
733
-
734
- #ifdef EIGEN_QT_SUPPORT
735
- /** Initializes \c *this from a QMatrix assuming the dimension is 2.
736
- *
737
- * This function is available only if the token EIGEN_QT_SUPPORT is defined.
738
- */
739
- template<typename Scalar, int Dim, int Mode,int Options>
740
- Transform<Scalar,Dim,Mode,Options>::Transform(const QMatrix& other)
741
- {
742
- check_template_params();
743
- *this = other;
744
- }
745
-
746
- /** Set \c *this from a QMatrix assuming the dimension is 2.
747
- *
748
- * This function is available only if the token EIGEN_QT_SUPPORT is defined.
749
- */
750
- template<typename Scalar, int Dim, int Mode,int Options>
751
- Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::operator=(const QMatrix& other)
752
- {
753
- EIGEN_STATIC_ASSERT(Dim==2, YOU_MADE_A_PROGRAMMING_MISTAKE)
754
- if (EIGEN_CONST_CONDITIONAL(Mode == int(AffineCompact)))
755
- m_matrix << other.m11(), other.m21(), other.dx(),
756
- other.m12(), other.m22(), other.dy();
757
- else
758
- m_matrix << other.m11(), other.m21(), other.dx(),
759
- other.m12(), other.m22(), other.dy(),
760
- 0, 0, 1;
761
- return *this;
762
- }
763
-
764
- /** \returns a QMatrix from \c *this assuming the dimension is 2.
765
- *
766
- * \warning this conversion might loss data if \c *this is not affine
767
- *
768
- * This function is available only if the token EIGEN_QT_SUPPORT is defined.
769
- */
770
- template<typename Scalar, int Dim, int Mode, int Options>
771
- QMatrix Transform<Scalar,Dim,Mode,Options>::toQMatrix(void) const
772
- {
773
- check_template_params();
774
- EIGEN_STATIC_ASSERT(Dim==2, YOU_MADE_A_PROGRAMMING_MISTAKE)
775
- return QMatrix(m_matrix.coeff(0,0), m_matrix.coeff(1,0),
776
- m_matrix.coeff(0,1), m_matrix.coeff(1,1),
777
- m_matrix.coeff(0,2), m_matrix.coeff(1,2));
778
- }
779
-
780
- /** Initializes \c *this from a QTransform assuming the dimension is 2.
781
- *
782
- * This function is available only if the token EIGEN_QT_SUPPORT is defined.
783
- */
784
- template<typename Scalar, int Dim, int Mode,int Options>
785
- Transform<Scalar,Dim,Mode,Options>::Transform(const QTransform& other)
786
- {
787
- check_template_params();
788
- *this = other;
789
- }
790
-
791
- /** Set \c *this from a QTransform assuming the dimension is 2.
792
- *
793
- * This function is available only if the token EIGEN_QT_SUPPORT is defined.
794
- */
795
- template<typename Scalar, int Dim, int Mode, int Options>
796
- Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::operator=(const QTransform& other)
797
- {
798
- check_template_params();
799
- EIGEN_STATIC_ASSERT(Dim==2, YOU_MADE_A_PROGRAMMING_MISTAKE)
800
- if (EIGEN_CONST_CONDITIONAL(Mode == int(AffineCompact)))
801
- m_matrix << other.m11(), other.m21(), other.dx(),
802
- other.m12(), other.m22(), other.dy();
803
- else
804
- m_matrix << other.m11(), other.m21(), other.dx(),
805
- other.m12(), other.m22(), other.dy(),
806
- other.m13(), other.m23(), other.m33();
807
- return *this;
808
- }
809
-
810
- /** \returns a QTransform from \c *this assuming the dimension is 2.
811
- *
812
- * This function is available only if the token EIGEN_QT_SUPPORT is defined.
813
- */
814
- template<typename Scalar, int Dim, int Mode, int Options>
815
- QTransform Transform<Scalar,Dim,Mode,Options>::toQTransform(void) const
816
- {
817
- EIGEN_STATIC_ASSERT(Dim==2, YOU_MADE_A_PROGRAMMING_MISTAKE)
818
- if (EIGEN_CONST_CONDITIONAL(Mode == int(AffineCompact)))
819
- return QTransform(m_matrix.coeff(0,0), m_matrix.coeff(1,0),
820
- m_matrix.coeff(0,1), m_matrix.coeff(1,1),
821
- m_matrix.coeff(0,2), m_matrix.coeff(1,2));
822
- else
823
- return QTransform(m_matrix.coeff(0,0), m_matrix.coeff(1,0), m_matrix.coeff(2,0),
824
- m_matrix.coeff(0,1), m_matrix.coeff(1,1), m_matrix.coeff(2,1),
825
- m_matrix.coeff(0,2), m_matrix.coeff(1,2), m_matrix.coeff(2,2));
826
- }
827
- #endif
828
-
829
- /*********************
830
- *** Procedural API ***
831
- *********************/
832
-
833
- /** Applies on the right the non uniform scale transformation represented
834
- * by the vector \a other to \c *this and returns a reference to \c *this.
835
- * \sa prescale()
836
- */
837
- template<typename Scalar, int Dim, int Mode, int Options>
838
- template<typename OtherDerived>
839
- EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
840
- Transform<Scalar,Dim,Mode,Options>::scale(const MatrixBase<OtherDerived> &other)
841
- {
842
- EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(OtherDerived,int(Dim))
843
- EIGEN_STATIC_ASSERT(Mode!=int(Isometry), THIS_METHOD_IS_ONLY_FOR_SPECIFIC_TRANSFORMATIONS)
844
- linearExt().noalias() = (linearExt() * other.asDiagonal());
845
- return *this;
846
- }
847
-
848
- /** Applies on the right a uniform scale of a factor \a c to \c *this
849
- * and returns a reference to \c *this.
850
- * \sa prescale(Scalar)
851
- */
852
- template<typename Scalar, int Dim, int Mode, int Options>
853
- EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::scale(const Scalar& s)
854
- {
855
- EIGEN_STATIC_ASSERT(Mode!=int(Isometry), THIS_METHOD_IS_ONLY_FOR_SPECIFIC_TRANSFORMATIONS)
856
- linearExt() *= s;
857
- return *this;
858
- }
859
-
860
- /** Applies on the left the non uniform scale transformation represented
861
- * by the vector \a other to \c *this and returns a reference to \c *this.
862
- * \sa scale()
863
- */
864
- template<typename Scalar, int Dim, int Mode, int Options>
865
- template<typename OtherDerived>
866
- EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
867
- Transform<Scalar,Dim,Mode,Options>::prescale(const MatrixBase<OtherDerived> &other)
868
- {
869
- EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(OtherDerived,int(Dim))
870
- EIGEN_STATIC_ASSERT(Mode!=int(Isometry), THIS_METHOD_IS_ONLY_FOR_SPECIFIC_TRANSFORMATIONS)
871
- affine().noalias() = (other.asDiagonal() * affine());
872
- return *this;
873
- }
874
-
875
- /** Applies on the left a uniform scale of a factor \a c to \c *this
876
- * and returns a reference to \c *this.
877
- * \sa scale(Scalar)
878
- */
879
- template<typename Scalar, int Dim, int Mode, int Options>
880
- EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::prescale(const Scalar& s)
881
- {
882
- EIGEN_STATIC_ASSERT(Mode!=int(Isometry), THIS_METHOD_IS_ONLY_FOR_SPECIFIC_TRANSFORMATIONS)
883
- m_matrix.template topRows<Dim>() *= s;
884
- return *this;
885
- }
886
-
887
- /** Applies on the right the translation matrix represented by the vector \a other
888
- * to \c *this and returns a reference to \c *this.
889
- * \sa pretranslate()
890
- */
891
- template<typename Scalar, int Dim, int Mode, int Options>
892
- template<typename OtherDerived>
893
- EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
894
- Transform<Scalar,Dim,Mode,Options>::translate(const MatrixBase<OtherDerived> &other)
895
- {
896
- EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(OtherDerived,int(Dim))
897
- translationExt() += linearExt() * other;
898
- return *this;
899
- }
900
-
901
- /** Applies on the left the translation matrix represented by the vector \a other
902
- * to \c *this and returns a reference to \c *this.
903
- * \sa translate()
904
- */
905
- template<typename Scalar, int Dim, int Mode, int Options>
906
- template<typename OtherDerived>
907
- EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
908
- Transform<Scalar,Dim,Mode,Options>::pretranslate(const MatrixBase<OtherDerived> &other)
909
- {
910
- EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(OtherDerived,int(Dim))
911
- if(EIGEN_CONST_CONDITIONAL(int(Mode)==int(Projective)))
912
- affine() += other * m_matrix.row(Dim);
913
- else
914
- translation() += other;
915
- return *this;
916
- }
917
-
918
- /** Applies on the right the rotation represented by the rotation \a rotation
919
- * to \c *this and returns a reference to \c *this.
920
- *
921
- * The template parameter \a RotationType is the type of the rotation which
922
- * must be known by internal::toRotationMatrix<>.
923
- *
924
- * Natively supported types includes:
925
- * - any scalar (2D),
926
- * - a Dim x Dim matrix expression,
927
- * - a Quaternion (3D),
928
- * - a AngleAxis (3D)
929
- *
930
- * This mechanism is easily extendable to support user types such as Euler angles,
931
- * or a pair of Quaternion for 4D rotations.
932
- *
933
- * \sa rotate(Scalar), class Quaternion, class AngleAxis, prerotate(RotationType)
934
- */
935
- template<typename Scalar, int Dim, int Mode, int Options>
936
- template<typename RotationType>
937
- EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
938
- Transform<Scalar,Dim,Mode,Options>::rotate(const RotationType& rotation)
939
- {
940
- linearExt() *= internal::toRotationMatrix<Scalar,Dim>(rotation);
941
- return *this;
942
- }
943
-
944
- /** Applies on the left the rotation represented by the rotation \a rotation
945
- * to \c *this and returns a reference to \c *this.
946
- *
947
- * See rotate() for further details.
948
- *
949
- * \sa rotate()
950
- */
951
- template<typename Scalar, int Dim, int Mode, int Options>
952
- template<typename RotationType>
953
- EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
954
- Transform<Scalar,Dim,Mode,Options>::prerotate(const RotationType& rotation)
955
- {
956
- m_matrix.template block<Dim,HDim>(0,0) = internal::toRotationMatrix<Scalar,Dim>(rotation)
957
- * m_matrix.template block<Dim,HDim>(0,0);
958
- return *this;
959
- }
960
-
961
- /** Applies on the right the shear transformation represented
962
- * by the vector \a other to \c *this and returns a reference to \c *this.
963
- * \warning 2D only.
964
- * \sa preshear()
965
- */
966
- template<typename Scalar, int Dim, int Mode, int Options>
967
- EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
968
- Transform<Scalar,Dim,Mode,Options>::shear(const Scalar& sx, const Scalar& sy)
969
- {
970
- EIGEN_STATIC_ASSERT(int(Dim)==2, YOU_MADE_A_PROGRAMMING_MISTAKE)
971
- EIGEN_STATIC_ASSERT(Mode!=int(Isometry), THIS_METHOD_IS_ONLY_FOR_SPECIFIC_TRANSFORMATIONS)
972
- VectorType tmp = linear().col(0)*sy + linear().col(1);
973
- linear() << linear().col(0) + linear().col(1)*sx, tmp;
974
- return *this;
975
- }
976
-
977
- /** Applies on the left the shear transformation represented
978
- * by the vector \a other to \c *this and returns a reference to \c *this.
979
- * \warning 2D only.
980
- * \sa shear()
981
- */
982
- template<typename Scalar, int Dim, int Mode, int Options>
983
- EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
984
- Transform<Scalar,Dim,Mode,Options>::preshear(const Scalar& sx, const Scalar& sy)
985
- {
986
- EIGEN_STATIC_ASSERT(int(Dim)==2, YOU_MADE_A_PROGRAMMING_MISTAKE)
987
- EIGEN_STATIC_ASSERT(Mode!=int(Isometry), THIS_METHOD_IS_ONLY_FOR_SPECIFIC_TRANSFORMATIONS)
988
- m_matrix.template block<Dim,HDim>(0,0) = LinearMatrixType(1, sx, sy, 1) * m_matrix.template block<Dim,HDim>(0,0);
989
- return *this;
990
- }
991
-
992
- /******************************************************
993
- *** Scaling, Translation and Rotation compatibility ***
994
- ******************************************************/
995
-
996
- template<typename Scalar, int Dim, int Mode, int Options>
997
- EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::operator=(const TranslationType& t)
998
- {
999
- linear().setIdentity();
1000
- translation() = t.vector();
1001
- makeAffine();
1002
- return *this;
1003
- }
1004
-
1005
- template<typename Scalar, int Dim, int Mode, int Options>
1006
- EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options> Transform<Scalar,Dim,Mode,Options>::operator*(const TranslationType& t) const
1007
- {
1008
- Transform res = *this;
1009
- res.translate(t.vector());
1010
- return res;
1011
- }
1012
-
1013
- template<typename Scalar, int Dim, int Mode, int Options>
1014
- EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::operator=(const UniformScaling<Scalar>& s)
1015
- {
1016
- m_matrix.setZero();
1017
- linear().diagonal().fill(s.factor());
1018
- makeAffine();
1019
- return *this;
1020
- }
1021
-
1022
- template<typename Scalar, int Dim, int Mode, int Options>
1023
- template<typename Derived>
1024
- EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::operator=(const RotationBase<Derived,Dim>& r)
1025
- {
1026
- linear() = internal::toRotationMatrix<Scalar,Dim>(r);
1027
- translation().setZero();
1028
- makeAffine();
1029
- return *this;
1030
- }
1031
-
1032
- template<typename Scalar, int Dim, int Mode, int Options>
1033
- template<typename Derived>
1034
- EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options> Transform<Scalar,Dim,Mode,Options>::operator*(const RotationBase<Derived,Dim>& r) const
1035
- {
1036
- Transform res = *this;
1037
- res.rotate(r.derived());
1038
- return res;
1039
- }
1040
-
1041
- /************************
1042
- *** Special functions ***
1043
- ************************/
1044
-
1045
- namespace internal {
1046
- template<int Mode> struct transform_rotation_impl {
1047
- template<typename TransformType>
1048
- EIGEN_DEVICE_FUNC static inline
1049
- const typename TransformType::LinearMatrixType run(const TransformType& t)
1050
- {
1051
- typedef typename TransformType::LinearMatrixType LinearMatrixType;
1052
- LinearMatrixType result;
1053
- t.computeRotationScaling(&result, (LinearMatrixType*)0);
1054
- return result;
1055
- }
1056
- };
1057
- template<> struct transform_rotation_impl<Isometry> {
1058
- template<typename TransformType>
1059
- EIGEN_DEVICE_FUNC static inline
1060
- typename TransformType::ConstLinearPart run(const TransformType& t)
1061
- {
1062
- return t.linear();
1063
- }
1064
- };
1065
- }
1066
- /** \returns the rotation part of the transformation
1067
- *
1068
- * If Mode==Isometry, then this method is an alias for linear(),
1069
- * otherwise it calls computeRotationScaling() to extract the rotation
1070
- * through a SVD decomposition.
1071
- *
1072
- * \svd_module
1073
- *
1074
- * \sa computeRotationScaling(), computeScalingRotation(), class SVD
1075
- */
1076
- template<typename Scalar, int Dim, int Mode, int Options>
1077
- EIGEN_DEVICE_FUNC
1078
- typename Transform<Scalar,Dim,Mode,Options>::RotationReturnType
1079
- Transform<Scalar,Dim,Mode,Options>::rotation() const
1080
- {
1081
- return internal::transform_rotation_impl<Mode>::run(*this);
1082
- }
1083
-
1084
-
1085
- /** decomposes the linear part of the transformation as a product rotation x scaling, the scaling being
1086
- * not necessarily positive.
1087
- *
1088
- * If either pointer is zero, the corresponding computation is skipped.
1089
- *
1090
- *
1091
- *
1092
- * \svd_module
1093
- *
1094
- * \sa computeScalingRotation(), rotation(), class SVD
1095
- */
1096
- template<typename Scalar, int Dim, int Mode, int Options>
1097
- template<typename RotationMatrixType, typename ScalingMatrixType>
1098
- EIGEN_DEVICE_FUNC void Transform<Scalar,Dim,Mode,Options>::computeRotationScaling(RotationMatrixType *rotation, ScalingMatrixType *scaling) const
1099
- {
1100
- // Note that JacobiSVD is faster than BDCSVD for small matrices.
1101
- JacobiSVD<LinearMatrixType> svd(linear(), ComputeFullU | ComputeFullV);
1102
-
1103
- Scalar x = (svd.matrixU() * svd.matrixV().adjoint()).determinant() < Scalar(0) ? Scalar(-1) : Scalar(1); // so x has absolute value 1
1104
- VectorType sv(svd.singularValues());
1105
- sv.coeffRef(Dim-1) *= x;
1106
- if(scaling) *scaling = svd.matrixV() * sv.asDiagonal() * svd.matrixV().adjoint();
1107
- if(rotation)
1108
- {
1109
- LinearMatrixType m(svd.matrixU());
1110
- m.col(Dim-1) *= x;
1111
- *rotation = m * svd.matrixV().adjoint();
1112
- }
1113
- }
1114
-
1115
- /** decomposes the linear part of the transformation as a product scaling x rotation, the scaling being
1116
- * not necessarily positive.
1117
- *
1118
- * If either pointer is zero, the corresponding computation is skipped.
1119
- *
1120
- *
1121
- *
1122
- * \svd_module
1123
- *
1124
- * \sa computeRotationScaling(), rotation(), class SVD
1125
- */
1126
- template<typename Scalar, int Dim, int Mode, int Options>
1127
- template<typename ScalingMatrixType, typename RotationMatrixType>
1128
- EIGEN_DEVICE_FUNC void Transform<Scalar,Dim,Mode,Options>::computeScalingRotation(ScalingMatrixType *scaling, RotationMatrixType *rotation) const
1129
- {
1130
- // Note that JacobiSVD is faster than BDCSVD for small matrices.
1131
- JacobiSVD<LinearMatrixType> svd(linear(), ComputeFullU | ComputeFullV);
1132
-
1133
- Scalar x = (svd.matrixU() * svd.matrixV().adjoint()).determinant() < Scalar(0) ? Scalar(-1) : Scalar(1); // so x has absolute value 1
1134
- VectorType sv(svd.singularValues());
1135
- sv.coeffRef(Dim-1) *= x;
1136
- if(scaling) *scaling = svd.matrixU() * sv.asDiagonal() * svd.matrixU().adjoint();
1137
- if(rotation)
1138
- {
1139
- LinearMatrixType m(svd.matrixU());
1140
- m.col(Dim-1) *= x;
1141
- *rotation = m * svd.matrixV().adjoint();
1142
- }
1143
- }
1144
-
1145
- /** Convenient method to set \c *this from a position, orientation and scale
1146
- * of a 3D object.
1147
- */
1148
- template<typename Scalar, int Dim, int Mode, int Options>
1149
- template<typename PositionDerived, typename OrientationType, typename ScaleDerived>
1150
- EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
1151
- Transform<Scalar,Dim,Mode,Options>::fromPositionOrientationScale(const MatrixBase<PositionDerived> &position,
1152
- const OrientationType& orientation, const MatrixBase<ScaleDerived> &scale)
1153
- {
1154
- linear() = internal::toRotationMatrix<Scalar,Dim>(orientation);
1155
- linear() *= scale.asDiagonal();
1156
- translation() = position;
1157
- makeAffine();
1158
- return *this;
1159
- }
1160
-
1161
- namespace internal {
1162
-
1163
- template<int Mode>
1164
- struct transform_make_affine
1165
- {
1166
- template<typename MatrixType>
1167
- EIGEN_DEVICE_FUNC static void run(MatrixType &mat)
1168
- {
1169
- static const int Dim = MatrixType::ColsAtCompileTime-1;
1170
- mat.template block<1,Dim>(Dim,0).setZero();
1171
- mat.coeffRef(Dim,Dim) = typename MatrixType::Scalar(1);
1172
- }
1173
- };
1174
-
1175
- template<>
1176
- struct transform_make_affine<AffineCompact>
1177
- {
1178
- template<typename MatrixType> EIGEN_DEVICE_FUNC static void run(MatrixType &) { }
1179
- };
1180
-
1181
- // selector needed to avoid taking the inverse of a 3x4 matrix
1182
- template<typename TransformType, int Mode=TransformType::Mode>
1183
- struct projective_transform_inverse
1184
- {
1185
- EIGEN_DEVICE_FUNC static inline void run(const TransformType&, TransformType&)
1186
- {}
1187
- };
1188
-
1189
- template<typename TransformType>
1190
- struct projective_transform_inverse<TransformType, Projective>
1191
- {
1192
- EIGEN_DEVICE_FUNC static inline void run(const TransformType& m, TransformType& res)
1193
- {
1194
- res.matrix() = m.matrix().inverse();
1195
- }
1196
- };
1197
-
1198
- } // end namespace internal
1199
-
1200
-
1201
- /**
1202
- *
1203
- * \returns the inverse transformation according to some given knowledge
1204
- * on \c *this.
1205
- *
1206
- * \param hint allows to optimize the inversion process when the transformation
1207
- * is known to be not a general transformation (optional). The possible values are:
1208
- * - #Projective if the transformation is not necessarily affine, i.e., if the
1209
- * last row is not guaranteed to be [0 ... 0 1]
1210
- * - #Affine if the last row can be assumed to be [0 ... 0 1]
1211
- * - #Isometry if the transformation is only a concatenations of translations
1212
- * and rotations.
1213
- * The default is the template class parameter \c Mode.
1214
- *
1215
- * \warning unless \a traits is always set to NoShear or NoScaling, this function
1216
- * requires the generic inverse method of MatrixBase defined in the LU module. If
1217
- * you forget to include this module, then you will get hard to debug linking errors.
1218
- *
1219
- * \sa MatrixBase::inverse()
1220
- */
1221
- template<typename Scalar, int Dim, int Mode, int Options>
1222
- EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>
1223
- Transform<Scalar,Dim,Mode,Options>::inverse(TransformTraits hint) const
1224
- {
1225
- Transform res;
1226
- if (hint == Projective)
1227
- {
1228
- internal::projective_transform_inverse<Transform>::run(*this, res);
1229
- }
1230
- else
1231
- {
1232
- if (hint == Isometry)
1233
- {
1234
- res.matrix().template topLeftCorner<Dim,Dim>() = linear().transpose();
1235
- }
1236
- else if(hint&Affine)
1237
- {
1238
- res.matrix().template topLeftCorner<Dim,Dim>() = linear().inverse();
1239
- }
1240
- else
1241
- {
1242
- eigen_assert(false && "Invalid transform traits in Transform::Inverse");
1243
- }
1244
- // translation and remaining parts
1245
- res.matrix().template topRightCorner<Dim,1>()
1246
- = - res.matrix().template topLeftCorner<Dim,Dim>() * translation();
1247
- res.makeAffine(); // we do need this, because in the beginning res is uninitialized
1248
- }
1249
- return res;
1250
- }
1251
-
1252
- namespace internal {
1253
-
1254
- /*****************************************************
1255
- *** Specializations of take affine part ***
1256
- *****************************************************/
1257
-
1258
- template<typename TransformType> struct transform_take_affine_part {
1259
- typedef typename TransformType::MatrixType MatrixType;
1260
- typedef typename TransformType::AffinePart AffinePart;
1261
- typedef typename TransformType::ConstAffinePart ConstAffinePart;
1262
- static inline AffinePart run(MatrixType& m)
1263
- { return m.template block<TransformType::Dim,TransformType::HDim>(0,0); }
1264
- static inline ConstAffinePart run(const MatrixType& m)
1265
- { return m.template block<TransformType::Dim,TransformType::HDim>(0,0); }
1266
- };
1267
-
1268
- template<typename Scalar, int Dim, int Options>
1269
- struct transform_take_affine_part<Transform<Scalar,Dim,AffineCompact, Options> > {
1270
- typedef typename Transform<Scalar,Dim,AffineCompact,Options>::MatrixType MatrixType;
1271
- static inline MatrixType& run(MatrixType& m) { return m; }
1272
- static inline const MatrixType& run(const MatrixType& m) { return m; }
1273
- };
1274
-
1275
- /*****************************************************
1276
- *** Specializations of construct from matrix ***
1277
- *****************************************************/
1278
-
1279
- template<typename Other, int Mode, int Options, int Dim, int HDim>
1280
- struct transform_construct_from_matrix<Other, Mode,Options,Dim,HDim, Dim,Dim>
1281
- {
1282
- static inline void run(Transform<typename Other::Scalar,Dim,Mode,Options> *transform, const Other& other)
1283
- {
1284
- transform->linear() = other;
1285
- transform->translation().setZero();
1286
- transform->makeAffine();
1287
- }
1288
- };
1289
-
1290
- template<typename Other, int Mode, int Options, int Dim, int HDim>
1291
- struct transform_construct_from_matrix<Other, Mode,Options,Dim,HDim, Dim,HDim>
1292
- {
1293
- static inline void run(Transform<typename Other::Scalar,Dim,Mode,Options> *transform, const Other& other)
1294
- {
1295
- transform->affine() = other;
1296
- transform->makeAffine();
1297
- }
1298
- };
1299
-
1300
- template<typename Other, int Mode, int Options, int Dim, int HDim>
1301
- struct transform_construct_from_matrix<Other, Mode,Options,Dim,HDim, HDim,HDim>
1302
- {
1303
- static inline void run(Transform<typename Other::Scalar,Dim,Mode,Options> *transform, const Other& other)
1304
- { transform->matrix() = other; }
1305
- };
1306
-
1307
- template<typename Other, int Options, int Dim, int HDim>
1308
- struct transform_construct_from_matrix<Other, AffineCompact,Options,Dim,HDim, HDim,HDim>
1309
- {
1310
- static inline void run(Transform<typename Other::Scalar,Dim,AffineCompact,Options> *transform, const Other& other)
1311
- { transform->matrix() = other.template block<Dim,HDim>(0,0); }
1312
- };
1313
-
1314
- /**********************************************************
1315
- *** Specializations of operator* with rhs EigenBase ***
1316
- **********************************************************/
1317
-
1318
- template<int LhsMode,int RhsMode>
1319
- struct transform_product_result
1320
- {
1321
- enum
1322
- {
1323
- Mode =
1324
- (LhsMode == (int)Projective || RhsMode == (int)Projective ) ? Projective :
1325
- (LhsMode == (int)Affine || RhsMode == (int)Affine ) ? Affine :
1326
- (LhsMode == (int)AffineCompact || RhsMode == (int)AffineCompact ) ? AffineCompact :
1327
- (LhsMode == (int)Isometry || RhsMode == (int)Isometry ) ? Isometry : Projective
1328
- };
1329
- };
1330
-
1331
- template< typename TransformType, typename MatrixType, int RhsCols>
1332
- struct transform_right_product_impl< TransformType, MatrixType, 0, RhsCols>
1333
- {
1334
- typedef typename MatrixType::PlainObject ResultType;
1335
-
1336
- static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ResultType run(const TransformType& T, const MatrixType& other)
1337
- {
1338
- return T.matrix() * other;
1339
- }
1340
- };
1341
-
1342
- template< typename TransformType, typename MatrixType, int RhsCols>
1343
- struct transform_right_product_impl< TransformType, MatrixType, 1, RhsCols>
1344
- {
1345
- enum {
1346
- Dim = TransformType::Dim,
1347
- HDim = TransformType::HDim,
1348
- OtherRows = MatrixType::RowsAtCompileTime,
1349
- OtherCols = MatrixType::ColsAtCompileTime
1350
- };
1351
-
1352
- typedef typename MatrixType::PlainObject ResultType;
1353
-
1354
- static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ResultType run(const TransformType& T, const MatrixType& other)
1355
- {
1356
- EIGEN_STATIC_ASSERT(OtherRows==HDim, YOU_MIXED_MATRICES_OF_DIFFERENT_SIZES);
1357
-
1358
- typedef Block<ResultType, Dim, OtherCols, int(MatrixType::RowsAtCompileTime)==Dim> TopLeftLhs;
1359
-
1360
- ResultType res(other.rows(),other.cols());
1361
- TopLeftLhs(res, 0, 0, Dim, other.cols()).noalias() = T.affine() * other;
1362
- res.row(OtherRows-1) = other.row(OtherRows-1);
1363
-
1364
- return res;
1365
- }
1366
- };
1367
-
1368
- template< typename TransformType, typename MatrixType, int RhsCols>
1369
- struct transform_right_product_impl< TransformType, MatrixType, 2, RhsCols>
1370
- {
1371
- enum {
1372
- Dim = TransformType::Dim,
1373
- HDim = TransformType::HDim,
1374
- OtherRows = MatrixType::RowsAtCompileTime,
1375
- OtherCols = MatrixType::ColsAtCompileTime
1376
- };
1377
-
1378
- typedef typename MatrixType::PlainObject ResultType;
1379
-
1380
- static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ResultType run(const TransformType& T, const MatrixType& other)
1381
- {
1382
- EIGEN_STATIC_ASSERT(OtherRows==Dim, YOU_MIXED_MATRICES_OF_DIFFERENT_SIZES);
1383
-
1384
- typedef Block<ResultType, Dim, OtherCols, true> TopLeftLhs;
1385
- ResultType res(Replicate<typename TransformType::ConstTranslationPart, 1, OtherCols>(T.translation(),1,other.cols()));
1386
- TopLeftLhs(res, 0, 0, Dim, other.cols()).noalias() += T.linear() * other;
1387
-
1388
- return res;
1389
- }
1390
- };
1391
-
1392
- template< typename TransformType, typename MatrixType >
1393
- struct transform_right_product_impl< TransformType, MatrixType, 2, 1> // rhs is a vector of size Dim
1394
- {
1395
- typedef typename TransformType::MatrixType TransformMatrix;
1396
- enum {
1397
- Dim = TransformType::Dim,
1398
- HDim = TransformType::HDim,
1399
- OtherRows = MatrixType::RowsAtCompileTime,
1400
- WorkingRows = EIGEN_PLAIN_ENUM_MIN(TransformMatrix::RowsAtCompileTime,HDim)
1401
- };
1402
-
1403
- typedef typename MatrixType::PlainObject ResultType;
1404
-
1405
- static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ResultType run(const TransformType& T, const MatrixType& other)
1406
- {
1407
- EIGEN_STATIC_ASSERT(OtherRows==Dim, YOU_MIXED_MATRICES_OF_DIFFERENT_SIZES);
1408
-
1409
- Matrix<typename ResultType::Scalar, Dim+1, 1> rhs;
1410
- rhs.template head<Dim>() = other; rhs[Dim] = typename ResultType::Scalar(1);
1411
- Matrix<typename ResultType::Scalar, WorkingRows, 1> res(T.matrix() * rhs);
1412
- return res.template head<Dim>();
1413
- }
1414
- };
1415
-
1416
- /**********************************************************
1417
- *** Specializations of operator* with lhs EigenBase ***
1418
- **********************************************************/
1419
-
1420
- // generic HDim x HDim matrix * T => Projective
1421
- template<typename Other,int Mode, int Options, int Dim, int HDim>
1422
- struct transform_left_product_impl<Other,Mode,Options,Dim,HDim, HDim,HDim>
1423
- {
1424
- typedef Transform<typename Other::Scalar,Dim,Mode,Options> TransformType;
1425
- typedef typename TransformType::MatrixType MatrixType;
1426
- typedef Transform<typename Other::Scalar,Dim,Projective,Options> ResultType;
1427
- static ResultType run(const Other& other,const TransformType& tr)
1428
- { return ResultType(other * tr.matrix()); }
1429
- };
1430
-
1431
- // generic HDim x HDim matrix * AffineCompact => Projective
1432
- template<typename Other, int Options, int Dim, int HDim>
1433
- struct transform_left_product_impl<Other,AffineCompact,Options,Dim,HDim, HDim,HDim>
1434
- {
1435
- typedef Transform<typename Other::Scalar,Dim,AffineCompact,Options> TransformType;
1436
- typedef typename TransformType::MatrixType MatrixType;
1437
- typedef Transform<typename Other::Scalar,Dim,Projective,Options> ResultType;
1438
- static ResultType run(const Other& other,const TransformType& tr)
1439
- {
1440
- ResultType res;
1441
- res.matrix().noalias() = other.template block<HDim,Dim>(0,0) * tr.matrix();
1442
- res.matrix().col(Dim) += other.col(Dim);
1443
- return res;
1444
- }
1445
- };
1446
-
1447
- // affine matrix * T
1448
- template<typename Other,int Mode, int Options, int Dim, int HDim>
1449
- struct transform_left_product_impl<Other,Mode,Options,Dim,HDim, Dim,HDim>
1450
- {
1451
- typedef Transform<typename Other::Scalar,Dim,Mode,Options> TransformType;
1452
- typedef typename TransformType::MatrixType MatrixType;
1453
- typedef TransformType ResultType;
1454
- static ResultType run(const Other& other,const TransformType& tr)
1455
- {
1456
- ResultType res;
1457
- res.affine().noalias() = other * tr.matrix();
1458
- res.matrix().row(Dim) = tr.matrix().row(Dim);
1459
- return res;
1460
- }
1461
- };
1462
-
1463
- // affine matrix * AffineCompact
1464
- template<typename Other, int Options, int Dim, int HDim>
1465
- struct transform_left_product_impl<Other,AffineCompact,Options,Dim,HDim, Dim,HDim>
1466
- {
1467
- typedef Transform<typename Other::Scalar,Dim,AffineCompact,Options> TransformType;
1468
- typedef typename TransformType::MatrixType MatrixType;
1469
- typedef TransformType ResultType;
1470
- static ResultType run(const Other& other,const TransformType& tr)
1471
- {
1472
- ResultType res;
1473
- res.matrix().noalias() = other.template block<Dim,Dim>(0,0) * tr.matrix();
1474
- res.translation() += other.col(Dim);
1475
- return res;
1476
- }
1477
- };
1478
-
1479
- // linear matrix * T
1480
- template<typename Other,int Mode, int Options, int Dim, int HDim>
1481
- struct transform_left_product_impl<Other,Mode,Options,Dim,HDim, Dim,Dim>
1482
- {
1483
- typedef Transform<typename Other::Scalar,Dim,Mode,Options> TransformType;
1484
- typedef typename TransformType::MatrixType MatrixType;
1485
- typedef TransformType ResultType;
1486
- static ResultType run(const Other& other, const TransformType& tr)
1487
- {
1488
- TransformType res;
1489
- if(Mode!=int(AffineCompact))
1490
- res.matrix().row(Dim) = tr.matrix().row(Dim);
1491
- res.matrix().template topRows<Dim>().noalias()
1492
- = other * tr.matrix().template topRows<Dim>();
1493
- return res;
1494
- }
1495
- };
1496
-
1497
- /**********************************************************
1498
- *** Specializations of operator* with another Transform ***
1499
- **********************************************************/
1500
-
1501
- template<typename Scalar, int Dim, int LhsMode, int LhsOptions, int RhsMode, int RhsOptions>
1502
- struct transform_transform_product_impl<Transform<Scalar,Dim,LhsMode,LhsOptions>,Transform<Scalar,Dim,RhsMode,RhsOptions>,false >
1503
- {
1504
- enum { ResultMode = transform_product_result<LhsMode,RhsMode>::Mode };
1505
- typedef Transform<Scalar,Dim,LhsMode,LhsOptions> Lhs;
1506
- typedef Transform<Scalar,Dim,RhsMode,RhsOptions> Rhs;
1507
- typedef Transform<Scalar,Dim,ResultMode,LhsOptions> ResultType;
1508
- static ResultType run(const Lhs& lhs, const Rhs& rhs)
1509
- {
1510
- ResultType res;
1511
- res.linear() = lhs.linear() * rhs.linear();
1512
- res.translation() = lhs.linear() * rhs.translation() + lhs.translation();
1513
- res.makeAffine();
1514
- return res;
1515
- }
1516
- };
1517
-
1518
- template<typename Scalar, int Dim, int LhsMode, int LhsOptions, int RhsMode, int RhsOptions>
1519
- struct transform_transform_product_impl<Transform<Scalar,Dim,LhsMode,LhsOptions>,Transform<Scalar,Dim,RhsMode,RhsOptions>,true >
1520
- {
1521
- typedef Transform<Scalar,Dim,LhsMode,LhsOptions> Lhs;
1522
- typedef Transform<Scalar,Dim,RhsMode,RhsOptions> Rhs;
1523
- typedef Transform<Scalar,Dim,Projective> ResultType;
1524
- static ResultType run(const Lhs& lhs, const Rhs& rhs)
1525
- {
1526
- return ResultType( lhs.matrix() * rhs.matrix() );
1527
- }
1528
- };
1529
-
1530
- template<typename Scalar, int Dim, int LhsOptions, int RhsOptions>
1531
- struct transform_transform_product_impl<Transform<Scalar,Dim,AffineCompact,LhsOptions>,Transform<Scalar,Dim,Projective,RhsOptions>,true >
1532
- {
1533
- typedef Transform<Scalar,Dim,AffineCompact,LhsOptions> Lhs;
1534
- typedef Transform<Scalar,Dim,Projective,RhsOptions> Rhs;
1535
- typedef Transform<Scalar,Dim,Projective> ResultType;
1536
- static ResultType run(const Lhs& lhs, const Rhs& rhs)
1537
- {
1538
- ResultType res;
1539
- res.matrix().template topRows<Dim>() = lhs.matrix() * rhs.matrix();
1540
- res.matrix().row(Dim) = rhs.matrix().row(Dim);
1541
- return res;
1542
- }
1543
- };
1544
-
1545
- template<typename Scalar, int Dim, int LhsOptions, int RhsOptions>
1546
- struct transform_transform_product_impl<Transform<Scalar,Dim,Projective,LhsOptions>,Transform<Scalar,Dim,AffineCompact,RhsOptions>,true >
1547
- {
1548
- typedef Transform<Scalar,Dim,Projective,LhsOptions> Lhs;
1549
- typedef Transform<Scalar,Dim,AffineCompact,RhsOptions> Rhs;
1550
- typedef Transform<Scalar,Dim,Projective> ResultType;
1551
- static ResultType run(const Lhs& lhs, const Rhs& rhs)
1552
- {
1553
- ResultType res(lhs.matrix().template leftCols<Dim>() * rhs.matrix());
1554
- res.matrix().col(Dim) += lhs.matrix().col(Dim);
1555
- return res;
1556
- }
1557
- };
1558
-
1559
- } // end namespace internal
1560
-
1561
- } // end namespace Eigen
1562
-
1563
- #endif // EIGEN_TRANSFORM_H