pyvale 2026.1.1__cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.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.
- include/eigen3/Eigen/Cholesky +45 -0
- include/eigen3/Eigen/CholmodSupport +48 -0
- include/eigen3/Eigen/Core +384 -0
- include/eigen3/Eigen/Dense +7 -0
- include/eigen3/Eigen/Eigen +2 -0
- include/eigen3/Eigen/Eigenvalues +60 -0
- include/eigen3/Eigen/Geometry +59 -0
- include/eigen3/Eigen/Householder +29 -0
- include/eigen3/Eigen/IterativeLinearSolvers +48 -0
- include/eigen3/Eigen/Jacobi +32 -0
- include/eigen3/Eigen/KLUSupport +41 -0
- include/eigen3/Eigen/LU +47 -0
- include/eigen3/Eigen/MetisSupport +35 -0
- include/eigen3/Eigen/OrderingMethods +70 -0
- include/eigen3/Eigen/PaStiXSupport +49 -0
- include/eigen3/Eigen/PardisoSupport +35 -0
- include/eigen3/Eigen/QR +50 -0
- include/eigen3/Eigen/QtAlignedMalloc +39 -0
- include/eigen3/Eigen/SPQRSupport +34 -0
- include/eigen3/Eigen/SVD +50 -0
- include/eigen3/Eigen/Sparse +34 -0
- include/eigen3/Eigen/SparseCholesky +37 -0
- include/eigen3/Eigen/SparseCore +69 -0
- include/eigen3/Eigen/SparseLU +50 -0
- include/eigen3/Eigen/SparseQR +36 -0
- include/eigen3/Eigen/StdDeque +27 -0
- include/eigen3/Eigen/StdList +26 -0
- include/eigen3/Eigen/StdVector +27 -0
- include/eigen3/Eigen/SuperLUSupport +64 -0
- include/eigen3/Eigen/UmfPackSupport +40 -0
- include/eigen3/Eigen/src/Cholesky/LDLT.h +688 -0
- include/eigen3/Eigen/src/Cholesky/LLT.h +558 -0
- include/eigen3/Eigen/src/Cholesky/LLT_LAPACKE.h +99 -0
- include/eigen3/Eigen/src/CholmodSupport/CholmodSupport.h +682 -0
- include/eigen3/Eigen/src/Core/ArithmeticSequence.h +413 -0
- include/eigen3/Eigen/src/Core/Array.h +417 -0
- include/eigen3/Eigen/src/Core/ArrayBase.h +226 -0
- include/eigen3/Eigen/src/Core/ArrayWrapper.h +209 -0
- include/eigen3/Eigen/src/Core/Assign.h +90 -0
- include/eigen3/Eigen/src/Core/AssignEvaluator.h +1010 -0
- include/eigen3/Eigen/src/Core/Assign_MKL.h +178 -0
- include/eigen3/Eigen/src/Core/BandMatrix.h +353 -0
- include/eigen3/Eigen/src/Core/Block.h +448 -0
- include/eigen3/Eigen/src/Core/BooleanRedux.h +162 -0
- include/eigen3/Eigen/src/Core/CommaInitializer.h +164 -0
- include/eigen3/Eigen/src/Core/ConditionEstimator.h +175 -0
- include/eigen3/Eigen/src/Core/CoreEvaluators.h +1741 -0
- include/eigen3/Eigen/src/Core/CoreIterators.h +132 -0
- include/eigen3/Eigen/src/Core/CwiseBinaryOp.h +183 -0
- include/eigen3/Eigen/src/Core/CwiseNullaryOp.h +1001 -0
- include/eigen3/Eigen/src/Core/CwiseTernaryOp.h +197 -0
- include/eigen3/Eigen/src/Core/CwiseUnaryOp.h +103 -0
- include/eigen3/Eigen/src/Core/CwiseUnaryView.h +132 -0
- include/eigen3/Eigen/src/Core/DenseBase.h +701 -0
- include/eigen3/Eigen/src/Core/DenseCoeffsBase.h +685 -0
- include/eigen3/Eigen/src/Core/DenseStorage.h +652 -0
- include/eigen3/Eigen/src/Core/Diagonal.h +258 -0
- include/eigen3/Eigen/src/Core/DiagonalMatrix.h +391 -0
- include/eigen3/Eigen/src/Core/DiagonalProduct.h +28 -0
- include/eigen3/Eigen/src/Core/Dot.h +318 -0
- include/eigen3/Eigen/src/Core/EigenBase.h +160 -0
- include/eigen3/Eigen/src/Core/ForceAlignedAccess.h +150 -0
- include/eigen3/Eigen/src/Core/Fuzzy.h +155 -0
- include/eigen3/Eigen/src/Core/GeneralProduct.h +465 -0
- include/eigen3/Eigen/src/Core/GenericPacketMath.h +1040 -0
- include/eigen3/Eigen/src/Core/GlobalFunctions.h +194 -0
- include/eigen3/Eigen/src/Core/IO.h +258 -0
- include/eigen3/Eigen/src/Core/IndexedView.h +237 -0
- include/eigen3/Eigen/src/Core/Inverse.h +117 -0
- include/eigen3/Eigen/src/Core/Map.h +171 -0
- include/eigen3/Eigen/src/Core/MapBase.h +310 -0
- include/eigen3/Eigen/src/Core/MathFunctions.h +2057 -0
- include/eigen3/Eigen/src/Core/MathFunctionsImpl.h +200 -0
- include/eigen3/Eigen/src/Core/Matrix.h +565 -0
- include/eigen3/Eigen/src/Core/MatrixBase.h +547 -0
- include/eigen3/Eigen/src/Core/NestByValue.h +85 -0
- include/eigen3/Eigen/src/Core/NoAlias.h +109 -0
- include/eigen3/Eigen/src/Core/NumTraits.h +335 -0
- include/eigen3/Eigen/src/Core/PartialReduxEvaluator.h +232 -0
- include/eigen3/Eigen/src/Core/PermutationMatrix.h +605 -0
- include/eigen3/Eigen/src/Core/PlainObjectBase.h +1128 -0
- include/eigen3/Eigen/src/Core/Product.h +191 -0
- include/eigen3/Eigen/src/Core/ProductEvaluators.h +1179 -0
- include/eigen3/Eigen/src/Core/Random.h +218 -0
- include/eigen3/Eigen/src/Core/Redux.h +515 -0
- include/eigen3/Eigen/src/Core/Ref.h +381 -0
- include/eigen3/Eigen/src/Core/Replicate.h +142 -0
- include/eigen3/Eigen/src/Core/Reshaped.h +454 -0
- include/eigen3/Eigen/src/Core/ReturnByValue.h +119 -0
- include/eigen3/Eigen/src/Core/Reverse.h +217 -0
- include/eigen3/Eigen/src/Core/Select.h +164 -0
- include/eigen3/Eigen/src/Core/SelfAdjointView.h +365 -0
- include/eigen3/Eigen/src/Core/SelfCwiseBinaryOp.h +47 -0
- include/eigen3/Eigen/src/Core/Solve.h +188 -0
- include/eigen3/Eigen/src/Core/SolveTriangular.h +235 -0
- include/eigen3/Eigen/src/Core/SolverBase.h +168 -0
- include/eigen3/Eigen/src/Core/StableNorm.h +251 -0
- include/eigen3/Eigen/src/Core/StlIterators.h +463 -0
- include/eigen3/Eigen/src/Core/Stride.h +116 -0
- include/eigen3/Eigen/src/Core/Swap.h +68 -0
- include/eigen3/Eigen/src/Core/Transpose.h +464 -0
- include/eigen3/Eigen/src/Core/Transpositions.h +386 -0
- include/eigen3/Eigen/src/Core/TriangularMatrix.h +1001 -0
- include/eigen3/Eigen/src/Core/VectorBlock.h +96 -0
- include/eigen3/Eigen/src/Core/VectorwiseOp.h +784 -0
- include/eigen3/Eigen/src/Core/Visitor.h +381 -0
- include/eigen3/Eigen/src/Core/arch/AVX/Complex.h +372 -0
- include/eigen3/Eigen/src/Core/arch/AVX/MathFunctions.h +228 -0
- include/eigen3/Eigen/src/Core/arch/AVX/PacketMath.h +1574 -0
- include/eigen3/Eigen/src/Core/arch/AVX/TypeCasting.h +115 -0
- include/eigen3/Eigen/src/Core/arch/AVX512/Complex.h +422 -0
- include/eigen3/Eigen/src/Core/arch/AVX512/MathFunctions.h +362 -0
- include/eigen3/Eigen/src/Core/arch/AVX512/PacketMath.h +2303 -0
- include/eigen3/Eigen/src/Core/arch/AVX512/TypeCasting.h +89 -0
- include/eigen3/Eigen/src/Core/arch/AltiVec/Complex.h +417 -0
- include/eigen3/Eigen/src/Core/arch/AltiVec/MathFunctions.h +90 -0
- include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProduct.h +2937 -0
- include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h +221 -0
- include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h +629 -0
- include/eigen3/Eigen/src/Core/arch/AltiVec/PacketMath.h +2711 -0
- include/eigen3/Eigen/src/Core/arch/CUDA/Complex.h +258 -0
- include/eigen3/Eigen/src/Core/arch/Default/BFloat16.h +700 -0
- include/eigen3/Eigen/src/Core/arch/Default/ConjHelper.h +117 -0
- include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +1649 -0
- include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctionsFwd.h +110 -0
- include/eigen3/Eigen/src/Core/arch/Default/Half.h +942 -0
- include/eigen3/Eigen/src/Core/arch/Default/Settings.h +49 -0
- include/eigen3/Eigen/src/Core/arch/Default/TypeCasting.h +120 -0
- include/eigen3/Eigen/src/Core/arch/GPU/MathFunctions.h +103 -0
- include/eigen3/Eigen/src/Core/arch/GPU/PacketMath.h +1685 -0
- include/eigen3/Eigen/src/Core/arch/GPU/TypeCasting.h +80 -0
- include/eigen3/Eigen/src/Core/arch/HIP/hcc/math_constants.h +23 -0
- include/eigen3/Eigen/src/Core/arch/MSA/Complex.h +648 -0
- include/eigen3/Eigen/src/Core/arch/MSA/MathFunctions.h +387 -0
- include/eigen3/Eigen/src/Core/arch/MSA/PacketMath.h +1233 -0
- include/eigen3/Eigen/src/Core/arch/NEON/Complex.h +584 -0
- include/eigen3/Eigen/src/Core/arch/NEON/GeneralBlockPanelKernel.h +183 -0
- include/eigen3/Eigen/src/Core/arch/NEON/MathFunctions.h +75 -0
- include/eigen3/Eigen/src/Core/arch/NEON/PacketMath.h +4587 -0
- include/eigen3/Eigen/src/Core/arch/NEON/TypeCasting.h +1419 -0
- include/eigen3/Eigen/src/Core/arch/SSE/Complex.h +351 -0
- include/eigen3/Eigen/src/Core/arch/SSE/MathFunctions.h +199 -0
- include/eigen3/Eigen/src/Core/arch/SSE/PacketMath.h +1505 -0
- include/eigen3/Eigen/src/Core/arch/SSE/TypeCasting.h +142 -0
- include/eigen3/Eigen/src/Core/arch/SVE/MathFunctions.h +44 -0
- include/eigen3/Eigen/src/Core/arch/SVE/PacketMath.h +752 -0
- include/eigen3/Eigen/src/Core/arch/SVE/TypeCasting.h +49 -0
- include/eigen3/Eigen/src/Core/arch/SYCL/InteropHeaders.h +232 -0
- include/eigen3/Eigen/src/Core/arch/SYCL/MathFunctions.h +301 -0
- include/eigen3/Eigen/src/Core/arch/SYCL/PacketMath.h +670 -0
- include/eigen3/Eigen/src/Core/arch/SYCL/SyclMemoryModel.h +694 -0
- include/eigen3/Eigen/src/Core/arch/SYCL/TypeCasting.h +85 -0
- include/eigen3/Eigen/src/Core/arch/ZVector/Complex.h +426 -0
- include/eigen3/Eigen/src/Core/arch/ZVector/MathFunctions.h +233 -0
- include/eigen3/Eigen/src/Core/arch/ZVector/PacketMath.h +1060 -0
- include/eigen3/Eigen/src/Core/functors/AssignmentFunctors.h +177 -0
- include/eigen3/Eigen/src/Core/functors/BinaryFunctors.h +541 -0
- include/eigen3/Eigen/src/Core/functors/NullaryFunctors.h +189 -0
- include/eigen3/Eigen/src/Core/functors/StlFunctors.h +166 -0
- include/eigen3/Eigen/src/Core/functors/TernaryFunctors.h +25 -0
- include/eigen3/Eigen/src/Core/functors/UnaryFunctors.h +1131 -0
- include/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h +2645 -0
- include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrix.h +517 -0
- include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h +317 -0
- include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h +145 -0
- include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrix_BLAS.h +124 -0
- include/eigen3/Eigen/src/Core/products/GeneralMatrixVector.h +518 -0
- include/eigen3/Eigen/src/Core/products/GeneralMatrixVector_BLAS.h +136 -0
- include/eigen3/Eigen/src/Core/products/Parallelizer.h +180 -0
- include/eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix.h +544 -0
- include/eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix_BLAS.h +295 -0
- include/eigen3/Eigen/src/Core/products/SelfadjointMatrixVector.h +262 -0
- include/eigen3/Eigen/src/Core/products/SelfadjointMatrixVector_BLAS.h +118 -0
- include/eigen3/Eigen/src/Core/products/SelfadjointProduct.h +133 -0
- include/eigen3/Eigen/src/Core/products/SelfadjointRank2Update.h +94 -0
- include/eigen3/Eigen/src/Core/products/TriangularMatrixMatrix.h +472 -0
- include/eigen3/Eigen/src/Core/products/TriangularMatrixMatrix_BLAS.h +317 -0
- include/eigen3/Eigen/src/Core/products/TriangularMatrixVector.h +350 -0
- include/eigen3/Eigen/src/Core/products/TriangularMatrixVector_BLAS.h +255 -0
- include/eigen3/Eigen/src/Core/products/TriangularSolverMatrix.h +337 -0
- include/eigen3/Eigen/src/Core/products/TriangularSolverMatrix_BLAS.h +167 -0
- include/eigen3/Eigen/src/Core/products/TriangularSolverVector.h +148 -0
- include/eigen3/Eigen/src/Core/util/BlasUtil.h +583 -0
- include/eigen3/Eigen/src/Core/util/ConfigureVectorization.h +512 -0
- include/eigen3/Eigen/src/Core/util/Constants.h +563 -0
- include/eigen3/Eigen/src/Core/util/DisableStupidWarnings.h +106 -0
- include/eigen3/Eigen/src/Core/util/ForwardDeclarations.h +322 -0
- include/eigen3/Eigen/src/Core/util/IndexedViewHelper.h +186 -0
- include/eigen3/Eigen/src/Core/util/IntegralConstant.h +272 -0
- include/eigen3/Eigen/src/Core/util/MKL_support.h +137 -0
- include/eigen3/Eigen/src/Core/util/Macros.h +1464 -0
- include/eigen3/Eigen/src/Core/util/Memory.h +1163 -0
- include/eigen3/Eigen/src/Core/util/Meta.h +812 -0
- include/eigen3/Eigen/src/Core/util/NonMPL2.h +3 -0
- include/eigen3/Eigen/src/Core/util/ReenableStupidWarnings.h +31 -0
- include/eigen3/Eigen/src/Core/util/ReshapedHelper.h +51 -0
- include/eigen3/Eigen/src/Core/util/StaticAssert.h +221 -0
- include/eigen3/Eigen/src/Core/util/SymbolicIndex.h +293 -0
- include/eigen3/Eigen/src/Core/util/XprHelper.h +856 -0
- include/eigen3/Eigen/src/Eigenvalues/ComplexEigenSolver.h +346 -0
- include/eigen3/Eigen/src/Eigenvalues/ComplexSchur.h +462 -0
- include/eigen3/Eigen/src/Eigenvalues/ComplexSchur_LAPACKE.h +91 -0
- include/eigen3/Eigen/src/Eigenvalues/EigenSolver.h +622 -0
- include/eigen3/Eigen/src/Eigenvalues/GeneralizedEigenSolver.h +418 -0
- include/eigen3/Eigen/src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h +226 -0
- include/eigen3/Eigen/src/Eigenvalues/HessenbergDecomposition.h +374 -0
- include/eigen3/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h +158 -0
- include/eigen3/Eigen/src/Eigenvalues/RealQZ.h +657 -0
- include/eigen3/Eigen/src/Eigenvalues/RealSchur.h +558 -0
- include/eigen3/Eigen/src/Eigenvalues/RealSchur_LAPACKE.h +77 -0
- include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h +904 -0
- include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver_LAPACKE.h +87 -0
- include/eigen3/Eigen/src/Eigenvalues/Tridiagonalization.h +561 -0
- include/eigen3/Eigen/src/Geometry/AlignedBox.h +486 -0
- include/eigen3/Eigen/src/Geometry/AngleAxis.h +247 -0
- include/eigen3/Eigen/src/Geometry/EulerAngles.h +114 -0
- include/eigen3/Eigen/src/Geometry/Homogeneous.h +501 -0
- include/eigen3/Eigen/src/Geometry/Hyperplane.h +282 -0
- include/eigen3/Eigen/src/Geometry/OrthoMethods.h +235 -0
- include/eigen3/Eigen/src/Geometry/ParametrizedLine.h +232 -0
- include/eigen3/Eigen/src/Geometry/Quaternion.h +870 -0
- include/eigen3/Eigen/src/Geometry/Rotation2D.h +199 -0
- include/eigen3/Eigen/src/Geometry/RotationBase.h +206 -0
- include/eigen3/Eigen/src/Geometry/Scaling.h +188 -0
- include/eigen3/Eigen/src/Geometry/Transform.h +1563 -0
- include/eigen3/Eigen/src/Geometry/Translation.h +202 -0
- include/eigen3/Eigen/src/Geometry/Umeyama.h +166 -0
- include/eigen3/Eigen/src/Geometry/arch/Geometry_SIMD.h +168 -0
- include/eigen3/Eigen/src/Householder/BlockHouseholder.h +110 -0
- include/eigen3/Eigen/src/Householder/Householder.h +176 -0
- include/eigen3/Eigen/src/Householder/HouseholderSequence.h +545 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/BasicPreconditioners.h +226 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h +212 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/ConjugateGradient.h +229 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h +394 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h +453 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/IterativeSolverBase.h +444 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/LeastSquareConjugateGradient.h +198 -0
- include/eigen3/Eigen/src/IterativeLinearSolvers/SolveWithGuess.h +117 -0
- include/eigen3/Eigen/src/Jacobi/Jacobi.h +483 -0
- include/eigen3/Eigen/src/KLUSupport/KLUSupport.h +358 -0
- include/eigen3/Eigen/src/LU/Determinant.h +117 -0
- include/eigen3/Eigen/src/LU/FullPivLU.h +877 -0
- include/eigen3/Eigen/src/LU/InverseImpl.h +432 -0
- include/eigen3/Eigen/src/LU/PartialPivLU.h +624 -0
- include/eigen3/Eigen/src/LU/PartialPivLU_LAPACKE.h +83 -0
- include/eigen3/Eigen/src/LU/arch/InverseSize4.h +351 -0
- include/eigen3/Eigen/src/MetisSupport/MetisSupport.h +137 -0
- include/eigen3/Eigen/src/OrderingMethods/Amd.h +435 -0
- include/eigen3/Eigen/src/OrderingMethods/Eigen_Colamd.h +1863 -0
- include/eigen3/Eigen/src/OrderingMethods/Ordering.h +153 -0
- include/eigen3/Eigen/src/PaStiXSupport/PaStiXSupport.h +678 -0
- include/eigen3/Eigen/src/PardisoSupport/PardisoSupport.h +545 -0
- include/eigen3/Eigen/src/QR/ColPivHouseholderQR.h +674 -0
- include/eigen3/Eigen/src/QR/ColPivHouseholderQR_LAPACKE.h +97 -0
- include/eigen3/Eigen/src/QR/CompleteOrthogonalDecomposition.h +635 -0
- include/eigen3/Eigen/src/QR/FullPivHouseholderQR.h +713 -0
- include/eigen3/Eigen/src/QR/HouseholderQR.h +434 -0
- include/eigen3/Eigen/src/QR/HouseholderQR_LAPACKE.h +68 -0
- include/eigen3/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h +335 -0
- include/eigen3/Eigen/src/SVD/BDCSVD.h +1366 -0
- include/eigen3/Eigen/src/SVD/JacobiSVD.h +812 -0
- include/eigen3/Eigen/src/SVD/JacobiSVD_LAPACKE.h +91 -0
- include/eigen3/Eigen/src/SVD/SVDBase.h +376 -0
- include/eigen3/Eigen/src/SVD/UpperBidiagonalization.h +414 -0
- include/eigen3/Eigen/src/SparseCholesky/SimplicialCholesky.h +697 -0
- include/eigen3/Eigen/src/SparseCholesky/SimplicialCholesky_impl.h +174 -0
- include/eigen3/Eigen/src/SparseCore/AmbiVector.h +378 -0
- include/eigen3/Eigen/src/SparseCore/CompressedStorage.h +274 -0
- include/eigen3/Eigen/src/SparseCore/ConservativeSparseSparseProduct.h +352 -0
- include/eigen3/Eigen/src/SparseCore/MappedSparseMatrix.h +67 -0
- include/eigen3/Eigen/src/SparseCore/SparseAssign.h +270 -0
- include/eigen3/Eigen/src/SparseCore/SparseBlock.h +571 -0
- include/eigen3/Eigen/src/SparseCore/SparseColEtree.h +206 -0
- include/eigen3/Eigen/src/SparseCore/SparseCompressedBase.h +370 -0
- include/eigen3/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +722 -0
- include/eigen3/Eigen/src/SparseCore/SparseCwiseUnaryOp.h +150 -0
- include/eigen3/Eigen/src/SparseCore/SparseDenseProduct.h +342 -0
- include/eigen3/Eigen/src/SparseCore/SparseDiagonalProduct.h +138 -0
- include/eigen3/Eigen/src/SparseCore/SparseDot.h +98 -0
- include/eigen3/Eigen/src/SparseCore/SparseFuzzy.h +29 -0
- include/eigen3/Eigen/src/SparseCore/SparseMap.h +305 -0
- include/eigen3/Eigen/src/SparseCore/SparseMatrix.h +1518 -0
- include/eigen3/Eigen/src/SparseCore/SparseMatrixBase.h +398 -0
- include/eigen3/Eigen/src/SparseCore/SparsePermutation.h +178 -0
- include/eigen3/Eigen/src/SparseCore/SparseProduct.h +181 -0
- include/eigen3/Eigen/src/SparseCore/SparseRedux.h +49 -0
- include/eigen3/Eigen/src/SparseCore/SparseRef.h +397 -0
- include/eigen3/Eigen/src/SparseCore/SparseSelfAdjointView.h +659 -0
- include/eigen3/Eigen/src/SparseCore/SparseSolverBase.h +124 -0
- include/eigen3/Eigen/src/SparseCore/SparseSparseProductWithPruning.h +198 -0
- include/eigen3/Eigen/src/SparseCore/SparseTranspose.h +92 -0
- include/eigen3/Eigen/src/SparseCore/SparseTriangularView.h +189 -0
- include/eigen3/Eigen/src/SparseCore/SparseUtil.h +186 -0
- include/eigen3/Eigen/src/SparseCore/SparseVector.h +478 -0
- include/eigen3/Eigen/src/SparseCore/SparseView.h +254 -0
- include/eigen3/Eigen/src/SparseCore/TriangularSolver.h +315 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU.h +923 -0
- include/eigen3/Eigen/src/SparseLU/SparseLUImpl.h +66 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_Memory.h +226 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_Structs.h +110 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +375 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_Utils.h +80 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_column_bmod.h +181 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_column_dfs.h +179 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h +107 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_gemm_kernel.h +280 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +126 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_kernel_bmod.h +130 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_panel_bmod.h +223 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_panel_dfs.h +258 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_pivotL.h +137 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_pruneL.h +136 -0
- include/eigen3/Eigen/src/SparseLU/SparseLU_relax_snode.h +83 -0
- include/eigen3/Eigen/src/SparseQR/SparseQR.h +758 -0
- include/eigen3/Eigen/src/StlSupport/StdDeque.h +116 -0
- include/eigen3/Eigen/src/StlSupport/StdList.h +106 -0
- include/eigen3/Eigen/src/StlSupport/StdVector.h +131 -0
- include/eigen3/Eigen/src/StlSupport/details.h +84 -0
- include/eigen3/Eigen/src/SuperLUSupport/SuperLUSupport.h +1025 -0
- include/eigen3/Eigen/src/UmfPackSupport/UmfPackSupport.h +642 -0
- include/eigen3/Eigen/src/misc/Image.h +82 -0
- include/eigen3/Eigen/src/misc/Kernel.h +79 -0
- include/eigen3/Eigen/src/misc/RealSvd2x2.h +55 -0
- include/eigen3/Eigen/src/misc/blas.h +440 -0
- include/eigen3/Eigen/src/misc/lapack.h +152 -0
- include/eigen3/Eigen/src/misc/lapacke.h +16292 -0
- include/eigen3/Eigen/src/misc/lapacke_mangling.h +17 -0
- include/eigen3/Eigen/src/plugins/ArrayCwiseBinaryOps.h +358 -0
- include/eigen3/Eigen/src/plugins/ArrayCwiseUnaryOps.h +696 -0
- include/eigen3/Eigen/src/plugins/BlockMethods.h +1442 -0
- include/eigen3/Eigen/src/plugins/CommonCwiseBinaryOps.h +115 -0
- include/eigen3/Eigen/src/plugins/CommonCwiseUnaryOps.h +177 -0
- include/eigen3/Eigen/src/plugins/IndexedViewMethods.h +262 -0
- include/eigen3/Eigen/src/plugins/MatrixCwiseBinaryOps.h +152 -0
- include/eigen3/Eigen/src/plugins/MatrixCwiseUnaryOps.h +95 -0
- include/eigen3/Eigen/src/plugins/ReshapedMethods.h +149 -0
- include/eigen3/signature_of_eigen3_matrix_library +1 -0
- include/eigen3/unsupported/Eigen/AdolcForward +159 -0
- include/eigen3/unsupported/Eigen/AlignedVector3 +234 -0
- include/eigen3/unsupported/Eigen/ArpackSupport +30 -0
- include/eigen3/unsupported/Eigen/AutoDiff +46 -0
- include/eigen3/unsupported/Eigen/BVH +95 -0
- include/eigen3/unsupported/Eigen/CXX11/Tensor +137 -0
- include/eigen3/unsupported/Eigen/CXX11/TensorSymmetry +42 -0
- include/eigen3/unsupported/Eigen/CXX11/ThreadPool +74 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/Tensor.h +554 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorArgMax.h +329 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h +247 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h +1176 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h +1559 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h +1093 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h +518 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConcatenation.h +377 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h +1023 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionBlocking.h +73 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionCuda.h +6 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionGpu.h +1413 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionMapper.h +575 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionSycl.h +1650 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h +1679 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConversion.h +456 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConvolution.h +1132 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConvolutionSycl.h +544 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorCostModel.h +214 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorCustomOp.h +347 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDevice.h +137 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h +6 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceDefault.h +104 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceGpu.h +389 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h +1048 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +409 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h +236 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h +490 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvalTo.h +236 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h +983 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h +703 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h +388 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFFT.h +669 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFixedSize.h +379 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorForcedEval.h +237 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h +191 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h +488 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGenerator.h +302 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGlobalFunctions.h +33 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGpuHipCudaDefines.h +99 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGpuHipCudaUndefines.h +44 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIO.h +79 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +603 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h +738 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorInflation.h +247 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorInitializer.h +82 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h +263 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorLayoutSwap.h +216 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMacros.h +98 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h +327 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h +311 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h +1102 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorPadding.h +708 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h +291 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h +322 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h +998 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h +6 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionGpu.h +966 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +582 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h +454 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReverse.h +465 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorScan.h +528 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +513 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorShuffling.h +471 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorStorage.h +161 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorStriding.h +346 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h +303 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h +264 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h +249 -0
- include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorVolumePatch.h +629 -0
- include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/DynamicSymmetry.h +293 -0
- include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/StaticSymmetry.h +236 -0
- include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/Symmetry.h +338 -0
- include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/util/TemplateGroupTheory.h +669 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/Barrier.h +67 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/EventCount.h +249 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h +486 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/RunQueue.h +236 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadCancel.h +23 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadEnvironment.h +40 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadLocal.h +301 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h +48 -0
- include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h +20 -0
- include/eigen3/unsupported/Eigen/CXX11/src/util/CXX11Meta.h +537 -0
- include/eigen3/unsupported/Eigen/CXX11/src/util/CXX11Workarounds.h +88 -0
- include/eigen3/unsupported/Eigen/CXX11/src/util/EmulateArray.h +261 -0
- include/eigen3/unsupported/Eigen/CXX11/src/util/MaxSizeVector.h +158 -0
- include/eigen3/unsupported/Eigen/EulerAngles +43 -0
- include/eigen3/unsupported/Eigen/FFT +419 -0
- include/eigen3/unsupported/Eigen/IterativeSolvers +51 -0
- include/eigen3/unsupported/Eigen/KroneckerProduct +36 -0
- include/eigen3/unsupported/Eigen/LevenbergMarquardt +49 -0
- include/eigen3/unsupported/Eigen/MPRealSupport +213 -0
- include/eigen3/unsupported/Eigen/MatrixFunctions +504 -0
- include/eigen3/unsupported/Eigen/MoreVectorization +24 -0
- include/eigen3/unsupported/Eigen/NonLinearOptimization +140 -0
- include/eigen3/unsupported/Eigen/NumericalDiff +56 -0
- include/eigen3/unsupported/Eigen/OpenGLSupport +322 -0
- include/eigen3/unsupported/Eigen/Polynomials +137 -0
- include/eigen3/unsupported/Eigen/Skyline +39 -0
- include/eigen3/unsupported/Eigen/SparseExtra +54 -0
- include/eigen3/unsupported/Eigen/SpecialFunctions +103 -0
- include/eigen3/unsupported/Eigen/Splines +35 -0
- include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffJacobian.h +108 -0
- include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +730 -0
- include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffVector.h +220 -0
- include/eigen3/unsupported/Eigen/src/BVH/BVAlgorithms.h +293 -0
- include/eigen3/unsupported/Eigen/src/BVH/KdBVH.h +223 -0
- include/eigen3/unsupported/Eigen/src/Eigenvalues/ArpackSelfAdjointEigenSolver.h +790 -0
- include/eigen3/unsupported/Eigen/src/EulerAngles/EulerAngles.h +355 -0
- include/eigen3/unsupported/Eigen/src/EulerAngles/EulerSystem.h +305 -0
- include/eigen3/unsupported/Eigen/src/FFT/ei_fftw_impl.h +261 -0
- include/eigen3/unsupported/Eigen/src/FFT/ei_kissfft_impl.h +449 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/ConstrainedConjGrad.h +187 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/DGMRES.h +511 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/GMRES.h +335 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/IDRS.h +436 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/IncompleteLU.h +90 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/IterationController.h +154 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/MINRES.h +267 -0
- include/eigen3/unsupported/Eigen/src/IterativeSolvers/Scaling.h +193 -0
- include/eigen3/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h +305 -0
- include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMcovar.h +84 -0
- include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMonestep.h +202 -0
- include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMpar.h +160 -0
- include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMqrsolv.h +188 -0
- include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LevenbergMarquardt.h +396 -0
- include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +441 -0
- include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h +569 -0
- include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h +373 -0
- include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixPower.h +705 -0
- include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h +368 -0
- include/eigen3/unsupported/Eigen/src/MatrixFunctions/StemFunction.h +117 -0
- include/eigen3/unsupported/Eigen/src/MoreVectorization/MathFunctions.h +95 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/HybridNonLinearSolver.h +601 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h +657 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/chkder.h +66 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/covar.h +70 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/dogleg.h +107 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/fdjac1.h +79 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/lmpar.h +298 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h +91 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/r1mpyq.h +30 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/r1updt.h +99 -0
- include/eigen3/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h +49 -0
- include/eigen3/unsupported/Eigen/src/NumericalDiff/NumericalDiff.h +130 -0
- include/eigen3/unsupported/Eigen/src/Polynomials/Companion.h +280 -0
- include/eigen3/unsupported/Eigen/src/Polynomials/PolynomialSolver.h +428 -0
- include/eigen3/unsupported/Eigen/src/Polynomials/PolynomialUtils.h +143 -0
- include/eigen3/unsupported/Eigen/src/Skyline/SkylineInplaceLU.h +352 -0
- include/eigen3/unsupported/Eigen/src/Skyline/SkylineMatrix.h +862 -0
- include/eigen3/unsupported/Eigen/src/Skyline/SkylineMatrixBase.h +212 -0
- include/eigen3/unsupported/Eigen/src/Skyline/SkylineProduct.h +295 -0
- include/eigen3/unsupported/Eigen/src/Skyline/SkylineStorage.h +259 -0
- include/eigen3/unsupported/Eigen/src/Skyline/SkylineUtil.h +89 -0
- include/eigen3/unsupported/Eigen/src/SparseExtra/BlockOfDynamicSparseMatrix.h +122 -0
- include/eigen3/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h +1079 -0
- include/eigen3/unsupported/Eigen/src/SparseExtra/DynamicSparseMatrix.h +404 -0
- include/eigen3/unsupported/Eigen/src/SparseExtra/MarketIO.h +282 -0
- include/eigen3/unsupported/Eigen/src/SparseExtra/MatrixMarketIterator.h +247 -0
- include/eigen3/unsupported/Eigen/src/SparseExtra/RandomSetter.h +349 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsArrayAPI.h +286 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsBFloat16.h +68 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsFunctors.h +357 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsHalf.h +66 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsImpl.h +1959 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsPacketMath.h +118 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/HipVectorCompatibility.h +67 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsArrayAPI.h +167 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsBFloat16.h +58 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsFunctors.h +330 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsHalf.h +58 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +2045 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsPacketMath.h +79 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX/BesselFunctions.h +46 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX/SpecialFunctions.h +16 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX512/BesselFunctions.h +46 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX512/SpecialFunctions.h +16 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/GPU/SpecialFunctions.h +369 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/NEON/BesselFunctions.h +54 -0
- include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/NEON/SpecialFunctions.h +34 -0
- include/eigen3/unsupported/Eigen/src/Splines/Spline.h +507 -0
- include/eigen3/unsupported/Eigen/src/Splines/SplineFitting.h +431 -0
- include/eigen3/unsupported/Eigen/src/Splines/SplineFwd.h +93 -0
- pyvale/__init__.py +23 -0
- pyvale/blender/__init__.py +23 -0
- pyvale/blender/blendercalibrationdata.py +17 -0
- pyvale/blender/blenderexceptions.py +8 -0
- pyvale/blender/blenderlightdata.py +26 -0
- pyvale/blender/blendermaterialdata.py +15 -0
- pyvale/blender/blenderrenderdata.py +35 -0
- pyvale/blender/blenderscene.py +493 -0
- pyvale/blender/blendertools.py +449 -0
- pyvale/calib/__init__.py +11 -0
- pyvale/calib/calibcpp.cpython-311-i386-linux-gnu.so +0 -0
- pyvale/calib/calibdotdetect.py +510 -0
- pyvale/calib/calibparams.py +47 -0
- pyvale/calib/calibstereo.py +441 -0
- pyvale/calib/cpp/bindings.cpp +22 -0
- pyvale/calib/cpp/calibdotdetect.cpp +16 -0
- pyvale/calib/cpp/calibdotdetect.hpp +20 -0
- pyvale/calib/cpp/calibopt.cpp +347 -0
- pyvale/calib/cpp/calibopt.hpp +84 -0
- pyvale/calib/cpp/calibstereo.cpp +95 -0
- pyvale/calib/cpp/calibstereo.hpp +27 -0
- pyvale/common_cpp/__init__.py +5 -0
- pyvale/common_cpp/bindings.cpp +33 -0
- pyvale/common_cpp/common_cpp.cpython-311-i386-linux-gnu.so +0 -0
- pyvale/common_cpp/defines.hpp +39 -0
- pyvale/common_cpp/dicsignalhandler.cpp +16 -0
- pyvale/common_cpp/dicsignalhandler.hpp +11 -0
- pyvale/common_cpp/pocketfft_hdronly.h +3744 -0
- pyvale/common_cpp/progressbar.hpp +107 -0
- pyvale/common_cpp/util.cpp +19 -0
- pyvale/common_cpp/util.hpp +72 -0
- pyvale/common_py/util.py +63 -0
- pyvale/data/DIC_Challenge_Star_Noise_Def.tiff +0 -0
- pyvale/data/DIC_Challenge_Star_Noise_Ref.tiff +0 -0
- pyvale/data/__init__.py +5 -0
- pyvale/data/cal_target.tiff +0 -0
- pyvale/data/calib.caldat +26 -0
- pyvale/data/case00_HEX20_out.e +0 -0
- pyvale/data/case00_HEX27_out.e +0 -0
- pyvale/data/case00_HEX8_out.e +0 -0
- pyvale/data/case00_TET10_out.e +0 -0
- pyvale/data/case00_TET14_out.e +0 -0
- pyvale/data/case00_TET4_out.e +0 -0
- pyvale/data/case16_d_out.e +0 -0
- pyvale/data/case16_out.e +0 -0
- pyvale/data/case17_out.e +0 -0
- pyvale/data/case18_d_out.e +0 -0
- pyvale/data/case18_out.e +0 -0
- pyvale/data/case26_out.e +0 -0
- pyvale/data/optspeckle_2464x2056px_spec5px_8bit_gblur1px.tiff +0 -0
- pyvale/data/plate_hole_def0000.tiff +0 -0
- pyvale/data/plate_hole_def0001.tiff +0 -0
- pyvale/data/plate_hole_ref0000.tiff +0 -0
- pyvale/data/plate_rigid_def0000.tiff +0 -0
- pyvale/data/plate_rigid_def0001.tiff +0 -0
- pyvale/data/plate_rigid_def_25px.tiff +0 -0
- pyvale/data/plate_rigid_def_50px.tiff +0 -0
- pyvale/data/plate_rigid_ref0000.tiff +0 -0
- pyvale/dataset/__init__.py +7 -0
- pyvale/dataset/dataset.py +483 -0
- pyvale/dic/__init__.py +15 -0
- pyvale/dic/cpp/bindings.cpp +52 -0
- pyvale/dic/cpp/dicfourier.cpp +705 -0
- pyvale/dic/cpp/dicfourier.hpp +410 -0
- pyvale/dic/cpp/dicinterpolator.cpp +633 -0
- pyvale/dic/cpp/dicinterpolator.hpp +162 -0
- pyvale/dic/cpp/dicmain.cpp +214 -0
- pyvale/dic/cpp/dicmain.hpp +61 -0
- pyvale/dic/cpp/dicoptimizer.cpp +564 -0
- pyvale/dic/cpp/dicoptimizer.hpp +279 -0
- pyvale/dic/cpp/dicresults.cpp +239 -0
- pyvale/dic/cpp/dicresults.hpp +64 -0
- pyvale/dic/cpp/dicrg.cpp +55 -0
- pyvale/dic/cpp/dicrg.hpp +52 -0
- pyvale/dic/cpp/dicscanmethod.cpp +819 -0
- pyvale/dic/cpp/dicscanmethod.hpp +119 -0
- pyvale/dic/cpp/dicshapefunc.cpp +117 -0
- pyvale/dic/cpp/dicshapefunc.hpp +40 -0
- pyvale/dic/cpp/dicsubset.cpp +325 -0
- pyvale/dic/cpp/dicsubset.hpp +122 -0
- pyvale/dic/cpp/dicutil.cpp +108 -0
- pyvale/dic/cpp/dicutil.hpp +96 -0
- pyvale/dic/cuda/malloc.cu +99 -0
- pyvale/dic/cuda/malloc.hpp +17 -0
- pyvale/dic/dic2d.py +190 -0
- pyvale/dic/dic2dconv.py +6 -0
- pyvale/dic/dic2dcpp.cpython-311-i386-linux-gnu.so +0 -0
- pyvale/dic/dicchecks.py +455 -0
- pyvale/dic/dicdataimport.py +402 -0
- pyvale/dic/dicregionofinterest.py +1163 -0
- pyvale/dic/dicresults.py +58 -0
- pyvale/examples/__init__.py +5 -0
- pyvale/examples/basicsensorsim/README.md +2 -0
- pyvale/examples/basicsensorsim/ex0_quickstart.py +139 -0
- pyvale/examples/basicsensorsim/ex1_scalar_sensors.py +240 -0
- pyvale/examples/basicsensorsim/ex2_vector_tensor_sensors.py +280 -0
- pyvale/examples/basicsensorsim/ex3_experiment_simulator.py +397 -0
- pyvale/examples/blenderimagedef/README.md +2 -0
- pyvale/examples/blenderimagedef/ex1_blender_scene2d.py +176 -0
- pyvale/examples/blenderimagedef/ex2_blender_imagedef2d.py +177 -0
- pyvale/examples/blenderimagedef/ex3_blender_scenestereo.py +205 -0
- pyvale/examples/blenderimagedef/ex4_blender_imagedefstereo.py +213 -0
- pyvale/examples/blenderimagedef/ex5_blender_calibstereo.py +190 -0
- pyvale/examples/dic/README.md +2 -0
- pyvale/examples/dic/ex1_region_of_interest.py +101 -0
- pyvale/examples/dic/ex2_plate_with_hole.py +155 -0
- pyvale/examples/dic/ex3_plate_with_hole_strain.py +99 -0
- pyvale/examples/dic/ex4_dic_blender.py +97 -0
- pyvale/examples/dic/ex5_dic_challenge.py +107 -0
- pyvale/examples/extsensorsim/README.md +2 -0
- pyvale/examples/extsensorsim/ex1_byosimdata.py +211 -0
- pyvale/examples/extsensorsim/ex2_meshfreesensors.py +174 -0
- pyvale/examples/extsensorsim/ex3a_scal2d.py +151 -0
- pyvale/examples/extsensorsim/ex3b_scal3d.py +150 -0
- pyvale/examples/extsensorsim/ex3c_vec2d.py +163 -0
- pyvale/examples/extsensorsim/ex3d_vec3d.py +169 -0
- pyvale/examples/extsensorsim/ex3e_tens2d.py +170 -0
- pyvale/examples/extsensorsim/ex3f_tens3d.py +198 -0
- pyvale/examples/extsensorsim/ex4a_basicerrs_scal2d.py +201 -0
- pyvale/examples/extsensorsim/ex4b_fielderrs_scal3d.py +197 -0
- pyvale/examples/extsensorsim/ex4c_angleerrs_vec2d.py +215 -0
- pyvale/examples/extsensorsim/ex4d_fieldlockerrs_vec3d.py +184 -0
- pyvale/examples/extsensorsim/ex4e_chainfielderrs_vec2d.py +233 -0
- pyvale/examples/extsensorsim/ex4f_caliberrs_scal2d.py +167 -0
- pyvale/examples/extsensorsim/ex4g_spatavgerrs_scal2d.py +146 -0
- pyvale/examples/extsensorsim/ex5a_expsim_thermmech2d.py +350 -0
- pyvale/examples/extsensorsim/ex5b_expsim_thermmech3d.py +358 -0
- pyvale/examples/genanalyticdata/ex1_1_scalarvisualisation.py +41 -0
- pyvale/examples/genanalyticdata/ex1_2_scalarcasebuild.py +43 -0
- pyvale/examples/genanalyticdata/ex2_1_analyticsensors.py +86 -0
- pyvale/examples/genanalyticdata/ex2_2_analyticsensors_nomesh.py +89 -0
- pyvale/examples/imagedef2d/ex_imagedef2d_todisk.py +84 -0
- pyvale/examples/mooseherder/README.md +2 -0
- pyvale/examples/mooseherder/ex0_create_moose_config.py +65 -0
- pyvale/examples/mooseherder/ex1a_modify_moose_input.py +71 -0
- pyvale/examples/mooseherder/ex1b_modify_gmsh_input.py +69 -0
- pyvale/examples/mooseherder/ex2a_run_moose_once.py +80 -0
- pyvale/examples/mooseherder/ex2b_run_gmsh_once.py +64 -0
- pyvale/examples/mooseherder/ex2c_run_both_once.py +114 -0
- pyvale/examples/mooseherder/ex3_run_moose_seq_para.py +157 -0
- pyvale/examples/mooseherder/ex4_run_gmsh-moose_seq_para.py +176 -0
- pyvale/examples/mooseherder/ex5_run_moose_paramulti.py +136 -0
- pyvale/examples/mooseherder/ex6_read_moose_exodus.py +163 -0
- pyvale/examples/mooseherder/ex7a_read_moose_herd_results.py +153 -0
- pyvale/examples/mooseherder/ex7b_read_multi_herd_results.py +116 -0
- pyvale/examples/mooseherder/ex7c_read_multi_gmshmoose_results.py +127 -0
- pyvale/examples/mooseherder/ex7d_readconfig_multi_gmshmoose_results.py +143 -0
- pyvale/examples/mooseherder/ex8_read_existing_sweep_output.py +72 -0
- pyvale/examples/rasterimagedef/ex_rastenp.py +194 -0
- pyvale/examples/rasterimagedef/ex_rastercyth_oneframe.py +206 -0
- pyvale/examples/rasterimagedef/ex_rastercyth_static_cypara.py +189 -0
- pyvale/examples/rasterimagedef/ex_rastercyth_static_pypara.py +219 -0
- pyvale/examples/visualisation/ex1_visualisation_options.py +111 -0
- pyvale/mooseherder/__init__.py +55 -0
- pyvale/mooseherder/directorymanager.py +408 -0
- pyvale/mooseherder/exceptions.py +10 -0
- pyvale/mooseherder/exodusloader.py +762 -0
- pyvale/mooseherder/gmshrunner.py +158 -0
- pyvale/mooseherder/inputmodifier.py +240 -0
- pyvale/mooseherder/mooseconfig.py +212 -0
- pyvale/mooseherder/mooseherd.py +539 -0
- pyvale/mooseherder/mooserunner.py +307 -0
- pyvale/mooseherder/outputloader.py +17 -0
- pyvale/mooseherder/simdata.py +93 -0
- pyvale/mooseherder/simloaderbyfield.py +211 -0
- pyvale/mooseherder/simloaderbytime.py +193 -0
- pyvale/mooseherder/simloadopts.py +55 -0
- pyvale/mooseherder/simloadtools.py +465 -0
- pyvale/mooseherder/simrunner.py +31 -0
- pyvale/mooseherder/simsaver.py +401 -0
- pyvale/mooseherder/sweeploader.py +358 -0
- pyvale/mooseherder/sweeptools.py +76 -0
- pyvale/sensorsim/__init__.py +86 -0
- pyvale/sensorsim/camera.py +147 -0
- pyvale/sensorsim/cameradata.py +72 -0
- pyvale/sensorsim/cameradata2d.py +84 -0
- pyvale/sensorsim/camerasensor.py +147 -0
- pyvale/sensorsim/camerastereo.py +217 -0
- pyvale/sensorsim/cameratools.py +484 -0
- pyvale/sensorsim/cython/rastercyth.c +32404 -0
- pyvale/sensorsim/cython/rastercyth.html +3392 -0
- pyvale/sensorsim/cython/rastercyth.py +684 -0
- pyvale/sensorsim/enums.py +16 -0
- pyvale/sensorsim/errordriftcalc.py +104 -0
- pyvale/sensorsim/errorintegrator.py +359 -0
- pyvale/sensorsim/errorrand.py +105 -0
- pyvale/sensorsim/errorsimulator.py +137 -0
- pyvale/sensorsim/errorsyscalib.py +93 -0
- pyvale/sensorsim/errorsysdep.py +197 -0
- pyvale/sensorsim/errorsysfield.py +383 -0
- pyvale/sensorsim/errorsysindep.py +209 -0
- pyvale/sensorsim/exceptions.py +14 -0
- pyvale/sensorsim/experimentsimio.py +94 -0
- pyvale/sensorsim/experimentsimulator.py +615 -0
- pyvale/sensorsim/experimentstats.py +115 -0
- pyvale/sensorsim/field.py +127 -0
- pyvale/sensorsim/fieldconverter.py +378 -0
- pyvale/sensorsim/fieldinterp.py +89 -0
- pyvale/sensorsim/fieldinterpmesh.py +119 -0
- pyvale/sensorsim/fieldinterppoints.py +93 -0
- pyvale/sensorsim/fieldsampler.py +110 -0
- pyvale/sensorsim/fieldscalar.py +94 -0
- pyvale/sensorsim/fieldtensor.py +150 -0
- pyvale/sensorsim/fieldtransform.py +388 -0
- pyvale/sensorsim/fieldvector.py +136 -0
- pyvale/sensorsim/generatorsrandom.py +420 -0
- pyvale/sensorsim/imagedef2d.py +577 -0
- pyvale/sensorsim/imagetools.py +137 -0
- pyvale/sensorsim/integratorfactory.py +240 -0
- pyvale/sensorsim/integratorquadrature.py +217 -0
- pyvale/sensorsim/integratorrectangle.py +165 -0
- pyvale/sensorsim/integratorspatial.py +89 -0
- pyvale/sensorsim/integratortype.py +43 -0
- pyvale/sensorsim/logger.py +23 -0
- pyvale/sensorsim/plotting_logs.py +22 -0
- pyvale/sensorsim/raster.py +31 -0
- pyvale/sensorsim/rastercy.py +107 -0
- pyvale/sensorsim/rasternp.py +627 -0
- pyvale/sensorsim/rasteropts.py +58 -0
- pyvale/sensorsim/renderer.py +47 -0
- pyvale/sensorsim/rendermesh.py +137 -0
- pyvale/sensorsim/renderscene.py +51 -0
- pyvale/sensorsim/sensorarray.py +178 -0
- pyvale/sensorsim/sensordata.py +74 -0
- pyvale/sensorsim/sensordescriptor.py +275 -0
- pyvale/sensorsim/sensorfactory.py +179 -0
- pyvale/sensorsim/sensorspoint.py +308 -0
- pyvale/sensorsim/sensortools.py +113 -0
- pyvale/sensorsim/simtools.py +300 -0
- pyvale/sensorsim/visualexpplotter.py +201 -0
- pyvale/sensorsim/visualimagedef.py +74 -0
- pyvale/sensorsim/visualimages.py +76 -0
- pyvale/sensorsim/visualopts.py +507 -0
- pyvale/sensorsim/visualsimanimator.py +111 -0
- pyvale/sensorsim/visualsimplotter.py +180 -0
- pyvale/sensorsim/visualsimsensors.py +343 -0
- pyvale/sensorsim/visualtools.py +136 -0
- pyvale/sensorsim/visualtraceanimator.py +77 -0
- pyvale/sensorsim/visualtraceplotter.py +296 -0
- pyvale/simcases/case00_HEX20.i +242 -0
- pyvale/simcases/case00_HEX27.i +242 -0
- pyvale/simcases/case00_HEX8.i +242 -0
- pyvale/simcases/case00_TET10.i +242 -0
- pyvale/simcases/case00_TET14.i +242 -0
- pyvale/simcases/case00_TET4.i +242 -0
- pyvale/simcases/case01.i +101 -0
- pyvale/simcases/case02.i +156 -0
- pyvale/simcases/case03.i +136 -0
- pyvale/simcases/case04.i +181 -0
- pyvale/simcases/case05.i +234 -0
- pyvale/simcases/case06.i +305 -0
- pyvale/simcases/case07.geo +135 -0
- pyvale/simcases/case07.i +87 -0
- pyvale/simcases/case08.geo +144 -0
- pyvale/simcases/case08.i +153 -0
- pyvale/simcases/case09.geo +204 -0
- pyvale/simcases/case09.i +87 -0
- pyvale/simcases/case10.geo +204 -0
- pyvale/simcases/case10.i +257 -0
- pyvale/simcases/case11.geo +337 -0
- pyvale/simcases/case11.i +147 -0
- pyvale/simcases/case12.geo +388 -0
- pyvale/simcases/case12.i +329 -0
- pyvale/simcases/case13.i +140 -0
- pyvale/simcases/case14.i +159 -0
- pyvale/simcases/case15.geo +337 -0
- pyvale/simcases/case15.i +150 -0
- pyvale/simcases/case16.geo +391 -0
- pyvale/simcases/case16.i +357 -0
- pyvale/simcases/case16_d.i +360 -0
- pyvale/simcases/case16_u.i +360 -0
- pyvale/simcases/case17.geo +138 -0
- pyvale/simcases/case17.i +144 -0
- pyvale/simcases/case18.i +271 -0
- pyvale/simcases/case18_d.i +271 -0
- pyvale/simcases/case18_u.i +271 -0
- pyvale/simcases/case19.geo +252 -0
- pyvale/simcases/case19.i +99 -0
- pyvale/simcases/case20.geo +252 -0
- pyvale/simcases/case20.i +250 -0
- pyvale/simcases/case21.geo +74 -0
- pyvale/simcases/case21.i +155 -0
- pyvale/simcases/case22.geo +82 -0
- pyvale/simcases/case22.i +140 -0
- pyvale/simcases/case23.geo +164 -0
- pyvale/simcases/case23.i +140 -0
- pyvale/simcases/case24.geo +79 -0
- pyvale/simcases/case24.i +123 -0
- pyvale/simcases/case25.geo +82 -0
- pyvale/simcases/case25.i +140 -0
- pyvale/simcases/case26.geo +166 -0
- pyvale/simcases/case26.i +140 -0
- pyvale/simcases/cases_dictionary.yaml +336 -0
- pyvale/simcases/run_1case.py +60 -0
- pyvale/simcases/run_all_cases.py +69 -0
- pyvale/simcases/run_build_case.py +64 -0
- pyvale/simcases/run_example_cases.py +69 -0
- pyvale/strain/__init__.py +13 -0
- pyvale/strain/cpp/bindings.cpp +25 -0
- pyvale/strain/cpp/smooth.cpp +140 -0
- pyvale/strain/cpp/smooth.hpp +53 -0
- pyvale/strain/cpp/strain.cpp +390 -0
- pyvale/strain/cpp/strain.hpp +177 -0
- pyvale/strain/strain.py +117 -0
- pyvale/strain/strain_cpp.cpython-311-i386-linux-gnu.so +0 -0
- pyvale/strain/strainchecks.py +47 -0
- pyvale/strain/strainimport.py +303 -0
- pyvale/strain/strainresults.py +55 -0
- pyvale/verif/__init__.py +15 -0
- pyvale/verif/analyticmeshgen.py +102 -0
- pyvale/verif/analyticsimdatafactory.py +125 -0
- pyvale/verif/analyticsimdatagenerator.py +368 -0
- pyvale/verif/matchsimdata.py +113 -0
- pyvale/verif/pointsens.py +120 -0
- pyvale/verif/pointsensconst.py +19 -0
- pyvale/verif/pointsensmech.py +270 -0
- pyvale/verif/pointsensmultiphys.py +184 -0
- pyvale/verif/pointsensscalar.py +383 -0
- pyvale/verif/pointsenstensor.py +159 -0
- pyvale/verif/pointsensvector.py +157 -0
- pyvale-2026.1.1.dist-info/METADATA +98 -0
- pyvale-2026.1.1.dist-info/RECORD +860 -0
- pyvale-2026.1.1.dist-info/WHEEL +6 -0
- pyvale-2026.1.1.dist-info/licenses/LICENSE +21 -0
- pyvale.libs/libgomp-65f46eca.so.1.0.0 +0 -0
- share/eigen3/cmake/Eigen3Config.cmake +37 -0
- share/eigen3/cmake/Eigen3ConfigVersion.cmake +65 -0
- share/eigen3/cmake/Eigen3Targets.cmake +106 -0
- share/eigen3/cmake/UseEigen3.cmake +6 -0
- share/pkgconfig/eigen3.pc +9 -0
|
@@ -0,0 +1,627 @@
|
|
|
1
|
+
#===============================================================================
|
|
2
|
+
# pyvale: the python validation engine
|
|
3
|
+
# License: MIT
|
|
4
|
+
# Copyright (C) 2025 The Computer Aided Validation Team
|
|
5
|
+
#===============================================================================
|
|
6
|
+
|
|
7
|
+
"""
|
|
8
|
+
NOTE: this module is a feature under developement
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
import time
|
|
13
|
+
from multiprocessing.pool import Pool
|
|
14
|
+
import numpy as np
|
|
15
|
+
import numba
|
|
16
|
+
#import matplotlib.pyplot as plt
|
|
17
|
+
import pyvale.dataset as dataset
|
|
18
|
+
from pyvale.sensorsim.cameradata import CameraData
|
|
19
|
+
from pyvale.sensorsim.cameratools import CameraTools
|
|
20
|
+
from pyvale.sensorsim.rendermesh import RenderMesh
|
|
21
|
+
from pyvale.sensorsim.renderer import IRenderer, RenderScene
|
|
22
|
+
from pyvale.sensorsim.rasteropts import RasterOpts, save_raster
|
|
23
|
+
from pyvale.sensorsim.imagetools import ImageTools
|
|
24
|
+
#from pyvale.sensorsim.visualimages import plot_field_image
|
|
25
|
+
import pyvale.sensorsim.cython.rastercyth as rastercyth
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# NOTE: This module is a feature under developement.
|
|
29
|
+
|
|
30
|
+
#===============================================================================
|
|
31
|
+
class RasterNumpy(IRenderer):
|
|
32
|
+
__slots__ = ("scene","opts",)
|
|
33
|
+
|
|
34
|
+
def __init__(self, opts: RasterOpts) -> None:
|
|
35
|
+
self.opts = opts
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def render(self,
|
|
39
|
+
scene: RenderScene,
|
|
40
|
+
cam_ind: int = 0,
|
|
41
|
+
frame_ind: int = 0,
|
|
42
|
+
field_ind: int = 0) -> np.ndarray:
|
|
43
|
+
|
|
44
|
+
image = RasterNP.raster_frame(
|
|
45
|
+
cam_ind=cam_ind,
|
|
46
|
+
frame_ind=frame_ind,
|
|
47
|
+
field_ind=field_ind,
|
|
48
|
+
cam_data=scene.cameras[cam_ind],
|
|
49
|
+
meshes=scene.meshes,
|
|
50
|
+
opts=self.opts,
|
|
51
|
+
save_path=None,
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
return image
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def render_to_disk(self,
|
|
58
|
+
scene: RenderScene,
|
|
59
|
+
cam_ind: int = 0,
|
|
60
|
+
frame_ind: int = 0,
|
|
61
|
+
field_ind: int = 0,
|
|
62
|
+
save_path: Path | None = None) -> None:
|
|
63
|
+
|
|
64
|
+
if save_path is None:
|
|
65
|
+
save_path = DataSet.create_output_path()
|
|
66
|
+
|
|
67
|
+
if not save_path.is_dir():
|
|
68
|
+
raise FileExistsError(f"Save path for render images does not exist:\n{save_path}")
|
|
69
|
+
|
|
70
|
+
RasterNP.raster_frame(
|
|
71
|
+
cam_ind=cam_ind,
|
|
72
|
+
frame_ind=frame_ind,
|
|
73
|
+
field_ind=field_ind,
|
|
74
|
+
cam_data=scene.cameras[cam_ind],
|
|
75
|
+
meshes=scene.meshes,
|
|
76
|
+
opts=self.opts,
|
|
77
|
+
save_path=save_path,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def render_all(self, scene: RenderScene) -> list[np.ndarray]:
|
|
82
|
+
|
|
83
|
+
images = RasterNP.raster_scene(
|
|
84
|
+
scene=scene,
|
|
85
|
+
opts=self.opts,
|
|
86
|
+
save_path=None,
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
return images
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
def render_all_to_disk(self,
|
|
93
|
+
scene: RenderScene,
|
|
94
|
+
save_path: Path | None = None) -> None:
|
|
95
|
+
|
|
96
|
+
if save_path is None:
|
|
97
|
+
save_path = DataSet.create_output_path()
|
|
98
|
+
|
|
99
|
+
if not save_path.is_dir():
|
|
100
|
+
raise FileExistsError(f"Save path for render images does not exist:\n{save_path}")
|
|
101
|
+
|
|
102
|
+
RasterNP.raster_scene(scene=scene,opts=self.opts,save_path=save_path)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
#===============================================================================
|
|
107
|
+
class RasterNP:
|
|
108
|
+
@staticmethod
|
|
109
|
+
def world_to_raster_coords(world_to_cam_mat: np.ndarray,
|
|
110
|
+
pixels_num: np.ndarray,
|
|
111
|
+
image_dims: np.ndarray,
|
|
112
|
+
image_dist: float,
|
|
113
|
+
coords_world: np.ndarray) -> np.ndarray:
|
|
114
|
+
# coords_world.shape=(num_nodes,coord[X,Y,Z,W])
|
|
115
|
+
|
|
116
|
+
# Project onto camera coords
|
|
117
|
+
# coords_raster.shape=(num_nodes,coord[X,Y,Z,W])
|
|
118
|
+
coords_raster = np.matmul(coords_world,world_to_cam_mat.T)
|
|
119
|
+
|
|
120
|
+
# NOTE: w is not 1 when the matrix is a perspective projection! It is only 1
|
|
121
|
+
# here when we have an affine transformation
|
|
122
|
+
coords_raster[:,0] = coords_raster[:,0] / coords_raster[:,3]
|
|
123
|
+
coords_raster[:,1] = coords_raster[:,1] / coords_raster[:,3]
|
|
124
|
+
coords_raster[:,2] = coords_raster[:,2] / coords_raster[:,3]
|
|
125
|
+
|
|
126
|
+
# Coords Image: Perspective divide
|
|
127
|
+
coords_raster[:,0] = (image_dist * coords_raster[:,0]
|
|
128
|
+
/ -coords_raster[:,2])
|
|
129
|
+
coords_raster[:,1] = (image_dist * coords_raster[:,1]
|
|
130
|
+
/ -coords_raster[:,2])
|
|
131
|
+
|
|
132
|
+
# Coords NDC: Convert to normalised device coords in the range [-1,1]
|
|
133
|
+
coords_raster[:,0] = 2*coords_raster[:,0] / image_dims[0]
|
|
134
|
+
coords_raster[:,1] = 2*coords_raster[:,1] / image_dims[1]
|
|
135
|
+
|
|
136
|
+
# Coords Raster: Covert to pixel (raster) coords
|
|
137
|
+
# Shape = ([X,Y,Z],num_nodes)
|
|
138
|
+
coords_raster[:,0] = (coords_raster[:,0] + 1)/2 * pixels_num[0]
|
|
139
|
+
coords_raster[:,1] = (1-coords_raster[:,1])/2 * pixels_num[1]
|
|
140
|
+
coords_raster[:,2] = -coords_raster[:,2]
|
|
141
|
+
|
|
142
|
+
return coords_raster
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
@staticmethod
|
|
146
|
+
def back_face_removal_mask(world_to_cam_mat: np.ndarray,
|
|
147
|
+
coords_world: np.ndarray,
|
|
148
|
+
connect: np.ndarray
|
|
149
|
+
) -> np.ndarray:
|
|
150
|
+
coords_cam = np.matmul(coords_world,world_to_cam_mat.T)
|
|
151
|
+
|
|
152
|
+
# shape=(num_elems,nodes_per_elem,coord[x,y,z,w])
|
|
153
|
+
elem_cam_coords = coords_cam[connect,:]
|
|
154
|
+
|
|
155
|
+
# Calculate the normal vectors for all of the elements, remove the w coord
|
|
156
|
+
# shape=(num_elems,coord[x,y,z])
|
|
157
|
+
elem_cam_edge0 = elem_cam_coords[:,1,:-1] - elem_cam_coords[:,0,:-1]
|
|
158
|
+
elem_cam_edge1 = elem_cam_coords[:,2,:-1] - elem_cam_coords[:,0,:-1]
|
|
159
|
+
elem_cam_normals = np.cross(elem_cam_edge0,elem_cam_edge1,
|
|
160
|
+
axisa=1,axisb=1).T
|
|
161
|
+
elem_cam_normals = elem_cam_normals / np.linalg.norm(elem_cam_normals,axis=0)
|
|
162
|
+
|
|
163
|
+
cam_normal = np.array([0,0,1])
|
|
164
|
+
# shape=(num_elems,)
|
|
165
|
+
proj_elem_to_cam = np.dot(cam_normal,elem_cam_normals)
|
|
166
|
+
|
|
167
|
+
# NOTE this should be a numerical precision tolerance (epsilon)
|
|
168
|
+
back_face_mask = proj_elem_to_cam > 1e-12
|
|
169
|
+
|
|
170
|
+
return back_face_mask
|
|
171
|
+
|
|
172
|
+
@staticmethod
|
|
173
|
+
def crop_and_bound_by_connect(pixels_num: np.ndarray,
|
|
174
|
+
coords_raster: np.ndarray,
|
|
175
|
+
connectivity: np.ndarray,
|
|
176
|
+
) -> tuple[np.ndarray,np.ndarray]:
|
|
177
|
+
|
|
178
|
+
#shape=(num_elems,coord[x,y,z,w])
|
|
179
|
+
if coords_raster.ndim == 2:
|
|
180
|
+
coords_by_elem = coords_raster[connectivity,:]
|
|
181
|
+
else:
|
|
182
|
+
coords_by_elem = coords_raster[connectivity,:,:]
|
|
183
|
+
|
|
184
|
+
elem_raster_coord_min = np.min(coords_by_elem,axis=1)
|
|
185
|
+
elem_raster_coord_max = np.max(coords_by_elem,axis=1)
|
|
186
|
+
|
|
187
|
+
# Check that min/max nodes are within the 4 edges of the camera image
|
|
188
|
+
#shape=(4_edges_to_check,num_elems)
|
|
189
|
+
crop_mask = np.zeros([connectivity.shape[0],4],dtype=np.int8)
|
|
190
|
+
crop_mask[elem_raster_coord_min[:,0] <= (pixels_num[0]-1), 0] = 1
|
|
191
|
+
crop_mask[elem_raster_coord_min[:,1] <= (pixels_num[1]-1), 1] = 1
|
|
192
|
+
crop_mask[elem_raster_coord_max[:,0] >= 0, 2] = 1
|
|
193
|
+
crop_mask[elem_raster_coord_max[:,1] >= 0, 3] = 1
|
|
194
|
+
crop_mask = np.sum(crop_mask,axis=1) == 4
|
|
195
|
+
|
|
196
|
+
# Get only the elements that are within the FOV
|
|
197
|
+
# Mask the elem coords and the max and min elem coords for processing
|
|
198
|
+
elem_raster_coord_min = elem_raster_coord_min[crop_mask,:]
|
|
199
|
+
elem_raster_coord_max = elem_raster_coord_max[crop_mask,:]
|
|
200
|
+
num_elems_in_image = elem_raster_coord_min.shape[0]
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
# Find the indices of the bounding box that each element lies within on
|
|
204
|
+
# the image, bounded by the upper and lower edges of the image
|
|
205
|
+
elem_bound_boxes_inds = np.zeros([num_elems_in_image,4],dtype=np.int32)
|
|
206
|
+
elem_bound_boxes_inds[:,0] = RasterNP.elem_bound_box_low(
|
|
207
|
+
elem_raster_coord_min[:,0])
|
|
208
|
+
elem_bound_boxes_inds[:,1] = RasterNP.elem_bound_box_high(
|
|
209
|
+
elem_raster_coord_max[:,0],
|
|
210
|
+
pixels_num[0]-1)
|
|
211
|
+
elem_bound_boxes_inds[:,2] = RasterNP.elem_bound_box_low(
|
|
212
|
+
elem_raster_coord_min[:,1])
|
|
213
|
+
elem_bound_boxes_inds[:,3] = RasterNP.elem_bound_box_high(
|
|
214
|
+
elem_raster_coord_max[:,1],
|
|
215
|
+
pixels_num[1]-1)
|
|
216
|
+
|
|
217
|
+
return (crop_mask,elem_bound_boxes_inds)
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
@staticmethod
|
|
221
|
+
def elem_bound_box_low(coord_min: np.ndarray) -> np.ndarray:
|
|
222
|
+
bound_elem = np.floor(coord_min).astype(np.int32)
|
|
223
|
+
bound_low = np.zeros_like(coord_min,dtype=np.int32)
|
|
224
|
+
bound_mat = np.vstack((bound_elem,bound_low))
|
|
225
|
+
return np.max(bound_mat,axis=0)
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
@staticmethod
|
|
229
|
+
def elem_bound_box_high(coord_max: np.ndarray,image_px: int) -> np.ndarray:
|
|
230
|
+
bound_elem = np.ceil(coord_max).astype(np.int32)
|
|
231
|
+
bound_high = image_px*np.ones_like(coord_max,dtype=np.int32)
|
|
232
|
+
bound_mat = np.vstack((bound_elem,bound_high))
|
|
233
|
+
bound = np.min(bound_mat,axis=0)
|
|
234
|
+
return bound
|
|
235
|
+
|
|
236
|
+
@staticmethod
|
|
237
|
+
def average_buffers(cam_data: CameraData,
|
|
238
|
+
image_buff_subpx: np.ndarray,
|
|
239
|
+
depth_buff_subpx: np.ndarray) -> tuple[np.ndarray,np.ndarray]:
|
|
240
|
+
|
|
241
|
+
depth_buff_avg = np.empty((cam_data.pixels_num[1],cam_data.pixels_num[0]),
|
|
242
|
+
dtype=np.float64)
|
|
243
|
+
image_buff_avg = np.empty((cam_data.pixels_num[1],cam_data.pixels_num[0]),
|
|
244
|
+
dtype=np.float64)
|
|
245
|
+
|
|
246
|
+
if Path(rastercyth.__file__).suffix in (".so",".dll",".dylib"):
|
|
247
|
+
depth_buff_avg = np.array(
|
|
248
|
+
rastercyth.average_image(depth_buff_subpx,cam_data.sub_samp))
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
image_buff_avg = np.array(
|
|
252
|
+
rastercyth.average_image(image_buff_subpx,cam_data.sub_samp))
|
|
253
|
+
|
|
254
|
+
else:
|
|
255
|
+
depth_buff_avg = CameraTools.average_subpixel_image(
|
|
256
|
+
depth_buff_subpx,cam_data.sub_samp)
|
|
257
|
+
image_buff_avg = CameraTools.average_subpixel_image(
|
|
258
|
+
image_buff_subpx,cam_data.sub_samp)
|
|
259
|
+
|
|
260
|
+
return (image_buff_avg,depth_buff_avg)
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
@staticmethod
|
|
264
|
+
def setup_frame(camera: CameraData,
|
|
265
|
+
mesh: RenderMesh,
|
|
266
|
+
frame_ind: int = 0,
|
|
267
|
+
) -> tuple[np.ndarray,np.ndarray,np.ndarray]:
|
|
268
|
+
|
|
269
|
+
connect_in_frame = np.copy(mesh.connectivity)
|
|
270
|
+
coords_deform = np.copy(mesh.coords)
|
|
271
|
+
|
|
272
|
+
#-----------------------------------------------------------------------
|
|
273
|
+
# DEFORM MESH WITH DISPLACEMENT
|
|
274
|
+
if mesh.fields_disp is not None:
|
|
275
|
+
# Exclude w coord from mesh deformation
|
|
276
|
+
coords_deform[:,:-1] = (coords_deform[:,:-1]
|
|
277
|
+
+ mesh.fields_disp[:,frame_ind,:])
|
|
278
|
+
|
|
279
|
+
#-----------------------------------------------------------------------
|
|
280
|
+
# Convert all meshes from local to world coords
|
|
281
|
+
coords_deform = np.matmul(coords_deform,mesh.mesh_to_world_mat.T)
|
|
282
|
+
|
|
283
|
+
#-----------------------------------------------------------------------
|
|
284
|
+
# Convert world coords of all elements in the scene
|
|
285
|
+
# shape=(num_nodes,coord[x,y,z,w])
|
|
286
|
+
coords_raster = RasterNP.world_to_raster_coords(camera.world_to_cam_mat,
|
|
287
|
+
camera.pixels_num,
|
|
288
|
+
camera.image_dims,
|
|
289
|
+
camera.image_dist,
|
|
290
|
+
coords_deform)
|
|
291
|
+
|
|
292
|
+
# Convert to perspective correct hyperbolic interpolation for z interp
|
|
293
|
+
# shape=(num_nodes,coord[x,y,z,w])
|
|
294
|
+
coords_raster[:,2] = 1/coords_raster[:,2]
|
|
295
|
+
# Remove w coord
|
|
296
|
+
coords_raster = coords_raster[:,:-1]
|
|
297
|
+
|
|
298
|
+
#-----------------------------------------------------------------------
|
|
299
|
+
# BACKFACE REMOVAL
|
|
300
|
+
# shape=(num_elems,)
|
|
301
|
+
back_face_mask = RasterNP.back_face_removal_mask(camera.world_to_cam_mat,
|
|
302
|
+
coords_deform,
|
|
303
|
+
connect_in_frame)
|
|
304
|
+
connect_in_frame = connect_in_frame[back_face_mask,:]
|
|
305
|
+
|
|
306
|
+
#-----------------------------------------------------------------------
|
|
307
|
+
# CROPPING & BOUNDING BOX OPERATIONS
|
|
308
|
+
(crop_mask,
|
|
309
|
+
elem_bound_box_inds) = RasterNP.crop_and_bound_by_connect(
|
|
310
|
+
camera.pixels_num,
|
|
311
|
+
coords_raster,
|
|
312
|
+
connect_in_frame,
|
|
313
|
+
)
|
|
314
|
+
connect_in_frame = connect_in_frame[crop_mask,:]
|
|
315
|
+
|
|
316
|
+
#-----------------------------------------------------------------------
|
|
317
|
+
# ELEMENT AREAS FOR INTERPOLATION
|
|
318
|
+
elem_raster_coords = coords_raster[connect_in_frame,:]
|
|
319
|
+
elem_areas = edge_function_slice(elem_raster_coords[:,0,:],
|
|
320
|
+
elem_raster_coords[:,1,:],
|
|
321
|
+
elem_raster_coords[:,2,:])
|
|
322
|
+
|
|
323
|
+
return (coords_raster,connect_in_frame,elem_bound_box_inds,elem_areas)
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
@staticmethod
|
|
327
|
+
def raster_elem(elem_raster_coords: np.ndarray,
|
|
328
|
+
elem_bound_box_inds: np.ndarray,
|
|
329
|
+
elem_area: float,
|
|
330
|
+
field_divide_z: np.ndarray,
|
|
331
|
+
sub_samp: int,
|
|
332
|
+
) -> tuple[np.ndarray,np.ndarray,np.ndarray,np.ndarray]:
|
|
333
|
+
# elem_raster_coords.shape=()
|
|
334
|
+
# elem_bound_box_inds.shape=()
|
|
335
|
+
# field_divide_z.shape=()
|
|
336
|
+
|
|
337
|
+
# Create the subpixel coords inside the bounding box to test with the
|
|
338
|
+
# edge function. Use the pixel indices of the bounding box.
|
|
339
|
+
bound_subpx_x = np.arange(elem_bound_box_inds[0],
|
|
340
|
+
elem_bound_box_inds[1],
|
|
341
|
+
1/sub_samp) + 1/(2*sub_samp)
|
|
342
|
+
bound_subpx_y = np.arange(elem_bound_box_inds[2],
|
|
343
|
+
elem_bound_box_inds[3],
|
|
344
|
+
1/sub_samp) + 1/(2*sub_samp)
|
|
345
|
+
(bound_subpx_grid_x,bound_subpx_grid_y) = np.meshgrid(bound_subpx_x,
|
|
346
|
+
bound_subpx_y)
|
|
347
|
+
bound_coords_grid_shape = bound_subpx_grid_x.shape
|
|
348
|
+
# shape=(coord[x,y],num_subpx_in_box)
|
|
349
|
+
bound_subpx_coords_flat = np.vstack((bound_subpx_grid_x.flatten(),
|
|
350
|
+
bound_subpx_grid_y.flatten()))
|
|
351
|
+
|
|
352
|
+
# Create the subpixel indices for buffer slicing later
|
|
353
|
+
subpx_inds_x = np.arange(sub_samp*elem_bound_box_inds[0],
|
|
354
|
+
sub_samp*elem_bound_box_inds[1])
|
|
355
|
+
subpx_inds_y = np.arange(sub_samp*elem_bound_box_inds[2],
|
|
356
|
+
sub_samp*elem_bound_box_inds[3])
|
|
357
|
+
(subpx_inds_grid_x,subpx_inds_grid_y) = np.meshgrid(subpx_inds_x,
|
|
358
|
+
subpx_inds_y)
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
# We compute the edge function for all pixels in the box to determine if the
|
|
362
|
+
# pixel is inside the element or not
|
|
363
|
+
# NOTE: first axis of element_raster_coords is the node/vertex num.
|
|
364
|
+
# shape=(num_elems_in_bound,nodes_per_elem)
|
|
365
|
+
edge = np.zeros((3,bound_subpx_coords_flat.shape[1]),dtype=np.float64)
|
|
366
|
+
edge[0,:] = edge_function(elem_raster_coords[1,:],
|
|
367
|
+
elem_raster_coords[2,:],
|
|
368
|
+
bound_subpx_coords_flat)
|
|
369
|
+
edge[1,:] = edge_function(elem_raster_coords[2,:],
|
|
370
|
+
elem_raster_coords[0,:],
|
|
371
|
+
bound_subpx_coords_flat)
|
|
372
|
+
edge[2,:] = edge_function(elem_raster_coords[0,:],
|
|
373
|
+
elem_raster_coords[1,:],
|
|
374
|
+
bound_subpx_coords_flat)
|
|
375
|
+
|
|
376
|
+
# Now we check where the edge function is above zero for all edges
|
|
377
|
+
edge_check = np.zeros_like(edge,dtype=np.int8)
|
|
378
|
+
edge_check[edge >= 0.0] = 1
|
|
379
|
+
edge_check = np.sum(edge_check, axis=0)
|
|
380
|
+
# Create a mask with the check, TODO check the 3 here for non triangles
|
|
381
|
+
edge_mask_flat = edge_check == 3
|
|
382
|
+
edge_mask_grid = np.reshape(edge_mask_flat,bound_coords_grid_shape)
|
|
383
|
+
|
|
384
|
+
# Calculate the weights for the masked pixels
|
|
385
|
+
edge_masked = edge[:,edge_mask_flat]
|
|
386
|
+
interp_weights = edge_masked / elem_area
|
|
387
|
+
|
|
388
|
+
# Compute the depth of all pixels using hyperbolic interp
|
|
389
|
+
# NOTE: second index on raster coords is Z
|
|
390
|
+
px_coord_z = 1/(elem_raster_coords[0,2] * interp_weights[0,:]
|
|
391
|
+
+ elem_raster_coords[1,2] * interp_weights[1,:]
|
|
392
|
+
+ elem_raster_coords[2,2] * interp_weights[2,:])
|
|
393
|
+
|
|
394
|
+
field_interp = ((field_divide_z[0] * interp_weights[0,:]
|
|
395
|
+
+ field_divide_z[1] * interp_weights[1,:]
|
|
396
|
+
+ field_divide_z[2] * interp_weights[2,:])
|
|
397
|
+
* px_coord_z)
|
|
398
|
+
|
|
399
|
+
return (px_coord_z,
|
|
400
|
+
field_interp,
|
|
401
|
+
subpx_inds_grid_x[edge_mask_grid],
|
|
402
|
+
subpx_inds_grid_y[edge_mask_grid])
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
@staticmethod
|
|
406
|
+
def raster_one_mesh(connect_in_frame: np.ndarray,
|
|
407
|
+
coords_raster: np.ndarray,
|
|
408
|
+
elem_bound_box_inds: np.ndarray,
|
|
409
|
+
elem_areas: np.ndarray,
|
|
410
|
+
field_frame_div_z: np.ndarray,
|
|
411
|
+
sub_samp: int,
|
|
412
|
+
image_buff_subpx: np.ndarray,
|
|
413
|
+
depth_buff_subpx: np.ndarray,
|
|
414
|
+
) -> tuple[np.ndarray,np.ndarray]:
|
|
415
|
+
#connect_in_frame.shape=(num_elems,nodes_per_elem)
|
|
416
|
+
#coords_raster.shape=(num_coords,coord[x,y,z,w])
|
|
417
|
+
#elem_bound_box_inds.shape=(num_elems,[min_x,max_x,min_y,max_y])
|
|
418
|
+
#elem_areas.shape=(num_elems,)
|
|
419
|
+
#field_frame_divide_z=(num_coords,)
|
|
420
|
+
|
|
421
|
+
for ee in range(connect_in_frame.shape[0]):
|
|
422
|
+
cc = connect_in_frame[ee,:]
|
|
423
|
+
|
|
424
|
+
(px_coord_z,
|
|
425
|
+
field_interp,
|
|
426
|
+
subpx_inds_x_in,
|
|
427
|
+
subpx_inds_y_in) = RasterNP.raster_elem(coords_raster[cc,:],
|
|
428
|
+
elem_bound_box_inds[ee,:],
|
|
429
|
+
elem_areas[ee],
|
|
430
|
+
field_frame_div_z[cc],
|
|
431
|
+
sub_samp)
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
# Build a mask to replace the depth information if there is already an
|
|
435
|
+
# element in front of the one we are rendering
|
|
436
|
+
px_coord_z_depth_mask = (px_coord_z
|
|
437
|
+
< depth_buff_subpx[subpx_inds_y_in,subpx_inds_x_in])
|
|
438
|
+
|
|
439
|
+
# Initialise the z coord to the value in the depth buffer
|
|
440
|
+
px_coord_z_masked = depth_buff_subpx[subpx_inds_y_in,subpx_inds_x_in]
|
|
441
|
+
# Use the depth mask to overwrite the depth buffer values if points are in
|
|
442
|
+
# front of the values in the depth buffer
|
|
443
|
+
px_coord_z_masked[px_coord_z_depth_mask] = px_coord_z[px_coord_z_depth_mask]
|
|
444
|
+
|
|
445
|
+
# Push the masked values into the depth buffer
|
|
446
|
+
depth_buff_subpx[subpx_inds_y_in,subpx_inds_x_in] = px_coord_z_masked
|
|
447
|
+
|
|
448
|
+
# Mask the image buffer using the depth mask
|
|
449
|
+
image_buffer_depth_masked = image_buff_subpx[subpx_inds_y_in,subpx_inds_x_in]
|
|
450
|
+
image_buffer_depth_masked[px_coord_z_depth_mask] = field_interp[px_coord_z_depth_mask]
|
|
451
|
+
|
|
452
|
+
# Push the masked values into the image buffer
|
|
453
|
+
image_buff_subpx[subpx_inds_y_in,subpx_inds_x_in] = image_buffer_depth_masked
|
|
454
|
+
|
|
455
|
+
#---------------------------------------------------------------------------
|
|
456
|
+
# END RASTER LOOP
|
|
457
|
+
return (image_buff_subpx,depth_buff_subpx)
|
|
458
|
+
|
|
459
|
+
@staticmethod
|
|
460
|
+
def raster_frame(cam_ind: int,
|
|
461
|
+
frame_ind: int,
|
|
462
|
+
field_ind: int,
|
|
463
|
+
cam_data: CameraData,
|
|
464
|
+
meshes: list[RenderMesh],
|
|
465
|
+
opts: RasterOpts,
|
|
466
|
+
save_path: Path | None
|
|
467
|
+
) -> np.ndarray | None:
|
|
468
|
+
|
|
469
|
+
depth_buff_subpx = 1e5*cam_data.image_dist*np.ones(cam_data.sub_samp*cam_data.pixels_num).T
|
|
470
|
+
image_buff_subpx = np.full(cam_data.sub_samp*cam_data.pixels_num,0.0).T
|
|
471
|
+
|
|
472
|
+
for mm in meshes:
|
|
473
|
+
# coords_raster.shape=(num_coords,coord[x,y,z,w])
|
|
474
|
+
# connect_in_frame.shape=(num_elems_in_scene,nodes_per_elem)
|
|
475
|
+
# elem_bound_box_inds.shape=(num_elems_in_scene,4[x_min,x_max,y_min,y_max])
|
|
476
|
+
# elem_areas.shape=(num_elems,)
|
|
477
|
+
(coords_raster,
|
|
478
|
+
connect_in_frame,
|
|
479
|
+
elem_bound_box_inds,
|
|
480
|
+
elem_areas) = RasterNP.setup_frame(
|
|
481
|
+
cam_data,
|
|
482
|
+
mm,
|
|
483
|
+
frame_ind,
|
|
484
|
+
)
|
|
485
|
+
|
|
486
|
+
# NOTE: the z coord has already been inverted in setup so we multiply here
|
|
487
|
+
render_field_div_z = (mm.fields_render[:,frame_ind,field_ind]
|
|
488
|
+
*coords_raster[:,2])
|
|
489
|
+
|
|
490
|
+
# image_buffer.shape=(num_px_y,num_px_x)
|
|
491
|
+
# depth_buffer.shape=(num_px_y,num_px_x)
|
|
492
|
+
(image_buff_subpx,
|
|
493
|
+
depth_buff_subpx) = RasterNP.raster_one_mesh(
|
|
494
|
+
connect_in_frame,
|
|
495
|
+
coords_raster,
|
|
496
|
+
elem_bound_box_inds,
|
|
497
|
+
elem_areas,
|
|
498
|
+
render_field_div_z,
|
|
499
|
+
cam_data.sub_samp,
|
|
500
|
+
image_buff_subpx,
|
|
501
|
+
depth_buff_subpx
|
|
502
|
+
)
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
# TODO: make this configurable
|
|
506
|
+
image_buff_subpx[depth_buff_subpx > 1000*cam_data.image_dist] = np.nan
|
|
507
|
+
depth_buff_subpx[depth_buff_subpx > 1000*cam_data.image_dist] = np.nan
|
|
508
|
+
|
|
509
|
+
# Average buffers
|
|
510
|
+
(image_buff_avg,
|
|
511
|
+
depth_buff_avg) = RasterNP.average_buffers(cam_data,
|
|
512
|
+
image_buff_subpx,
|
|
513
|
+
depth_buff_subpx)
|
|
514
|
+
|
|
515
|
+
if save_path is None:
|
|
516
|
+
return image_buff_avg
|
|
517
|
+
|
|
518
|
+
save_name = ImageTools.get_save_name(cam_ind,frame_ind,field_ind)
|
|
519
|
+
image_save_file = save_path/save_name
|
|
520
|
+
save_raster(image_save_file,image_buff_avg,depth_buff_avg,opts)
|
|
521
|
+
return None
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
@staticmethod
|
|
526
|
+
def raster_scene(scene: RenderScene,
|
|
527
|
+
opts: RasterOpts,
|
|
528
|
+
save_path: Path | None = None,
|
|
529
|
+
) -> list[np.ndarray] | None:
|
|
530
|
+
|
|
531
|
+
# TODO: we assume the number of frames and fields is the same per camera
|
|
532
|
+
# Fix this
|
|
533
|
+
frames_num = scene.meshes[0].fields_render.shape[1]
|
|
534
|
+
field_num = scene.meshes[0].fields_render.shape[2]
|
|
535
|
+
|
|
536
|
+
(cam_inds,
|
|
537
|
+
frame_inds,
|
|
538
|
+
field_inds) = np.meshgrid(np.arange(0,len(scene.cameras)),
|
|
539
|
+
np.arange(0,frames_num),
|
|
540
|
+
np.arange(0,field_num))
|
|
541
|
+
|
|
542
|
+
cam_inds = cam_inds.flatten()
|
|
543
|
+
frame_inds = frame_inds.flatten()
|
|
544
|
+
field_inds = field_inds.flatten()
|
|
545
|
+
frames_total = cam_inds.shape[0]
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
if save_path is None:
|
|
549
|
+
images = []
|
|
550
|
+
for cc in scene.cameras:
|
|
551
|
+
images.append(np.empty((cc.pixels_num[1],
|
|
552
|
+
cc.pixels_num[0],
|
|
553
|
+
frames_num,
|
|
554
|
+
field_num)))
|
|
555
|
+
else:
|
|
556
|
+
images = None
|
|
557
|
+
if not save_path.is_dir():
|
|
558
|
+
save_path.mkdir()
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
if opts.parallel is None:
|
|
562
|
+
for ff in range(0,frames_total):
|
|
563
|
+
image = RasterNP.raster_frame(
|
|
564
|
+
cam_inds[ff],
|
|
565
|
+
frame_inds[ff],
|
|
566
|
+
field_inds[ff],
|
|
567
|
+
scene.cameras[cam_inds[ff]],
|
|
568
|
+
scene.meshes,
|
|
569
|
+
opts,
|
|
570
|
+
save_path,
|
|
571
|
+
)
|
|
572
|
+
|
|
573
|
+
if images is not None:
|
|
574
|
+
images[cam_inds[ff]][:,:,frame_inds[ff],field_inds[ff]] = image
|
|
575
|
+
|
|
576
|
+
else:
|
|
577
|
+
with Pool(opts.parallel) as pool:
|
|
578
|
+
processes_with_id = []
|
|
579
|
+
|
|
580
|
+
for ff in range(0,frames_total):
|
|
581
|
+
args = (cam_inds[ff],
|
|
582
|
+
frame_inds[ff],
|
|
583
|
+
field_inds[ff],
|
|
584
|
+
scene.cameras[cam_inds[ff]],
|
|
585
|
+
scene.meshes,
|
|
586
|
+
opts,
|
|
587
|
+
save_path)
|
|
588
|
+
|
|
589
|
+
process = pool.apply_async(
|
|
590
|
+
RasterNP.raster_frame, args=args
|
|
591
|
+
)
|
|
592
|
+
processes_with_id.append({"process": process,
|
|
593
|
+
"camera": cam_inds[ff],
|
|
594
|
+
"frame": frame_inds[ff],
|
|
595
|
+
"field": field_inds[ff]})
|
|
596
|
+
|
|
597
|
+
for pp in processes_with_id:
|
|
598
|
+
image = pp["process"].get()
|
|
599
|
+
if images is not None:
|
|
600
|
+
images[cam_inds[ff]][:,:,pp["frame"],pp["field"]] = image
|
|
601
|
+
|
|
602
|
+
if images is not None:
|
|
603
|
+
return images
|
|
604
|
+
|
|
605
|
+
return None
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
#-------------------------------------------------------------------------------
|
|
610
|
+
@numba.jit(nopython=True)
|
|
611
|
+
def edge_function(vert_a: np.ndarray,
|
|
612
|
+
vert_b: np.ndarray,
|
|
613
|
+
vert_c: np.ndarray) -> np.ndarray:
|
|
614
|
+
|
|
615
|
+
return ((vert_c[0] - vert_a[0]) * (vert_b[1] - vert_a[1])
|
|
616
|
+
- (vert_c[1] - vert_a[1]) * (vert_b[0] - vert_a[0]))
|
|
617
|
+
|
|
618
|
+
@numba.jit(nopython=True)
|
|
619
|
+
def edge_function_slice(vert_a: np.ndarray,
|
|
620
|
+
vert_b: np.ndarray,
|
|
621
|
+
vert_c: np.ndarray) -> np.ndarray:
|
|
622
|
+
|
|
623
|
+
return ((vert_c[:,0] - vert_a[:,0]) * (vert_b[:,1] - vert_a[:,1])
|
|
624
|
+
- (vert_c[:,1] - vert_a[:,1]) * (vert_b[:,0] - vert_a[:,0]))
|
|
625
|
+
#-------------------------------------------------------------------------------
|
|
626
|
+
|
|
627
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
#===============================================================================
|
|
2
|
+
# pyvale: the python validation engine
|
|
3
|
+
# License: MIT
|
|
4
|
+
# Copyright (C) 2025 The Computer Aided Validation Team
|
|
5
|
+
#===============================================================================
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
from dataclasses import dataclass
|
|
8
|
+
import numpy as np
|
|
9
|
+
from pyvale.sensorsim.imagetools import EImageType, ImageTools
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@dataclass(slots=True)
|
|
13
|
+
class RasterOpts:
|
|
14
|
+
|
|
15
|
+
image_min_frac: float = 0.0
|
|
16
|
+
image_max_frac: float = 1.0
|
|
17
|
+
image_background_frac: float = 0.5
|
|
18
|
+
image_bits: int = 16
|
|
19
|
+
image_type: EImageType = EImageType.TIFF
|
|
20
|
+
|
|
21
|
+
subsample: int = 2
|
|
22
|
+
parallel: int = 4
|
|
23
|
+
|
|
24
|
+
force_static: bool = False
|
|
25
|
+
save_depth_array: bool = False
|
|
26
|
+
save_depth_image: EImageType | None = None
|
|
27
|
+
save_image_array: bool = False
|
|
28
|
+
|
|
29
|
+
def __post_init__(self) -> None:
|
|
30
|
+
assert self.image_bits > 0, "Image bits must be greater than 0."
|
|
31
|
+
assert self.subsample > 0, "Subsampling must be larger than 0."
|
|
32
|
+
assert self.parallel > 0, "Number of parallel renders must be larger than 0"
|
|
33
|
+
|
|
34
|
+
def save_raster(save_file: Path,
|
|
35
|
+
image_buff: np.ndarray,
|
|
36
|
+
depth_buff: np.ndarray,
|
|
37
|
+
opts: RasterOpts) -> None:
|
|
38
|
+
|
|
39
|
+
ImageTools.scale_digitise_save(save_file,
|
|
40
|
+
image_buff,
|
|
41
|
+
opts.image_type,
|
|
42
|
+
opts.image_bits,
|
|
43
|
+
opts.image_min_frac,
|
|
44
|
+
opts.image_max_frac,
|
|
45
|
+
opts.image_background_frac)
|
|
46
|
+
|
|
47
|
+
if opts.save_image_array:
|
|
48
|
+
np.save(save_file.with_suffix(".npy"),image_buff)
|
|
49
|
+
|
|
50
|
+
if opts.save_depth_image is not None:
|
|
51
|
+
depth_path = save_file.with_stem(f"{save_file.stem}_depth")
|
|
52
|
+
ImageTools.scale_digitise_save(depth_path,
|
|
53
|
+
depth_buff,
|
|
54
|
+
opts.save_depth_image)
|
|
55
|
+
|
|
56
|
+
if opts.save_depth_array:
|
|
57
|
+
depth_path = save_file.with_stem(f"{save_file.stem}_depth")
|
|
58
|
+
np.save(depth_path.with_suffix(".npy"),depth_buff)
|