casadi 3.7.2__cp314-none-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.
- casadi/__init__.py +92 -0
- casadi/_casadi.so +0 -0
- casadi/casadi-cli +0 -0
- casadi/casadi.py +54468 -0
- casadi/cbc +0 -0
- casadi/clp +0 -0
- casadi/cmake/alpaqa/alpaqaConfig.cmake +24 -0
- casadi/cmake/alpaqa/alpaqaConfigVersion.cmake +65 -0
- casadi/cmake/alpaqa/alpaqaTargets-release.cmake +29 -0
- casadi/cmake/alpaqa/alpaqaTargets.cmake +131 -0
- casadi/cmake/casadi-config-version.cmake +11 -0
- casadi/cmake/casadi-config.cmake +8 -0
- casadi/cmake/casadi-targets-release.cmake +19 -0
- casadi/cmake/casadi-targets.cmake +107 -0
- casadi/cmake/ghc_filesystem/ghc_filesystem-config-version.cmake +85 -0
- casadi/cmake/ghc_filesystem/ghc_filesystem-config.cmake +30 -0
- casadi/cmake/ghc_filesystem/ghc_filesystem-targets.cmake +107 -0
- casadi/cmake/highs/highs-config.cmake +17 -0
- casadi/cmake/highs/highs-targets-release.cmake +28 -0
- casadi/cmake/highs/highs-targets.cmake +117 -0
- casadi/cmake/libzip/libzip-config-version.cmake +43 -0
- casadi/cmake/libzip/libzip-config.cmake +69 -0
- casadi/cmake/libzip/libzip-targets-release.cmake +19 -0
- casadi/cmake/libzip/libzip-targets.cmake +107 -0
- casadi/cmake/libzip/modules/FindMbedTLS.cmake +141 -0
- casadi/cmake/libzip/modules/FindNettle.cmake +141 -0
- casadi/cmake/libzip/modules/Findzstd.cmake +186 -0
- casadi/cmake/osqp/osqp-config.cmake +1 -0
- casadi/cmake/osqp/osqp-targets-noconfig.cmake +29 -0
- casadi/cmake/osqp/osqp-targets.cmake +113 -0
- casadi/cmake/proxsuite/find-external/Simde/FindSimde.cmake +39 -0
- casadi/cmake/proxsuite/proxsuiteConfig.cmake +177 -0
- casadi/cmake/proxsuite/proxsuiteConfigVersion.cmake +65 -0
- casadi/cmake/proxsuite/proxsuiteTargets.cmake +115 -0
- casadi/cmake/qdldl/qdldl-config.cmake +1 -0
- casadi/cmake/qdldl/qdldl-targets-noconfig.cmake +29 -0
- casadi/cmake/qdldl/qdldl-targets.cmake +113 -0
- casadi/cmake/sleqp/sleqp-config-version.cmake +65 -0
- casadi/cmake/sleqp/sleqp-config.cmake +1 -0
- casadi/cmake/sleqp/sleqp-targets-release.cmake +20 -0
- casadi/cmake/sleqp/sleqp-targets.cmake +106 -0
- casadi/cmake/trlib/trlib-config-release.cmake +19 -0
- casadi/cmake/trlib/trlib-config-version.cmake +83 -0
- casadi/cmake/trlib/trlib-config.cmake +107 -0
- casadi/highs +0 -0
- casadi/include/casadi/casadi.hpp +31 -0
- casadi/include/casadi/casadi.i +4920 -0
- casadi/include/casadi/casadi_c.h +138 -0
- casadi/include/casadi/casadi_numpy.hpp +97 -0
- casadi/include/casadi/config.h +46 -0
- casadi/include/casadi/core/archiver.hpp +58 -0
- casadi/include/casadi/core/blazing_spline.hpp +47 -0
- casadi/include/casadi/core/calculus.hpp +1805 -0
- casadi/include/casadi/core/callback.hpp +235 -0
- casadi/include/casadi/core/casadi_common.hpp +355 -0
- casadi/include/casadi/core/casadi_enum.hpp +90 -0
- casadi/include/casadi/core/casadi_export.h +43 -0
- casadi/include/casadi/core/casadi_interrupt.hpp +83 -0
- casadi/include/casadi/core/casadi_limits.hpp +104 -0
- casadi/include/casadi/core/casadi_logger.hpp +134 -0
- casadi/include/casadi/core/casadi_meta.hpp +122 -0
- casadi/include/casadi/core/casadi_misc.hpp +1022 -0
- casadi/include/casadi/core/casadi_types.hpp +66 -0
- casadi/include/casadi/core/code_generator.hpp +1071 -0
- casadi/include/casadi/core/conic.hpp +213 -0
- casadi/include/casadi/core/core.hpp +75 -0
- casadi/include/casadi/core/dae_builder.hpp +885 -0
- casadi/include/casadi/core/dm.hpp +90 -0
- casadi/include/casadi/core/dm_fwd.hpp +39 -0
- casadi/include/casadi/core/dple.hpp +138 -0
- casadi/include/casadi/core/exception.hpp +167 -0
- casadi/include/casadi/core/expm.hpp +84 -0
- casadi/include/casadi/core/external.hpp +70 -0
- casadi/include/casadi/core/filesystem.hpp +58 -0
- casadi/include/casadi/core/fmu.hpp +270 -0
- casadi/include/casadi/core/function.hpp +1389 -0
- casadi/include/casadi/core/generic_expression.hpp +760 -0
- casadi/include/casadi/core/generic_matrix.hpp +1805 -0
- casadi/include/casadi/core/generic_shared.hpp +395 -0
- casadi/include/casadi/core/generic_shared_impl.hpp +218 -0
- casadi/include/casadi/core/generic_shared_internal.hpp +215 -0
- casadi/include/casadi/core/generic_type.hpp +314 -0
- casadi/include/casadi/core/global_options.hpp +107 -0
- casadi/include/casadi/core/im.hpp +52 -0
- casadi/include/casadi/core/im_fwd.hpp +35 -0
- casadi/include/casadi/core/importer.hpp +221 -0
- casadi/include/casadi/core/integration_tools.hpp +292 -0
- casadi/include/casadi/core/integrator.hpp +290 -0
- casadi/include/casadi/core/interpolant.hpp +163 -0
- casadi/include/casadi/core/linsol.hpp +171 -0
- casadi/include/casadi/core/matrix_decl.hpp +1423 -0
- casadi/include/casadi/core/matrix_fwd.hpp +37 -0
- casadi/include/casadi/core/mx.hpp +1014 -0
- casadi/include/casadi/core/nlp_builder.hpp +163 -0
- casadi/include/casadi/core/nlp_tools.hpp +124 -0
- casadi/include/casadi/core/nlpsol.hpp +234 -0
- casadi/include/casadi/core/nonzeros.hpp +111 -0
- casadi/include/casadi/core/options.hpp +122 -0
- casadi/include/casadi/core/optistack.hpp +704 -0
- casadi/include/casadi/core/polynomial.hpp +126 -0
- casadi/include/casadi/core/printable.hpp +81 -0
- casadi/include/casadi/core/resource.hpp +107 -0
- casadi/include/casadi/core/rootfinder.hpp +176 -0
- casadi/include/casadi/core/runtime/casadi_axpy.hpp +8 -0
- casadi/include/casadi/core/runtime/casadi_bfgs.hpp +49 -0
- casadi/include/casadi/core/runtime/casadi_bilin.hpp +42 -0
- casadi/include/casadi/core/runtime/casadi_blazing_1d_boor_eval.hpp +112 -0
- casadi/include/casadi/core/runtime/casadi_blazing_2d_boor_eval.hpp +311 -0
- casadi/include/casadi/core/runtime/casadi_blazing_3d_boor_eval.hpp +645 -0
- casadi/include/casadi/core/runtime/casadi_blazing_de_boor.hpp +101 -0
- casadi/include/casadi/core/runtime/casadi_bound_consistency.hpp +51 -0
- casadi/include/casadi/core/runtime/casadi_cache.hpp +59 -0
- casadi/include/casadi/core/runtime/casadi_clear.hpp +27 -0
- casadi/include/casadi/core/runtime/casadi_clip_max.hpp +33 -0
- casadi/include/casadi/core/runtime/casadi_clip_min.hpp +33 -0
- casadi/include/casadi/core/runtime/casadi_convexify.hpp +182 -0
- casadi/include/casadi/core/runtime/casadi_copy.hpp +31 -0
- casadi/include/casadi/core/runtime/casadi_cvx.hpp +463 -0
- casadi/include/casadi/core/runtime/casadi_de_boor.hpp +36 -0
- casadi/include/casadi/core/runtime/casadi_dense_lsqr.hpp +247 -0
- casadi/include/casadi/core/runtime/casadi_densify.hpp +48 -0
- casadi/include/casadi/core/runtime/casadi_dot.hpp +27 -0
- casadi/include/casadi/core/runtime/casadi_feasiblesqpmethod.hpp +208 -0
- casadi/include/casadi/core/runtime/casadi_file_slurp.hpp +32 -0
- casadi/include/casadi/core/runtime/casadi_fill.hpp +27 -0
- casadi/include/casadi/core/runtime/casadi_finite_diff.hpp +345 -0
- casadi/include/casadi/core/runtime/casadi_flip.hpp +33 -0
- casadi/include/casadi/core/runtime/casadi_getu.hpp +35 -0
- casadi/include/casadi/core/runtime/casadi_iamax.hpp +36 -0
- casadi/include/casadi/core/runtime/casadi_interpn.hpp +39 -0
- casadi/include/casadi/core/runtime/casadi_interpn_grad.hpp +72 -0
- casadi/include/casadi/core/runtime/casadi_interpn_interpolate.hpp +43 -0
- casadi/include/casadi/core/runtime/casadi_interpn_weights.hpp +39 -0
- casadi/include/casadi/core/runtime/casadi_ipqp.hpp +868 -0
- casadi/include/casadi/core/runtime/casadi_jac.hpp +186 -0
- casadi/include/casadi/core/runtime/casadi_kkt.hpp +67 -0
- casadi/include/casadi/core/runtime/casadi_kron.hpp +50 -0
- casadi/include/casadi/core/runtime/casadi_ldl.hpp +109 -0
- casadi/include/casadi/core/runtime/casadi_logsumexp.hpp +41 -0
- casadi/include/casadi/core/runtime/casadi_low.hpp +65 -0
- casadi/include/casadi/core/runtime/casadi_lsqr.hpp +247 -0
- casadi/include/casadi/core/runtime/casadi_masked_norm_inf.hpp +33 -0
- casadi/include/casadi/core/runtime/casadi_max_viol.hpp +37 -0
- casadi/include/casadi/core/runtime/casadi_mmax.hpp +28 -0
- casadi/include/casadi/core/runtime/casadi_mmin.hpp +29 -0
- casadi/include/casadi/core/runtime/casadi_mtimes.hpp +75 -0
- casadi/include/casadi/core/runtime/casadi_mv.hpp +46 -0
- casadi/include/casadi/core/runtime/casadi_mv_dense.hpp +39 -0
- casadi/include/casadi/core/runtime/casadi_nd_boor_dual_eval.hpp +127 -0
- casadi/include/casadi/core/runtime/casadi_nd_boor_eval.hpp +120 -0
- casadi/include/casadi/core/runtime/casadi_newton.hpp +66 -0
- casadi/include/casadi/core/runtime/casadi_nlp.hpp +295 -0
- casadi/include/casadi/core/runtime/casadi_norm_1.hpp +29 -0
- casadi/include/casadi/core/runtime/casadi_norm_2.hpp +24 -0
- casadi/include/casadi/core/runtime/casadi_norm_inf.hpp +28 -0
- casadi/include/casadi/core/runtime/casadi_norm_inf_mul.hpp +105 -0
- casadi/include/casadi/core/runtime/casadi_ocp_block.hpp +55 -0
- casadi/include/casadi/core/runtime/casadi_oracle.hpp +44 -0
- casadi/include/casadi/core/runtime/casadi_oracle_callback.hpp +39 -0
- casadi/include/casadi/core/runtime/casadi_polyval.hpp +29 -0
- casadi/include/casadi/core/runtime/casadi_print_canonical.hpp +55 -0
- casadi/include/casadi/core/runtime/casadi_print_scalar.hpp +25 -0
- casadi/include/casadi/core/runtime/casadi_print_vector.hpp +32 -0
- casadi/include/casadi/core/runtime/casadi_printme.hpp +26 -0
- casadi/include/casadi/core/runtime/casadi_project.hpp +39 -0
- casadi/include/casadi/core/runtime/casadi_qp.hpp +86 -0
- casadi/include/casadi/core/runtime/casadi_qr.hpp +272 -0
- casadi/include/casadi/core/runtime/casadi_qrqp.hpp +1239 -0
- casadi/include/casadi/core/runtime/casadi_rank1.hpp +40 -0
- casadi/include/casadi/core/runtime/casadi_regularize.hpp +73 -0
- casadi/include/casadi/core/runtime/casadi_runtime.hpp +318 -0
- casadi/include/casadi/core/runtime/casadi_scal.hpp +26 -0
- casadi/include/casadi/core/runtime/casadi_scaled_copy.hpp +31 -0
- casadi/include/casadi/core/runtime/casadi_sparsify.hpp +42 -0
- casadi/include/casadi/core/runtime/casadi_sparsity.hpp +24 -0
- casadi/include/casadi/core/runtime/casadi_sqpmethod.hpp +178 -0
- casadi/include/casadi/core/runtime/casadi_sum.hpp +31 -0
- casadi/include/casadi/core/runtime/casadi_sum_viol.hpp +37 -0
- casadi/include/casadi/core/runtime/casadi_swap.hpp +32 -0
- casadi/include/casadi/core/runtime/casadi_trans.hpp +35 -0
- casadi/include/casadi/core/runtime/casadi_tri_project.hpp +37 -0
- casadi/include/casadi/core/runtime/casadi_trilsolve.hpp +81 -0
- casadi/include/casadi/core/runtime/casadi_triusolve.hpp +81 -0
- casadi/include/casadi/core/runtime/casadi_vector_fmax.hpp +28 -0
- casadi/include/casadi/core/runtime/casadi_vector_fmin.hpp +28 -0
- casadi/include/casadi/core/runtime/casadi_vfmax.hpp +28 -0
- casadi/include/casadi/core/runtime/casadi_vfmin.hpp +28 -0
- casadi/include/casadi/core/runtime/shared.hpp +261 -0
- casadi/include/casadi/core/serializer.hpp +264 -0
- casadi/include/casadi/core/serializing_stream.hpp +336 -0
- casadi/include/casadi/core/shared_object.hpp +182 -0
- casadi/include/casadi/core/slice.hpp +149 -0
- casadi/include/casadi/core/sparsity.hpp +1507 -0
- casadi/include/casadi/core/sparsity_interface.hpp +763 -0
- casadi/include/casadi/core/submatrix.hpp +156 -0
- casadi/include/casadi/core/sx.hpp +244 -0
- casadi/include/casadi/core/sx_elem.hpp +376 -0
- casadi/include/casadi/core/sx_fwd.hpp +45 -0
- casadi/include/casadi/core/timing.hpp +98 -0
- casadi/include/casadi/core/tools.hpp +67 -0
- casadi/include/casadi/core/xml_file.hpp +93 -0
- casadi/include/casadi/core/xml_node.hpp +212 -0
- casadi/include/casadi/doc.i +62244 -0
- casadi/include/casadi/doc_merged.i +38499 -0
- casadi/include/casadi/mem.h +311 -0
- casadi/include/casadi/valgrind-casadi.supp +649 -0
- casadi/include/casadi/valgrind-python.supp +3886 -0
- casadi/include/coin-or/IpAlgBuilder.hpp +417 -0
- casadi/include/coin-or/IpAlgStrategy.hpp +201 -0
- casadi/include/coin-or/IpAlgTypes.hpp +64 -0
- casadi/include/coin-or/IpAugSystemSolver.hpp +212 -0
- casadi/include/coin-or/IpBlas.hpp +426 -0
- casadi/include/coin-or/IpCachedResults.hpp +897 -0
- casadi/include/coin-or/IpCompoundMatrix.hpp +423 -0
- casadi/include/coin-or/IpCompoundSymMatrix.hpp +348 -0
- casadi/include/coin-or/IpCompoundVector.hpp +395 -0
- casadi/include/coin-or/IpConvCheck.hpp +97 -0
- casadi/include/coin-or/IpDebug.hpp +167 -0
- casadi/include/coin-or/IpDenseVector.hpp +626 -0
- casadi/include/coin-or/IpDiagMatrix.hpp +158 -0
- casadi/include/coin-or/IpEqMultCalculator.hpp +76 -0
- casadi/include/coin-or/IpException.hpp +156 -0
- casadi/include/coin-or/IpExpansionMatrix.hpp +245 -0
- casadi/include/coin-or/IpGenTMatrix.hpp +290 -0
- casadi/include/coin-or/IpHessianUpdater.hpp +73 -0
- casadi/include/coin-or/IpIdentityMatrix.hpp +167 -0
- casadi/include/coin-or/IpIpoptAlg.hpp +257 -0
- casadi/include/coin-or/IpIpoptApplication.hpp +367 -0
- casadi/include/coin-or/IpIpoptCalculatedQuantities.hpp +1009 -0
- casadi/include/coin-or/IpIpoptData.hpp +966 -0
- casadi/include/coin-or/IpIpoptNLP.hpp +328 -0
- casadi/include/coin-or/IpIterateInitializer.hpp +68 -0
- casadi/include/coin-or/IpIteratesVector.hpp +840 -0
- casadi/include/coin-or/IpIterationOutput.hpp +78 -0
- casadi/include/coin-or/IpJournalist.hpp +573 -0
- casadi/include/coin-or/IpLapack.hpp +227 -0
- casadi/include/coin-or/IpLibraryLoader.hpp +76 -0
- casadi/include/coin-or/IpLineSearch.hpp +106 -0
- casadi/include/coin-or/IpLinearSolvers.h +46 -0
- casadi/include/coin-or/IpMatrix.hpp +434 -0
- casadi/include/coin-or/IpMuUpdate.hpp +77 -0
- casadi/include/coin-or/IpNLP.hpp +306 -0
- casadi/include/coin-or/IpNLPScaling.hpp +582 -0
- casadi/include/coin-or/IpObserver.hpp +422 -0
- casadi/include/coin-or/IpOptionsList.hpp +412 -0
- casadi/include/coin-or/IpOrigIpoptNLP.hpp +603 -0
- casadi/include/coin-or/IpPDSystemSolver.hpp +137 -0
- casadi/include/coin-or/IpReferenced.hpp +262 -0
- casadi/include/coin-or/IpRegOptions.hpp +1152 -0
- casadi/include/coin-or/IpReturnCodes.h +23 -0
- casadi/include/coin-or/IpReturnCodes.hpp +18 -0
- casadi/include/coin-or/IpReturnCodes.inc +71 -0
- casadi/include/coin-or/IpReturnCodes_inc.h +45 -0
- casadi/include/coin-or/IpScaledMatrix.hpp +291 -0
- casadi/include/coin-or/IpSearchDirCalculator.hpp +72 -0
- casadi/include/coin-or/IpSmartPtr.hpp +865 -0
- casadi/include/coin-or/IpSolveStatistics.hpp +210 -0
- casadi/include/coin-or/IpSparseSymLinearSolverInterface.hpp +260 -0
- casadi/include/coin-or/IpStdAugSystemSolver.cpp +555 -0
- casadi/include/coin-or/IpStdCInterface.h +428 -0
- casadi/include/coin-or/IpSumSymMatrix.hpp +186 -0
- casadi/include/coin-or/IpSymLinearSolver.hpp +141 -0
- casadi/include/coin-or/IpSymMatrix.hpp +167 -0
- casadi/include/coin-or/IpSymScaledMatrix.hpp +255 -0
- casadi/include/coin-or/IpSymTMatrix.hpp +275 -0
- casadi/include/coin-or/IpTNLP.hpp +820 -0
- casadi/include/coin-or/IpTNLPAdapter.hpp +648 -0
- casadi/include/coin-or/IpTNLPReducer.hpp +274 -0
- casadi/include/coin-or/IpTaggedObject.hpp +128 -0
- casadi/include/coin-or/IpTimedTask.hpp +218 -0
- casadi/include/coin-or/IpTimingStatistics.hpp +323 -0
- casadi/include/coin-or/IpTripletHelper.hpp +308 -0
- casadi/include/coin-or/IpTypes.h +81 -0
- casadi/include/coin-or/IpTypes.hpp +30 -0
- casadi/include/coin-or/IpUtils.hpp +166 -0
- casadi/include/coin-or/IpVector.hpp +892 -0
- casadi/include/coin-or/IpZeroSymMatrix.hpp +155 -0
- casadi/include/coin-or/IpoptConfig.h +45 -0
- casadi/include/coin-or/SensAlgorithm.hpp +114 -0
- casadi/include/coin-or/SensApplication.hpp +188 -0
- casadi/include/coin-or/SensBacksolver.hpp +36 -0
- casadi/include/coin-or/SensMeasurement.hpp +56 -0
- casadi/include/coin-or/SensPCalculator.hpp +137 -0
- casadi/include/coin-or/SensRegOp.hpp +21 -0
- casadi/include/coin-or/SensSchurData.hpp +182 -0
- casadi/include/coin-or/SensSchurDriver.hpp +118 -0
- casadi/include/coin-or/SensSimpleBacksolver.hpp +49 -0
- casadi/include/coin-or/SensStepCalc.hpp +85 -0
- casadi/include/coin-or/SensUtils.hpp +63 -0
- casadi/include/coin-or/metis/defs.h +161 -0
- casadi/include/coin-or/metis/macros.h +143 -0
- casadi/include/coin-or/metis/metis.h +37 -0
- casadi/include/coin-or/metis/proto.h +505 -0
- casadi/include/coin-or/metis/rename.h +418 -0
- casadi/include/coin-or/metis/struct.h +251 -0
- casadi/include/coin-or/mumps/dmumps_c.h +142 -0
- casadi/include/coin-or/mumps/mumps_c_types.h +72 -0
- casadi/include/coin-or/mumps/mumps_compat.h +27 -0
- casadi/include/coin-or/mumps/mumps_int_def.h +11 -0
- casadi/include/coin-or/mumps/mumps_mpi.h +67 -0
- casadi/include/daqp/api.h +46 -0
- casadi/include/daqp/auxiliary.h +29 -0
- casadi/include/daqp/bnb.h +32 -0
- casadi/include/daqp/codegen.h +18 -0
- casadi/include/daqp/constants.h +92 -0
- casadi/include/daqp/daqp.h +22 -0
- casadi/include/daqp/daqp_prox.h +18 -0
- casadi/include/daqp/factorization.h +18 -0
- casadi/include/daqp/types.h +161 -0
- casadi/include/daqp/utils.h +44 -0
- casadi/include/eigen3/Eigen/Cholesky +45 -0
- casadi/include/eigen3/Eigen/CholmodSupport +48 -0
- casadi/include/eigen3/Eigen/Core +384 -0
- casadi/include/eigen3/Eigen/Dense +7 -0
- casadi/include/eigen3/Eigen/Eigen +2 -0
- casadi/include/eigen3/Eigen/Eigenvalues +60 -0
- casadi/include/eigen3/Eigen/Geometry +59 -0
- casadi/include/eigen3/Eigen/Householder +29 -0
- casadi/include/eigen3/Eigen/IterativeLinearSolvers +48 -0
- casadi/include/eigen3/Eigen/Jacobi +32 -0
- casadi/include/eigen3/Eigen/KLUSupport +41 -0
- casadi/include/eigen3/Eigen/LU +47 -0
- casadi/include/eigen3/Eigen/MetisSupport +35 -0
- casadi/include/eigen3/Eigen/OrderingMethods +70 -0
- casadi/include/eigen3/Eigen/PaStiXSupport +49 -0
- casadi/include/eigen3/Eigen/PardisoSupport +35 -0
- casadi/include/eigen3/Eigen/QR +50 -0
- casadi/include/eigen3/Eigen/QtAlignedMalloc +39 -0
- casadi/include/eigen3/Eigen/SPQRSupport +34 -0
- casadi/include/eigen3/Eigen/SVD +50 -0
- casadi/include/eigen3/Eigen/Sparse +34 -0
- casadi/include/eigen3/Eigen/SparseCholesky +37 -0
- casadi/include/eigen3/Eigen/SparseCore +69 -0
- casadi/include/eigen3/Eigen/SparseLU +50 -0
- casadi/include/eigen3/Eigen/SparseQR +36 -0
- casadi/include/eigen3/Eigen/StdDeque +27 -0
- casadi/include/eigen3/Eigen/StdList +26 -0
- casadi/include/eigen3/Eigen/StdVector +27 -0
- casadi/include/eigen3/Eigen/SuperLUSupport +64 -0
- casadi/include/eigen3/Eigen/UmfPackSupport +40 -0
- casadi/include/eigen3/Eigen/src/Cholesky/LDLT.h +688 -0
- casadi/include/eigen3/Eigen/src/Cholesky/LLT.h +558 -0
- casadi/include/eigen3/Eigen/src/Cholesky/LLT_LAPACKE.h +99 -0
- casadi/include/eigen3/Eigen/src/CholmodSupport/CholmodSupport.h +682 -0
- casadi/include/eigen3/Eigen/src/Core/ArithmeticSequence.h +413 -0
- casadi/include/eigen3/Eigen/src/Core/Array.h +417 -0
- casadi/include/eigen3/Eigen/src/Core/ArrayBase.h +226 -0
- casadi/include/eigen3/Eigen/src/Core/ArrayWrapper.h +209 -0
- casadi/include/eigen3/Eigen/src/Core/Assign.h +90 -0
- casadi/include/eigen3/Eigen/src/Core/AssignEvaluator.h +1010 -0
- casadi/include/eigen3/Eigen/src/Core/Assign_MKL.h +178 -0
- casadi/include/eigen3/Eigen/src/Core/BandMatrix.h +353 -0
- casadi/include/eigen3/Eigen/src/Core/Block.h +448 -0
- casadi/include/eigen3/Eigen/src/Core/BooleanRedux.h +162 -0
- casadi/include/eigen3/Eigen/src/Core/CommaInitializer.h +164 -0
- casadi/include/eigen3/Eigen/src/Core/ConditionEstimator.h +175 -0
- casadi/include/eigen3/Eigen/src/Core/CoreEvaluators.h +1741 -0
- casadi/include/eigen3/Eigen/src/Core/CoreIterators.h +132 -0
- casadi/include/eigen3/Eigen/src/Core/CwiseBinaryOp.h +183 -0
- casadi/include/eigen3/Eigen/src/Core/CwiseNullaryOp.h +1001 -0
- casadi/include/eigen3/Eigen/src/Core/CwiseTernaryOp.h +197 -0
- casadi/include/eigen3/Eigen/src/Core/CwiseUnaryOp.h +103 -0
- casadi/include/eigen3/Eigen/src/Core/CwiseUnaryView.h +132 -0
- casadi/include/eigen3/Eigen/src/Core/DenseBase.h +701 -0
- casadi/include/eigen3/Eigen/src/Core/DenseCoeffsBase.h +685 -0
- casadi/include/eigen3/Eigen/src/Core/DenseStorage.h +652 -0
- casadi/include/eigen3/Eigen/src/Core/Diagonal.h +258 -0
- casadi/include/eigen3/Eigen/src/Core/DiagonalMatrix.h +391 -0
- casadi/include/eigen3/Eigen/src/Core/DiagonalProduct.h +28 -0
- casadi/include/eigen3/Eigen/src/Core/Dot.h +318 -0
- casadi/include/eigen3/Eigen/src/Core/EigenBase.h +160 -0
- casadi/include/eigen3/Eigen/src/Core/ForceAlignedAccess.h +150 -0
- casadi/include/eigen3/Eigen/src/Core/Fuzzy.h +155 -0
- casadi/include/eigen3/Eigen/src/Core/GeneralProduct.h +465 -0
- casadi/include/eigen3/Eigen/src/Core/GenericPacketMath.h +1040 -0
- casadi/include/eigen3/Eigen/src/Core/GlobalFunctions.h +194 -0
- casadi/include/eigen3/Eigen/src/Core/IO.h +258 -0
- casadi/include/eigen3/Eigen/src/Core/IndexedView.h +237 -0
- casadi/include/eigen3/Eigen/src/Core/Inverse.h +117 -0
- casadi/include/eigen3/Eigen/src/Core/Map.h +171 -0
- casadi/include/eigen3/Eigen/src/Core/MapBase.h +310 -0
- casadi/include/eigen3/Eigen/src/Core/MathFunctions.h +2057 -0
- casadi/include/eigen3/Eigen/src/Core/MathFunctionsImpl.h +200 -0
- casadi/include/eigen3/Eigen/src/Core/Matrix.h +565 -0
- casadi/include/eigen3/Eigen/src/Core/MatrixBase.h +547 -0
- casadi/include/eigen3/Eigen/src/Core/NestByValue.h +85 -0
- casadi/include/eigen3/Eigen/src/Core/NoAlias.h +109 -0
- casadi/include/eigen3/Eigen/src/Core/NumTraits.h +335 -0
- casadi/include/eigen3/Eigen/src/Core/PartialReduxEvaluator.h +232 -0
- casadi/include/eigen3/Eigen/src/Core/PermutationMatrix.h +605 -0
- casadi/include/eigen3/Eigen/src/Core/PlainObjectBase.h +1128 -0
- casadi/include/eigen3/Eigen/src/Core/Product.h +191 -0
- casadi/include/eigen3/Eigen/src/Core/ProductEvaluators.h +1179 -0
- casadi/include/eigen3/Eigen/src/Core/Random.h +218 -0
- casadi/include/eigen3/Eigen/src/Core/Redux.h +515 -0
- casadi/include/eigen3/Eigen/src/Core/Ref.h +381 -0
- casadi/include/eigen3/Eigen/src/Core/Replicate.h +142 -0
- casadi/include/eigen3/Eigen/src/Core/Reshaped.h +454 -0
- casadi/include/eigen3/Eigen/src/Core/ReturnByValue.h +119 -0
- casadi/include/eigen3/Eigen/src/Core/Reverse.h +217 -0
- casadi/include/eigen3/Eigen/src/Core/Select.h +164 -0
- casadi/include/eigen3/Eigen/src/Core/SelfAdjointView.h +365 -0
- casadi/include/eigen3/Eigen/src/Core/SelfCwiseBinaryOp.h +47 -0
- casadi/include/eigen3/Eigen/src/Core/Solve.h +188 -0
- casadi/include/eigen3/Eigen/src/Core/SolveTriangular.h +235 -0
- casadi/include/eigen3/Eigen/src/Core/SolverBase.h +168 -0
- casadi/include/eigen3/Eigen/src/Core/StableNorm.h +251 -0
- casadi/include/eigen3/Eigen/src/Core/StlIterators.h +463 -0
- casadi/include/eigen3/Eigen/src/Core/Stride.h +116 -0
- casadi/include/eigen3/Eigen/src/Core/Swap.h +68 -0
- casadi/include/eigen3/Eigen/src/Core/Transpose.h +464 -0
- casadi/include/eigen3/Eigen/src/Core/Transpositions.h +386 -0
- casadi/include/eigen3/Eigen/src/Core/TriangularMatrix.h +1001 -0
- casadi/include/eigen3/Eigen/src/Core/VectorBlock.h +96 -0
- casadi/include/eigen3/Eigen/src/Core/VectorwiseOp.h +784 -0
- casadi/include/eigen3/Eigen/src/Core/Visitor.h +381 -0
- casadi/include/eigen3/Eigen/src/Core/arch/AVX/Complex.h +372 -0
- casadi/include/eigen3/Eigen/src/Core/arch/AVX/MathFunctions.h +228 -0
- casadi/include/eigen3/Eigen/src/Core/arch/AVX/PacketMath.h +1574 -0
- casadi/include/eigen3/Eigen/src/Core/arch/AVX/TypeCasting.h +115 -0
- casadi/include/eigen3/Eigen/src/Core/arch/AVX512/Complex.h +422 -0
- casadi/include/eigen3/Eigen/src/Core/arch/AVX512/MathFunctions.h +362 -0
- casadi/include/eigen3/Eigen/src/Core/arch/AVX512/PacketMath.h +2303 -0
- casadi/include/eigen3/Eigen/src/Core/arch/AVX512/TypeCasting.h +89 -0
- casadi/include/eigen3/Eigen/src/Core/arch/AltiVec/Complex.h +417 -0
- casadi/include/eigen3/Eigen/src/Core/arch/AltiVec/MathFunctions.h +90 -0
- casadi/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProduct.h +2937 -0
- casadi/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h +221 -0
- casadi/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h +629 -0
- casadi/include/eigen3/Eigen/src/Core/arch/AltiVec/PacketMath.h +2711 -0
- casadi/include/eigen3/Eigen/src/Core/arch/CUDA/Complex.h +258 -0
- casadi/include/eigen3/Eigen/src/Core/arch/Default/BFloat16.h +700 -0
- casadi/include/eigen3/Eigen/src/Core/arch/Default/ConjHelper.h +117 -0
- casadi/include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +1649 -0
- casadi/include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctionsFwd.h +110 -0
- casadi/include/eigen3/Eigen/src/Core/arch/Default/Half.h +942 -0
- casadi/include/eigen3/Eigen/src/Core/arch/Default/Settings.h +49 -0
- casadi/include/eigen3/Eigen/src/Core/arch/Default/TypeCasting.h +120 -0
- casadi/include/eigen3/Eigen/src/Core/arch/GPU/MathFunctions.h +103 -0
- casadi/include/eigen3/Eigen/src/Core/arch/GPU/PacketMath.h +1685 -0
- casadi/include/eigen3/Eigen/src/Core/arch/GPU/TypeCasting.h +80 -0
- casadi/include/eigen3/Eigen/src/Core/arch/HIP/hcc/math_constants.h +23 -0
- casadi/include/eigen3/Eigen/src/Core/arch/MSA/Complex.h +648 -0
- casadi/include/eigen3/Eigen/src/Core/arch/MSA/MathFunctions.h +387 -0
- casadi/include/eigen3/Eigen/src/Core/arch/MSA/PacketMath.h +1233 -0
- casadi/include/eigen3/Eigen/src/Core/arch/NEON/Complex.h +584 -0
- casadi/include/eigen3/Eigen/src/Core/arch/NEON/GeneralBlockPanelKernel.h +183 -0
- casadi/include/eigen3/Eigen/src/Core/arch/NEON/MathFunctions.h +75 -0
- casadi/include/eigen3/Eigen/src/Core/arch/NEON/PacketMath.h +4587 -0
- casadi/include/eigen3/Eigen/src/Core/arch/NEON/TypeCasting.h +1419 -0
- casadi/include/eigen3/Eigen/src/Core/arch/SSE/Complex.h +351 -0
- casadi/include/eigen3/Eigen/src/Core/arch/SSE/MathFunctions.h +199 -0
- casadi/include/eigen3/Eigen/src/Core/arch/SSE/PacketMath.h +1505 -0
- casadi/include/eigen3/Eigen/src/Core/arch/SSE/TypeCasting.h +142 -0
- casadi/include/eigen3/Eigen/src/Core/arch/SVE/MathFunctions.h +44 -0
- casadi/include/eigen3/Eigen/src/Core/arch/SVE/PacketMath.h +752 -0
- casadi/include/eigen3/Eigen/src/Core/arch/SVE/TypeCasting.h +49 -0
- casadi/include/eigen3/Eigen/src/Core/arch/SYCL/InteropHeaders.h +232 -0
- casadi/include/eigen3/Eigen/src/Core/arch/SYCL/MathFunctions.h +301 -0
- casadi/include/eigen3/Eigen/src/Core/arch/SYCL/PacketMath.h +670 -0
- casadi/include/eigen3/Eigen/src/Core/arch/SYCL/SyclMemoryModel.h +694 -0
- casadi/include/eigen3/Eigen/src/Core/arch/SYCL/TypeCasting.h +85 -0
- casadi/include/eigen3/Eigen/src/Core/arch/ZVector/Complex.h +426 -0
- casadi/include/eigen3/Eigen/src/Core/arch/ZVector/MathFunctions.h +233 -0
- casadi/include/eigen3/Eigen/src/Core/arch/ZVector/PacketMath.h +1060 -0
- casadi/include/eigen3/Eigen/src/Core/functors/AssignmentFunctors.h +177 -0
- casadi/include/eigen3/Eigen/src/Core/functors/BinaryFunctors.h +541 -0
- casadi/include/eigen3/Eigen/src/Core/functors/NullaryFunctors.h +189 -0
- casadi/include/eigen3/Eigen/src/Core/functors/StlFunctors.h +166 -0
- casadi/include/eigen3/Eigen/src/Core/functors/TernaryFunctors.h +25 -0
- casadi/include/eigen3/Eigen/src/Core/functors/UnaryFunctors.h +1131 -0
- casadi/include/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h +2645 -0
- casadi/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrix.h +517 -0
- casadi/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h +317 -0
- casadi/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h +145 -0
- casadi/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrix_BLAS.h +124 -0
- casadi/include/eigen3/Eigen/src/Core/products/GeneralMatrixVector.h +518 -0
- casadi/include/eigen3/Eigen/src/Core/products/GeneralMatrixVector_BLAS.h +136 -0
- casadi/include/eigen3/Eigen/src/Core/products/Parallelizer.h +180 -0
- casadi/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix.h +544 -0
- casadi/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix_BLAS.h +295 -0
- casadi/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixVector.h +262 -0
- casadi/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixVector_BLAS.h +118 -0
- casadi/include/eigen3/Eigen/src/Core/products/SelfadjointProduct.h +133 -0
- casadi/include/eigen3/Eigen/src/Core/products/SelfadjointRank2Update.h +94 -0
- casadi/include/eigen3/Eigen/src/Core/products/TriangularMatrixMatrix.h +472 -0
- casadi/include/eigen3/Eigen/src/Core/products/TriangularMatrixMatrix_BLAS.h +317 -0
- casadi/include/eigen3/Eigen/src/Core/products/TriangularMatrixVector.h +350 -0
- casadi/include/eigen3/Eigen/src/Core/products/TriangularMatrixVector_BLAS.h +255 -0
- casadi/include/eigen3/Eigen/src/Core/products/TriangularSolverMatrix.h +337 -0
- casadi/include/eigen3/Eigen/src/Core/products/TriangularSolverMatrix_BLAS.h +167 -0
- casadi/include/eigen3/Eigen/src/Core/products/TriangularSolverVector.h +148 -0
- casadi/include/eigen3/Eigen/src/Core/util/BlasUtil.h +583 -0
- casadi/include/eigen3/Eigen/src/Core/util/ConfigureVectorization.h +512 -0
- casadi/include/eigen3/Eigen/src/Core/util/Constants.h +563 -0
- casadi/include/eigen3/Eigen/src/Core/util/DisableStupidWarnings.h +106 -0
- casadi/include/eigen3/Eigen/src/Core/util/ForwardDeclarations.h +322 -0
- casadi/include/eigen3/Eigen/src/Core/util/IndexedViewHelper.h +186 -0
- casadi/include/eigen3/Eigen/src/Core/util/IntegralConstant.h +272 -0
- casadi/include/eigen3/Eigen/src/Core/util/MKL_support.h +137 -0
- casadi/include/eigen3/Eigen/src/Core/util/Macros.h +1464 -0
- casadi/include/eigen3/Eigen/src/Core/util/Memory.h +1163 -0
- casadi/include/eigen3/Eigen/src/Core/util/Meta.h +812 -0
- casadi/include/eigen3/Eigen/src/Core/util/NonMPL2.h +3 -0
- casadi/include/eigen3/Eigen/src/Core/util/ReenableStupidWarnings.h +31 -0
- casadi/include/eigen3/Eigen/src/Core/util/ReshapedHelper.h +51 -0
- casadi/include/eigen3/Eigen/src/Core/util/StaticAssert.h +221 -0
- casadi/include/eigen3/Eigen/src/Core/util/SymbolicIndex.h +293 -0
- casadi/include/eigen3/Eigen/src/Core/util/XprHelper.h +856 -0
- casadi/include/eigen3/Eigen/src/Eigenvalues/ComplexEigenSolver.h +346 -0
- casadi/include/eigen3/Eigen/src/Eigenvalues/ComplexSchur.h +462 -0
- casadi/include/eigen3/Eigen/src/Eigenvalues/ComplexSchur_LAPACKE.h +91 -0
- casadi/include/eigen3/Eigen/src/Eigenvalues/EigenSolver.h +622 -0
- casadi/include/eigen3/Eigen/src/Eigenvalues/GeneralizedEigenSolver.h +418 -0
- casadi/include/eigen3/Eigen/src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h +226 -0
- casadi/include/eigen3/Eigen/src/Eigenvalues/HessenbergDecomposition.h +374 -0
- casadi/include/eigen3/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h +158 -0
- casadi/include/eigen3/Eigen/src/Eigenvalues/RealQZ.h +657 -0
- casadi/include/eigen3/Eigen/src/Eigenvalues/RealSchur.h +558 -0
- casadi/include/eigen3/Eigen/src/Eigenvalues/RealSchur_LAPACKE.h +77 -0
- casadi/include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h +904 -0
- casadi/include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver_LAPACKE.h +87 -0
- casadi/include/eigen3/Eigen/src/Eigenvalues/Tridiagonalization.h +561 -0
- casadi/include/eigen3/Eigen/src/Geometry/AlignedBox.h +486 -0
- casadi/include/eigen3/Eigen/src/Geometry/AngleAxis.h +247 -0
- casadi/include/eigen3/Eigen/src/Geometry/EulerAngles.h +114 -0
- casadi/include/eigen3/Eigen/src/Geometry/Homogeneous.h +501 -0
- casadi/include/eigen3/Eigen/src/Geometry/Hyperplane.h +282 -0
- casadi/include/eigen3/Eigen/src/Geometry/OrthoMethods.h +235 -0
- casadi/include/eigen3/Eigen/src/Geometry/ParametrizedLine.h +232 -0
- casadi/include/eigen3/Eigen/src/Geometry/Quaternion.h +870 -0
- casadi/include/eigen3/Eigen/src/Geometry/Rotation2D.h +199 -0
- casadi/include/eigen3/Eigen/src/Geometry/RotationBase.h +206 -0
- casadi/include/eigen3/Eigen/src/Geometry/Scaling.h +188 -0
- casadi/include/eigen3/Eigen/src/Geometry/Transform.h +1563 -0
- casadi/include/eigen3/Eigen/src/Geometry/Translation.h +202 -0
- casadi/include/eigen3/Eigen/src/Geometry/Umeyama.h +166 -0
- casadi/include/eigen3/Eigen/src/Geometry/arch/Geometry_SIMD.h +168 -0
- casadi/include/eigen3/Eigen/src/Householder/BlockHouseholder.h +110 -0
- casadi/include/eigen3/Eigen/src/Householder/Householder.h +176 -0
- casadi/include/eigen3/Eigen/src/Householder/HouseholderSequence.h +545 -0
- casadi/include/eigen3/Eigen/src/IterativeLinearSolvers/BasicPreconditioners.h +226 -0
- casadi/include/eigen3/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h +212 -0
- casadi/include/eigen3/Eigen/src/IterativeLinearSolvers/ConjugateGradient.h +229 -0
- casadi/include/eigen3/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h +394 -0
- casadi/include/eigen3/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h +453 -0
- casadi/include/eigen3/Eigen/src/IterativeLinearSolvers/IterativeSolverBase.h +444 -0
- casadi/include/eigen3/Eigen/src/IterativeLinearSolvers/LeastSquareConjugateGradient.h +198 -0
- casadi/include/eigen3/Eigen/src/IterativeLinearSolvers/SolveWithGuess.h +117 -0
- casadi/include/eigen3/Eigen/src/Jacobi/Jacobi.h +483 -0
- casadi/include/eigen3/Eigen/src/KLUSupport/KLUSupport.h +358 -0
- casadi/include/eigen3/Eigen/src/LU/Determinant.h +117 -0
- casadi/include/eigen3/Eigen/src/LU/FullPivLU.h +877 -0
- casadi/include/eigen3/Eigen/src/LU/InverseImpl.h +432 -0
- casadi/include/eigen3/Eigen/src/LU/PartialPivLU.h +624 -0
- casadi/include/eigen3/Eigen/src/LU/PartialPivLU_LAPACKE.h +83 -0
- casadi/include/eigen3/Eigen/src/LU/arch/InverseSize4.h +351 -0
- casadi/include/eigen3/Eigen/src/MetisSupport/MetisSupport.h +137 -0
- casadi/include/eigen3/Eigen/src/OrderingMethods/Amd.h +435 -0
- casadi/include/eigen3/Eigen/src/OrderingMethods/Eigen_Colamd.h +1863 -0
- casadi/include/eigen3/Eigen/src/OrderingMethods/Ordering.h +153 -0
- casadi/include/eigen3/Eigen/src/PaStiXSupport/PaStiXSupport.h +678 -0
- casadi/include/eigen3/Eigen/src/PardisoSupport/PardisoSupport.h +545 -0
- casadi/include/eigen3/Eigen/src/QR/ColPivHouseholderQR.h +674 -0
- casadi/include/eigen3/Eigen/src/QR/ColPivHouseholderQR_LAPACKE.h +97 -0
- casadi/include/eigen3/Eigen/src/QR/CompleteOrthogonalDecomposition.h +635 -0
- casadi/include/eigen3/Eigen/src/QR/FullPivHouseholderQR.h +713 -0
- casadi/include/eigen3/Eigen/src/QR/HouseholderQR.h +434 -0
- casadi/include/eigen3/Eigen/src/QR/HouseholderQR_LAPACKE.h +68 -0
- casadi/include/eigen3/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h +335 -0
- casadi/include/eigen3/Eigen/src/SVD/BDCSVD.h +1366 -0
- casadi/include/eigen3/Eigen/src/SVD/JacobiSVD.h +812 -0
- casadi/include/eigen3/Eigen/src/SVD/JacobiSVD_LAPACKE.h +91 -0
- casadi/include/eigen3/Eigen/src/SVD/SVDBase.h +376 -0
- casadi/include/eigen3/Eigen/src/SVD/UpperBidiagonalization.h +414 -0
- casadi/include/eigen3/Eigen/src/SparseCholesky/SimplicialCholesky.h +697 -0
- casadi/include/eigen3/Eigen/src/SparseCholesky/SimplicialCholesky_impl.h +174 -0
- casadi/include/eigen3/Eigen/src/SparseCore/AmbiVector.h +378 -0
- casadi/include/eigen3/Eigen/src/SparseCore/CompressedStorage.h +274 -0
- casadi/include/eigen3/Eigen/src/SparseCore/ConservativeSparseSparseProduct.h +352 -0
- casadi/include/eigen3/Eigen/src/SparseCore/MappedSparseMatrix.h +67 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseAssign.h +270 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseBlock.h +571 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseColEtree.h +206 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseCompressedBase.h +370 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +722 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseCwiseUnaryOp.h +150 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseDenseProduct.h +342 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseDiagonalProduct.h +138 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseDot.h +98 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseFuzzy.h +29 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseMap.h +305 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h +1518 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseMatrixBase.h +398 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparsePermutation.h +178 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseProduct.h +181 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseRedux.h +49 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseRef.h +397 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseSelfAdjointView.h +659 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseSolverBase.h +124 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseSparseProductWithPruning.h +198 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseTranspose.h +92 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseTriangularView.h +189 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseUtil.h +186 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseVector.h +478 -0
- casadi/include/eigen3/Eigen/src/SparseCore/SparseView.h +254 -0
- casadi/include/eigen3/Eigen/src/SparseCore/TriangularSolver.h +315 -0
- casadi/include/eigen3/Eigen/src/SparseLU/SparseLU.h +923 -0
- casadi/include/eigen3/Eigen/src/SparseLU/SparseLUImpl.h +66 -0
- casadi/include/eigen3/Eigen/src/SparseLU/SparseLU_Memory.h +226 -0
- casadi/include/eigen3/Eigen/src/SparseLU/SparseLU_Structs.h +110 -0
- casadi/include/eigen3/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +375 -0
- casadi/include/eigen3/Eigen/src/SparseLU/SparseLU_Utils.h +80 -0
- casadi/include/eigen3/Eigen/src/SparseLU/SparseLU_column_bmod.h +181 -0
- casadi/include/eigen3/Eigen/src/SparseLU/SparseLU_column_dfs.h +179 -0
- casadi/include/eigen3/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h +107 -0
- casadi/include/eigen3/Eigen/src/SparseLU/SparseLU_gemm_kernel.h +280 -0
- casadi/include/eigen3/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +126 -0
- casadi/include/eigen3/Eigen/src/SparseLU/SparseLU_kernel_bmod.h +130 -0
- casadi/include/eigen3/Eigen/src/SparseLU/SparseLU_panel_bmod.h +223 -0
- casadi/include/eigen3/Eigen/src/SparseLU/SparseLU_panel_dfs.h +258 -0
- casadi/include/eigen3/Eigen/src/SparseLU/SparseLU_pivotL.h +137 -0
- casadi/include/eigen3/Eigen/src/SparseLU/SparseLU_pruneL.h +136 -0
- casadi/include/eigen3/Eigen/src/SparseLU/SparseLU_relax_snode.h +83 -0
- casadi/include/eigen3/Eigen/src/SparseQR/SparseQR.h +758 -0
- casadi/include/eigen3/Eigen/src/StlSupport/StdDeque.h +116 -0
- casadi/include/eigen3/Eigen/src/StlSupport/StdList.h +106 -0
- casadi/include/eigen3/Eigen/src/StlSupport/StdVector.h +131 -0
- casadi/include/eigen3/Eigen/src/StlSupport/details.h +84 -0
- casadi/include/eigen3/Eigen/src/SuperLUSupport/SuperLUSupport.h +1025 -0
- casadi/include/eigen3/Eigen/src/UmfPackSupport/UmfPackSupport.h +642 -0
- casadi/include/eigen3/Eigen/src/misc/Image.h +82 -0
- casadi/include/eigen3/Eigen/src/misc/Kernel.h +79 -0
- casadi/include/eigen3/Eigen/src/misc/RealSvd2x2.h +55 -0
- casadi/include/eigen3/Eigen/src/misc/blas.h +440 -0
- casadi/include/eigen3/Eigen/src/misc/lapack.h +152 -0
- casadi/include/eigen3/Eigen/src/misc/lapacke.h +16292 -0
- casadi/include/eigen3/Eigen/src/misc/lapacke_mangling.h +17 -0
- casadi/include/eigen3/Eigen/src/plugins/ArrayCwiseBinaryOps.h +358 -0
- casadi/include/eigen3/Eigen/src/plugins/ArrayCwiseUnaryOps.h +696 -0
- casadi/include/eigen3/Eigen/src/plugins/BlockMethods.h +1442 -0
- casadi/include/eigen3/Eigen/src/plugins/CommonCwiseBinaryOps.h +115 -0
- casadi/include/eigen3/Eigen/src/plugins/CommonCwiseUnaryOps.h +177 -0
- casadi/include/eigen3/Eigen/src/plugins/IndexedViewMethods.h +262 -0
- casadi/include/eigen3/Eigen/src/plugins/MatrixCwiseBinaryOps.h +152 -0
- casadi/include/eigen3/Eigen/src/plugins/MatrixCwiseUnaryOps.h +95 -0
- casadi/include/eigen3/Eigen/src/plugins/ReshapedMethods.h +149 -0
- casadi/include/eigen3/signature_of_eigen3_matrix_library +1 -0
- casadi/include/eigen3/unsupported/Eigen/AdolcForward +159 -0
- casadi/include/eigen3/unsupported/Eigen/AlignedVector3 +234 -0
- casadi/include/eigen3/unsupported/Eigen/ArpackSupport +30 -0
- casadi/include/eigen3/unsupported/Eigen/AutoDiff +46 -0
- casadi/include/eigen3/unsupported/Eigen/BVH +95 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/Tensor +137 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/TensorSymmetry +42 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/ThreadPool +74 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/Tensor.h +554 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorArgMax.h +329 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h +247 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h +1176 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h +1559 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h +1093 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h +518 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConcatenation.h +377 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h +1023 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionBlocking.h +73 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionCuda.h +6 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionGpu.h +1413 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionMapper.h +575 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionSycl.h +1650 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h +1679 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConversion.h +456 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConvolution.h +1132 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConvolutionSycl.h +544 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorCostModel.h +214 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorCustomOp.h +347 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDevice.h +137 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h +6 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceDefault.h +104 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceGpu.h +389 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h +1048 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +409 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h +236 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h +490 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvalTo.h +236 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h +983 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h +703 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h +388 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFFT.h +669 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFixedSize.h +379 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorForcedEval.h +237 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h +191 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h +488 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGenerator.h +302 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGlobalFunctions.h +33 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGpuHipCudaDefines.h +99 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGpuHipCudaUndefines.h +44 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIO.h +79 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +603 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h +738 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorInflation.h +247 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorInitializer.h +82 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h +263 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorLayoutSwap.h +216 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMacros.h +98 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h +327 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h +311 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h +1102 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorPadding.h +708 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h +291 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h +322 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h +998 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h +6 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionGpu.h +966 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +582 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h +454 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReverse.h +465 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorScan.h +528 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +513 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorShuffling.h +471 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorStorage.h +161 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorStriding.h +346 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h +303 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h +264 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h +249 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorVolumePatch.h +629 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/DynamicSymmetry.h +293 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/StaticSymmetry.h +236 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/Symmetry.h +338 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/util/TemplateGroupTheory.h +669 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/Barrier.h +67 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/EventCount.h +249 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h +486 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/RunQueue.h +236 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadCancel.h +23 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadEnvironment.h +40 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadLocal.h +301 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h +48 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h +20 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/util/CXX11Meta.h +537 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/util/CXX11Workarounds.h +88 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/util/EmulateArray.h +261 -0
- casadi/include/eigen3/unsupported/Eigen/CXX11/src/util/MaxSizeVector.h +158 -0
- casadi/include/eigen3/unsupported/Eigen/EulerAngles +43 -0
- casadi/include/eigen3/unsupported/Eigen/FFT +419 -0
- casadi/include/eigen3/unsupported/Eigen/IterativeSolvers +51 -0
- casadi/include/eigen3/unsupported/Eigen/KroneckerProduct +36 -0
- casadi/include/eigen3/unsupported/Eigen/LevenbergMarquardt +49 -0
- casadi/include/eigen3/unsupported/Eigen/MPRealSupport +213 -0
- casadi/include/eigen3/unsupported/Eigen/MatrixFunctions +504 -0
- casadi/include/eigen3/unsupported/Eigen/MoreVectorization +24 -0
- casadi/include/eigen3/unsupported/Eigen/NonLinearOptimization +140 -0
- casadi/include/eigen3/unsupported/Eigen/NumericalDiff +56 -0
- casadi/include/eigen3/unsupported/Eigen/OpenGLSupport +322 -0
- casadi/include/eigen3/unsupported/Eigen/Polynomials +137 -0
- casadi/include/eigen3/unsupported/Eigen/Skyline +39 -0
- casadi/include/eigen3/unsupported/Eigen/SparseExtra +54 -0
- casadi/include/eigen3/unsupported/Eigen/SpecialFunctions +103 -0
- casadi/include/eigen3/unsupported/Eigen/Splines +35 -0
- casadi/include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffJacobian.h +108 -0
- casadi/include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +730 -0
- casadi/include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffVector.h +220 -0
- casadi/include/eigen3/unsupported/Eigen/src/BVH/BVAlgorithms.h +293 -0
- casadi/include/eigen3/unsupported/Eigen/src/BVH/KdBVH.h +223 -0
- casadi/include/eigen3/unsupported/Eigen/src/Eigenvalues/ArpackSelfAdjointEigenSolver.h +790 -0
- casadi/include/eigen3/unsupported/Eigen/src/EulerAngles/EulerAngles.h +355 -0
- casadi/include/eigen3/unsupported/Eigen/src/EulerAngles/EulerSystem.h +305 -0
- casadi/include/eigen3/unsupported/Eigen/src/FFT/ei_fftw_impl.h +261 -0
- casadi/include/eigen3/unsupported/Eigen/src/FFT/ei_kissfft_impl.h +449 -0
- casadi/include/eigen3/unsupported/Eigen/src/IterativeSolvers/ConstrainedConjGrad.h +187 -0
- casadi/include/eigen3/unsupported/Eigen/src/IterativeSolvers/DGMRES.h +511 -0
- casadi/include/eigen3/unsupported/Eigen/src/IterativeSolvers/GMRES.h +335 -0
- casadi/include/eigen3/unsupported/Eigen/src/IterativeSolvers/IDRS.h +436 -0
- casadi/include/eigen3/unsupported/Eigen/src/IterativeSolvers/IncompleteLU.h +90 -0
- casadi/include/eigen3/unsupported/Eigen/src/IterativeSolvers/IterationController.h +154 -0
- casadi/include/eigen3/unsupported/Eigen/src/IterativeSolvers/MINRES.h +267 -0
- casadi/include/eigen3/unsupported/Eigen/src/IterativeSolvers/Scaling.h +193 -0
- casadi/include/eigen3/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h +305 -0
- casadi/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMcovar.h +84 -0
- casadi/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMonestep.h +202 -0
- casadi/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMpar.h +160 -0
- casadi/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMqrsolv.h +188 -0
- casadi/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LevenbergMarquardt.h +396 -0
- casadi/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +441 -0
- casadi/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h +569 -0
- casadi/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h +373 -0
- casadi/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixPower.h +705 -0
- casadi/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h +368 -0
- casadi/include/eigen3/unsupported/Eigen/src/MatrixFunctions/StemFunction.h +117 -0
- casadi/include/eigen3/unsupported/Eigen/src/MoreVectorization/MathFunctions.h +95 -0
- casadi/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/HybridNonLinearSolver.h +601 -0
- casadi/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h +657 -0
- casadi/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/chkder.h +66 -0
- casadi/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/covar.h +70 -0
- casadi/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/dogleg.h +107 -0
- casadi/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/fdjac1.h +79 -0
- casadi/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/lmpar.h +298 -0
- casadi/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h +91 -0
- casadi/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/r1mpyq.h +30 -0
- casadi/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/r1updt.h +99 -0
- casadi/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h +49 -0
- casadi/include/eigen3/unsupported/Eigen/src/NumericalDiff/NumericalDiff.h +130 -0
- casadi/include/eigen3/unsupported/Eigen/src/Polynomials/Companion.h +280 -0
- casadi/include/eigen3/unsupported/Eigen/src/Polynomials/PolynomialSolver.h +428 -0
- casadi/include/eigen3/unsupported/Eigen/src/Polynomials/PolynomialUtils.h +143 -0
- casadi/include/eigen3/unsupported/Eigen/src/Skyline/SkylineInplaceLU.h +352 -0
- casadi/include/eigen3/unsupported/Eigen/src/Skyline/SkylineMatrix.h +862 -0
- casadi/include/eigen3/unsupported/Eigen/src/Skyline/SkylineMatrixBase.h +212 -0
- casadi/include/eigen3/unsupported/Eigen/src/Skyline/SkylineProduct.h +295 -0
- casadi/include/eigen3/unsupported/Eigen/src/Skyline/SkylineStorage.h +259 -0
- casadi/include/eigen3/unsupported/Eigen/src/Skyline/SkylineUtil.h +89 -0
- casadi/include/eigen3/unsupported/Eigen/src/SparseExtra/BlockOfDynamicSparseMatrix.h +122 -0
- casadi/include/eigen3/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h +1079 -0
- casadi/include/eigen3/unsupported/Eigen/src/SparseExtra/DynamicSparseMatrix.h +404 -0
- casadi/include/eigen3/unsupported/Eigen/src/SparseExtra/MarketIO.h +282 -0
- casadi/include/eigen3/unsupported/Eigen/src/SparseExtra/MatrixMarketIterator.h +247 -0
- casadi/include/eigen3/unsupported/Eigen/src/SparseExtra/RandomSetter.h +349 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsArrayAPI.h +286 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsBFloat16.h +68 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsFunctors.h +357 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsHalf.h +66 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsImpl.h +1959 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsPacketMath.h +118 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/HipVectorCompatibility.h +67 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsArrayAPI.h +167 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsBFloat16.h +58 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsFunctors.h +330 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsHalf.h +58 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +2045 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsPacketMath.h +79 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX/BesselFunctions.h +46 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX/SpecialFunctions.h +16 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX512/BesselFunctions.h +46 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX512/SpecialFunctions.h +16 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/GPU/SpecialFunctions.h +369 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/NEON/BesselFunctions.h +54 -0
- casadi/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/NEON/SpecialFunctions.h +34 -0
- casadi/include/eigen3/unsupported/Eigen/src/Splines/Spline.h +507 -0
- casadi/include/eigen3/unsupported/Eigen/src/Splines/SplineFitting.h +431 -0
- casadi/include/eigen3/unsupported/Eigen/src/Splines/SplineFwd.h +93 -0
- casadi/include/highs/HConfig.h +23 -0
- casadi/include/highs/Highs.h +1703 -0
- casadi/include/highs/filereaderlp/builder.hpp +25 -0
- casadi/include/highs/filereaderlp/def.hpp +19 -0
- casadi/include/highs/filereaderlp/model.hpp +68 -0
- casadi/include/highs/filereaderlp/reader.hpp +10 -0
- casadi/include/highs/interfaces/highs_c_api.h +2456 -0
- casadi/include/highs/io/Filereader.h +45 -0
- casadi/include/highs/io/FilereaderEms.h +30 -0
- casadi/include/highs/io/FilereaderLp.h +51 -0
- casadi/include/highs/io/FilereaderMps.h +27 -0
- casadi/include/highs/io/HMPSIO.h +78 -0
- casadi/include/highs/io/HMpsFF.h +238 -0
- casadi/include/highs/io/HighsIO.h +114 -0
- casadi/include/highs/io/LoadOptions.h +24 -0
- casadi/include/highs/ipm/IpxSolution.h +32 -0
- casadi/include/highs/ipm/IpxWrapper.h +70 -0
- casadi/include/highs/ipm/basiclu/basiclu.h +161 -0
- casadi/include/highs/ipm/basiclu/basiclu_factorize.h +247 -0
- casadi/include/highs/ipm/basiclu/basiclu_get_factors.h +108 -0
- casadi/include/highs/ipm/basiclu/basiclu_initialize.h +119 -0
- casadi/include/highs/ipm/basiclu/basiclu_obj_factorize.h +34 -0
- casadi/include/highs/ipm/basiclu/basiclu_obj_free.h +19 -0
- casadi/include/highs/ipm/basiclu/basiclu_obj_get_factors.h +34 -0
- casadi/include/highs/ipm/basiclu/basiclu_obj_initialize.h +46 -0
- casadi/include/highs/ipm/basiclu/basiclu_obj_solve_dense.h +29 -0
- casadi/include/highs/ipm/basiclu/basiclu_obj_solve_for_update.h +42 -0
- casadi/include/highs/ipm/basiclu/basiclu_obj_solve_sparse.h +32 -0
- casadi/include/highs/ipm/basiclu/basiclu_obj_update.h +31 -0
- casadi/include/highs/ipm/basiclu/basiclu_object.h +30 -0
- casadi/include/highs/ipm/basiclu/basiclu_solve_dense.h +75 -0
- casadi/include/highs/ipm/basiclu/basiclu_solve_for_update.h +169 -0
- casadi/include/highs/ipm/basiclu/basiclu_solve_sparse.h +112 -0
- casadi/include/highs/ipm/basiclu/basiclu_update.h +125 -0
- casadi/include/highs/ipm/basiclu/lu_def.h +39 -0
- casadi/include/highs/ipm/basiclu/lu_file.h +21 -0
- casadi/include/highs/ipm/basiclu/lu_internal.h +220 -0
- casadi/include/highs/ipm/basiclu/lu_list.h +168 -0
- casadi/include/highs/ipm/ipx/basiclu_kernel.h +20 -0
- casadi/include/highs/ipm/ipx/basiclu_wrapper.h +47 -0
- casadi/include/highs/ipm/ipx/basis.h +351 -0
- casadi/include/highs/ipm/ipx/conjugate_residuals.h +74 -0
- casadi/include/highs/ipm/ipx/control.h +164 -0
- casadi/include/highs/ipm/ipx/crossover.h +157 -0
- casadi/include/highs/ipm/ipx/diagonal_precond.h +45 -0
- casadi/include/highs/ipm/ipx/forrest_tomlin.h +102 -0
- casadi/include/highs/ipm/ipx/guess_basis.h +21 -0
- casadi/include/highs/ipm/ipx/indexed_vector.h +113 -0
- casadi/include/highs/ipm/ipx/info.h +27 -0
- casadi/include/highs/ipm/ipx/ipm.h +94 -0
- casadi/include/highs/ipm/ipx/ipx_c.h +47 -0
- casadi/include/highs/ipm/ipx/ipx_config.h +9 -0
- casadi/include/highs/ipm/ipx/ipx_info.h +111 -0
- casadi/include/highs/ipm/ipx/ipx_internal.h +88 -0
- casadi/include/highs/ipm/ipx/ipx_parameters.h +76 -0
- casadi/include/highs/ipm/ipx/ipx_status.h +57 -0
- casadi/include/highs/ipm/ipx/iterate.h +328 -0
- casadi/include/highs/ipm/ipx/kkt_solver.h +70 -0
- casadi/include/highs/ipm/ipx/kkt_solver_basis.h +66 -0
- casadi/include/highs/ipm/ipx/kkt_solver_diag.h +48 -0
- casadi/include/highs/ipm/ipx/linear_operator.h +26 -0
- casadi/include/highs/ipm/ipx/lp_solver.h +202 -0
- casadi/include/highs/ipm/ipx/lu_factorization.h +79 -0
- casadi/include/highs/ipm/ipx/lu_update.h +129 -0
- casadi/include/highs/ipm/ipx/maxvolume.h +54 -0
- casadi/include/highs/ipm/ipx/model.h +413 -0
- casadi/include/highs/ipm/ipx/multistream.h +52 -0
- casadi/include/highs/ipm/ipx/normal_matrix.h +44 -0
- casadi/include/highs/ipm/ipx/power_method.h +44 -0
- casadi/include/highs/ipm/ipx/sparse_matrix.h +195 -0
- casadi/include/highs/ipm/ipx/sparse_utils.h +58 -0
- casadi/include/highs/ipm/ipx/splitted_normal_matrix.h +63 -0
- casadi/include/highs/ipm/ipx/starting_basis.h +39 -0
- casadi/include/highs/ipm/ipx/symbolic_invert.h +29 -0
- casadi/include/highs/ipm/ipx/timer.h +24 -0
- casadi/include/highs/ipm/ipx/utils.h +39 -0
- casadi/include/highs/lp_data/HConst.h +320 -0
- casadi/include/highs/lp_data/HStruct.h +182 -0
- casadi/include/highs/lp_data/HighsAnalysis.h +23 -0
- casadi/include/highs/lp_data/HighsCallback.h +47 -0
- casadi/include/highs/lp_data/HighsCallbackStruct.h +62 -0
- casadi/include/highs/lp_data/HighsDebug.h +34 -0
- casadi/include/highs/lp_data/HighsIis.h +62 -0
- casadi/include/highs/lp_data/HighsInfo.h +329 -0
- casadi/include/highs/lp_data/HighsInfoDebug.h +27 -0
- casadi/include/highs/lp_data/HighsLp.h +100 -0
- casadi/include/highs/lp_data/HighsLpSolverObject.h +45 -0
- casadi/include/highs/lp_data/HighsLpUtils.h +298 -0
- casadi/include/highs/lp_data/HighsModelUtils.h +112 -0
- casadi/include/highs/lp_data/HighsOptions.h +1469 -0
- casadi/include/highs/lp_data/HighsRanging.h +43 -0
- casadi/include/highs/lp_data/HighsSolution.h +144 -0
- casadi/include/highs/lp_data/HighsSolutionDebug.h +87 -0
- casadi/include/highs/lp_data/HighsSolve.h +23 -0
- casadi/include/highs/lp_data/HighsStatus.h +29 -0
- casadi/include/highs/mip/HighsCliqueTable.h +318 -0
- casadi/include/highs/mip/HighsConflictPool.h +109 -0
- casadi/include/highs/mip/HighsCutGeneration.h +106 -0
- casadi/include/highs/mip/HighsCutPool.h +168 -0
- casadi/include/highs/mip/HighsDebugSol.h +132 -0
- casadi/include/highs/mip/HighsDomain.h +653 -0
- casadi/include/highs/mip/HighsDomainChange.h +48 -0
- casadi/include/highs/mip/HighsDynamicRowMatrix.h +104 -0
- casadi/include/highs/mip/HighsGFkSolve.h +438 -0
- casadi/include/highs/mip/HighsImplications.h +170 -0
- casadi/include/highs/mip/HighsLpAggregator.h +50 -0
- casadi/include/highs/mip/HighsLpRelaxation.h +357 -0
- casadi/include/highs/mip/HighsMipAnalysis.h +52 -0
- casadi/include/highs/mip/HighsMipSolver.h +112 -0
- casadi/include/highs/mip/HighsMipSolverData.h +297 -0
- casadi/include/highs/mip/HighsModkSeparator.h +60 -0
- casadi/include/highs/mip/HighsNodeQueue.h +311 -0
- casadi/include/highs/mip/HighsObjectiveFunction.h +71 -0
- casadi/include/highs/mip/HighsPathSeparator.h +39 -0
- casadi/include/highs/mip/HighsPrimalHeuristics.h +70 -0
- casadi/include/highs/mip/HighsPseudocost.h +360 -0
- casadi/include/highs/mip/HighsRedcostFixing.h +42 -0
- casadi/include/highs/mip/HighsSearch.h +241 -0
- casadi/include/highs/mip/HighsSeparation.h +41 -0
- casadi/include/highs/mip/HighsSeparator.h +52 -0
- casadi/include/highs/mip/HighsTableauSeparator.h +34 -0
- casadi/include/highs/mip/HighsTransformedLp.h +63 -0
- casadi/include/highs/mip/MipTimer.h +471 -0
- casadi/include/highs/model/HighsHessian.h +54 -0
- casadi/include/highs/model/HighsHessianUtils.h +49 -0
- casadi/include/highs/model/HighsModel.h +52 -0
- casadi/include/highs/parallel/HighsBinarySemaphore.h +113 -0
- casadi/include/highs/parallel/HighsCacheAlign.h +87 -0
- casadi/include/highs/parallel/HighsCombinable.h +121 -0
- casadi/include/highs/parallel/HighsMutex.h +129 -0
- casadi/include/highs/parallel/HighsParallel.h +133 -0
- casadi/include/highs/parallel/HighsRaceTimer.h +43 -0
- casadi/include/highs/parallel/HighsSchedulerConstants.h +24 -0
- casadi/include/highs/parallel/HighsSpinMutex.h +53 -0
- casadi/include/highs/parallel/HighsSplitDeque.h +583 -0
- casadi/include/highs/parallel/HighsTask.h +175 -0
- casadi/include/highs/parallel/HighsTaskExecutor.h +222 -0
- casadi/include/highs/pdlp/CupdlpWrapper.h +104 -0
- casadi/include/highs/pdlp/cupdlp/cupdlp_cs.h +40 -0
- casadi/include/highs/pdlp/cupdlp/cupdlp_defs.h +433 -0
- casadi/include/highs/pdlp/cupdlp/cupdlp_linalg.h +189 -0
- casadi/include/highs/pdlp/cupdlp/cupdlp_proj.h +19 -0
- casadi/include/highs/pdlp/cupdlp/cupdlp_restart.h +31 -0
- casadi/include/highs/pdlp/cupdlp/cupdlp_scaling.h +26 -0
- casadi/include/highs/pdlp/cupdlp/cupdlp_solver.h +98 -0
- casadi/include/highs/pdlp/cupdlp/cupdlp_step.h +37 -0
- casadi/include/highs/pdlp/cupdlp/cupdlp_utils.c +1807 -0
- casadi/include/highs/pdqsort/pdqsort.h +532 -0
- casadi/include/highs/presolve/HPresolve.h +405 -0
- casadi/include/highs/presolve/HPresolveAnalysis.h +51 -0
- casadi/include/highs/presolve/HighsPostsolveStack.h +940 -0
- casadi/include/highs/presolve/HighsSymmetry.h +281 -0
- casadi/include/highs/presolve/ICrash.h +124 -0
- casadi/include/highs/presolve/ICrashUtil.h +62 -0
- casadi/include/highs/presolve/ICrashX.h +23 -0
- casadi/include/highs/presolve/PresolveComponent.h +90 -0
- casadi/include/highs/qpsolver/a_asm.hpp +70 -0
- casadi/include/highs/qpsolver/a_quass.hpp +15 -0
- casadi/include/highs/qpsolver/basis.hpp +152 -0
- casadi/include/highs/qpsolver/crashsolution.hpp +13 -0
- casadi/include/highs/qpsolver/dantzigpricing.hpp +73 -0
- casadi/include/highs/qpsolver/devexpricing.hpp +101 -0
- casadi/include/highs/qpsolver/eventhandler.hpp +23 -0
- casadi/include/highs/qpsolver/factor.hpp +401 -0
- casadi/include/highs/qpsolver/feasibility_bounded.hpp +107 -0
- casadi/include/highs/qpsolver/feasibility_highs.hpp +294 -0
- casadi/include/highs/qpsolver/gradient.hpp +39 -0
- casadi/include/highs/qpsolver/instance.hpp +63 -0
- casadi/include/highs/qpsolver/matrix.hpp +335 -0
- casadi/include/highs/qpsolver/perturbation.hpp +8 -0
- casadi/include/highs/qpsolver/pricing.hpp +15 -0
- casadi/include/highs/qpsolver/qpconst.hpp +27 -0
- casadi/include/highs/qpsolver/qpvector.hpp +235 -0
- casadi/include/highs/qpsolver/quass.hpp +20 -0
- casadi/include/highs/qpsolver/ratiotest.hpp +19 -0
- casadi/include/highs/qpsolver/runtime.hpp +38 -0
- casadi/include/highs/qpsolver/scaling.hpp +8 -0
- casadi/include/highs/qpsolver/settings.hpp +69 -0
- casadi/include/highs/qpsolver/snippets.hpp +29 -0
- casadi/include/highs/qpsolver/statistics.hpp +23 -0
- casadi/include/highs/qpsolver/steepestedgepricing.hpp +166 -0
- casadi/include/highs/simplex/HApp.h +476 -0
- casadi/include/highs/simplex/HEkk.h +416 -0
- casadi/include/highs/simplex/HEkkDual.h +513 -0
- casadi/include/highs/simplex/HEkkDualRHS.h +134 -0
- casadi/include/highs/simplex/HEkkDualRow.h +201 -0
- casadi/include/highs/simplex/HEkkPrimal.h +191 -0
- casadi/include/highs/simplex/HSimplex.h +42 -0
- casadi/include/highs/simplex/HSimplexDebug.h +48 -0
- casadi/include/highs/simplex/HSimplexNla.h +158 -0
- casadi/include/highs/simplex/HSimplexReport.h +21 -0
- casadi/include/highs/simplex/HighsSimplexAnalysis.h +500 -0
- casadi/include/highs/simplex/SimplexConst.h +273 -0
- casadi/include/highs/simplex/SimplexStruct.h +261 -0
- casadi/include/highs/simplex/SimplexTimer.h +409 -0
- casadi/include/highs/test/DevKkt.h +143 -0
- casadi/include/highs/test/KktCh2.h +79 -0
- casadi/include/highs/util/FactorTimer.h +199 -0
- casadi/include/highs/util/HFactor.h +587 -0
- casadi/include/highs/util/HFactorConst.h +81 -0
- casadi/include/highs/util/HFactorDebug.h +55 -0
- casadi/include/highs/util/HSet.h +89 -0
- casadi/include/highs/util/HVector.h +22 -0
- casadi/include/highs/util/HVectorBase.h +102 -0
- casadi/include/highs/util/HighsCDouble.h +319 -0
- casadi/include/highs/util/HighsComponent.h +53 -0
- casadi/include/highs/util/HighsDataStack.h +83 -0
- casadi/include/highs/util/HighsDisjointSets.h +107 -0
- casadi/include/highs/util/HighsHash.h +1274 -0
- casadi/include/highs/util/HighsHashTree.h +1447 -0
- casadi/include/highs/util/HighsInt.h +36 -0
- casadi/include/highs/util/HighsIntegers.h +212 -0
- casadi/include/highs/util/HighsLinearSumBounds.h +157 -0
- casadi/include/highs/util/HighsMatrixPic.h +37 -0
- casadi/include/highs/util/HighsMatrixSlice.h +561 -0
- casadi/include/highs/util/HighsMatrixUtils.h +54 -0
- casadi/include/highs/util/HighsMemoryAllocation.h +63 -0
- casadi/include/highs/util/HighsRandom.h +242 -0
- casadi/include/highs/util/HighsRbTree.h +452 -0
- casadi/include/highs/util/HighsSort.h +131 -0
- casadi/include/highs/util/HighsSparseMatrix.h +150 -0
- casadi/include/highs/util/HighsSparseVectorSum.h +95 -0
- casadi/include/highs/util/HighsSplay.h +135 -0
- casadi/include/highs/util/HighsTimer.h +381 -0
- casadi/include/highs/util/HighsUtils.h +217 -0
- casadi/include/highs/util/stringutil.h +46 -0
- casadi/include/highs/zstr/strict_fstream.hpp +237 -0
- casadi/include/highs/zstr/zstr.hpp +472 -0
- casadi/include/licenses/FMI-Standard-2.0.2/LICENSE.txt +473 -0
- casadi/include/licenses/FMI-Standard-3.0/LICENSE.txt +464 -0
- casadi/include/licenses/alpaqa-external/LICENSE +165 -0
- casadi/include/licenses/bonmin-external/Bonmin/LICENSE +87 -0
- casadi/include/licenses/bonmin-external/LICENSE +3 -0
- casadi/include/licenses/casadi/LICENSE/LICENSE.txt +165 -0
- casadi/include/licenses/casadi-sundials/LICENSE +64 -0
- casadi/include/licenses/casadi-sundials/cvodes/LICENSE +60 -0
- casadi/include/licenses/casadi-sundials/idas/LICENSE +59 -0
- casadi/include/licenses/casadi-sundials/kinsol/LICENSE +59 -0
- casadi/include/licenses/casadi-sundials/sundials/LICENSE +67 -0
- casadi/include/licenses/cbc-external/Cbc/LICENSE +239 -0
- casadi/include/licenses/cbc-external/LICENSE +245 -0
- casadi/include/licenses/cgl-external/Cgl/LICENSE +239 -0
- casadi/include/licenses/cgl-external/LICENSE +245 -0
- casadi/include/licenses/clp-external/Clp/LICENSE +239 -0
- casadi/include/licenses/clp-external/LICENSE +245 -0
- casadi/include/licenses/coinutils-external/CoinUtils/LICENSE +239 -0
- casadi/include/licenses/coinutils-external/LICENSE +245 -0
- casadi/include/licenses/daqp-external/LICENSE +21 -0
- casadi/include/licenses/ghc-external/LICENSE +19 -0
- casadi/include/licenses/highs-external/LICENSE.txt +21 -0
- casadi/include/licenses/highs-external/extern/filereaderlp/LICENSE +19 -0
- casadi/include/licenses/ipopt-external/LICENSE +260 -0
- casadi/include/licenses/libz-external/LICENSE +22 -0
- casadi/include/licenses/libz-external/contrib/dotzlib/LICENSE_1_0.txt +23 -0
- casadi/include/licenses/libzip-external/LICENSE +31 -0
- casadi/include/licenses/metis-external/LICENSE +87 -0
- casadi/include/licenses/metis-external/metis-4.0/LICENSE +18 -0
- casadi/include/licenses/mockups-external/LICENSE +21 -0
- casadi/include/licenses/mumps-external/LICENSE +87 -0
- casadi/include/licenses/mumps-external/MUMPS/LICENSE +50 -0
- casadi/include/licenses/openblas-external/LICENSE +29 -0
- casadi/include/licenses/openblas-external/ctest/LICENSE +23 -0
- casadi/include/licenses/openblas-external/lapack-netlib/LAPACKE/LICENSE +26 -0
- casadi/include/licenses/openblas-external/lapack-netlib/LICENSE +48 -0
- casadi/include/licenses/openblas-external/reference/LICENSE +23 -0
- casadi/include/licenses/openblas-external/relapack/LICENSE +22 -0
- casadi/include/licenses/openblas-external/test/LICENSE +23 -0
- casadi/include/licenses/osi-external/LICENSE +245 -0
- casadi/include/licenses/osi-external/Osi/LICENSE +239 -0
- casadi/include/licenses/osqp-external/LICENSE +201 -0
- casadi/include/licenses/osqp-external/lin_sys/direct/qdldl/amd/LICENSE +36 -0
- casadi/include/licenses/osqp-external/lin_sys/direct/qdldl/qdldl_sources/LICENSE +201 -0
- casadi/include/licenses/proxqp-external/LICENSE +25 -0
- casadi/include/licenses/proxqp-external/bindings/python/external/pybind11/LICENSE +29 -0
- casadi/include/licenses/proxqp-external/cmake-module/LICENSE +4 -0
- casadi/include/licenses/proxqp-external/cmake-module/doxygen/MathJax/LICENSE +202 -0
- casadi/include/licenses/proxqp-external/external/cereal/LICENSE +24 -0
- casadi/include/licenses/proxqp-external/external/cereal/include/cereal/external/LICENSE +21 -0
- casadi/include/licenses/proxqp-external/external/cereal/include/cereal/external/rapidjson/LICENSE +13 -0
- casadi/include/licenses/proxqp-external/external/cereal/include/cereal/external/rapidjson/msinttypes/LICENSE +29 -0
- casadi/include/licenses/qpOASES/LICENSE.txt +503 -0
- casadi/include/licenses/sleqp-external/LICENSE +165 -0
- casadi/include/licenses/superscs-external/LICENSE.txt +24 -0
- casadi/include/licenses/tinyxml2-9.0.0/LICENSE.txt +18 -0
- casadi/include/licenses/trlib-external/LICENSE +21 -0
- casadi/include/osqp/auxil.h +181 -0
- casadi/include/osqp/constants.h +128 -0
- casadi/include/osqp/cs.h +180 -0
- casadi/include/osqp/ctrlc.h +56 -0
- casadi/include/osqp/error.h +38 -0
- casadi/include/osqp/glob_opts.h +167 -0
- casadi/include/osqp/lin_alg.h +216 -0
- casadi/include/osqp/lin_sys.h +54 -0
- casadi/include/osqp/osqp.h +430 -0
- casadi/include/osqp/osqp_configure.h +49 -0
- casadi/include/osqp/polish.h +25 -0
- casadi/include/osqp/proj.h +37 -0
- casadi/include/osqp/scaling.h +44 -0
- casadi/include/osqp/types.h +326 -0
- casadi/include/osqp/util.h +222 -0
- casadi/include/osqp/version.h +9 -0
- casadi/include/proxsuite/config.hpp +68 -0
- casadi/include/proxsuite/deprecated.hpp +56 -0
- casadi/include/proxsuite/fwd.hpp +52 -0
- casadi/include/proxsuite/helpers/common.hpp +70 -0
- casadi/include/proxsuite/helpers/instruction-set.hpp +275 -0
- casadi/include/proxsuite/helpers/optional.hpp +46 -0
- casadi/include/proxsuite/helpers/tl-optional.hpp +2472 -0
- casadi/include/proxsuite/helpers/version.hpp +39 -0
- casadi/include/proxsuite/linalg/dense/core.hpp +863 -0
- casadi/include/proxsuite/linalg/dense/factorize.hpp +375 -0
- casadi/include/proxsuite/linalg/dense/ldlt.hpp +817 -0
- casadi/include/proxsuite/linalg/dense/modify.hpp +333 -0
- casadi/include/proxsuite/linalg/dense/solve.hpp +38 -0
- casadi/include/proxsuite/linalg/dense/update.hpp +330 -0
- casadi/include/proxsuite/linalg/sparse/core.hpp +531 -0
- casadi/include/proxsuite/linalg/sparse/factorize.hpp +1303 -0
- casadi/include/proxsuite/linalg/sparse/rowmod.hpp +443 -0
- casadi/include/proxsuite/linalg/sparse/update.hpp +348 -0
- casadi/include/proxsuite/linalg/veg/internal/assert_impl.hpp +20 -0
- casadi/include/proxsuite/linalg/veg/internal/collection_algo.hpp +93 -0
- casadi/include/proxsuite/linalg/veg/internal/dbg.hpp +15 -0
- casadi/include/proxsuite/linalg/veg/internal/delete_special_members.hpp +77 -0
- casadi/include/proxsuite/linalg/veg/internal/dyn_index.hpp +292 -0
- casadi/include/proxsuite/linalg/veg/internal/epilogue.hpp +31 -0
- casadi/include/proxsuite/linalg/veg/internal/external/hedley.ext.hpp +2074 -0
- casadi/include/proxsuite/linalg/veg/internal/external/unhedley.ext.hpp +148 -0
- casadi/include/proxsuite/linalg/veg/internal/fix_index.hpp +339 -0
- casadi/include/proxsuite/linalg/veg/internal/has_asan.hpp +17 -0
- casadi/include/proxsuite/linalg/veg/internal/integer_seq.hpp +248 -0
- casadi/include/proxsuite/linalg/veg/internal/macros.hpp +1312 -0
- casadi/include/proxsuite/linalg/veg/internal/narrow.hpp +46 -0
- casadi/include/proxsuite/linalg/veg/internal/preprocessor.hpp +434 -0
- casadi/include/proxsuite/linalg/veg/internal/prologue.hpp +157 -0
- casadi/include/proxsuite/linalg/veg/internal/std.hpp +13 -0
- casadi/include/proxsuite/linalg/veg/internal/terminate.hpp +22 -0
- casadi/include/proxsuite/linalg/veg/internal/typedefs.hpp +58 -0
- casadi/include/proxsuite/linalg/veg/memory/address.hpp +97 -0
- casadi/include/proxsuite/linalg/veg/memory/alloc.hpp +352 -0
- casadi/include/proxsuite/linalg/veg/memory/dynamic_stack.hpp +504 -0
- casadi/include/proxsuite/linalg/veg/memory/placement.hpp +202 -0
- casadi/include/proxsuite/linalg/veg/memory/stack_alloc.hpp +239 -0
- casadi/include/proxsuite/linalg/veg/ref.hpp +148 -0
- casadi/include/proxsuite/linalg/veg/slice.hpp +240 -0
- casadi/include/proxsuite/linalg/veg/tuple.hpp +876 -0
- casadi/include/proxsuite/linalg/veg/type_traits/alloc.hpp +169 -0
- casadi/include/proxsuite/linalg/veg/type_traits/assignable.hpp +53 -0
- casadi/include/proxsuite/linalg/veg/type_traits/constructible.hpp +217 -0
- casadi/include/proxsuite/linalg/veg/type_traits/core.hpp +298 -0
- casadi/include/proxsuite/linalg/veg/type_traits/invocable.hpp +47 -0
- casadi/include/proxsuite/linalg/veg/type_traits/primitives.hpp +43 -0
- casadi/include/proxsuite/linalg/veg/type_traits/tags.hpp +47 -0
- casadi/include/proxsuite/linalg/veg/util/assert.hpp +48 -0
- casadi/include/proxsuite/linalg/veg/util/dbg.hpp +6 -0
- casadi/include/proxsuite/linalg/veg/util/defer.hpp +57 -0
- casadi/include/proxsuite/linalg/veg/util/dynstack_alloc.hpp +19 -0
- casadi/include/proxsuite/linalg/veg/util/get.hpp +153 -0
- casadi/include/proxsuite/linalg/veg/util/index.hpp +6 -0
- casadi/include/proxsuite/linalg/veg/util/unreachable.hpp +41 -0
- casadi/include/proxsuite/linalg/veg/vec.hpp +1034 -0
- casadi/include/proxsuite/proxqp/dense/dense.hpp +10 -0
- casadi/include/proxsuite/proxqp/dense/fwd.hpp +55 -0
- casadi/include/proxsuite/proxqp/dense/helpers.hpp +520 -0
- casadi/include/proxsuite/proxqp/dense/linesearch.hpp +517 -0
- casadi/include/proxsuite/proxqp/dense/model.hpp +147 -0
- casadi/include/proxsuite/proxqp/dense/preconditioner/identity.hpp +113 -0
- casadi/include/proxsuite/proxqp/dense/preconditioner/ruiz.hpp +571 -0
- casadi/include/proxsuite/proxqp/dense/solver.hpp +1330 -0
- casadi/include/proxsuite/proxqp/dense/utils.hpp +415 -0
- casadi/include/proxsuite/proxqp/dense/views.hpp +1466 -0
- casadi/include/proxsuite/proxqp/dense/workspace.hpp +264 -0
- casadi/include/proxsuite/proxqp/dense/wrapper.hpp +491 -0
- casadi/include/proxsuite/proxqp/results.hpp +212 -0
- casadi/include/proxsuite/proxqp/settings.hpp +302 -0
- casadi/include/proxsuite/proxqp/sparse/fwd.hpp +58 -0
- casadi/include/proxsuite/proxqp/sparse/helpers.hpp +309 -0
- casadi/include/proxsuite/proxqp/sparse/model.hpp +228 -0
- casadi/include/proxsuite/proxqp/sparse/preconditioner/identity.hpp +64 -0
- casadi/include/proxsuite/proxqp/sparse/preconditioner/ruiz.hpp +569 -0
- casadi/include/proxsuite/proxqp/sparse/solver.hpp +1441 -0
- casadi/include/proxsuite/proxqp/sparse/sparse.hpp +10 -0
- casadi/include/proxsuite/proxqp/sparse/utils.hpp +815 -0
- casadi/include/proxsuite/proxqp/sparse/views.hpp +63 -0
- casadi/include/proxsuite/proxqp/sparse/workspace.hpp +790 -0
- casadi/include/proxsuite/proxqp/sparse/wrapper.hpp +772 -0
- casadi/include/proxsuite/proxqp/status.hpp +46 -0
- casadi/include/proxsuite/proxqp/timings.hpp +101 -0
- casadi/include/proxsuite/proxqp/utils/prints.hpp +47 -0
- casadi/include/proxsuite/proxqp/utils/random_qp_problems.hpp +669 -0
- casadi/include/proxsuite/serialization/archive.hpp +231 -0
- casadi/include/proxsuite/serialization/eigen.hpp +107 -0
- casadi/include/proxsuite/serialization/model.hpp +34 -0
- casadi/include/proxsuite/serialization/results.hpp +74 -0
- casadi/include/proxsuite/serialization/settings.hpp +60 -0
- casadi/include/proxsuite/serialization/wrapper.hpp +24 -0
- casadi/include/proxsuite/warning.hpp +35 -0
- casadi/include/simde/arm/neon/aba.h +208 -0
- casadi/include/simde/arm/neon/abd.h +384 -0
- casadi/include/simde/arm/neon/abdl.h +147 -0
- casadi/include/simde/arm/neon/abs.h +408 -0
- casadi/include/simde/arm/neon/add.h +681 -0
- casadi/include/simde/arm/neon/addl.h +127 -0
- casadi/include/simde/arm/neon/addl_high.h +127 -0
- casadi/include/simde/arm/neon/addlv.h +317 -0
- casadi/include/simde/arm/neon/addv.h +447 -0
- casadi/include/simde/arm/neon/addw.h +222 -0
- casadi/include/simde/arm/neon/addw_high.h +193 -0
- casadi/include/simde/arm/neon/and.h +552 -0
- casadi/include/simde/arm/neon/bic.h +472 -0
- casadi/include/simde/arm/neon/bsl.h +448 -0
- casadi/include/simde/arm/neon/cagt.h +168 -0
- casadi/include/simde/arm/neon/ceq.h +711 -0
- casadi/include/simde/arm/neon/ceqz.h +335 -0
- casadi/include/simde/arm/neon/cge.h +677 -0
- casadi/include/simde/arm/neon/cgez.h +378 -0
- casadi/include/simde/arm/neon/cgt.h +686 -0
- casadi/include/simde/arm/neon/cgtz.h +380 -0
- casadi/include/simde/arm/neon/cle.h +677 -0
- casadi/include/simde/arm/neon/clez.h +378 -0
- casadi/include/simde/arm/neon/cls.h +148 -0
- casadi/include/simde/arm/neon/clt.h +679 -0
- casadi/include/simde/arm/neon/cltz.h +263 -0
- casadi/include/simde/arm/neon/clz.h +423 -0
- casadi/include/simde/arm/neon/cnt.h +145 -0
- casadi/include/simde/arm/neon/combine.h +343 -0
- casadi/include/simde/arm/neon/create.h +186 -0
- casadi/include/simde/arm/neon/cvt.h +492 -0
- casadi/include/simde/arm/neon/dot.h +171 -0
- casadi/include/simde/arm/neon/dot_lane.h +196 -0
- casadi/include/simde/arm/neon/dup_lane.h +702 -0
- casadi/include/simde/arm/neon/dup_n.h +534 -0
- casadi/include/simde/arm/neon/eor.h +552 -0
- casadi/include/simde/arm/neon/ext.h +887 -0
- casadi/include/simde/arm/neon/get_high.h +260 -0
- casadi/include/simde/arm/neon/get_lane.h +499 -0
- casadi/include/simde/arm/neon/get_low.h +276 -0
- casadi/include/simde/arm/neon/hadd.h +287 -0
- casadi/include/simde/arm/neon/hsub.h +287 -0
- casadi/include/simde/arm/neon/ld1.h +399 -0
- casadi/include/simde/arm/neon/ld3.h +609 -0
- casadi/include/simde/arm/neon/ld4.h +448 -0
- casadi/include/simde/arm/neon/max.h +614 -0
- casadi/include/simde/arm/neon/maxnm.h +215 -0
- casadi/include/simde/arm/neon/maxv.h +400 -0
- casadi/include/simde/arm/neon/min.h +660 -0
- casadi/include/simde/arm/neon/minnm.h +215 -0
- casadi/include/simde/arm/neon/minv.h +424 -0
- casadi/include/simde/arm/neon/mla.h +530 -0
- casadi/include/simde/arm/neon/mla_n.h +333 -0
- casadi/include/simde/arm/neon/mlal.h +156 -0
- casadi/include/simde/arm/neon/mlal_high.h +156 -0
- casadi/include/simde/arm/neon/mlal_n.h +128 -0
- casadi/include/simde/arm/neon/mls.h +264 -0
- casadi/include/simde/arm/neon/mlsl.h +124 -0
- casadi/include/simde/arm/neon/mlsl_high.h +124 -0
- casadi/include/simde/arm/neon/mlsl_n.h +96 -0
- casadi/include/simde/arm/neon/movl.h +208 -0
- casadi/include/simde/arm/neon/movl_high.h +126 -0
- casadi/include/simde/arm/neon/movn.h +195 -0
- casadi/include/simde/arm/neon/movn_high.h +125 -0
- casadi/include/simde/arm/neon/mul.h +594 -0
- casadi/include/simde/arm/neon/mul_lane.h +472 -0
- casadi/include/simde/arm/neon/mul_n.h +383 -0
- casadi/include/simde/arm/neon/mull.h +236 -0
- casadi/include/simde/arm/neon/mull_high.h +125 -0
- casadi/include/simde/arm/neon/mull_n.h +158 -0
- casadi/include/simde/arm/neon/mvn.h +426 -0
- casadi/include/simde/arm/neon/neg.h +393 -0
- casadi/include/simde/arm/neon/orn.h +505 -0
- casadi/include/simde/arm/neon/orr.h +552 -0
- casadi/include/simde/arm/neon/padal.h +211 -0
- casadi/include/simde/arm/neon/padd.h +293 -0
- casadi/include/simde/arm/neon/paddl.h +239 -0
- casadi/include/simde/arm/neon/pmax.h +253 -0
- casadi/include/simde/arm/neon/pmin.h +260 -0
- casadi/include/simde/arm/neon/qabs.h +281 -0
- casadi/include/simde/arm/neon/qadd.h +553 -0
- casadi/include/simde/arm/neon/qdmulh.h +125 -0
- casadi/include/simde/arm/neon/qdmull.h +125 -0
- casadi/include/simde/arm/neon/qmovn.h +273 -0
- casadi/include/simde/arm/neon/qmovn_high.h +127 -0
- casadi/include/simde/arm/neon/qmovun.h +159 -0
- casadi/include/simde/arm/neon/qneg.h +301 -0
- casadi/include/simde/arm/neon/qrdmulh.h +165 -0
- casadi/include/simde/arm/neon/qrdmulh_n.h +136 -0
- casadi/include/simde/arm/neon/qshl.h +732 -0
- casadi/include/simde/arm/neon/qsub.h +549 -0
- casadi/include/simde/arm/neon/qtbl.h +455 -0
- casadi/include/simde/arm/neon/qtbx.h +470 -0
- casadi/include/simde/arm/neon/rbit.h +165 -0
- casadi/include/simde/arm/neon/reinterpret.h +3101 -0
- casadi/include/simde/arm/neon/rev16.h +137 -0
- casadi/include/simde/arm/neon/rev32.h +235 -0
- casadi/include/simde/arm/neon/rev64.h +358 -0
- casadi/include/simde/arm/neon/rhadd.h +406 -0
- casadi/include/simde/arm/neon/rnd.h +143 -0
- casadi/include/simde/arm/neon/rndi.h +135 -0
- casadi/include/simde/arm/neon/rndm.h +143 -0
- casadi/include/simde/arm/neon/rndn.h +135 -0
- casadi/include/simde/arm/neon/rndp.h +143 -0
- casadi/include/simde/arm/neon/rshl.h +903 -0
- casadi/include/simde/arm/neon/rshr_n.h +471 -0
- casadi/include/simde/arm/neon/rsra_n.h +209 -0
- casadi/include/simde/arm/neon/set_lane.h +422 -0
- casadi/include/simde/arm/neon/shl.h +805 -0
- casadi/include/simde/arm/neon/shl_n.h +560 -0
- casadi/include/simde/arm/neon/shr_n.h +612 -0
- casadi/include/simde/arm/neon/sra_n.h +202 -0
- casadi/include/simde/arm/neon/st1.h +353 -0
- casadi/include/simde/arm/neon/st1_lane.h +363 -0
- casadi/include/simde/arm/neon/st3.h +426 -0
- casadi/include/simde/arm/neon/st4.h +445 -0
- casadi/include/simde/arm/neon/sub.h +659 -0
- casadi/include/simde/arm/neon/subl.h +127 -0
- casadi/include/simde/arm/neon/subw.h +221 -0
- casadi/include/simde/arm/neon/subw_high.h +222 -0
- casadi/include/simde/arm/neon/tbl.h +224 -0
- casadi/include/simde/arm/neon/tbx.h +247 -0
- casadi/include/simde/arm/neon/trn.h +252 -0
- casadi/include/simde/arm/neon/trn1.h +500 -0
- casadi/include/simde/arm/neon/trn2.h +499 -0
- casadi/include/simde/arm/neon/tst.h +540 -0
- casadi/include/simde/arm/neon/types.h +683 -0
- casadi/include/simde/arm/neon/uqadd.h +325 -0
- casadi/include/simde/arm/neon/uzp.h +252 -0
- casadi/include/simde/arm/neon/uzp1.h +643 -0
- casadi/include/simde/arm/neon/uzp2.h +647 -0
- casadi/include/simde/arm/neon/zip.h +252 -0
- casadi/include/simde/arm/neon/zip1.h +625 -0
- casadi/include/simde/arm/neon/zip2.h +625 -0
- casadi/include/simde/arm/neon.h +166 -0
- casadi/include/simde/check.h +276 -0
- casadi/include/simde/debug-trap.h +85 -0
- casadi/include/simde/hedley.h +1971 -0
- casadi/include/simde/simde-align.h +449 -0
- casadi/include/simde/simde-arch.h +532 -0
- casadi/include/simde/simde-common.h +890 -0
- casadi/include/simde/simde-complex.h +148 -0
- casadi/include/simde/simde-constify.h +397 -0
- casadi/include/simde/simde-detect-clang.h +109 -0
- casadi/include/simde/simde-diagnostic.h +428 -0
- casadi/include/simde/simde-features.h +522 -0
- casadi/include/simde/simde-math.h +1805 -0
- casadi/include/simde/x86/avx.h +6193 -0
- casadi/include/simde/x86/avx2.h +5660 -0
- casadi/include/simde/x86/avx512/2intersect.h +250 -0
- casadi/include/simde/x86/avx512/abs.h +562 -0
- casadi/include/simde/x86/avx512/add.h +641 -0
- casadi/include/simde/x86/avx512/adds.h +390 -0
- casadi/include/simde/x86/avx512/and.h +305 -0
- casadi/include/simde/x86/avx512/andnot.h +193 -0
- casadi/include/simde/x86/avx512/avg.h +258 -0
- casadi/include/simde/x86/avx512/blend.h +293 -0
- casadi/include/simde/x86/avx512/broadcast.h +897 -0
- casadi/include/simde/x86/avx512/cast.h +324 -0
- casadi/include/simde/x86/avx512/cmp.h +587 -0
- casadi/include/simde/x86/avx512/cmpeq.h +179 -0
- casadi/include/simde/x86/avx512/cmpge.h +104 -0
- casadi/include/simde/x86/avx512/cmpgt.h +189 -0
- casadi/include/simde/x86/avx512/cmple.h +103 -0
- casadi/include/simde/x86/avx512/cmplt.h +123 -0
- casadi/include/simde/x86/avx512/copysign.h +86 -0
- casadi/include/simde/x86/avx512/cvt.h +122 -0
- casadi/include/simde/x86/avx512/cvts.h +723 -0
- casadi/include/simde/x86/avx512/div.h +162 -0
- casadi/include/simde/x86/avx512/extract.h +198 -0
- casadi/include/simde/x86/avx512/fmadd.h +136 -0
- casadi/include/simde/x86/avx512/fmsub.h +108 -0
- casadi/include/simde/x86/avx512/fnmadd.h +108 -0
- casadi/include/simde/x86/avx512/fnmsub.h +108 -0
- casadi/include/simde/x86/avx512/insert.h +193 -0
- casadi/include/simde/x86/avx512/kshift.h +152 -0
- casadi/include/simde/x86/avx512/load.h +67 -0
- casadi/include/simde/x86/avx512/loadu.h +113 -0
- casadi/include/simde/x86/avx512/lzcnt.h +209 -0
- casadi/include/simde/x86/avx512/madd.h +155 -0
- casadi/include/simde/x86/avx512/maddubs.h +159 -0
- casadi/include/simde/x86/avx512/max.h +587 -0
- casadi/include/simde/x86/avx512/min.h +587 -0
- casadi/include/simde/x86/avx512/mov.h +859 -0
- casadi/include/simde/x86/avx512/mov_mask.h +372 -0
- casadi/include/simde/x86/avx512/movm.h +460 -0
- casadi/include/simde/x86/avx512/mul.h +279 -0
- casadi/include/simde/x86/avx512/mulhi.h +65 -0
- casadi/include/simde/x86/avx512/mulhrs.h +65 -0
- casadi/include/simde/x86/avx512/mullo.h +117 -0
- casadi/include/simde/x86/avx512/negate.h +88 -0
- casadi/include/simde/x86/avx512/or.h +252 -0
- casadi/include/simde/x86/avx512/packs.h +122 -0
- casadi/include/simde/x86/avx512/packus.h +122 -0
- casadi/include/simde/x86/avx512/permutex2var.h +1645 -0
- casadi/include/simde/x86/avx512/permutexvar.h +1180 -0
- casadi/include/simde/x86/avx512/sad.h +77 -0
- casadi/include/simde/x86/avx512/set.h +477 -0
- casadi/include/simde/x86/avx512/set1.h +331 -0
- casadi/include/simde/x86/avx512/set4.h +140 -0
- casadi/include/simde/x86/avx512/setone.h +66 -0
- casadi/include/simde/x86/avx512/setr.h +144 -0
- casadi/include/simde/x86/avx512/setr4.h +140 -0
- casadi/include/simde/x86/avx512/setzero.h +90 -0
- casadi/include/simde/x86/avx512/shuffle.h +176 -0
- casadi/include/simde/x86/avx512/sll.h +247 -0
- casadi/include/simde/x86/avx512/slli.h +179 -0
- casadi/include/simde/x86/avx512/sllv.h +68 -0
- casadi/include/simde/x86/avx512/sqrt.h +127 -0
- casadi/include/simde/x86/avx512/sra.h +81 -0
- casadi/include/simde/x86/avx512/srai.h +70 -0
- casadi/include/simde/x86/avx512/srav.h +67 -0
- casadi/include/simde/x86/avx512/srl.h +216 -0
- casadi/include/simde/x86/avx512/srli.h +180 -0
- casadi/include/simde/x86/avx512/srlv.h +282 -0
- casadi/include/simde/x86/avx512/store.h +93 -0
- casadi/include/simde/x86/avx512/storeu.h +93 -0
- casadi/include/simde/x86/avx512/sub.h +351 -0
- casadi/include/simde/x86/avx512/subs.h +222 -0
- casadi/include/simde/x86/avx512/test.h +193 -0
- casadi/include/simde/x86/avx512/types.h +380 -0
- casadi/include/simde/x86/avx512/unpackhi.h +380 -0
- casadi/include/simde/x86/avx512/unpacklo.h +104 -0
- casadi/include/simde/x86/avx512/xor.h +263 -0
- casadi/include/simde/x86/avx512/xorsign.h +72 -0
- casadi/include/simde/x86/avx512.h +108 -0
- casadi/include/simde/x86/clmul.h +414 -0
- casadi/include/simde/x86/fma.h +724 -0
- casadi/include/simde/x86/gfni.h +802 -0
- casadi/include/simde/x86/mmx.h +2399 -0
- casadi/include/simde/x86/sse.h +4471 -0
- casadi/include/simde/x86/sse2.h +7389 -0
- casadi/include/simde/x86/sse3.h +499 -0
- casadi/include/simde/x86/sse4.1.h +2216 -0
- casadi/include/simde/x86/sse4.2.h +347 -0
- casadi/include/simde/x86/ssse3.h +1032 -0
- casadi/include/simde/x86/svml.h +12139 -0
- casadi/include/simde/x86/xop.h +3644 -0
- casadi/include/superscs/cones.h +185 -0
- casadi/include/superscs/constants.h +144 -0
- casadi/include/superscs/cs.h +109 -0
- casadi/include/superscs/ctrlc.h +77 -0
- casadi/include/superscs/directions.h +125 -0
- casadi/include/superscs/glbopts.h +240 -0
- casadi/include/superscs/linAlg.h +437 -0
- casadi/include/superscs/linSys.h +205 -0
- casadi/include/superscs/linsys/amatrix.h +77 -0
- casadi/include/superscs/linsys/common.h +49 -0
- casadi/include/superscs/normalize.h +138 -0
- casadi/include/superscs/scs.h +656 -0
- casadi/include/superscs/scs_blas.h +79 -0
- casadi/include/superscs/scs_parser.h +187 -0
- casadi/include/superscs/unit_test_util.h +210 -0
- casadi/include/superscs/util.h +354 -0
- casadi/include/trlib/trlib_eigen_inverse.h +118 -0
- casadi/include/trlib/trlib_krylov.h +493 -0
- casadi/include/trlib/trlib_leftmost.h +181 -0
- casadi/include/trlib/trlib_private.h +109 -0
- casadi/include/trlib/trlib_quadratic_zero.h +57 -0
- casadi/include/trlib/trlib_tri_factor.h +409 -0
- casadi/include/trlib/trlib_types.h +36 -0
- casadi/libCbc.la +35 -0
- casadi/libCbc.so +0 -0
- casadi/libCbc.so.3 +0 -0
- casadi/libCbc.so.3.10.11 +0 -0
- casadi/libCbcSolver.la +35 -0
- casadi/libCbcSolver.so +0 -0
- casadi/libCbcSolver.so.3 +0 -0
- casadi/libCbcSolver.so.3.10.11 +0 -0
- casadi/libCgl.la +35 -0
- casadi/libCgl.so +0 -0
- casadi/libCgl.so.1 +0 -0
- casadi/libCgl.so.1.10.8 +0 -0
- casadi/libClp.la +35 -0
- casadi/libClp.so +0 -0
- casadi/libClp.so.1 +0 -0
- casadi/libClp.so.1.14.9 +0 -0
- casadi/libClpSolver.la +35 -0
- casadi/libClpSolver.so +0 -0
- casadi/libClpSolver.so.1 +0 -0
- casadi/libClpSolver.so.1.14.9 +0 -0
- casadi/libCoinUtils.la +35 -0
- casadi/libCoinUtils.so +0 -0
- casadi/libCoinUtils.so.3 +0 -0
- casadi/libCoinUtils.so.3.11.10 +0 -0
- casadi/libOsi.la +35 -0
- casadi/libOsi.so +0 -0
- casadi/libOsi.so.1 +0 -0
- casadi/libOsi.so.1.13.9 +0 -0
- casadi/libOsiCbc.la +35 -0
- casadi/libOsiCbc.so +0 -0
- casadi/libOsiCbc.so.3 +0 -0
- casadi/libOsiCbc.so.3.10.11 +0 -0
- casadi/libOsiClp.la +35 -0
- casadi/libOsiClp.so +0 -0
- casadi/libOsiClp.so.1 +0 -0
- casadi/libOsiClp.so.1.14.9 +0 -0
- casadi/libOsiCommonTests.la +35 -0
- casadi/libOsiCommonTests.so +0 -0
- casadi/libOsiCommonTests.so.1 +0 -0
- casadi/libOsiCommonTests.so.1.13.9 +0 -0
- casadi/libalpaqa-dl-loader.so +0 -0
- casadi/libalpaqa-dl-loader.so.1.0.0 +0 -0
- casadi/libalpaqa.so +0 -0
- casadi/libalpaqa.so.1.0.0 +0 -0
- casadi/libbonmin.la +35 -0
- casadi/libbonmin.so +0 -0
- casadi/libbonmin.so.4 +0 -0
- casadi/libbonmin.so.4.8.9 +0 -0
- casadi/libcasadi-tp-openblas.so +0 -0
- casadi/libcasadi-tp-openblas.so.0 +0 -0
- casadi/libcasadi-tp-openblas.so.0.3 +0 -0
- casadi/libcasadi.so +0 -0
- casadi/libcasadi.so.3.7 +0 -0
- casadi/libcasadi_archiver_libzip.so +0 -0
- casadi/libcasadi_archiver_libzip.so.3.7 +0 -0
- casadi/libcasadi_conic_cbc.so +0 -0
- casadi/libcasadi_conic_cbc.so.3.7 +0 -0
- casadi/libcasadi_conic_clp.so +0 -0
- casadi/libcasadi_conic_clp.so.3.7 +0 -0
- casadi/libcasadi_conic_daqp.so +0 -0
- casadi/libcasadi_conic_daqp.so.3.7 +0 -0
- casadi/libcasadi_conic_gurobi.so +0 -0
- casadi/libcasadi_conic_gurobi.so.3.7 +0 -0
- casadi/libcasadi_conic_highs.so +0 -0
- casadi/libcasadi_conic_highs.so.3.7 +0 -0
- casadi/libcasadi_conic_ipqp.so +0 -0
- casadi/libcasadi_conic_ipqp.so.3.7 +0 -0
- casadi/libcasadi_conic_nlpsol.so +0 -0
- casadi/libcasadi_conic_nlpsol.so.3.7 +0 -0
- casadi/libcasadi_conic_osqp.so +0 -0
- casadi/libcasadi_conic_osqp.so.3.7 +0 -0
- casadi/libcasadi_conic_proxqp.so +0 -0
- casadi/libcasadi_conic_proxqp.so.3.7 +0 -0
- casadi/libcasadi_conic_qpoases.so +0 -0
- casadi/libcasadi_conic_qpoases.so.3.7 +0 -0
- casadi/libcasadi_conic_qrqp.so +0 -0
- casadi/libcasadi_conic_qrqp.so.3.7 +0 -0
- casadi/libcasadi_conic_superscs.so +0 -0
- casadi/libcasadi_conic_superscs.so.3.7 +0 -0
- casadi/libcasadi_filesystem_ghc.so +0 -0
- casadi/libcasadi_filesystem_ghc.so.3.7 +0 -0
- casadi/libcasadi_importer_shell.so +0 -0
- casadi/libcasadi_importer_shell.so.3.7 +0 -0
- casadi/libcasadi_integrator_collocation.so +0 -0
- casadi/libcasadi_integrator_collocation.so.3.7 +0 -0
- casadi/libcasadi_integrator_cvodes.so +0 -0
- casadi/libcasadi_integrator_cvodes.so.3.7 +0 -0
- casadi/libcasadi_integrator_idas.so +0 -0
- casadi/libcasadi_integrator_idas.so.3.7 +0 -0
- casadi/libcasadi_integrator_rk.so +0 -0
- casadi/libcasadi_integrator_rk.so.3.7 +0 -0
- casadi/libcasadi_interpolant_bspline.so +0 -0
- casadi/libcasadi_interpolant_bspline.so.3.7 +0 -0
- casadi/libcasadi_interpolant_linear.so +0 -0
- casadi/libcasadi_interpolant_linear.so.3.7 +0 -0
- casadi/libcasadi_linsol_csparse.so +0 -0
- casadi/libcasadi_linsol_csparse.so.3.7 +0 -0
- casadi/libcasadi_linsol_csparsecholesky.so +0 -0
- casadi/libcasadi_linsol_csparsecholesky.so.3.7 +0 -0
- casadi/libcasadi_linsol_lapacklu.so +0 -0
- casadi/libcasadi_linsol_lapacklu.so.3.7 +0 -0
- casadi/libcasadi_linsol_lapackqr.so +0 -0
- casadi/libcasadi_linsol_lapackqr.so.3.7 +0 -0
- casadi/libcasadi_linsol_ldl.so +0 -0
- casadi/libcasadi_linsol_ldl.so.3.7 +0 -0
- casadi/libcasadi_linsol_lsqr.so +0 -0
- casadi/libcasadi_linsol_lsqr.so.3.7 +0 -0
- casadi/libcasadi_linsol_ma27.so +0 -0
- casadi/libcasadi_linsol_ma27.so.3.7 +0 -0
- casadi/libcasadi_linsol_mumps.so +0 -0
- casadi/libcasadi_linsol_mumps.so.3.7 +0 -0
- casadi/libcasadi_linsol_qr.so +0 -0
- casadi/libcasadi_linsol_qr.so.3.7 +0 -0
- casadi/libcasadi_linsol_symbolicqr.so +0 -0
- casadi/libcasadi_linsol_symbolicqr.so.3.7 +0 -0
- casadi/libcasadi_linsol_tridiag.so +0 -0
- casadi/libcasadi_linsol_tridiag.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_alpaqa.so +0 -0
- casadi/libcasadi_nlpsol_alpaqa.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_ampl.so +0 -0
- casadi/libcasadi_nlpsol_ampl.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_blocksqp.so +0 -0
- casadi/libcasadi_nlpsol_blocksqp.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_bonmin.so +0 -0
- casadi/libcasadi_nlpsol_bonmin.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_feasiblesqpmethod.so +0 -0
- casadi/libcasadi_nlpsol_feasiblesqpmethod.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_ipopt.so +0 -0
- casadi/libcasadi_nlpsol_ipopt.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_knitro.so +0 -0
- casadi/libcasadi_nlpsol_knitro.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_madnlp.so +0 -0
- casadi/libcasadi_nlpsol_madnlp.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_qrsqp.so +0 -0
- casadi/libcasadi_nlpsol_qrsqp.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_scpgen.so +0 -0
- casadi/libcasadi_nlpsol_scpgen.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_sleqp.so +0 -0
- casadi/libcasadi_nlpsol_sleqp.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_snopt.so +0 -0
- casadi/libcasadi_nlpsol_snopt.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_sqpmethod.so +0 -0
- casadi/libcasadi_nlpsol_sqpmethod.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_worhp.so +0 -0
- casadi/libcasadi_nlpsol_worhp.so.3.7 +0 -0
- casadi/libcasadi_rootfinder_fast_newton.so +0 -0
- casadi/libcasadi_rootfinder_fast_newton.so.3.7 +0 -0
- casadi/libcasadi_rootfinder_kinsol.so +0 -0
- casadi/libcasadi_rootfinder_kinsol.so.3.7 +0 -0
- casadi/libcasadi_rootfinder_newton.so +0 -0
- casadi/libcasadi_rootfinder_newton.so.3.7 +0 -0
- casadi/libcasadi_rootfinder_nlpsol.so +0 -0
- casadi/libcasadi_rootfinder_nlpsol.so.3.7 +0 -0
- casadi/libcasadi_sundials_common.so +0 -0
- casadi/libcasadi_sundials_common.so.3.7 +0 -0
- casadi/libcasadi_xmlfile_tinyxml.so +0 -0
- casadi/libcasadi_xmlfile_tinyxml.so.3.7 +0 -0
- casadi/libcoinmetis.la +41 -0
- casadi/libcoinmetis.so +0 -0
- casadi/libcoinmetis.so.2 +0 -0
- casadi/libcoinmetis.so.2.0.0 +0 -0
- casadi/libcoinmumps.la +41 -0
- casadi/libcoinmumps.so +0 -0
- casadi/libcoinmumps.so.3 +0 -0
- casadi/libcoinmumps.so.3.0.1 +0 -0
- casadi/libdaqp.so +0 -0
- casadi/libdaqpstat.a +0 -0
- casadi/libgfortran-a8535147.so.5.0.0 +0 -0
- casadi/libgurobi_adaptor.so +0 -0
- casadi/libhighs.so +0 -0
- casadi/libhighs.so.1 +0 -0
- casadi/libhighs.so.1.10.0 +0 -0
- casadi/libindirect.a +0 -0
- casadi/libipopt.la +41 -0
- casadi/libipopt.so +0 -0
- casadi/libipopt.so.3 +0 -0
- casadi/libipopt.so.3.14.11 +0 -0
- casadi/liblinsys.a +0 -0
- casadi/libmatlab_ipc.so +0 -0
- casadi/libosqp.a +0 -0
- casadi/libosqp.so +0 -0
- casadi/libqdldl.a +0 -0
- casadi/libqdldl.so +0 -0
- casadi/libquadmath-e2ac3af2.so.0.0.0 +0 -0
- casadi/libsipopt.la +41 -0
- casadi/libsipopt.so +0 -0
- casadi/libsipopt.so.3 +0 -0
- casadi/libsipopt.so.3.14.11 +0 -0
- casadi/libsleqp.so +0 -0
- casadi/libsleqp.so.1.0.1 +0 -0
- casadi/libspral.a +0 -0
- casadi/libsuperscs.a +0 -0
- casadi/libtrlib.so +0 -0
- casadi/libtrlib.so.0.4 +0 -0
- casadi/libz.a +0 -0
- casadi/libz.so +0 -0
- casadi/libz.so.1 +0 -0
- casadi/libz.so.1.3.1 +0 -0
- casadi/libzip.a +0 -0
- casadi/pkgconfig/blas.pc +11 -0
- casadi/pkgconfig/bonmin.pc +12 -0
- casadi/pkgconfig/casadi.pc +12 -0
- casadi/pkgconfig/cbc.pc +12 -0
- casadi/pkgconfig/cgl.pc +12 -0
- casadi/pkgconfig/clp.pc +12 -0
- casadi/pkgconfig/coinmetis.pc +13 -0
- casadi/pkgconfig/coinmumps.pc +15 -0
- casadi/pkgconfig/coinutils.pc +12 -0
- casadi/pkgconfig/highs.pc +12 -0
- casadi/pkgconfig/ipopt.pc +15 -0
- casadi/pkgconfig/lapack.pc +11 -0
- casadi/pkgconfig/libzip.pc +14 -0
- casadi/pkgconfig/openblas.pc +11 -0
- casadi/pkgconfig/osi-cbc.pc +12 -0
- casadi/pkgconfig/osi-clp.pc +12 -0
- casadi/pkgconfig/osi-unittests.pc +12 -0
- casadi/pkgconfig/osi.pc +12 -0
- casadi/pkgconfig/proxsuite.pc +22 -0
- casadi/pkgconfig/sleqp.pc +10 -0
- casadi/tools/__init__.py +54 -0
- casadi/tools/bounds.py +107 -0
- casadi/tools/graph/__init__.py +35 -0
- casadi/tools/graph/graph.py +747 -0
- casadi/tools/in_out.py +89 -0
- casadi/tools/structure3.py +1441 -0
- casadi-3.7.2.dist-info/METADATA +45 -0
- casadi-3.7.2.dist-info/RECORD +1726 -0
- casadi-3.7.2.dist-info/WHEEL +4 -0
- dummy.txt +1 -0
@@ -0,0 +1,1649 @@
|
|
1
|
+
// This file is part of Eigen, a lightweight C++ template library
|
2
|
+
// for linear algebra.
|
3
|
+
//
|
4
|
+
// Copyright (C) 2007 Julien Pommier
|
5
|
+
// Copyright (C) 2014 Pedro Gonnet (pedro.gonnet@gmail.com)
|
6
|
+
// Copyright (C) 2009-2019 Gael Guennebaud <gael.guennebaud@inria.fr>
|
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
|
+
/* The exp and log functions of this file initially come from
|
13
|
+
* Julien Pommier's sse math library: http://gruntthepeon.free.fr/ssemath/
|
14
|
+
*/
|
15
|
+
|
16
|
+
#ifndef EIGEN_ARCH_GENERIC_PACKET_MATH_FUNCTIONS_H
|
17
|
+
#define EIGEN_ARCH_GENERIC_PACKET_MATH_FUNCTIONS_H
|
18
|
+
|
19
|
+
namespace Eigen {
|
20
|
+
namespace internal {
|
21
|
+
|
22
|
+
// Creates a Scalar integer type with same bit-width.
|
23
|
+
template<typename T> struct make_integer;
|
24
|
+
template<> struct make_integer<float> { typedef numext::int32_t type; };
|
25
|
+
template<> struct make_integer<double> { typedef numext::int64_t type; };
|
26
|
+
template<> struct make_integer<half> { typedef numext::int16_t type; };
|
27
|
+
template<> struct make_integer<bfloat16> { typedef numext::int16_t type; };
|
28
|
+
|
29
|
+
template<typename Packet> EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC
|
30
|
+
Packet pfrexp_generic_get_biased_exponent(const Packet& a) {
|
31
|
+
typedef typename unpacket_traits<Packet>::type Scalar;
|
32
|
+
typedef typename unpacket_traits<Packet>::integer_packet PacketI;
|
33
|
+
enum { mantissa_bits = numext::numeric_limits<Scalar>::digits - 1};
|
34
|
+
return pcast<PacketI, Packet>(plogical_shift_right<mantissa_bits>(preinterpret<PacketI>(pabs(a))));
|
35
|
+
}
|
36
|
+
|
37
|
+
// Safely applies frexp, correctly handles denormals.
|
38
|
+
// Assumes IEEE floating point format.
|
39
|
+
template<typename Packet> EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC
|
40
|
+
Packet pfrexp_generic(const Packet& a, Packet& exponent) {
|
41
|
+
typedef typename unpacket_traits<Packet>::type Scalar;
|
42
|
+
typedef typename make_unsigned<typename make_integer<Scalar>::type>::type ScalarUI;
|
43
|
+
enum {
|
44
|
+
TotalBits = sizeof(Scalar) * CHAR_BIT,
|
45
|
+
MantissaBits = numext::numeric_limits<Scalar>::digits - 1,
|
46
|
+
ExponentBits = int(TotalBits) - int(MantissaBits) - 1
|
47
|
+
};
|
48
|
+
|
49
|
+
EIGEN_CONSTEXPR ScalarUI scalar_sign_mantissa_mask =
|
50
|
+
~(((ScalarUI(1) << int(ExponentBits)) - ScalarUI(1)) << int(MantissaBits)); // ~0x7f800000
|
51
|
+
const Packet sign_mantissa_mask = pset1frombits<Packet>(static_cast<ScalarUI>(scalar_sign_mantissa_mask));
|
52
|
+
const Packet half = pset1<Packet>(Scalar(0.5));
|
53
|
+
const Packet zero = pzero(a);
|
54
|
+
const Packet normal_min = pset1<Packet>((numext::numeric_limits<Scalar>::min)()); // Minimum normal value, 2^-126
|
55
|
+
|
56
|
+
// To handle denormals, normalize by multiplying by 2^(int(MantissaBits)+1).
|
57
|
+
const Packet is_denormal = pcmp_lt(pabs(a), normal_min);
|
58
|
+
EIGEN_CONSTEXPR ScalarUI scalar_normalization_offset = ScalarUI(int(MantissaBits) + 1); // 24
|
59
|
+
// The following cannot be constexpr because bfloat16(uint16_t) is not constexpr.
|
60
|
+
const Scalar scalar_normalization_factor = Scalar(ScalarUI(1) << int(scalar_normalization_offset)); // 2^24
|
61
|
+
const Packet normalization_factor = pset1<Packet>(scalar_normalization_factor);
|
62
|
+
const Packet normalized_a = pselect(is_denormal, pmul(a, normalization_factor), a);
|
63
|
+
|
64
|
+
// Determine exponent offset: -126 if normal, -126-24 if denormal
|
65
|
+
const Scalar scalar_exponent_offset = -Scalar((ScalarUI(1)<<(int(ExponentBits)-1)) - ScalarUI(2)); // -126
|
66
|
+
Packet exponent_offset = pset1<Packet>(scalar_exponent_offset);
|
67
|
+
const Packet normalization_offset = pset1<Packet>(-Scalar(scalar_normalization_offset)); // -24
|
68
|
+
exponent_offset = pselect(is_denormal, padd(exponent_offset, normalization_offset), exponent_offset);
|
69
|
+
|
70
|
+
// Determine exponent and mantissa from normalized_a.
|
71
|
+
exponent = pfrexp_generic_get_biased_exponent(normalized_a);
|
72
|
+
// Zero, Inf and NaN return 'a' unmodified, exponent is zero
|
73
|
+
// (technically the exponent is unspecified for inf/NaN, but GCC/Clang set it to zero)
|
74
|
+
const Scalar scalar_non_finite_exponent = Scalar((ScalarUI(1) << int(ExponentBits)) - ScalarUI(1)); // 255
|
75
|
+
const Packet non_finite_exponent = pset1<Packet>(scalar_non_finite_exponent);
|
76
|
+
const Packet is_zero_or_not_finite = por(pcmp_eq(a, zero), pcmp_eq(exponent, non_finite_exponent));
|
77
|
+
const Packet m = pselect(is_zero_or_not_finite, a, por(pand(normalized_a, sign_mantissa_mask), half));
|
78
|
+
exponent = pselect(is_zero_or_not_finite, zero, padd(exponent, exponent_offset));
|
79
|
+
return m;
|
80
|
+
}
|
81
|
+
|
82
|
+
// Safely applies ldexp, correctly handles overflows, underflows and denormals.
|
83
|
+
// Assumes IEEE floating point format.
|
84
|
+
template<typename Packet> EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC
|
85
|
+
Packet pldexp_generic(const Packet& a, const Packet& exponent) {
|
86
|
+
// We want to return a * 2^exponent, allowing for all possible integer
|
87
|
+
// exponents without overflowing or underflowing in intermediate
|
88
|
+
// computations.
|
89
|
+
//
|
90
|
+
// Since 'a' and the output can be denormal, the maximum range of 'exponent'
|
91
|
+
// to consider for a float is:
|
92
|
+
// -255-23 -> 255+23
|
93
|
+
// Below -278 any finite float 'a' will become zero, and above +278 any
|
94
|
+
// finite float will become inf, including when 'a' is the smallest possible
|
95
|
+
// denormal.
|
96
|
+
//
|
97
|
+
// Unfortunately, 2^(278) cannot be represented using either one or two
|
98
|
+
// finite normal floats, so we must split the scale factor into at least
|
99
|
+
// three parts. It turns out to be faster to split 'exponent' into four
|
100
|
+
// factors, since [exponent>>2] is much faster to compute that [exponent/3].
|
101
|
+
//
|
102
|
+
// Set e = min(max(exponent, -278), 278);
|
103
|
+
// b = floor(e/4);
|
104
|
+
// out = ((((a * 2^(b)) * 2^(b)) * 2^(b)) * 2^(e-3*b))
|
105
|
+
//
|
106
|
+
// This will avoid any intermediate overflows and correctly handle 0, inf,
|
107
|
+
// NaN cases.
|
108
|
+
typedef typename unpacket_traits<Packet>::integer_packet PacketI;
|
109
|
+
typedef typename unpacket_traits<Packet>::type Scalar;
|
110
|
+
typedef typename unpacket_traits<PacketI>::type ScalarI;
|
111
|
+
enum {
|
112
|
+
TotalBits = sizeof(Scalar) * CHAR_BIT,
|
113
|
+
MantissaBits = numext::numeric_limits<Scalar>::digits - 1,
|
114
|
+
ExponentBits = int(TotalBits) - int(MantissaBits) - 1
|
115
|
+
};
|
116
|
+
|
117
|
+
const Packet max_exponent = pset1<Packet>(Scalar((ScalarI(1)<<int(ExponentBits)) + ScalarI(int(MantissaBits) - 1))); // 278
|
118
|
+
const PacketI bias = pset1<PacketI>((ScalarI(1)<<(int(ExponentBits)-1)) - ScalarI(1)); // 127
|
119
|
+
const PacketI e = pcast<Packet, PacketI>(pmin(pmax(exponent, pnegate(max_exponent)), max_exponent));
|
120
|
+
PacketI b = parithmetic_shift_right<2>(e); // floor(e/4);
|
121
|
+
Packet c = preinterpret<Packet>(plogical_shift_left<int(MantissaBits)>(padd(b, bias))); // 2^b
|
122
|
+
Packet out = pmul(pmul(pmul(a, c), c), c); // a * 2^(3b)
|
123
|
+
b = psub(psub(psub(e, b), b), b); // e - 3b
|
124
|
+
c = preinterpret<Packet>(plogical_shift_left<int(MantissaBits)>(padd(b, bias))); // 2^(e-3*b)
|
125
|
+
out = pmul(out, c);
|
126
|
+
return out;
|
127
|
+
}
|
128
|
+
|
129
|
+
// Explicitly multiplies
|
130
|
+
// a * (2^e)
|
131
|
+
// clamping e to the range
|
132
|
+
// [NumTraits<Scalar>::min_exponent()-2, NumTraits<Scalar>::max_exponent()]
|
133
|
+
//
|
134
|
+
// This is approx 7x faster than pldexp_impl, but will prematurely over/underflow
|
135
|
+
// if 2^e doesn't fit into a normal floating-point Scalar.
|
136
|
+
//
|
137
|
+
// Assumes IEEE floating point format
|
138
|
+
template<typename Packet>
|
139
|
+
struct pldexp_fast_impl {
|
140
|
+
typedef typename unpacket_traits<Packet>::integer_packet PacketI;
|
141
|
+
typedef typename unpacket_traits<Packet>::type Scalar;
|
142
|
+
typedef typename unpacket_traits<PacketI>::type ScalarI;
|
143
|
+
enum {
|
144
|
+
TotalBits = sizeof(Scalar) * CHAR_BIT,
|
145
|
+
MantissaBits = numext::numeric_limits<Scalar>::digits - 1,
|
146
|
+
ExponentBits = int(TotalBits) - int(MantissaBits) - 1
|
147
|
+
};
|
148
|
+
|
149
|
+
static EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC
|
150
|
+
Packet run(const Packet& a, const Packet& exponent) {
|
151
|
+
const Packet bias = pset1<Packet>(Scalar((ScalarI(1)<<(int(ExponentBits)-1)) - ScalarI(1))); // 127
|
152
|
+
const Packet limit = pset1<Packet>(Scalar((ScalarI(1)<<int(ExponentBits)) - ScalarI(1))); // 255
|
153
|
+
// restrict biased exponent between 0 and 255 for float.
|
154
|
+
const PacketI e = pcast<Packet, PacketI>(pmin(pmax(padd(exponent, bias), pzero(limit)), limit)); // exponent + 127
|
155
|
+
// return a * (2^e)
|
156
|
+
return pmul(a, preinterpret<Packet>(plogical_shift_left<int(MantissaBits)>(e)));
|
157
|
+
}
|
158
|
+
};
|
159
|
+
|
160
|
+
// Natural or base 2 logarithm.
|
161
|
+
// Computes log(x) as log(2^e * m) = C*e + log(m), where the constant C =log(2)
|
162
|
+
// and m is in the range [sqrt(1/2),sqrt(2)). In this range, the logarithm can
|
163
|
+
// be easily approximated by a polynomial centered on m=1 for stability.
|
164
|
+
// TODO(gonnet): Further reduce the interval allowing for lower-degree
|
165
|
+
// polynomial interpolants -> ... -> profit!
|
166
|
+
template <typename Packet, bool base2>
|
167
|
+
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
|
168
|
+
EIGEN_UNUSED
|
169
|
+
Packet plog_impl_float(const Packet _x)
|
170
|
+
{
|
171
|
+
Packet x = _x;
|
172
|
+
|
173
|
+
const Packet cst_1 = pset1<Packet>(1.0f);
|
174
|
+
const Packet cst_neg_half = pset1<Packet>(-0.5f);
|
175
|
+
// The smallest non denormalized float number.
|
176
|
+
const Packet cst_min_norm_pos = pset1frombits<Packet>( 0x00800000u);
|
177
|
+
const Packet cst_minus_inf = pset1frombits<Packet>( 0xff800000u);
|
178
|
+
const Packet cst_pos_inf = pset1frombits<Packet>( 0x7f800000u);
|
179
|
+
|
180
|
+
// Polynomial coefficients.
|
181
|
+
const Packet cst_cephes_SQRTHF = pset1<Packet>(0.707106781186547524f);
|
182
|
+
const Packet cst_cephes_log_p0 = pset1<Packet>(7.0376836292E-2f);
|
183
|
+
const Packet cst_cephes_log_p1 = pset1<Packet>(-1.1514610310E-1f);
|
184
|
+
const Packet cst_cephes_log_p2 = pset1<Packet>(1.1676998740E-1f);
|
185
|
+
const Packet cst_cephes_log_p3 = pset1<Packet>(-1.2420140846E-1f);
|
186
|
+
const Packet cst_cephes_log_p4 = pset1<Packet>(+1.4249322787E-1f);
|
187
|
+
const Packet cst_cephes_log_p5 = pset1<Packet>(-1.6668057665E-1f);
|
188
|
+
const Packet cst_cephes_log_p6 = pset1<Packet>(+2.0000714765E-1f);
|
189
|
+
const Packet cst_cephes_log_p7 = pset1<Packet>(-2.4999993993E-1f);
|
190
|
+
const Packet cst_cephes_log_p8 = pset1<Packet>(+3.3333331174E-1f);
|
191
|
+
|
192
|
+
// Truncate input values to the minimum positive normal.
|
193
|
+
x = pmax(x, cst_min_norm_pos);
|
194
|
+
|
195
|
+
Packet e;
|
196
|
+
// extract significant in the range [0.5,1) and exponent
|
197
|
+
x = pfrexp(x,e);
|
198
|
+
|
199
|
+
// part2: Shift the inputs from the range [0.5,1) to [sqrt(1/2),sqrt(2))
|
200
|
+
// and shift by -1. The values are then centered around 0, which improves
|
201
|
+
// the stability of the polynomial evaluation.
|
202
|
+
// if( x < SQRTHF ) {
|
203
|
+
// e -= 1;
|
204
|
+
// x = x + x - 1.0;
|
205
|
+
// } else { x = x - 1.0; }
|
206
|
+
Packet mask = pcmp_lt(x, cst_cephes_SQRTHF);
|
207
|
+
Packet tmp = pand(x, mask);
|
208
|
+
x = psub(x, cst_1);
|
209
|
+
e = psub(e, pand(cst_1, mask));
|
210
|
+
x = padd(x, tmp);
|
211
|
+
|
212
|
+
Packet x2 = pmul(x, x);
|
213
|
+
Packet x3 = pmul(x2, x);
|
214
|
+
|
215
|
+
// Evaluate the polynomial approximant of degree 8 in three parts, probably
|
216
|
+
// to improve instruction-level parallelism.
|
217
|
+
Packet y, y1, y2;
|
218
|
+
y = pmadd(cst_cephes_log_p0, x, cst_cephes_log_p1);
|
219
|
+
y1 = pmadd(cst_cephes_log_p3, x, cst_cephes_log_p4);
|
220
|
+
y2 = pmadd(cst_cephes_log_p6, x, cst_cephes_log_p7);
|
221
|
+
y = pmadd(y, x, cst_cephes_log_p2);
|
222
|
+
y1 = pmadd(y1, x, cst_cephes_log_p5);
|
223
|
+
y2 = pmadd(y2, x, cst_cephes_log_p8);
|
224
|
+
y = pmadd(y, x3, y1);
|
225
|
+
y = pmadd(y, x3, y2);
|
226
|
+
y = pmul(y, x3);
|
227
|
+
|
228
|
+
y = pmadd(cst_neg_half, x2, y);
|
229
|
+
x = padd(x, y);
|
230
|
+
|
231
|
+
// Add the logarithm of the exponent back to the result of the interpolation.
|
232
|
+
if (base2) {
|
233
|
+
const Packet cst_log2e = pset1<Packet>(static_cast<float>(EIGEN_LOG2E));
|
234
|
+
x = pmadd(x, cst_log2e, e);
|
235
|
+
} else {
|
236
|
+
const Packet cst_ln2 = pset1<Packet>(static_cast<float>(EIGEN_LN2));
|
237
|
+
x = pmadd(e, cst_ln2, x);
|
238
|
+
}
|
239
|
+
|
240
|
+
Packet invalid_mask = pcmp_lt_or_nan(_x, pzero(_x));
|
241
|
+
Packet iszero_mask = pcmp_eq(_x,pzero(_x));
|
242
|
+
Packet pos_inf_mask = pcmp_eq(_x,cst_pos_inf);
|
243
|
+
// Filter out invalid inputs, i.e.:
|
244
|
+
// - negative arg will be NAN
|
245
|
+
// - 0 will be -INF
|
246
|
+
// - +INF will be +INF
|
247
|
+
return pselect(iszero_mask, cst_minus_inf,
|
248
|
+
por(pselect(pos_inf_mask,cst_pos_inf,x), invalid_mask));
|
249
|
+
}
|
250
|
+
|
251
|
+
template <typename Packet>
|
252
|
+
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
|
253
|
+
EIGEN_UNUSED
|
254
|
+
Packet plog_float(const Packet _x)
|
255
|
+
{
|
256
|
+
return plog_impl_float<Packet, /* base2 */ false>(_x);
|
257
|
+
}
|
258
|
+
|
259
|
+
template <typename Packet>
|
260
|
+
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
|
261
|
+
EIGEN_UNUSED
|
262
|
+
Packet plog2_float(const Packet _x)
|
263
|
+
{
|
264
|
+
return plog_impl_float<Packet, /* base2 */ true>(_x);
|
265
|
+
}
|
266
|
+
|
267
|
+
/* Returns the base e (2.718...) or base 2 logarithm of x.
|
268
|
+
* The argument is separated into its exponent and fractional parts.
|
269
|
+
* The logarithm of the fraction in the interval [sqrt(1/2), sqrt(2)],
|
270
|
+
* is approximated by
|
271
|
+
*
|
272
|
+
* log(1+x) = x - 0.5 x**2 + x**3 P(x)/Q(x).
|
273
|
+
*
|
274
|
+
* for more detail see: http://www.netlib.org/cephes/
|
275
|
+
*/
|
276
|
+
template <typename Packet, bool base2>
|
277
|
+
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
|
278
|
+
EIGEN_UNUSED
|
279
|
+
Packet plog_impl_double(const Packet _x)
|
280
|
+
{
|
281
|
+
Packet x = _x;
|
282
|
+
|
283
|
+
const Packet cst_1 = pset1<Packet>(1.0);
|
284
|
+
const Packet cst_neg_half = pset1<Packet>(-0.5);
|
285
|
+
// The smallest non denormalized double.
|
286
|
+
const Packet cst_min_norm_pos = pset1frombits<Packet>( static_cast<uint64_t>(0x0010000000000000ull));
|
287
|
+
const Packet cst_minus_inf = pset1frombits<Packet>( static_cast<uint64_t>(0xfff0000000000000ull));
|
288
|
+
const Packet cst_pos_inf = pset1frombits<Packet>( static_cast<uint64_t>(0x7ff0000000000000ull));
|
289
|
+
|
290
|
+
|
291
|
+
// Polynomial Coefficients for log(1+x) = x - x**2/2 + x**3 P(x)/Q(x)
|
292
|
+
// 1/sqrt(2) <= x < sqrt(2)
|
293
|
+
const Packet cst_cephes_SQRTHF = pset1<Packet>(0.70710678118654752440E0);
|
294
|
+
const Packet cst_cephes_log_p0 = pset1<Packet>(1.01875663804580931796E-4);
|
295
|
+
const Packet cst_cephes_log_p1 = pset1<Packet>(4.97494994976747001425E-1);
|
296
|
+
const Packet cst_cephes_log_p2 = pset1<Packet>(4.70579119878881725854E0);
|
297
|
+
const Packet cst_cephes_log_p3 = pset1<Packet>(1.44989225341610930846E1);
|
298
|
+
const Packet cst_cephes_log_p4 = pset1<Packet>(1.79368678507819816313E1);
|
299
|
+
const Packet cst_cephes_log_p5 = pset1<Packet>(7.70838733755885391666E0);
|
300
|
+
|
301
|
+
const Packet cst_cephes_log_q0 = pset1<Packet>(1.0);
|
302
|
+
const Packet cst_cephes_log_q1 = pset1<Packet>(1.12873587189167450590E1);
|
303
|
+
const Packet cst_cephes_log_q2 = pset1<Packet>(4.52279145837532221105E1);
|
304
|
+
const Packet cst_cephes_log_q3 = pset1<Packet>(8.29875266912776603211E1);
|
305
|
+
const Packet cst_cephes_log_q4 = pset1<Packet>(7.11544750618563894466E1);
|
306
|
+
const Packet cst_cephes_log_q5 = pset1<Packet>(2.31251620126765340583E1);
|
307
|
+
|
308
|
+
// Truncate input values to the minimum positive normal.
|
309
|
+
x = pmax(x, cst_min_norm_pos);
|
310
|
+
|
311
|
+
Packet e;
|
312
|
+
// extract significant in the range [0.5,1) and exponent
|
313
|
+
x = pfrexp(x,e);
|
314
|
+
|
315
|
+
// Shift the inputs from the range [0.5,1) to [sqrt(1/2),sqrt(2))
|
316
|
+
// and shift by -1. The values are then centered around 0, which improves
|
317
|
+
// the stability of the polynomial evaluation.
|
318
|
+
// if( x < SQRTHF ) {
|
319
|
+
// e -= 1;
|
320
|
+
// x = x + x - 1.0;
|
321
|
+
// } else { x = x - 1.0; }
|
322
|
+
Packet mask = pcmp_lt(x, cst_cephes_SQRTHF);
|
323
|
+
Packet tmp = pand(x, mask);
|
324
|
+
x = psub(x, cst_1);
|
325
|
+
e = psub(e, pand(cst_1, mask));
|
326
|
+
x = padd(x, tmp);
|
327
|
+
|
328
|
+
Packet x2 = pmul(x, x);
|
329
|
+
Packet x3 = pmul(x2, x);
|
330
|
+
|
331
|
+
// Evaluate the polynomial approximant , probably to improve instruction-level parallelism.
|
332
|
+
// y = x - 0.5*x^2 + x^3 * polevl( x, P, 5 ) / p1evl( x, Q, 5 ) );
|
333
|
+
Packet y, y1, y_;
|
334
|
+
y = pmadd(cst_cephes_log_p0, x, cst_cephes_log_p1);
|
335
|
+
y1 = pmadd(cst_cephes_log_p3, x, cst_cephes_log_p4);
|
336
|
+
y = pmadd(y, x, cst_cephes_log_p2);
|
337
|
+
y1 = pmadd(y1, x, cst_cephes_log_p5);
|
338
|
+
y_ = pmadd(y, x3, y1);
|
339
|
+
|
340
|
+
y = pmadd(cst_cephes_log_q0, x, cst_cephes_log_q1);
|
341
|
+
y1 = pmadd(cst_cephes_log_q3, x, cst_cephes_log_q4);
|
342
|
+
y = pmadd(y, x, cst_cephes_log_q2);
|
343
|
+
y1 = pmadd(y1, x, cst_cephes_log_q5);
|
344
|
+
y = pmadd(y, x3, y1);
|
345
|
+
|
346
|
+
y_ = pmul(y_, x3);
|
347
|
+
y = pdiv(y_, y);
|
348
|
+
|
349
|
+
y = pmadd(cst_neg_half, x2, y);
|
350
|
+
x = padd(x, y);
|
351
|
+
|
352
|
+
// Add the logarithm of the exponent back to the result of the interpolation.
|
353
|
+
if (base2) {
|
354
|
+
const Packet cst_log2e = pset1<Packet>(static_cast<double>(EIGEN_LOG2E));
|
355
|
+
x = pmadd(x, cst_log2e, e);
|
356
|
+
} else {
|
357
|
+
const Packet cst_ln2 = pset1<Packet>(static_cast<double>(EIGEN_LN2));
|
358
|
+
x = pmadd(e, cst_ln2, x);
|
359
|
+
}
|
360
|
+
|
361
|
+
Packet invalid_mask = pcmp_lt_or_nan(_x, pzero(_x));
|
362
|
+
Packet iszero_mask = pcmp_eq(_x,pzero(_x));
|
363
|
+
Packet pos_inf_mask = pcmp_eq(_x,cst_pos_inf);
|
364
|
+
// Filter out invalid inputs, i.e.:
|
365
|
+
// - negative arg will be NAN
|
366
|
+
// - 0 will be -INF
|
367
|
+
// - +INF will be +INF
|
368
|
+
return pselect(iszero_mask, cst_minus_inf,
|
369
|
+
por(pselect(pos_inf_mask,cst_pos_inf,x), invalid_mask));
|
370
|
+
}
|
371
|
+
|
372
|
+
template <typename Packet>
|
373
|
+
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
|
374
|
+
EIGEN_UNUSED
|
375
|
+
Packet plog_double(const Packet _x)
|
376
|
+
{
|
377
|
+
return plog_impl_double<Packet, /* base2 */ false>(_x);
|
378
|
+
}
|
379
|
+
|
380
|
+
template <typename Packet>
|
381
|
+
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
|
382
|
+
EIGEN_UNUSED
|
383
|
+
Packet plog2_double(const Packet _x)
|
384
|
+
{
|
385
|
+
return plog_impl_double<Packet, /* base2 */ true>(_x);
|
386
|
+
}
|
387
|
+
|
388
|
+
/** \internal \returns log(1 + x) computed using W. Kahan's formula.
|
389
|
+
See: http://www.plunk.org/~hatch/rightway.php
|
390
|
+
*/
|
391
|
+
template<typename Packet>
|
392
|
+
Packet generic_plog1p(const Packet& x)
|
393
|
+
{
|
394
|
+
typedef typename unpacket_traits<Packet>::type ScalarType;
|
395
|
+
const Packet one = pset1<Packet>(ScalarType(1));
|
396
|
+
Packet xp1 = padd(x, one);
|
397
|
+
Packet small_mask = pcmp_eq(xp1, one);
|
398
|
+
Packet log1 = plog(xp1);
|
399
|
+
Packet inf_mask = pcmp_eq(xp1, log1);
|
400
|
+
Packet log_large = pmul(x, pdiv(log1, psub(xp1, one)));
|
401
|
+
return pselect(por(small_mask, inf_mask), x, log_large);
|
402
|
+
}
|
403
|
+
|
404
|
+
/** \internal \returns exp(x)-1 computed using W. Kahan's formula.
|
405
|
+
See: http://www.plunk.org/~hatch/rightway.php
|
406
|
+
*/
|
407
|
+
template<typename Packet>
|
408
|
+
Packet generic_expm1(const Packet& x)
|
409
|
+
{
|
410
|
+
typedef typename unpacket_traits<Packet>::type ScalarType;
|
411
|
+
const Packet one = pset1<Packet>(ScalarType(1));
|
412
|
+
const Packet neg_one = pset1<Packet>(ScalarType(-1));
|
413
|
+
Packet u = pexp(x);
|
414
|
+
Packet one_mask = pcmp_eq(u, one);
|
415
|
+
Packet u_minus_one = psub(u, one);
|
416
|
+
Packet neg_one_mask = pcmp_eq(u_minus_one, neg_one);
|
417
|
+
Packet logu = plog(u);
|
418
|
+
// The following comparison is to catch the case where
|
419
|
+
// exp(x) = +inf. It is written in this way to avoid having
|
420
|
+
// to form the constant +inf, which depends on the packet
|
421
|
+
// type.
|
422
|
+
Packet pos_inf_mask = pcmp_eq(logu, u);
|
423
|
+
Packet expm1 = pmul(u_minus_one, pdiv(x, logu));
|
424
|
+
expm1 = pselect(pos_inf_mask, u, expm1);
|
425
|
+
return pselect(one_mask,
|
426
|
+
x,
|
427
|
+
pselect(neg_one_mask,
|
428
|
+
neg_one,
|
429
|
+
expm1));
|
430
|
+
}
|
431
|
+
|
432
|
+
|
433
|
+
// Exponential function. Works by writing "x = m*log(2) + r" where
|
434
|
+
// "m = floor(x/log(2)+1/2)" and "r" is the remainder. The result is then
|
435
|
+
// "exp(x) = 2^m*exp(r)" where exp(r) is in the range [-1,1).
|
436
|
+
template <typename Packet>
|
437
|
+
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
|
438
|
+
EIGEN_UNUSED
|
439
|
+
Packet pexp_float(const Packet _x)
|
440
|
+
{
|
441
|
+
const Packet cst_1 = pset1<Packet>(1.0f);
|
442
|
+
const Packet cst_half = pset1<Packet>(0.5f);
|
443
|
+
const Packet cst_exp_hi = pset1<Packet>( 88.723f);
|
444
|
+
const Packet cst_exp_lo = pset1<Packet>(-88.723f);
|
445
|
+
|
446
|
+
const Packet cst_cephes_LOG2EF = pset1<Packet>(1.44269504088896341f);
|
447
|
+
const Packet cst_cephes_exp_p0 = pset1<Packet>(1.9875691500E-4f);
|
448
|
+
const Packet cst_cephes_exp_p1 = pset1<Packet>(1.3981999507E-3f);
|
449
|
+
const Packet cst_cephes_exp_p2 = pset1<Packet>(8.3334519073E-3f);
|
450
|
+
const Packet cst_cephes_exp_p3 = pset1<Packet>(4.1665795894E-2f);
|
451
|
+
const Packet cst_cephes_exp_p4 = pset1<Packet>(1.6666665459E-1f);
|
452
|
+
const Packet cst_cephes_exp_p5 = pset1<Packet>(5.0000001201E-1f);
|
453
|
+
|
454
|
+
// Clamp x.
|
455
|
+
Packet x = pmax(pmin(_x, cst_exp_hi), cst_exp_lo);
|
456
|
+
|
457
|
+
// Express exp(x) as exp(m*ln(2) + r), start by extracting
|
458
|
+
// m = floor(x/ln(2) + 0.5).
|
459
|
+
Packet m = pfloor(pmadd(x, cst_cephes_LOG2EF, cst_half));
|
460
|
+
|
461
|
+
// Get r = x - m*ln(2). If no FMA instructions are available, m*ln(2) is
|
462
|
+
// subtracted out in two parts, m*C1+m*C2 = m*ln(2), to avoid accumulating
|
463
|
+
// truncation errors.
|
464
|
+
const Packet cst_cephes_exp_C1 = pset1<Packet>(-0.693359375f);
|
465
|
+
const Packet cst_cephes_exp_C2 = pset1<Packet>(2.12194440e-4f);
|
466
|
+
Packet r = pmadd(m, cst_cephes_exp_C1, x);
|
467
|
+
r = pmadd(m, cst_cephes_exp_C2, r);
|
468
|
+
|
469
|
+
Packet r2 = pmul(r, r);
|
470
|
+
Packet r3 = pmul(r2, r);
|
471
|
+
|
472
|
+
// Evaluate the polynomial approximant,improved by instruction-level parallelism.
|
473
|
+
Packet y, y1, y2;
|
474
|
+
y = pmadd(cst_cephes_exp_p0, r, cst_cephes_exp_p1);
|
475
|
+
y1 = pmadd(cst_cephes_exp_p3, r, cst_cephes_exp_p4);
|
476
|
+
y2 = padd(r, cst_1);
|
477
|
+
y = pmadd(y, r, cst_cephes_exp_p2);
|
478
|
+
y1 = pmadd(y1, r, cst_cephes_exp_p5);
|
479
|
+
y = pmadd(y, r3, y1);
|
480
|
+
y = pmadd(y, r2, y2);
|
481
|
+
|
482
|
+
// Return 2^m * exp(r).
|
483
|
+
// TODO: replace pldexp with faster implementation since y in [-1, 1).
|
484
|
+
return pmax(pldexp(y,m), _x);
|
485
|
+
}
|
486
|
+
|
487
|
+
template <typename Packet>
|
488
|
+
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
|
489
|
+
EIGEN_UNUSED
|
490
|
+
Packet pexp_double(const Packet _x)
|
491
|
+
{
|
492
|
+
Packet x = _x;
|
493
|
+
|
494
|
+
const Packet cst_1 = pset1<Packet>(1.0);
|
495
|
+
const Packet cst_2 = pset1<Packet>(2.0);
|
496
|
+
const Packet cst_half = pset1<Packet>(0.5);
|
497
|
+
|
498
|
+
const Packet cst_exp_hi = pset1<Packet>(709.784);
|
499
|
+
const Packet cst_exp_lo = pset1<Packet>(-709.784);
|
500
|
+
|
501
|
+
const Packet cst_cephes_LOG2EF = pset1<Packet>(1.4426950408889634073599);
|
502
|
+
const Packet cst_cephes_exp_p0 = pset1<Packet>(1.26177193074810590878e-4);
|
503
|
+
const Packet cst_cephes_exp_p1 = pset1<Packet>(3.02994407707441961300e-2);
|
504
|
+
const Packet cst_cephes_exp_p2 = pset1<Packet>(9.99999999999999999910e-1);
|
505
|
+
const Packet cst_cephes_exp_q0 = pset1<Packet>(3.00198505138664455042e-6);
|
506
|
+
const Packet cst_cephes_exp_q1 = pset1<Packet>(2.52448340349684104192e-3);
|
507
|
+
const Packet cst_cephes_exp_q2 = pset1<Packet>(2.27265548208155028766e-1);
|
508
|
+
const Packet cst_cephes_exp_q3 = pset1<Packet>(2.00000000000000000009e0);
|
509
|
+
const Packet cst_cephes_exp_C1 = pset1<Packet>(0.693145751953125);
|
510
|
+
const Packet cst_cephes_exp_C2 = pset1<Packet>(1.42860682030941723212e-6);
|
511
|
+
|
512
|
+
Packet tmp, fx;
|
513
|
+
|
514
|
+
// clamp x
|
515
|
+
x = pmax(pmin(x, cst_exp_hi), cst_exp_lo);
|
516
|
+
// Express exp(x) as exp(g + n*log(2)).
|
517
|
+
fx = pmadd(cst_cephes_LOG2EF, x, cst_half);
|
518
|
+
|
519
|
+
// Get the integer modulus of log(2), i.e. the "n" described above.
|
520
|
+
fx = pfloor(fx);
|
521
|
+
|
522
|
+
// Get the remainder modulo log(2), i.e. the "g" described above. Subtract
|
523
|
+
// n*log(2) out in two steps, i.e. n*C1 + n*C2, C1+C2=log2 to get the last
|
524
|
+
// digits right.
|
525
|
+
tmp = pmul(fx, cst_cephes_exp_C1);
|
526
|
+
Packet z = pmul(fx, cst_cephes_exp_C2);
|
527
|
+
x = psub(x, tmp);
|
528
|
+
x = psub(x, z);
|
529
|
+
|
530
|
+
Packet x2 = pmul(x, x);
|
531
|
+
|
532
|
+
// Evaluate the numerator polynomial of the rational interpolant.
|
533
|
+
Packet px = cst_cephes_exp_p0;
|
534
|
+
px = pmadd(px, x2, cst_cephes_exp_p1);
|
535
|
+
px = pmadd(px, x2, cst_cephes_exp_p2);
|
536
|
+
px = pmul(px, x);
|
537
|
+
|
538
|
+
// Evaluate the denominator polynomial of the rational interpolant.
|
539
|
+
Packet qx = cst_cephes_exp_q0;
|
540
|
+
qx = pmadd(qx, x2, cst_cephes_exp_q1);
|
541
|
+
qx = pmadd(qx, x2, cst_cephes_exp_q2);
|
542
|
+
qx = pmadd(qx, x2, cst_cephes_exp_q3);
|
543
|
+
|
544
|
+
// I don't really get this bit, copied from the SSE2 routines, so...
|
545
|
+
// TODO(gonnet): Figure out what is going on here, perhaps find a better
|
546
|
+
// rational interpolant?
|
547
|
+
x = pdiv(px, psub(qx, px));
|
548
|
+
x = pmadd(cst_2, x, cst_1);
|
549
|
+
|
550
|
+
// Construct the result 2^n * exp(g) = e * x. The max is used to catch
|
551
|
+
// non-finite values in the input.
|
552
|
+
// TODO: replace pldexp with faster implementation since x in [-1, 1).
|
553
|
+
return pmax(pldexp(x,fx), _x);
|
554
|
+
}
|
555
|
+
|
556
|
+
// The following code is inspired by the following stack-overflow answer:
|
557
|
+
// https://stackoverflow.com/questions/30463616/payne-hanek-algorithm-implementation-in-c/30465751#30465751
|
558
|
+
// It has been largely optimized:
|
559
|
+
// - By-pass calls to frexp.
|
560
|
+
// - Aligned loads of required 96 bits of 2/pi. This is accomplished by
|
561
|
+
// (1) balancing the mantissa and exponent to the required bits of 2/pi are
|
562
|
+
// aligned on 8-bits, and (2) replicating the storage of the bits of 2/pi.
|
563
|
+
// - Avoid a branch in rounding and extraction of the remaining fractional part.
|
564
|
+
// Overall, I measured a speed up higher than x2 on x86-64.
|
565
|
+
inline float trig_reduce_huge (float xf, int *quadrant)
|
566
|
+
{
|
567
|
+
using Eigen::numext::int32_t;
|
568
|
+
using Eigen::numext::uint32_t;
|
569
|
+
using Eigen::numext::int64_t;
|
570
|
+
using Eigen::numext::uint64_t;
|
571
|
+
|
572
|
+
const double pio2_62 = 3.4061215800865545e-19; // pi/2 * 2^-62
|
573
|
+
const uint64_t zero_dot_five = uint64_t(1) << 61; // 0.5 in 2.62-bit fixed-point foramt
|
574
|
+
|
575
|
+
// 192 bits of 2/pi for Payne-Hanek reduction
|
576
|
+
// Bits are introduced by packet of 8 to enable aligned reads.
|
577
|
+
static const uint32_t two_over_pi [] =
|
578
|
+
{
|
579
|
+
0x00000028, 0x000028be, 0x0028be60, 0x28be60db,
|
580
|
+
0xbe60db93, 0x60db9391, 0xdb939105, 0x9391054a,
|
581
|
+
0x91054a7f, 0x054a7f09, 0x4a7f09d5, 0x7f09d5f4,
|
582
|
+
0x09d5f47d, 0xd5f47d4d, 0xf47d4d37, 0x7d4d3770,
|
583
|
+
0x4d377036, 0x377036d8, 0x7036d8a5, 0x36d8a566,
|
584
|
+
0xd8a5664f, 0xa5664f10, 0x664f10e4, 0x4f10e410,
|
585
|
+
0x10e41000, 0xe4100000
|
586
|
+
};
|
587
|
+
|
588
|
+
uint32_t xi = numext::bit_cast<uint32_t>(xf);
|
589
|
+
// Below, -118 = -126 + 8.
|
590
|
+
// -126 is to get the exponent,
|
591
|
+
// +8 is to enable alignment of 2/pi's bits on 8 bits.
|
592
|
+
// This is possible because the fractional part of x as only 24 meaningful bits.
|
593
|
+
uint32_t e = (xi >> 23) - 118;
|
594
|
+
// Extract the mantissa and shift it to align it wrt the exponent
|
595
|
+
xi = ((xi & 0x007fffffu)| 0x00800000u) << (e & 0x7);
|
596
|
+
|
597
|
+
uint32_t i = e >> 3;
|
598
|
+
uint32_t twoopi_1 = two_over_pi[i-1];
|
599
|
+
uint32_t twoopi_2 = two_over_pi[i+3];
|
600
|
+
uint32_t twoopi_3 = two_over_pi[i+7];
|
601
|
+
|
602
|
+
// Compute x * 2/pi in 2.62-bit fixed-point format.
|
603
|
+
uint64_t p;
|
604
|
+
p = uint64_t(xi) * twoopi_3;
|
605
|
+
p = uint64_t(xi) * twoopi_2 + (p >> 32);
|
606
|
+
p = (uint64_t(xi * twoopi_1) << 32) + p;
|
607
|
+
|
608
|
+
// Round to nearest: add 0.5 and extract integral part.
|
609
|
+
uint64_t q = (p + zero_dot_five) >> 62;
|
610
|
+
*quadrant = int(q);
|
611
|
+
// Now it remains to compute "r = x - q*pi/2" with high accuracy,
|
612
|
+
// since we have p=x/(pi/2) with high accuracy, we can more efficiently compute r as:
|
613
|
+
// r = (p-q)*pi/2,
|
614
|
+
// where the product can be be carried out with sufficient accuracy using double precision.
|
615
|
+
p -= q<<62;
|
616
|
+
return float(double(int64_t(p)) * pio2_62);
|
617
|
+
}
|
618
|
+
|
619
|
+
template<bool ComputeSine,typename Packet>
|
620
|
+
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
|
621
|
+
EIGEN_UNUSED
|
622
|
+
#if EIGEN_GNUC_AT_LEAST(4,4) && EIGEN_COMP_GNUC_STRICT
|
623
|
+
__attribute__((optimize("-fno-unsafe-math-optimizations")))
|
624
|
+
#endif
|
625
|
+
Packet psincos_float(const Packet& _x)
|
626
|
+
{
|
627
|
+
typedef typename unpacket_traits<Packet>::integer_packet PacketI;
|
628
|
+
|
629
|
+
const Packet cst_2oPI = pset1<Packet>(0.636619746685028076171875f); // 2/PI
|
630
|
+
const Packet cst_rounding_magic = pset1<Packet>(12582912); // 2^23 for rounding
|
631
|
+
const PacketI csti_1 = pset1<PacketI>(1);
|
632
|
+
const Packet cst_sign_mask = pset1frombits<Packet>(0x80000000u);
|
633
|
+
|
634
|
+
Packet x = pabs(_x);
|
635
|
+
|
636
|
+
// Scale x by 2/Pi to find x's octant.
|
637
|
+
Packet y = pmul(x, cst_2oPI);
|
638
|
+
|
639
|
+
// Rounding trick:
|
640
|
+
Packet y_round = padd(y, cst_rounding_magic);
|
641
|
+
EIGEN_OPTIMIZATION_BARRIER(y_round)
|
642
|
+
PacketI y_int = preinterpret<PacketI>(y_round); // last 23 digits represent integer (if abs(x)<2^24)
|
643
|
+
y = psub(y_round, cst_rounding_magic); // nearest integer to x*4/pi
|
644
|
+
|
645
|
+
// Reduce x by y octants to get: -Pi/4 <= x <= +Pi/4
|
646
|
+
// using "Extended precision modular arithmetic"
|
647
|
+
#if defined(EIGEN_HAS_SINGLE_INSTRUCTION_MADD)
|
648
|
+
// This version requires true FMA for high accuracy
|
649
|
+
// It provides a max error of 1ULP up to (with absolute_error < 5.9605e-08):
|
650
|
+
const float huge_th = ComputeSine ? 117435.992f : 71476.0625f;
|
651
|
+
x = pmadd(y, pset1<Packet>(-1.57079601287841796875f), x);
|
652
|
+
x = pmadd(y, pset1<Packet>(-3.1391647326017846353352069854736328125e-07f), x);
|
653
|
+
x = pmadd(y, pset1<Packet>(-5.390302529957764765544681040410068817436695098876953125e-15f), x);
|
654
|
+
#else
|
655
|
+
// Without true FMA, the previous set of coefficients maintain 1ULP accuracy
|
656
|
+
// up to x<15.7 (for sin), but accuracy is immediately lost for x>15.7.
|
657
|
+
// We thus use one more iteration to maintain 2ULPs up to reasonably large inputs.
|
658
|
+
|
659
|
+
// The following set of coefficients maintain 1ULP up to 9.43 and 14.16 for sin and cos respectively.
|
660
|
+
// and 2 ULP up to:
|
661
|
+
const float huge_th = ComputeSine ? 25966.f : 18838.f;
|
662
|
+
x = pmadd(y, pset1<Packet>(-1.5703125), x); // = 0xbfc90000
|
663
|
+
EIGEN_OPTIMIZATION_BARRIER(x)
|
664
|
+
x = pmadd(y, pset1<Packet>(-0.000483989715576171875), x); // = 0xb9fdc000
|
665
|
+
EIGEN_OPTIMIZATION_BARRIER(x)
|
666
|
+
x = pmadd(y, pset1<Packet>(1.62865035235881805419921875e-07), x); // = 0x342ee000
|
667
|
+
x = pmadd(y, pset1<Packet>(5.5644315544167710640977020375430583953857421875e-11), x); // = 0x2e74b9ee
|
668
|
+
|
669
|
+
// For the record, the following set of coefficients maintain 2ULP up
|
670
|
+
// to a slightly larger range:
|
671
|
+
// const float huge_th = ComputeSine ? 51981.f : 39086.125f;
|
672
|
+
// but it slightly fails to maintain 1ULP for two values of sin below pi.
|
673
|
+
// x = pmadd(y, pset1<Packet>(-3.140625/2.), x);
|
674
|
+
// x = pmadd(y, pset1<Packet>(-0.00048351287841796875), x);
|
675
|
+
// x = pmadd(y, pset1<Packet>(-3.13855707645416259765625e-07), x);
|
676
|
+
// x = pmadd(y, pset1<Packet>(-6.0771006282767103812147979624569416046142578125e-11), x);
|
677
|
+
|
678
|
+
// For the record, with only 3 iterations it is possible to maintain
|
679
|
+
// 1 ULP up to 3PI (maybe more) and 2ULP up to 255.
|
680
|
+
// The coefficients are: 0xbfc90f80, 0xb7354480, 0x2e74b9ee
|
681
|
+
#endif
|
682
|
+
|
683
|
+
if(predux_any(pcmp_le(pset1<Packet>(huge_th),pabs(_x))))
|
684
|
+
{
|
685
|
+
const int PacketSize = unpacket_traits<Packet>::size;
|
686
|
+
EIGEN_ALIGN_TO_BOUNDARY(sizeof(Packet)) float vals[PacketSize];
|
687
|
+
EIGEN_ALIGN_TO_BOUNDARY(sizeof(Packet)) float x_cpy[PacketSize];
|
688
|
+
EIGEN_ALIGN_TO_BOUNDARY(sizeof(Packet)) int y_int2[PacketSize];
|
689
|
+
pstoreu(vals, pabs(_x));
|
690
|
+
pstoreu(x_cpy, x);
|
691
|
+
pstoreu(y_int2, y_int);
|
692
|
+
for(int k=0; k<PacketSize;++k)
|
693
|
+
{
|
694
|
+
float val = vals[k];
|
695
|
+
if(val>=huge_th && (numext::isfinite)(val))
|
696
|
+
x_cpy[k] = trig_reduce_huge(val,&y_int2[k]);
|
697
|
+
}
|
698
|
+
x = ploadu<Packet>(x_cpy);
|
699
|
+
y_int = ploadu<PacketI>(y_int2);
|
700
|
+
}
|
701
|
+
|
702
|
+
// Compute the sign to apply to the polynomial.
|
703
|
+
// sin: sign = second_bit(y_int) xor signbit(_x)
|
704
|
+
// cos: sign = second_bit(y_int+1)
|
705
|
+
Packet sign_bit = ComputeSine ? pxor(_x, preinterpret<Packet>(plogical_shift_left<30>(y_int)))
|
706
|
+
: preinterpret<Packet>(plogical_shift_left<30>(padd(y_int,csti_1)));
|
707
|
+
sign_bit = pand(sign_bit, cst_sign_mask); // clear all but left most bit
|
708
|
+
|
709
|
+
// Get the polynomial selection mask from the second bit of y_int
|
710
|
+
// We'll calculate both (sin and cos) polynomials and then select from the two.
|
711
|
+
Packet poly_mask = preinterpret<Packet>(pcmp_eq(pand(y_int, csti_1), pzero(y_int)));
|
712
|
+
|
713
|
+
Packet x2 = pmul(x,x);
|
714
|
+
|
715
|
+
// Evaluate the cos(x) polynomial. (-Pi/4 <= x <= Pi/4)
|
716
|
+
Packet y1 = pset1<Packet>(2.4372266125283204019069671630859375e-05f);
|
717
|
+
y1 = pmadd(y1, x2, pset1<Packet>(-0.00138865201734006404876708984375f ));
|
718
|
+
y1 = pmadd(y1, x2, pset1<Packet>(0.041666619479656219482421875f ));
|
719
|
+
y1 = pmadd(y1, x2, pset1<Packet>(-0.5f));
|
720
|
+
y1 = pmadd(y1, x2, pset1<Packet>(1.f));
|
721
|
+
|
722
|
+
// Evaluate the sin(x) polynomial. (Pi/4 <= x <= Pi/4)
|
723
|
+
// octave/matlab code to compute those coefficients:
|
724
|
+
// x = (0:0.0001:pi/4)';
|
725
|
+
// A = [x.^3 x.^5 x.^7];
|
726
|
+
// w = ((1.-(x/(pi/4)).^2).^5)*2000+1; # weights trading relative accuracy
|
727
|
+
// c = (A'*diag(w)*A)\(A'*diag(w)*(sin(x)-x)); # weighted LS, linear coeff forced to 1
|
728
|
+
// printf('%.64f\n %.64f\n%.64f\n', c(3), c(2), c(1))
|
729
|
+
//
|
730
|
+
Packet y2 = pset1<Packet>(-0.0001959234114083702898469196984621021329076029360294342041015625f);
|
731
|
+
y2 = pmadd(y2, x2, pset1<Packet>( 0.0083326873655616851693794799871284340042620897293090820312500000f));
|
732
|
+
y2 = pmadd(y2, x2, pset1<Packet>(-0.1666666203982298255503735617821803316473960876464843750000000000f));
|
733
|
+
y2 = pmul(y2, x2);
|
734
|
+
y2 = pmadd(y2, x, x);
|
735
|
+
|
736
|
+
// Select the correct result from the two polynomials.
|
737
|
+
y = ComputeSine ? pselect(poly_mask,y2,y1)
|
738
|
+
: pselect(poly_mask,y1,y2);
|
739
|
+
|
740
|
+
// Update the sign and filter huge inputs
|
741
|
+
return pxor(y, sign_bit);
|
742
|
+
}
|
743
|
+
|
744
|
+
template<typename Packet>
|
745
|
+
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
|
746
|
+
EIGEN_UNUSED
|
747
|
+
Packet psin_float(const Packet& x)
|
748
|
+
{
|
749
|
+
return psincos_float<true>(x);
|
750
|
+
}
|
751
|
+
|
752
|
+
template<typename Packet>
|
753
|
+
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
|
754
|
+
EIGEN_UNUSED
|
755
|
+
Packet pcos_float(const Packet& x)
|
756
|
+
{
|
757
|
+
return psincos_float<false>(x);
|
758
|
+
}
|
759
|
+
|
760
|
+
|
761
|
+
template<typename Packet>
|
762
|
+
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
|
763
|
+
EIGEN_UNUSED
|
764
|
+
Packet psqrt_complex(const Packet& a) {
|
765
|
+
typedef typename unpacket_traits<Packet>::type Scalar;
|
766
|
+
typedef typename Scalar::value_type RealScalar;
|
767
|
+
typedef typename unpacket_traits<Packet>::as_real RealPacket;
|
768
|
+
|
769
|
+
// Computes the principal sqrt of the complex numbers in the input.
|
770
|
+
//
|
771
|
+
// For example, for packets containing 2 complex numbers stored in interleaved format
|
772
|
+
// a = [a0, a1] = [x0, y0, x1, y1],
|
773
|
+
// where x0 = real(a0), y0 = imag(a0) etc., this function returns
|
774
|
+
// b = [b0, b1] = [u0, v0, u1, v1],
|
775
|
+
// such that b0^2 = a0, b1^2 = a1.
|
776
|
+
//
|
777
|
+
// To derive the formula for the complex square roots, let's consider the equation for
|
778
|
+
// a single complex square root of the number x + i*y. We want to find real numbers
|
779
|
+
// u and v such that
|
780
|
+
// (u + i*v)^2 = x + i*y <=>
|
781
|
+
// u^2 - v^2 + i*2*u*v = x + i*v.
|
782
|
+
// By equating the real and imaginary parts we get:
|
783
|
+
// u^2 - v^2 = x
|
784
|
+
// 2*u*v = y.
|
785
|
+
//
|
786
|
+
// For x >= 0, this has the numerically stable solution
|
787
|
+
// u = sqrt(0.5 * (x + sqrt(x^2 + y^2)))
|
788
|
+
// v = 0.5 * (y / u)
|
789
|
+
// and for x < 0,
|
790
|
+
// v = sign(y) * sqrt(0.5 * (-x + sqrt(x^2 + y^2)))
|
791
|
+
// u = 0.5 * (y / v)
|
792
|
+
//
|
793
|
+
// To avoid unnecessary over- and underflow, we compute sqrt(x^2 + y^2) as
|
794
|
+
// l = max(|x|, |y|) * sqrt(1 + (min(|x|, |y|) / max(|x|, |y|))^2) ,
|
795
|
+
|
796
|
+
// In the following, without lack of generality, we have annotated the code, assuming
|
797
|
+
// that the input is a packet of 2 complex numbers.
|
798
|
+
//
|
799
|
+
// Step 1. Compute l = [l0, l0, l1, l1], where
|
800
|
+
// l0 = sqrt(x0^2 + y0^2), l1 = sqrt(x1^2 + y1^2)
|
801
|
+
// To avoid over- and underflow, we use the stable formula for each hypotenuse
|
802
|
+
// l0 = (min0 == 0 ? max0 : max0 * sqrt(1 + (min0/max0)**2)),
|
803
|
+
// where max0 = max(|x0|, |y0|), min0 = min(|x0|, |y0|), and similarly for l1.
|
804
|
+
|
805
|
+
RealPacket a_abs = pabs(a.v); // [|x0|, |y0|, |x1|, |y1|]
|
806
|
+
RealPacket a_abs_flip = pcplxflip(Packet(a_abs)).v; // [|y0|, |x0|, |y1|, |x1|]
|
807
|
+
RealPacket a_max = pmax(a_abs, a_abs_flip);
|
808
|
+
RealPacket a_min = pmin(a_abs, a_abs_flip);
|
809
|
+
RealPacket a_min_zero_mask = pcmp_eq(a_min, pzero(a_min));
|
810
|
+
RealPacket a_max_zero_mask = pcmp_eq(a_max, pzero(a_max));
|
811
|
+
RealPacket r = pdiv(a_min, a_max);
|
812
|
+
const RealPacket cst_one = pset1<RealPacket>(RealScalar(1));
|
813
|
+
RealPacket l = pmul(a_max, psqrt(padd(cst_one, pmul(r, r)))); // [l0, l0, l1, l1]
|
814
|
+
// Set l to a_max if a_min is zero.
|
815
|
+
l = pselect(a_min_zero_mask, a_max, l);
|
816
|
+
|
817
|
+
// Step 2. Compute [rho0, *, rho1, *], where
|
818
|
+
// rho0 = sqrt(0.5 * (l0 + |x0|)), rho1 = sqrt(0.5 * (l1 + |x1|))
|
819
|
+
// We don't care about the imaginary parts computed here. They will be overwritten later.
|
820
|
+
const RealPacket cst_half = pset1<RealPacket>(RealScalar(0.5));
|
821
|
+
Packet rho;
|
822
|
+
rho.v = psqrt(pmul(cst_half, padd(a_abs, l)));
|
823
|
+
|
824
|
+
// Step 3. Compute [rho0, eta0, rho1, eta1], where
|
825
|
+
// eta0 = (y0 / l0) / 2, and eta1 = (y1 / l1) / 2.
|
826
|
+
// set eta = 0 of input is 0 + i0.
|
827
|
+
RealPacket eta = pandnot(pmul(cst_half, pdiv(a.v, pcplxflip(rho).v)), a_max_zero_mask);
|
828
|
+
RealPacket real_mask = peven_mask(a.v);
|
829
|
+
Packet positive_real_result;
|
830
|
+
// Compute result for inputs with positive real part.
|
831
|
+
positive_real_result.v = pselect(real_mask, rho.v, eta);
|
832
|
+
|
833
|
+
// Step 4. Compute solution for inputs with negative real part:
|
834
|
+
// [|eta0|, sign(y0)*rho0, |eta1|, sign(y1)*rho1]
|
835
|
+
const RealScalar neg_zero = RealScalar(numext::bit_cast<float>(0x80000000u));
|
836
|
+
const RealPacket cst_imag_sign_mask = pset1<Packet>(Scalar(RealScalar(0.0), neg_zero)).v;
|
837
|
+
RealPacket imag_signs = pand(a.v, cst_imag_sign_mask);
|
838
|
+
Packet negative_real_result;
|
839
|
+
// Notice that rho is positive, so taking it's absolute value is a noop.
|
840
|
+
negative_real_result.v = por(pabs(pcplxflip(positive_real_result).v), imag_signs);
|
841
|
+
|
842
|
+
// Step 5. Select solution branch based on the sign of the real parts.
|
843
|
+
Packet negative_real_mask;
|
844
|
+
negative_real_mask.v = pcmp_lt(pand(real_mask, a.v), pzero(a.v));
|
845
|
+
negative_real_mask.v = por(negative_real_mask.v, pcplxflip(negative_real_mask).v);
|
846
|
+
Packet result = pselect(negative_real_mask, negative_real_result, positive_real_result);
|
847
|
+
|
848
|
+
// Step 6. Handle special cases for infinities:
|
849
|
+
// * If z is (x,+∞), the result is (+∞,+∞) even if x is NaN
|
850
|
+
// * If z is (x,-∞), the result is (+∞,-∞) even if x is NaN
|
851
|
+
// * If z is (-∞,y), the result is (0*|y|,+∞) for finite or NaN y
|
852
|
+
// * If z is (+∞,y), the result is (+∞,0*|y|) for finite or NaN y
|
853
|
+
const RealPacket cst_pos_inf = pset1<RealPacket>(NumTraits<RealScalar>::infinity());
|
854
|
+
Packet is_inf;
|
855
|
+
is_inf.v = pcmp_eq(a_abs, cst_pos_inf);
|
856
|
+
Packet is_real_inf;
|
857
|
+
is_real_inf.v = pand(is_inf.v, real_mask);
|
858
|
+
is_real_inf = por(is_real_inf, pcplxflip(is_real_inf));
|
859
|
+
// prepare packet of (+∞,0*|y|) or (0*|y|,+∞), depending on the sign of the infinite real part.
|
860
|
+
Packet real_inf_result;
|
861
|
+
real_inf_result.v = pmul(a_abs, pset1<Packet>(Scalar(RealScalar(1.0), RealScalar(0.0))).v);
|
862
|
+
real_inf_result.v = pselect(negative_real_mask.v, pcplxflip(real_inf_result).v, real_inf_result.v);
|
863
|
+
// prepare packet of (+∞,+∞) or (+∞,-∞), depending on the sign of the infinite imaginary part.
|
864
|
+
Packet is_imag_inf;
|
865
|
+
is_imag_inf.v = pandnot(is_inf.v, real_mask);
|
866
|
+
is_imag_inf = por(is_imag_inf, pcplxflip(is_imag_inf));
|
867
|
+
Packet imag_inf_result;
|
868
|
+
imag_inf_result.v = por(pand(cst_pos_inf, real_mask), pandnot(a.v, real_mask));
|
869
|
+
|
870
|
+
return pselect(is_imag_inf, imag_inf_result,
|
871
|
+
pselect(is_real_inf, real_inf_result,result));
|
872
|
+
}
|
873
|
+
|
874
|
+
// TODO(rmlarsen): The following set of utilities for double word arithmetic
|
875
|
+
// should perhaps be refactored as a separate file, since it would be generally
|
876
|
+
// useful for special function implementation etc. Writing the algorithms in
|
877
|
+
// terms if a double word type would also make the code more readable.
|
878
|
+
|
879
|
+
// This function splits x into the nearest integer n and fractional part r,
|
880
|
+
// such that x = n + r holds exactly.
|
881
|
+
template<typename Packet>
|
882
|
+
EIGEN_STRONG_INLINE
|
883
|
+
void absolute_split(const Packet& x, Packet& n, Packet& r) {
|
884
|
+
n = pround(x);
|
885
|
+
r = psub(x, n);
|
886
|
+
}
|
887
|
+
|
888
|
+
// This function computes the sum {s, r}, such that x + y = s_hi + s_lo
|
889
|
+
// holds exactly, and s_hi = fl(x+y), if |x| >= |y|.
|
890
|
+
template<typename Packet>
|
891
|
+
EIGEN_STRONG_INLINE
|
892
|
+
void fast_twosum(const Packet& x, const Packet& y, Packet& s_hi, Packet& s_lo) {
|
893
|
+
s_hi = padd(x, y);
|
894
|
+
const Packet t = psub(s_hi, x);
|
895
|
+
s_lo = psub(y, t);
|
896
|
+
}
|
897
|
+
|
898
|
+
#ifdef EIGEN_HAS_SINGLE_INSTRUCTION_MADD
|
899
|
+
// This function implements the extended precision product of
|
900
|
+
// a pair of floating point numbers. Given {x, y}, it computes the pair
|
901
|
+
// {p_hi, p_lo} such that x * y = p_hi + p_lo holds exactly and
|
902
|
+
// p_hi = fl(x * y).
|
903
|
+
template<typename Packet>
|
904
|
+
EIGEN_STRONG_INLINE
|
905
|
+
void twoprod(const Packet& x, const Packet& y,
|
906
|
+
Packet& p_hi, Packet& p_lo) {
|
907
|
+
p_hi = pmul(x, y);
|
908
|
+
p_lo = pmadd(x, y, pnegate(p_hi));
|
909
|
+
}
|
910
|
+
|
911
|
+
#else
|
912
|
+
|
913
|
+
// This function implements the Veltkamp splitting. Given a floating point
|
914
|
+
// number x it returns the pair {x_hi, x_lo} such that x_hi + x_lo = x holds
|
915
|
+
// exactly and that half of the significant of x fits in x_hi.
|
916
|
+
// This is Algorithm 3 from Jean-Michel Muller, "Elementary Functions",
|
917
|
+
// 3rd edition, Birkh\"auser, 2016.
|
918
|
+
template<typename Packet>
|
919
|
+
EIGEN_STRONG_INLINE
|
920
|
+
void veltkamp_splitting(const Packet& x, Packet& x_hi, Packet& x_lo) {
|
921
|
+
typedef typename unpacket_traits<Packet>::type Scalar;
|
922
|
+
EIGEN_CONSTEXPR int shift = (NumTraits<Scalar>::digits() + 1) / 2;
|
923
|
+
const Scalar shift_scale = Scalar(uint64_t(1) << shift); // Scalar constructor not necessarily constexpr.
|
924
|
+
const Packet gamma = pmul(pset1<Packet>(shift_scale + Scalar(1)), x);
|
925
|
+
Packet rho = psub(x, gamma);
|
926
|
+
x_hi = padd(rho, gamma);
|
927
|
+
x_lo = psub(x, x_hi);
|
928
|
+
}
|
929
|
+
|
930
|
+
// This function implements Dekker's algorithm for products x * y.
|
931
|
+
// Given floating point numbers {x, y} computes the pair
|
932
|
+
// {p_hi, p_lo} such that x * y = p_hi + p_lo holds exactly and
|
933
|
+
// p_hi = fl(x * y).
|
934
|
+
template<typename Packet>
|
935
|
+
EIGEN_STRONG_INLINE
|
936
|
+
void twoprod(const Packet& x, const Packet& y,
|
937
|
+
Packet& p_hi, Packet& p_lo) {
|
938
|
+
Packet x_hi, x_lo, y_hi, y_lo;
|
939
|
+
veltkamp_splitting(x, x_hi, x_lo);
|
940
|
+
veltkamp_splitting(y, y_hi, y_lo);
|
941
|
+
|
942
|
+
p_hi = pmul(x, y);
|
943
|
+
p_lo = pmadd(x_hi, y_hi, pnegate(p_hi));
|
944
|
+
p_lo = pmadd(x_hi, y_lo, p_lo);
|
945
|
+
p_lo = pmadd(x_lo, y_hi, p_lo);
|
946
|
+
p_lo = pmadd(x_lo, y_lo, p_lo);
|
947
|
+
}
|
948
|
+
|
949
|
+
#endif // EIGEN_HAS_SINGLE_INSTRUCTION_MADD
|
950
|
+
|
951
|
+
|
952
|
+
// This function implements Dekker's algorithm for the addition
|
953
|
+
// of two double word numbers represented by {x_hi, x_lo} and {y_hi, y_lo}.
|
954
|
+
// It returns the result as a pair {s_hi, s_lo} such that
|
955
|
+
// x_hi + x_lo + y_hi + y_lo = s_hi + s_lo holds exactly.
|
956
|
+
// This is Algorithm 5 from Jean-Michel Muller, "Elementary Functions",
|
957
|
+
// 3rd edition, Birkh\"auser, 2016.
|
958
|
+
template<typename Packet>
|
959
|
+
EIGEN_STRONG_INLINE
|
960
|
+
void twosum(const Packet& x_hi, const Packet& x_lo,
|
961
|
+
const Packet& y_hi, const Packet& y_lo,
|
962
|
+
Packet& s_hi, Packet& s_lo) {
|
963
|
+
const Packet x_greater_mask = pcmp_lt(pabs(y_hi), pabs(x_hi));
|
964
|
+
Packet r_hi_1, r_lo_1;
|
965
|
+
fast_twosum(x_hi, y_hi,r_hi_1, r_lo_1);
|
966
|
+
Packet r_hi_2, r_lo_2;
|
967
|
+
fast_twosum(y_hi, x_hi,r_hi_2, r_lo_2);
|
968
|
+
const Packet r_hi = pselect(x_greater_mask, r_hi_1, r_hi_2);
|
969
|
+
|
970
|
+
const Packet s1 = padd(padd(y_lo, r_lo_1), x_lo);
|
971
|
+
const Packet s2 = padd(padd(x_lo, r_lo_2), y_lo);
|
972
|
+
const Packet s = pselect(x_greater_mask, s1, s2);
|
973
|
+
|
974
|
+
fast_twosum(r_hi, s, s_hi, s_lo);
|
975
|
+
}
|
976
|
+
|
977
|
+
// This is a version of twosum for double word numbers,
|
978
|
+
// which assumes that |x_hi| >= |y_hi|.
|
979
|
+
template<typename Packet>
|
980
|
+
EIGEN_STRONG_INLINE
|
981
|
+
void fast_twosum(const Packet& x_hi, const Packet& x_lo,
|
982
|
+
const Packet& y_hi, const Packet& y_lo,
|
983
|
+
Packet& s_hi, Packet& s_lo) {
|
984
|
+
Packet r_hi, r_lo;
|
985
|
+
fast_twosum(x_hi, y_hi, r_hi, r_lo);
|
986
|
+
const Packet s = padd(padd(y_lo, r_lo), x_lo);
|
987
|
+
fast_twosum(r_hi, s, s_hi, s_lo);
|
988
|
+
}
|
989
|
+
|
990
|
+
// This is a version of twosum for adding a floating point number x to
|
991
|
+
// double word number {y_hi, y_lo} number, with the assumption
|
992
|
+
// that |x| >= |y_hi|.
|
993
|
+
template<typename Packet>
|
994
|
+
EIGEN_STRONG_INLINE
|
995
|
+
void fast_twosum(const Packet& x,
|
996
|
+
const Packet& y_hi, const Packet& y_lo,
|
997
|
+
Packet& s_hi, Packet& s_lo) {
|
998
|
+
Packet r_hi, r_lo;
|
999
|
+
fast_twosum(x, y_hi, r_hi, r_lo);
|
1000
|
+
const Packet s = padd(y_lo, r_lo);
|
1001
|
+
fast_twosum(r_hi, s, s_hi, s_lo);
|
1002
|
+
}
|
1003
|
+
|
1004
|
+
// This function implements the multiplication of a double word
|
1005
|
+
// number represented by {x_hi, x_lo} by a floating point number y.
|
1006
|
+
// It returns the result as a pair {p_hi, p_lo} such that
|
1007
|
+
// (x_hi + x_lo) * y = p_hi + p_lo hold with a relative error
|
1008
|
+
// of less than 2*2^{-2p}, where p is the number of significand bit
|
1009
|
+
// in the floating point type.
|
1010
|
+
// This is Algorithm 7 from Jean-Michel Muller, "Elementary Functions",
|
1011
|
+
// 3rd edition, Birkh\"auser, 2016.
|
1012
|
+
template<typename Packet>
|
1013
|
+
EIGEN_STRONG_INLINE
|
1014
|
+
void twoprod(const Packet& x_hi, const Packet& x_lo, const Packet& y,
|
1015
|
+
Packet& p_hi, Packet& p_lo) {
|
1016
|
+
Packet c_hi, c_lo1;
|
1017
|
+
twoprod(x_hi, y, c_hi, c_lo1);
|
1018
|
+
const Packet c_lo2 = pmul(x_lo, y);
|
1019
|
+
Packet t_hi, t_lo1;
|
1020
|
+
fast_twosum(c_hi, c_lo2, t_hi, t_lo1);
|
1021
|
+
const Packet t_lo2 = padd(t_lo1, c_lo1);
|
1022
|
+
fast_twosum(t_hi, t_lo2, p_hi, p_lo);
|
1023
|
+
}
|
1024
|
+
|
1025
|
+
// This function implements the multiplication of two double word
|
1026
|
+
// numbers represented by {x_hi, x_lo} and {y_hi, y_lo}.
|
1027
|
+
// It returns the result as a pair {p_hi, p_lo} such that
|
1028
|
+
// (x_hi + x_lo) * (y_hi + y_lo) = p_hi + p_lo holds with a relative error
|
1029
|
+
// of less than 2*2^{-2p}, where p is the number of significand bit
|
1030
|
+
// in the floating point type.
|
1031
|
+
template<typename Packet>
|
1032
|
+
EIGEN_STRONG_INLINE
|
1033
|
+
void twoprod(const Packet& x_hi, const Packet& x_lo,
|
1034
|
+
const Packet& y_hi, const Packet& y_lo,
|
1035
|
+
Packet& p_hi, Packet& p_lo) {
|
1036
|
+
Packet p_hi_hi, p_hi_lo;
|
1037
|
+
twoprod(x_hi, x_lo, y_hi, p_hi_hi, p_hi_lo);
|
1038
|
+
Packet p_lo_hi, p_lo_lo;
|
1039
|
+
twoprod(x_hi, x_lo, y_lo, p_lo_hi, p_lo_lo);
|
1040
|
+
fast_twosum(p_hi_hi, p_hi_lo, p_lo_hi, p_lo_lo, p_hi, p_lo);
|
1041
|
+
}
|
1042
|
+
|
1043
|
+
// This function computes the reciprocal of a floating point number
|
1044
|
+
// with extra precision and returns the result as a double word.
|
1045
|
+
template <typename Packet>
|
1046
|
+
void doubleword_reciprocal(const Packet& x, Packet& recip_hi, Packet& recip_lo) {
|
1047
|
+
typedef typename unpacket_traits<Packet>::type Scalar;
|
1048
|
+
// 1. Approximate the reciprocal as the reciprocal of the high order element.
|
1049
|
+
Packet approx_recip = prsqrt(x);
|
1050
|
+
approx_recip = pmul(approx_recip, approx_recip);
|
1051
|
+
|
1052
|
+
// 2. Run one step of Newton-Raphson iteration in double word arithmetic
|
1053
|
+
// to get the bottom half. The NR iteration for reciprocal of 'a' is
|
1054
|
+
// x_{i+1} = x_i * (2 - a * x_i)
|
1055
|
+
|
1056
|
+
// -a*x_i
|
1057
|
+
Packet t1_hi, t1_lo;
|
1058
|
+
twoprod(pnegate(x), approx_recip, t1_hi, t1_lo);
|
1059
|
+
// 2 - a*x_i
|
1060
|
+
Packet t2_hi, t2_lo;
|
1061
|
+
fast_twosum(pset1<Packet>(Scalar(2)), t1_hi, t2_hi, t2_lo);
|
1062
|
+
Packet t3_hi, t3_lo;
|
1063
|
+
fast_twosum(t2_hi, padd(t2_lo, t1_lo), t3_hi, t3_lo);
|
1064
|
+
// x_i * (2 - a * x_i)
|
1065
|
+
twoprod(t3_hi, t3_lo, approx_recip, recip_hi, recip_lo);
|
1066
|
+
}
|
1067
|
+
|
1068
|
+
|
1069
|
+
// This function computes log2(x) and returns the result as a double word.
|
1070
|
+
template <typename Scalar>
|
1071
|
+
struct accurate_log2 {
|
1072
|
+
template <typename Packet>
|
1073
|
+
EIGEN_STRONG_INLINE
|
1074
|
+
void operator()(const Packet& x, Packet& log2_x_hi, Packet& log2_x_lo) {
|
1075
|
+
log2_x_hi = plog2(x);
|
1076
|
+
log2_x_lo = pzero(x);
|
1077
|
+
}
|
1078
|
+
};
|
1079
|
+
|
1080
|
+
// This specialization uses a more accurate algorithm to compute log2(x) for
|
1081
|
+
// floats in [1/sqrt(2);sqrt(2)] with a relative accuracy of ~6.42e-10.
|
1082
|
+
// This additional accuracy is needed to counter the error-magnification
|
1083
|
+
// inherent in multiplying by a potentially large exponent in pow(x,y).
|
1084
|
+
// The minimax polynomial used was calculated using the Sollya tool.
|
1085
|
+
// See sollya.org.
|
1086
|
+
template <>
|
1087
|
+
struct accurate_log2<float> {
|
1088
|
+
template <typename Packet>
|
1089
|
+
EIGEN_STRONG_INLINE
|
1090
|
+
void operator()(const Packet& z, Packet& log2_x_hi, Packet& log2_x_lo) {
|
1091
|
+
// The function log(1+x)/x is approximated in the interval
|
1092
|
+
// [1/sqrt(2)-1;sqrt(2)-1] by a degree 10 polynomial of the form
|
1093
|
+
// Q(x) = (C0 + x * (C1 + x * (C2 + x * (C3 + x * P(x))))),
|
1094
|
+
// where the degree 6 polynomial P(x) is evaluated in single precision,
|
1095
|
+
// while the remaining 4 terms of Q(x), as well as the final multiplication by x
|
1096
|
+
// to reconstruct log(1+x) are evaluated in extra precision using
|
1097
|
+
// double word arithmetic. C0 through C3 are extra precise constants
|
1098
|
+
// stored as double words.
|
1099
|
+
//
|
1100
|
+
// The polynomial coefficients were calculated using Sollya commands:
|
1101
|
+
// > n = 10;
|
1102
|
+
// > f = log2(1+x)/x;
|
1103
|
+
// > interval = [sqrt(0.5)-1;sqrt(2)-1];
|
1104
|
+
// > p = fpminimax(f,n,[|double,double,double,double,single...|],interval,relative,floating);
|
1105
|
+
|
1106
|
+
const Packet p6 = pset1<Packet>( 9.703654795885e-2f);
|
1107
|
+
const Packet p5 = pset1<Packet>(-0.1690667718648f);
|
1108
|
+
const Packet p4 = pset1<Packet>( 0.1720575392246f);
|
1109
|
+
const Packet p3 = pset1<Packet>(-0.1789081543684f);
|
1110
|
+
const Packet p2 = pset1<Packet>( 0.2050433009862f);
|
1111
|
+
const Packet p1 = pset1<Packet>(-0.2404672354459f);
|
1112
|
+
const Packet p0 = pset1<Packet>( 0.2885761857032f);
|
1113
|
+
|
1114
|
+
const Packet C3_hi = pset1<Packet>(-0.360674142838f);
|
1115
|
+
const Packet C3_lo = pset1<Packet>(-6.13283912543e-09f);
|
1116
|
+
const Packet C2_hi = pset1<Packet>(0.480897903442f);
|
1117
|
+
const Packet C2_lo = pset1<Packet>(-1.44861207474e-08f);
|
1118
|
+
const Packet C1_hi = pset1<Packet>(-0.721347510815f);
|
1119
|
+
const Packet C1_lo = pset1<Packet>(-4.84483164698e-09f);
|
1120
|
+
const Packet C0_hi = pset1<Packet>(1.44269502163f);
|
1121
|
+
const Packet C0_lo = pset1<Packet>(2.01711713999e-08f);
|
1122
|
+
const Packet one = pset1<Packet>(1.0f);
|
1123
|
+
|
1124
|
+
const Packet x = psub(z, one);
|
1125
|
+
// Evaluate P(x) in working precision.
|
1126
|
+
// We evaluate it in multiple parts to improve instruction level
|
1127
|
+
// parallelism.
|
1128
|
+
Packet x2 = pmul(x,x);
|
1129
|
+
Packet p_even = pmadd(p6, x2, p4);
|
1130
|
+
p_even = pmadd(p_even, x2, p2);
|
1131
|
+
p_even = pmadd(p_even, x2, p0);
|
1132
|
+
Packet p_odd = pmadd(p5, x2, p3);
|
1133
|
+
p_odd = pmadd(p_odd, x2, p1);
|
1134
|
+
Packet p = pmadd(p_odd, x, p_even);
|
1135
|
+
|
1136
|
+
// Now evaluate the low-order tems of Q(x) in double word precision.
|
1137
|
+
// In the following, due to the alternating signs and the fact that
|
1138
|
+
// |x| < sqrt(2)-1, we can assume that |C*_hi| >= q_i, and use
|
1139
|
+
// fast_twosum instead of the slower twosum.
|
1140
|
+
Packet q_hi, q_lo;
|
1141
|
+
Packet t_hi, t_lo;
|
1142
|
+
// C3 + x * p(x)
|
1143
|
+
twoprod(p, x, t_hi, t_lo);
|
1144
|
+
fast_twosum(C3_hi, C3_lo, t_hi, t_lo, q_hi, q_lo);
|
1145
|
+
// C2 + x * p(x)
|
1146
|
+
twoprod(q_hi, q_lo, x, t_hi, t_lo);
|
1147
|
+
fast_twosum(C2_hi, C2_lo, t_hi, t_lo, q_hi, q_lo);
|
1148
|
+
// C1 + x * p(x)
|
1149
|
+
twoprod(q_hi, q_lo, x, t_hi, t_lo);
|
1150
|
+
fast_twosum(C1_hi, C1_lo, t_hi, t_lo, q_hi, q_lo);
|
1151
|
+
// C0 + x * p(x)
|
1152
|
+
twoprod(q_hi, q_lo, x, t_hi, t_lo);
|
1153
|
+
fast_twosum(C0_hi, C0_lo, t_hi, t_lo, q_hi, q_lo);
|
1154
|
+
|
1155
|
+
// log(z) ~= x * Q(x)
|
1156
|
+
twoprod(q_hi, q_lo, x, log2_x_hi, log2_x_lo);
|
1157
|
+
}
|
1158
|
+
};
|
1159
|
+
|
1160
|
+
// This specialization uses a more accurate algorithm to compute log2(x) for
|
1161
|
+
// floats in [1/sqrt(2);sqrt(2)] with a relative accuracy of ~1.27e-18.
|
1162
|
+
// This additional accuracy is needed to counter the error-magnification
|
1163
|
+
// inherent in multiplying by a potentially large exponent in pow(x,y).
|
1164
|
+
// The minimax polynomial used was calculated using the Sollya tool.
|
1165
|
+
// See sollya.org.
|
1166
|
+
|
1167
|
+
template <>
|
1168
|
+
struct accurate_log2<double> {
|
1169
|
+
template <typename Packet>
|
1170
|
+
EIGEN_STRONG_INLINE
|
1171
|
+
void operator()(const Packet& x, Packet& log2_x_hi, Packet& log2_x_lo) {
|
1172
|
+
// We use a transformation of variables:
|
1173
|
+
// r = c * (x-1) / (x+1),
|
1174
|
+
// such that
|
1175
|
+
// log2(x) = log2((1 + r/c) / (1 - r/c)) = f(r).
|
1176
|
+
// The function f(r) can be approximated well using an odd polynomial
|
1177
|
+
// of the form
|
1178
|
+
// P(r) = ((Q(r^2) * r^2 + C) * r^2 + 1) * r,
|
1179
|
+
// For the implementation of log2<double> here, Q is of degree 6 with
|
1180
|
+
// coefficient represented in working precision (double), while C is a
|
1181
|
+
// constant represented in extra precision as a double word to achieve
|
1182
|
+
// full accuracy.
|
1183
|
+
//
|
1184
|
+
// The polynomial coefficients were computed by the Sollya script:
|
1185
|
+
//
|
1186
|
+
// c = 2 / log(2);
|
1187
|
+
// trans = c * (x-1)/(x+1);
|
1188
|
+
// itrans = (1+x/c)/(1-x/c);
|
1189
|
+
// interval=[trans(sqrt(0.5)); trans(sqrt(2))];
|
1190
|
+
// print(interval);
|
1191
|
+
// f = log2(itrans(x));
|
1192
|
+
// p=fpminimax(f,[|1,3,5,7,9,11,13,15,17|],[|1,DD,double...|],interval,relative,floating);
|
1193
|
+
const Packet q12 = pset1<Packet>(2.87074255468000586e-9);
|
1194
|
+
const Packet q10 = pset1<Packet>(2.38957980901884082e-8);
|
1195
|
+
const Packet q8 = pset1<Packet>(2.31032094540014656e-7);
|
1196
|
+
const Packet q6 = pset1<Packet>(2.27279857398537278e-6);
|
1197
|
+
const Packet q4 = pset1<Packet>(2.31271023278625638e-5);
|
1198
|
+
const Packet q2 = pset1<Packet>(2.47556738444535513e-4);
|
1199
|
+
const Packet q0 = pset1<Packet>(2.88543873228900172e-3);
|
1200
|
+
const Packet C_hi = pset1<Packet>(0.0400377511598501157);
|
1201
|
+
const Packet C_lo = pset1<Packet>(-4.77726582251425391e-19);
|
1202
|
+
const Packet one = pset1<Packet>(1.0);
|
1203
|
+
|
1204
|
+
const Packet cst_2_log2e_hi = pset1<Packet>(2.88539008177792677);
|
1205
|
+
const Packet cst_2_log2e_lo = pset1<Packet>(4.07660016854549667e-17);
|
1206
|
+
// c * (x - 1)
|
1207
|
+
Packet num_hi, num_lo;
|
1208
|
+
twoprod(cst_2_log2e_hi, cst_2_log2e_lo, psub(x, one), num_hi, num_lo);
|
1209
|
+
// TODO(rmlarsen): Investigate if using the division algorithm by
|
1210
|
+
// Muller et al. is faster/more accurate.
|
1211
|
+
// 1 / (x + 1)
|
1212
|
+
Packet denom_hi, denom_lo;
|
1213
|
+
doubleword_reciprocal(padd(x, one), denom_hi, denom_lo);
|
1214
|
+
// r = c * (x-1) / (x+1),
|
1215
|
+
Packet r_hi, r_lo;
|
1216
|
+
twoprod(num_hi, num_lo, denom_hi, denom_lo, r_hi, r_lo);
|
1217
|
+
// r2 = r * r
|
1218
|
+
Packet r2_hi, r2_lo;
|
1219
|
+
twoprod(r_hi, r_lo, r_hi, r_lo, r2_hi, r2_lo);
|
1220
|
+
// r4 = r2 * r2
|
1221
|
+
Packet r4_hi, r4_lo;
|
1222
|
+
twoprod(r2_hi, r2_lo, r2_hi, r2_lo, r4_hi, r4_lo);
|
1223
|
+
|
1224
|
+
// Evaluate Q(r^2) in working precision. We evaluate it in two parts
|
1225
|
+
// (even and odd in r^2) to improve instruction level parallelism.
|
1226
|
+
Packet q_even = pmadd(q12, r4_hi, q8);
|
1227
|
+
Packet q_odd = pmadd(q10, r4_hi, q6);
|
1228
|
+
q_even = pmadd(q_even, r4_hi, q4);
|
1229
|
+
q_odd = pmadd(q_odd, r4_hi, q2);
|
1230
|
+
q_even = pmadd(q_even, r4_hi, q0);
|
1231
|
+
Packet q = pmadd(q_odd, r2_hi, q_even);
|
1232
|
+
|
1233
|
+
// Now evaluate the low order terms of P(x) in double word precision.
|
1234
|
+
// In the following, due to the increasing magnitude of the coefficients
|
1235
|
+
// and r being constrained to [-0.5, 0.5] we can use fast_twosum instead
|
1236
|
+
// of the slower twosum.
|
1237
|
+
// Q(r^2) * r^2
|
1238
|
+
Packet p_hi, p_lo;
|
1239
|
+
twoprod(r2_hi, r2_lo, q, p_hi, p_lo);
|
1240
|
+
// Q(r^2) * r^2 + C
|
1241
|
+
Packet p1_hi, p1_lo;
|
1242
|
+
fast_twosum(C_hi, C_lo, p_hi, p_lo, p1_hi, p1_lo);
|
1243
|
+
// (Q(r^2) * r^2 + C) * r^2
|
1244
|
+
Packet p2_hi, p2_lo;
|
1245
|
+
twoprod(r2_hi, r2_lo, p1_hi, p1_lo, p2_hi, p2_lo);
|
1246
|
+
// ((Q(r^2) * r^2 + C) * r^2 + 1)
|
1247
|
+
Packet p3_hi, p3_lo;
|
1248
|
+
fast_twosum(one, p2_hi, p2_lo, p3_hi, p3_lo);
|
1249
|
+
|
1250
|
+
// log(z) ~= ((Q(r^2) * r^2 + C) * r^2 + 1) * r
|
1251
|
+
twoprod(p3_hi, p3_lo, r_hi, r_lo, log2_x_hi, log2_x_lo);
|
1252
|
+
}
|
1253
|
+
};
|
1254
|
+
|
1255
|
+
// This function computes exp2(x) (i.e. 2**x).
|
1256
|
+
template <typename Scalar>
|
1257
|
+
struct fast_accurate_exp2 {
|
1258
|
+
template <typename Packet>
|
1259
|
+
EIGEN_STRONG_INLINE
|
1260
|
+
Packet operator()(const Packet& x) {
|
1261
|
+
// TODO(rmlarsen): Add a pexp2 packetop.
|
1262
|
+
return pexp(pmul(pset1<Packet>(Scalar(EIGEN_LN2)), x));
|
1263
|
+
}
|
1264
|
+
};
|
1265
|
+
|
1266
|
+
// This specialization uses a faster algorithm to compute exp2(x) for floats
|
1267
|
+
// in [-0.5;0.5] with a relative accuracy of 1 ulp.
|
1268
|
+
// The minimax polynomial used was calculated using the Sollya tool.
|
1269
|
+
// See sollya.org.
|
1270
|
+
template <>
|
1271
|
+
struct fast_accurate_exp2<float> {
|
1272
|
+
template <typename Packet>
|
1273
|
+
EIGEN_STRONG_INLINE
|
1274
|
+
Packet operator()(const Packet& x) {
|
1275
|
+
// This function approximates exp2(x) by a degree 6 polynomial of the form
|
1276
|
+
// Q(x) = 1 + x * (C + x * P(x)), where the degree 4 polynomial P(x) is evaluated in
|
1277
|
+
// single precision, and the remaining steps are evaluated with extra precision using
|
1278
|
+
// double word arithmetic. C is an extra precise constant stored as a double word.
|
1279
|
+
//
|
1280
|
+
// The polynomial coefficients were calculated using Sollya commands:
|
1281
|
+
// > n = 6;
|
1282
|
+
// > f = 2^x;
|
1283
|
+
// > interval = [-0.5;0.5];
|
1284
|
+
// > p = fpminimax(f,n,[|1,double,single...|],interval,relative,floating);
|
1285
|
+
|
1286
|
+
const Packet p4 = pset1<Packet>(1.539513905e-4f);
|
1287
|
+
const Packet p3 = pset1<Packet>(1.340007293e-3f);
|
1288
|
+
const Packet p2 = pset1<Packet>(9.618283249e-3f);
|
1289
|
+
const Packet p1 = pset1<Packet>(5.550328270e-2f);
|
1290
|
+
const Packet p0 = pset1<Packet>(0.2402264923f);
|
1291
|
+
|
1292
|
+
const Packet C_hi = pset1<Packet>(0.6931471825f);
|
1293
|
+
const Packet C_lo = pset1<Packet>(2.36836577e-08f);
|
1294
|
+
const Packet one = pset1<Packet>(1.0f);
|
1295
|
+
|
1296
|
+
// Evaluate P(x) in working precision.
|
1297
|
+
// We evaluate even and odd parts of the polynomial separately
|
1298
|
+
// to gain some instruction level parallelism.
|
1299
|
+
Packet x2 = pmul(x,x);
|
1300
|
+
Packet p_even = pmadd(p4, x2, p2);
|
1301
|
+
Packet p_odd = pmadd(p3, x2, p1);
|
1302
|
+
p_even = pmadd(p_even, x2, p0);
|
1303
|
+
Packet p = pmadd(p_odd, x, p_even);
|
1304
|
+
|
1305
|
+
// Evaluate the remaining terms of Q(x) with extra precision using
|
1306
|
+
// double word arithmetic.
|
1307
|
+
Packet p_hi, p_lo;
|
1308
|
+
// x * p(x)
|
1309
|
+
twoprod(p, x, p_hi, p_lo);
|
1310
|
+
// C + x * p(x)
|
1311
|
+
Packet q1_hi, q1_lo;
|
1312
|
+
twosum(p_hi, p_lo, C_hi, C_lo, q1_hi, q1_lo);
|
1313
|
+
// x * (C + x * p(x))
|
1314
|
+
Packet q2_hi, q2_lo;
|
1315
|
+
twoprod(q1_hi, q1_lo, x, q2_hi, q2_lo);
|
1316
|
+
// 1 + x * (C + x * p(x))
|
1317
|
+
Packet q3_hi, q3_lo;
|
1318
|
+
// Since |q2_hi| <= sqrt(2)-1 < 1, we can use fast_twosum
|
1319
|
+
// for adding it to unity here.
|
1320
|
+
fast_twosum(one, q2_hi, q3_hi, q3_lo);
|
1321
|
+
return padd(q3_hi, padd(q2_lo, q3_lo));
|
1322
|
+
}
|
1323
|
+
};
|
1324
|
+
|
1325
|
+
// in [-0.5;0.5] with a relative accuracy of 1 ulp.
|
1326
|
+
// The minimax polynomial used was calculated using the Sollya tool.
|
1327
|
+
// See sollya.org.
|
1328
|
+
template <>
|
1329
|
+
struct fast_accurate_exp2<double> {
|
1330
|
+
template <typename Packet>
|
1331
|
+
EIGEN_STRONG_INLINE
|
1332
|
+
Packet operator()(const Packet& x) {
|
1333
|
+
// This function approximates exp2(x) by a degree 10 polynomial of the form
|
1334
|
+
// Q(x) = 1 + x * (C + x * P(x)), where the degree 8 polynomial P(x) is evaluated in
|
1335
|
+
// single precision, and the remaining steps are evaluated with extra precision using
|
1336
|
+
// double word arithmetic. C is an extra precise constant stored as a double word.
|
1337
|
+
//
|
1338
|
+
// The polynomial coefficients were calculated using Sollya commands:
|
1339
|
+
// > n = 11;
|
1340
|
+
// > f = 2^x;
|
1341
|
+
// > interval = [-0.5;0.5];
|
1342
|
+
// > p = fpminimax(f,n,[|1,DD,double...|],interval,relative,floating);
|
1343
|
+
|
1344
|
+
const Packet p9 = pset1<Packet>(4.431642109085495276e-10);
|
1345
|
+
const Packet p8 = pset1<Packet>(7.073829923303358410e-9);
|
1346
|
+
const Packet p7 = pset1<Packet>(1.017822306737031311e-7);
|
1347
|
+
const Packet p6 = pset1<Packet>(1.321543498017646657e-6);
|
1348
|
+
const Packet p5 = pset1<Packet>(1.525273342728892877e-5);
|
1349
|
+
const Packet p4 = pset1<Packet>(1.540353045780084423e-4);
|
1350
|
+
const Packet p3 = pset1<Packet>(1.333355814685869807e-3);
|
1351
|
+
const Packet p2 = pset1<Packet>(9.618129107593478832e-3);
|
1352
|
+
const Packet p1 = pset1<Packet>(5.550410866481961247e-2);
|
1353
|
+
const Packet p0 = pset1<Packet>(0.240226506959101332);
|
1354
|
+
const Packet C_hi = pset1<Packet>(0.693147180559945286);
|
1355
|
+
const Packet C_lo = pset1<Packet>(4.81927865669806721e-17);
|
1356
|
+
const Packet one = pset1<Packet>(1.0);
|
1357
|
+
|
1358
|
+
// Evaluate P(x) in working precision.
|
1359
|
+
// We evaluate even and odd parts of the polynomial separately
|
1360
|
+
// to gain some instruction level parallelism.
|
1361
|
+
Packet x2 = pmul(x,x);
|
1362
|
+
Packet p_even = pmadd(p8, x2, p6);
|
1363
|
+
Packet p_odd = pmadd(p9, x2, p7);
|
1364
|
+
p_even = pmadd(p_even, x2, p4);
|
1365
|
+
p_odd = pmadd(p_odd, x2, p5);
|
1366
|
+
p_even = pmadd(p_even, x2, p2);
|
1367
|
+
p_odd = pmadd(p_odd, x2, p3);
|
1368
|
+
p_even = pmadd(p_even, x2, p0);
|
1369
|
+
p_odd = pmadd(p_odd, x2, p1);
|
1370
|
+
Packet p = pmadd(p_odd, x, p_even);
|
1371
|
+
|
1372
|
+
// Evaluate the remaining terms of Q(x) with extra precision using
|
1373
|
+
// double word arithmetic.
|
1374
|
+
Packet p_hi, p_lo;
|
1375
|
+
// x * p(x)
|
1376
|
+
twoprod(p, x, p_hi, p_lo);
|
1377
|
+
// C + x * p(x)
|
1378
|
+
Packet q1_hi, q1_lo;
|
1379
|
+
twosum(p_hi, p_lo, C_hi, C_lo, q1_hi, q1_lo);
|
1380
|
+
// x * (C + x * p(x))
|
1381
|
+
Packet q2_hi, q2_lo;
|
1382
|
+
twoprod(q1_hi, q1_lo, x, q2_hi, q2_lo);
|
1383
|
+
// 1 + x * (C + x * p(x))
|
1384
|
+
Packet q3_hi, q3_lo;
|
1385
|
+
// Since |q2_hi| <= sqrt(2)-1 < 1, we can use fast_twosum
|
1386
|
+
// for adding it to unity here.
|
1387
|
+
fast_twosum(one, q2_hi, q3_hi, q3_lo);
|
1388
|
+
return padd(q3_hi, padd(q2_lo, q3_lo));
|
1389
|
+
}
|
1390
|
+
};
|
1391
|
+
|
1392
|
+
// This function implements the non-trivial case of pow(x,y) where x is
|
1393
|
+
// positive and y is (possibly) non-integer.
|
1394
|
+
// Formally, pow(x,y) = exp2(y * log2(x)), where exp2(x) is shorthand for 2^x.
|
1395
|
+
// TODO(rmlarsen): We should probably add this as a packet up 'ppow', to make it
|
1396
|
+
// easier to specialize or turn off for specific types and/or backends.x
|
1397
|
+
template <typename Packet>
|
1398
|
+
EIGEN_STRONG_INLINE Packet generic_pow_impl(const Packet& x, const Packet& y) {
|
1399
|
+
typedef typename unpacket_traits<Packet>::type Scalar;
|
1400
|
+
// Split x into exponent e_x and mantissa m_x.
|
1401
|
+
Packet e_x;
|
1402
|
+
Packet m_x = pfrexp(x, e_x);
|
1403
|
+
|
1404
|
+
// Adjust m_x to lie in [1/sqrt(2):sqrt(2)] to minimize absolute error in log2(m_x).
|
1405
|
+
EIGEN_CONSTEXPR Scalar sqrt_half = Scalar(0.70710678118654752440);
|
1406
|
+
const Packet m_x_scale_mask = pcmp_lt(m_x, pset1<Packet>(sqrt_half));
|
1407
|
+
m_x = pselect(m_x_scale_mask, pmul(pset1<Packet>(Scalar(2)), m_x), m_x);
|
1408
|
+
e_x = pselect(m_x_scale_mask, psub(e_x, pset1<Packet>(Scalar(1))), e_x);
|
1409
|
+
|
1410
|
+
// Compute log2(m_x) with 6 extra bits of accuracy.
|
1411
|
+
Packet rx_hi, rx_lo;
|
1412
|
+
accurate_log2<Scalar>()(m_x, rx_hi, rx_lo);
|
1413
|
+
|
1414
|
+
// Compute the two terms {y * e_x, y * r_x} in f = y * log2(x) with doubled
|
1415
|
+
// precision using double word arithmetic.
|
1416
|
+
Packet f1_hi, f1_lo, f2_hi, f2_lo;
|
1417
|
+
twoprod(e_x, y, f1_hi, f1_lo);
|
1418
|
+
twoprod(rx_hi, rx_lo, y, f2_hi, f2_lo);
|
1419
|
+
// Sum the two terms in f using double word arithmetic. We know
|
1420
|
+
// that |e_x| > |log2(m_x)|, except for the case where e_x==0.
|
1421
|
+
// This means that we can use fast_twosum(f1,f2).
|
1422
|
+
// In the case e_x == 0, e_x * y = f1 = 0, so we don't lose any
|
1423
|
+
// accuracy by violating the assumption of fast_twosum, because
|
1424
|
+
// it's a no-op.
|
1425
|
+
Packet f_hi, f_lo;
|
1426
|
+
fast_twosum(f1_hi, f1_lo, f2_hi, f2_lo, f_hi, f_lo);
|
1427
|
+
|
1428
|
+
// Split f into integer and fractional parts.
|
1429
|
+
Packet n_z, r_z;
|
1430
|
+
absolute_split(f_hi, n_z, r_z);
|
1431
|
+
r_z = padd(r_z, f_lo);
|
1432
|
+
Packet n_r;
|
1433
|
+
absolute_split(r_z, n_r, r_z);
|
1434
|
+
n_z = padd(n_z, n_r);
|
1435
|
+
|
1436
|
+
// We now have an accurate split of f = n_z + r_z and can compute
|
1437
|
+
// x^y = 2**{n_z + r_z) = exp2(r_z) * 2**{n_z}.
|
1438
|
+
// Since r_z is in [-0.5;0.5], we compute the first factor to high accuracy
|
1439
|
+
// using a specialized algorithm. Multiplication by the second factor can
|
1440
|
+
// be done exactly using pldexp(), since it is an integer power of 2.
|
1441
|
+
const Packet e_r = fast_accurate_exp2<Scalar>()(r_z);
|
1442
|
+
return pldexp(e_r, n_z);
|
1443
|
+
}
|
1444
|
+
|
1445
|
+
// Generic implementation of pow(x,y).
|
1446
|
+
template<typename Packet>
|
1447
|
+
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
|
1448
|
+
EIGEN_UNUSED
|
1449
|
+
Packet generic_pow(const Packet& x, const Packet& y) {
|
1450
|
+
typedef typename unpacket_traits<Packet>::type Scalar;
|
1451
|
+
|
1452
|
+
const Packet cst_pos_inf = pset1<Packet>(NumTraits<Scalar>::infinity());
|
1453
|
+
const Packet cst_zero = pset1<Packet>(Scalar(0));
|
1454
|
+
const Packet cst_one = pset1<Packet>(Scalar(1));
|
1455
|
+
const Packet cst_nan = pset1<Packet>(NumTraits<Scalar>::quiet_NaN());
|
1456
|
+
|
1457
|
+
const Packet abs_x = pabs(x);
|
1458
|
+
// Predicates for sign and magnitude of x.
|
1459
|
+
const Packet x_is_zero = pcmp_eq(x, cst_zero);
|
1460
|
+
const Packet x_is_neg = pcmp_lt(x, cst_zero);
|
1461
|
+
const Packet abs_x_is_inf = pcmp_eq(abs_x, cst_pos_inf);
|
1462
|
+
const Packet abs_x_is_one = pcmp_eq(abs_x, cst_one);
|
1463
|
+
const Packet abs_x_is_gt_one = pcmp_lt(cst_one, abs_x);
|
1464
|
+
const Packet abs_x_is_lt_one = pcmp_lt(abs_x, cst_one);
|
1465
|
+
const Packet x_is_one = pandnot(abs_x_is_one, x_is_neg);
|
1466
|
+
const Packet x_is_neg_one = pand(abs_x_is_one, x_is_neg);
|
1467
|
+
const Packet x_is_nan = pandnot(ptrue(x), pcmp_eq(x, x));
|
1468
|
+
|
1469
|
+
// Predicates for sign and magnitude of y.
|
1470
|
+
const Packet y_is_one = pcmp_eq(y, cst_one);
|
1471
|
+
const Packet y_is_zero = pcmp_eq(y, cst_zero);
|
1472
|
+
const Packet y_is_neg = pcmp_lt(y, cst_zero);
|
1473
|
+
const Packet y_is_pos = pandnot(ptrue(y), por(y_is_zero, y_is_neg));
|
1474
|
+
const Packet y_is_nan = pandnot(ptrue(y), pcmp_eq(y, y));
|
1475
|
+
const Packet abs_y_is_inf = pcmp_eq(pabs(y), cst_pos_inf);
|
1476
|
+
EIGEN_CONSTEXPR Scalar huge_exponent =
|
1477
|
+
(NumTraits<Scalar>::max_exponent() * Scalar(EIGEN_LN2)) /
|
1478
|
+
NumTraits<Scalar>::epsilon();
|
1479
|
+
const Packet abs_y_is_huge = pcmp_le(pset1<Packet>(huge_exponent), pabs(y));
|
1480
|
+
|
1481
|
+
// Predicates for whether y is integer and/or even.
|
1482
|
+
const Packet y_is_int = pcmp_eq(pfloor(y), y);
|
1483
|
+
const Packet y_div_2 = pmul(y, pset1<Packet>(Scalar(0.5)));
|
1484
|
+
const Packet y_is_even = pcmp_eq(pround(y_div_2), y_div_2);
|
1485
|
+
|
1486
|
+
// Predicates encoding special cases for the value of pow(x,y)
|
1487
|
+
const Packet invalid_negative_x = pandnot(pandnot(pandnot(x_is_neg, abs_x_is_inf),
|
1488
|
+
y_is_int),
|
1489
|
+
abs_y_is_inf);
|
1490
|
+
const Packet pow_is_one = por(por(x_is_one, y_is_zero),
|
1491
|
+
pand(x_is_neg_one,
|
1492
|
+
por(abs_y_is_inf, pandnot(y_is_even, invalid_negative_x))));
|
1493
|
+
const Packet pow_is_nan = por(invalid_negative_x, por(x_is_nan, y_is_nan));
|
1494
|
+
const Packet pow_is_zero = por(por(por(pand(x_is_zero, y_is_pos),
|
1495
|
+
pand(abs_x_is_inf, y_is_neg)),
|
1496
|
+
pand(pand(abs_x_is_lt_one, abs_y_is_huge),
|
1497
|
+
y_is_pos)),
|
1498
|
+
pand(pand(abs_x_is_gt_one, abs_y_is_huge),
|
1499
|
+
y_is_neg));
|
1500
|
+
const Packet pow_is_inf = por(por(por(pand(x_is_zero, y_is_neg),
|
1501
|
+
pand(abs_x_is_inf, y_is_pos)),
|
1502
|
+
pand(pand(abs_x_is_lt_one, abs_y_is_huge),
|
1503
|
+
y_is_neg)),
|
1504
|
+
pand(pand(abs_x_is_gt_one, abs_y_is_huge),
|
1505
|
+
y_is_pos));
|
1506
|
+
|
1507
|
+
// General computation of pow(x,y) for positive x or negative x and integer y.
|
1508
|
+
const Packet negate_pow_abs = pandnot(x_is_neg, y_is_even);
|
1509
|
+
const Packet pow_abs = generic_pow_impl(abs_x, y);
|
1510
|
+
return pselect(y_is_one, x,
|
1511
|
+
pselect(pow_is_one, cst_one,
|
1512
|
+
pselect(pow_is_nan, cst_nan,
|
1513
|
+
pselect(pow_is_inf, cst_pos_inf,
|
1514
|
+
pselect(pow_is_zero, cst_zero,
|
1515
|
+
pselect(negate_pow_abs, pnegate(pow_abs), pow_abs))))));
|
1516
|
+
}
|
1517
|
+
|
1518
|
+
|
1519
|
+
|
1520
|
+
/* polevl (modified for Eigen)
|
1521
|
+
*
|
1522
|
+
* Evaluate polynomial
|
1523
|
+
*
|
1524
|
+
*
|
1525
|
+
*
|
1526
|
+
* SYNOPSIS:
|
1527
|
+
*
|
1528
|
+
* int N;
|
1529
|
+
* Scalar x, y, coef[N+1];
|
1530
|
+
*
|
1531
|
+
* y = polevl<decltype(x), N>( x, coef);
|
1532
|
+
*
|
1533
|
+
*
|
1534
|
+
*
|
1535
|
+
* DESCRIPTION:
|
1536
|
+
*
|
1537
|
+
* Evaluates polynomial of degree N:
|
1538
|
+
*
|
1539
|
+
* 2 N
|
1540
|
+
* y = C + C x + C x +...+ C x
|
1541
|
+
* 0 1 2 N
|
1542
|
+
*
|
1543
|
+
* Coefficients are stored in reverse order:
|
1544
|
+
*
|
1545
|
+
* coef[0] = C , ..., coef[N] = C .
|
1546
|
+
* N 0
|
1547
|
+
*
|
1548
|
+
* The function p1evl() assumes that coef[N] = 1.0 and is
|
1549
|
+
* omitted from the array. Its calling arguments are
|
1550
|
+
* otherwise the same as polevl().
|
1551
|
+
*
|
1552
|
+
*
|
1553
|
+
* The Eigen implementation is templatized. For best speed, store
|
1554
|
+
* coef as a const array (constexpr), e.g.
|
1555
|
+
*
|
1556
|
+
* const double coef[] = {1.0, 2.0, 3.0, ...};
|
1557
|
+
*
|
1558
|
+
*/
|
1559
|
+
template <typename Packet, int N>
|
1560
|
+
struct ppolevl {
|
1561
|
+
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet run(const Packet& x, const typename unpacket_traits<Packet>::type coeff[]) {
|
1562
|
+
EIGEN_STATIC_ASSERT((N > 0), YOU_MADE_A_PROGRAMMING_MISTAKE);
|
1563
|
+
return pmadd(ppolevl<Packet, N-1>::run(x, coeff), x, pset1<Packet>(coeff[N]));
|
1564
|
+
}
|
1565
|
+
};
|
1566
|
+
|
1567
|
+
template <typename Packet>
|
1568
|
+
struct ppolevl<Packet, 0> {
|
1569
|
+
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet run(const Packet& x, const typename unpacket_traits<Packet>::type coeff[]) {
|
1570
|
+
EIGEN_UNUSED_VARIABLE(x);
|
1571
|
+
return pset1<Packet>(coeff[0]);
|
1572
|
+
}
|
1573
|
+
};
|
1574
|
+
|
1575
|
+
/* chbevl (modified for Eigen)
|
1576
|
+
*
|
1577
|
+
* Evaluate Chebyshev series
|
1578
|
+
*
|
1579
|
+
*
|
1580
|
+
*
|
1581
|
+
* SYNOPSIS:
|
1582
|
+
*
|
1583
|
+
* int N;
|
1584
|
+
* Scalar x, y, coef[N], chebevl();
|
1585
|
+
*
|
1586
|
+
* y = chbevl( x, coef, N );
|
1587
|
+
*
|
1588
|
+
*
|
1589
|
+
*
|
1590
|
+
* DESCRIPTION:
|
1591
|
+
*
|
1592
|
+
* Evaluates the series
|
1593
|
+
*
|
1594
|
+
* N-1
|
1595
|
+
* - '
|
1596
|
+
* y = > coef[i] T (x/2)
|
1597
|
+
* - i
|
1598
|
+
* i=0
|
1599
|
+
*
|
1600
|
+
* of Chebyshev polynomials Ti at argument x/2.
|
1601
|
+
*
|
1602
|
+
* Coefficients are stored in reverse order, i.e. the zero
|
1603
|
+
* order term is last in the array. Note N is the number of
|
1604
|
+
* coefficients, not the order.
|
1605
|
+
*
|
1606
|
+
* If coefficients are for the interval a to b, x must
|
1607
|
+
* have been transformed to x -> 2(2x - b - a)/(b-a) before
|
1608
|
+
* entering the routine. This maps x from (a, b) to (-1, 1),
|
1609
|
+
* over which the Chebyshev polynomials are defined.
|
1610
|
+
*
|
1611
|
+
* If the coefficients are for the inverted interval, in
|
1612
|
+
* which (a, b) is mapped to (1/b, 1/a), the transformation
|
1613
|
+
* required is x -> 2(2ab/x - b - a)/(b-a). If b is infinity,
|
1614
|
+
* this becomes x -> 4a/x - 1.
|
1615
|
+
*
|
1616
|
+
*
|
1617
|
+
*
|
1618
|
+
* SPEED:
|
1619
|
+
*
|
1620
|
+
* Taking advantage of the recurrence properties of the
|
1621
|
+
* Chebyshev polynomials, the routine requires one more
|
1622
|
+
* addition per loop than evaluating a nested polynomial of
|
1623
|
+
* the same degree.
|
1624
|
+
*
|
1625
|
+
*/
|
1626
|
+
|
1627
|
+
template <typename Packet, int N>
|
1628
|
+
struct pchebevl {
|
1629
|
+
EIGEN_DEVICE_FUNC
|
1630
|
+
static EIGEN_STRONG_INLINE Packet run(Packet x, const typename unpacket_traits<Packet>::type coef[]) {
|
1631
|
+
typedef typename unpacket_traits<Packet>::type Scalar;
|
1632
|
+
Packet b0 = pset1<Packet>(coef[0]);
|
1633
|
+
Packet b1 = pset1<Packet>(static_cast<Scalar>(0.f));
|
1634
|
+
Packet b2;
|
1635
|
+
|
1636
|
+
for (int i = 1; i < N; i++) {
|
1637
|
+
b2 = b1;
|
1638
|
+
b1 = b0;
|
1639
|
+
b0 = psub(pmadd(x, b1, pset1<Packet>(coef[i])), b2);
|
1640
|
+
}
|
1641
|
+
|
1642
|
+
return pmul(pset1<Packet>(static_cast<Scalar>(0.5f)), psub(b0, b2));
|
1643
|
+
}
|
1644
|
+
};
|
1645
|
+
|
1646
|
+
} // end namespace internal
|
1647
|
+
} // end namespace Eigen
|
1648
|
+
|
1649
|
+
#endif // EIGEN_ARCH_GENERIC_PACKET_MATH_FUNCTIONS_H
|