casadi 3.7.2__cp314-none-manylinux2014_x86_64.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/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/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/highs +0 -0
- casadi/include/alpaqa/accelerators/anderson.hpp +133 -0
- casadi/include/alpaqa/accelerators/internal/anderson-helpers.hpp +92 -0
- casadi/include/alpaqa/accelerators/internal/limited-memory-qr.hpp +295 -0
- casadi/include/alpaqa/accelerators/lbfgs.hpp +244 -0
- casadi/include/alpaqa/accelerators/steihaugcg.hpp +143 -0
- casadi/include/alpaqa/alpaqa.hpp +3 -0
- casadi/include/alpaqa/casadi/CasADiControlProblem.hpp +185 -0
- casadi/include/alpaqa/casadi/CasADiFunctionWrapper.hpp +104 -0
- casadi/include/alpaqa/casadi/CasADiProblem.hpp +102 -0
- casadi/include/alpaqa/casadi-loader-export.hpp +15 -0
- casadi/include/alpaqa/casadi-ocp-loader-export.hpp +15 -0
- casadi/include/alpaqa/config/config.hpp +165 -0
- casadi/include/alpaqa/dl/dl-problem.h +476 -0
- casadi/include/alpaqa/dl/dl-problem.hpp +301 -0
- casadi/include/alpaqa/export.h +43 -0
- casadi/include/alpaqa/export.hpp +30 -0
- casadi/include/alpaqa/implementation/accelerators/lbfgs.tpp +240 -0
- casadi/include/alpaqa/implementation/casadi/CasADiControlProblem.tpp +594 -0
- casadi/include/alpaqa/implementation/casadi/CasADiLoader-util.hpp +50 -0
- casadi/include/alpaqa/implementation/casadi/CasADiProblem.tpp +425 -0
- casadi/include/alpaqa/implementation/inner/directions/panoc/structured-lbfgs.tpp +164 -0
- casadi/include/alpaqa/implementation/inner/panoc-helpers.tpp +389 -0
- casadi/include/alpaqa/implementation/inner/panoc-ocp.tpp +798 -0
- casadi/include/alpaqa/implementation/inner/panoc.tpp +448 -0
- casadi/include/alpaqa/implementation/inner/pantr.tpp +474 -0
- casadi/include/alpaqa/implementation/inner/zerofpr.tpp +482 -0
- casadi/include/alpaqa/implementation/outer/alm.tpp +228 -0
- casadi/include/alpaqa/implementation/outer/internal/alm-helpers.tpp +80 -0
- casadi/include/alpaqa/implementation/params/params.tpp +158 -0
- casadi/include/alpaqa/implementation/problem/ocproblem.tpp +56 -0
- casadi/include/alpaqa/implementation/problem/type-erased-problem.tpp +211 -0
- casadi/include/alpaqa/implementation/util/io/csv.tpp +120 -0
- casadi/include/alpaqa/implementation/util/print.tpp +151 -0
- casadi/include/alpaqa/inner/directions/panoc/anderson.hpp +98 -0
- casadi/include/alpaqa/inner/directions/panoc/lbfgs.hpp +94 -0
- casadi/include/alpaqa/inner/directions/panoc/structured-lbfgs.hpp +146 -0
- casadi/include/alpaqa/inner/directions/panoc/structured-newton.hpp +264 -0
- casadi/include/alpaqa/inner/directions/panoc-direction-update.hpp +96 -0
- casadi/include/alpaqa/inner/directions/panoc-ocp/lqr.hpp +181 -0
- casadi/include/alpaqa/inner/directions/panoc-ocp/ocp-vars.hpp +492 -0
- casadi/include/alpaqa/inner/directions/pantr/newton-tr.hpp +192 -0
- casadi/include/alpaqa/inner/directions/pantr/pantr-direction.hpp +99 -0
- casadi/include/alpaqa/inner/inner-solve-options.hpp +30 -0
- casadi/include/alpaqa/inner/internal/lipschitz.hpp +27 -0
- casadi/include/alpaqa/inner/internal/panoc-helpers.hpp +10 -0
- casadi/include/alpaqa/inner/internal/panoc-stop-crit.hpp +124 -0
- casadi/include/alpaqa/inner/internal/solverstatus.hpp +42 -0
- casadi/include/alpaqa/inner/panoc-ocp.hpp +302 -0
- casadi/include/alpaqa/inner/panoc.hpp +274 -0
- casadi/include/alpaqa/inner/pantr.hpp +284 -0
- casadi/include/alpaqa/inner/zerofpr.hpp +274 -0
- casadi/include/alpaqa/ipopt/ipopt-adapter.hpp +81 -0
- casadi/include/alpaqa/ipopt/ipopt-enums.hpp +35 -0
- casadi/include/alpaqa/lbfgsb/lbfgsb-adapter.hpp +111 -0
- casadi/include/alpaqa/newton-tr-pantr-alm.hpp +27 -0
- casadi/include/alpaqa/outer/alm.hpp +190 -0
- casadi/include/alpaqa/outer/internal/alm-helpers.hpp +10 -0
- casadi/include/alpaqa/panoc-alm.hpp +27 -0
- casadi/include/alpaqa/panoc-anderson-alm.hpp +27 -0
- casadi/include/alpaqa/params/params.hpp +60 -0
- casadi/include/alpaqa/problem/box-constr-problem.hpp +220 -0
- casadi/include/alpaqa/problem/box.hpp +82 -0
- casadi/include/alpaqa/problem/functional-problem.hpp +73 -0
- casadi/include/alpaqa/problem/kkt-error.hpp +43 -0
- casadi/include/alpaqa/problem/ocproblem-counters.hpp +116 -0
- casadi/include/alpaqa/problem/ocproblem.hpp +662 -0
- casadi/include/alpaqa/problem/problem-counters.hpp +116 -0
- casadi/include/alpaqa/problem/problem-with-counters.hpp +141 -0
- casadi/include/alpaqa/problem/type-erased-problem.hpp +874 -0
- casadi/include/alpaqa/problem/unconstr-problem.hpp +37 -0
- casadi/include/alpaqa/structured-panoc-alm.hpp +27 -0
- casadi/include/alpaqa/structured-zerofpr-alm.hpp +27 -0
- casadi/include/alpaqa/util/alloc-check.hpp +23 -0
- casadi/include/alpaqa/util/atomic-stop-signal.hpp +24 -0
- casadi/include/alpaqa/util/check-dim.hpp +64 -0
- casadi/include/alpaqa/util/copyable_unique_ptr.hpp +32 -0
- casadi/include/alpaqa/util/demangled-typename.hpp +9 -0
- casadi/include/alpaqa/util/enumerate.hpp +70 -0
- casadi/include/alpaqa/util/float.hpp +25 -0
- casadi/include/alpaqa/util/index-set.hpp +97 -0
- casadi/include/alpaqa/util/io/csv.hpp +43 -0
- casadi/include/alpaqa/util/iter-adapter.hpp +68 -0
- casadi/include/alpaqa/util/max-history.hpp +47 -0
- casadi/include/alpaqa/util/noop-delete.hpp +15 -0
- casadi/include/alpaqa/util/not-implemented.hpp +12 -0
- casadi/include/alpaqa/util/print.hpp +78 -0
- casadi/include/alpaqa/util/quadmath/quadmath-print.hpp +20 -0
- casadi/include/alpaqa/util/quadmath/quadmath.hpp +137 -0
- casadi/include/alpaqa/util/required-method.hpp +29 -0
- casadi/include/alpaqa/util/ringbuffer.hpp +212 -0
- casadi/include/alpaqa/util/set-intersection.hpp +129 -0
- casadi/include/alpaqa/util/sparse-ops.hpp +164 -0
- casadi/include/alpaqa/util/timed.hpp +22 -0
- casadi/include/alpaqa/util/type-erasure.hpp +568 -0
- casadi/include/alpaqa/util/type-traits.hpp +58 -0
- casadi/include/alpaqa/zerofpr-alm.hpp +27 -0
- casadi/include/alpaqa/zerofpr-anderson-alm.hpp +27 -0
- casadi/include/alpaqa-version.h +8 -0
- casadi/include/blasfeo.h +52 -0
- casadi/include/blasfeo_block_size.h +447 -0
- casadi/include/blasfeo_common.h +274 -0
- casadi/include/blasfeo_d_aux.h +255 -0
- casadi/include/blasfeo_d_aux_ext_dep.h +145 -0
- casadi/include/blasfeo_d_aux_ext_dep_ref.h +84 -0
- casadi/include/blasfeo_d_aux_old.h +75 -0
- casadi/include/blasfeo_d_aux_ref.h +208 -0
- casadi/include/blasfeo_d_aux_test.h +226 -0
- casadi/include/blasfeo_d_blas.h +46 -0
- casadi/include/blasfeo_d_blas_api.h +281 -0
- casadi/include/blasfeo_d_blasfeo_api.h +364 -0
- casadi/include/blasfeo_d_blasfeo_api_ref.h +147 -0
- casadi/include/blasfeo_d_blasfeo_hp_api.h +84 -0
- casadi/include/blasfeo_d_blasfeo_ref_api.h +283 -0
- casadi/include/blasfeo_d_kernel.h +1321 -0
- casadi/include/blasfeo_i_aux_ext_dep.h +69 -0
- casadi/include/blasfeo_m_aux.h +57 -0
- casadi/include/blasfeo_memory.h +62 -0
- casadi/include/blasfeo_naming.h +77 -0
- casadi/include/blasfeo_processor_features.h +88 -0
- casadi/include/blasfeo_s_aux.h +168 -0
- casadi/include/blasfeo_s_aux_ext_dep.h +141 -0
- casadi/include/blasfeo_s_aux_ext_dep_ref.h +82 -0
- casadi/include/blasfeo_s_aux_old.h +64 -0
- casadi/include/blasfeo_s_aux_ref.h +147 -0
- casadi/include/blasfeo_s_aux_test.h +177 -0
- casadi/include/blasfeo_s_blas.h +46 -0
- casadi/include/blasfeo_s_blas_api.h +182 -0
- casadi/include/blasfeo_s_blasfeo_api.h +284 -0
- casadi/include/blasfeo_s_blasfeo_api_ref.h +135 -0
- casadi/include/blasfeo_s_blasfeo_ref_api.h +252 -0
- casadi/include/blasfeo_s_kernel.h +692 -0
- casadi/include/blasfeo_stdlib.h +62 -0
- casadi/include/blasfeo_target.h +73 -0
- casadi/include/blasfeo_timing.h +114 -0
- casadi/include/blasfeo_v_aux_ext_dep.h +83 -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/BonArraysHelpers.hpp +52 -0
- casadi/include/coin/BonAuxInfos.hpp +110 -0
- casadi/include/coin/BonBabInfos.hpp +57 -0
- casadi/include/coin/BonBabSetupBase.hpp +386 -0
- casadi/include/coin/BonBonminSetup.hpp +95 -0
- casadi/include/coin/BonBranchingTQP.hpp +197 -0
- casadi/include/coin/BonCbc.hpp +127 -0
- casadi/include/coin/BonCbcLpStrategy.hpp +45 -0
- casadi/include/coin/BonCbcNlpStrategy.hpp +98 -0
- casadi/include/coin/BonCbcNode.hpp +133 -0
- casadi/include/coin/BonChooseVariable.hpp +345 -0
- casadi/include/coin/BonCurvBranchingSolver.hpp +77 -0
- casadi/include/coin/BonCutStrengthener.hpp +244 -0
- casadi/include/coin/BonDiver.hpp +424 -0
- casadi/include/coin/BonDummyHeuristic.hpp +53 -0
- casadi/include/coin/BonDummyPump.hpp +43 -0
- casadi/include/coin/BonEcpCuts.hpp +97 -0
- casadi/include/coin/BonExitCodes.hpp +12 -0
- casadi/include/coin/BonFixAndSolveHeuristic.hpp +43 -0
- casadi/include/coin/BonGuessHeuristic.hpp +46 -0
- casadi/include/coin/BonHeuristicDive.hpp +88 -0
- casadi/include/coin/BonHeuristicDiveFractional.hpp +67 -0
- casadi/include/coin/BonHeuristicDiveMIP.hpp +83 -0
- casadi/include/coin/BonHeuristicDiveMIPFractional.hpp +67 -0
- casadi/include/coin/BonHeuristicDiveMIPVectorLength.hpp +74 -0
- casadi/include/coin/BonHeuristicDiveVectorLength.hpp +74 -0
- casadi/include/coin/BonHeuristicFPump.hpp +111 -0
- casadi/include/coin/BonHeuristicLocalBranching.hpp +59 -0
- casadi/include/coin/BonHeuristicRINS.hpp +55 -0
- casadi/include/coin/BonIpoptInteriorWarmStarter.hpp +103 -0
- casadi/include/coin/BonIpoptSolver.hpp +188 -0
- casadi/include/coin/BonIpoptWarmStart.hpp +148 -0
- casadi/include/coin/BonLinearCutsGenerator.hpp +75 -0
- casadi/include/coin/BonLocalSolverBasedHeuristic.hpp +102 -0
- casadi/include/coin/BonLpBranchingSolver.hpp +80 -0
- casadi/include/coin/BonMilpRounding.hpp +74 -0
- casadi/include/coin/BonOACutGenerator2.hpp +56 -0
- casadi/include/coin/BonOAMessages.hpp +44 -0
- casadi/include/coin/BonOaDecBase.hpp +297 -0
- casadi/include/coin/BonOaFeasChecker.hpp +73 -0
- casadi/include/coin/BonOaNlpOptim.hpp +116 -0
- casadi/include/coin/BonOsiTMINLPInterface.hpp +1342 -0
- casadi/include/coin/BonOuterApprox.hpp +123 -0
- casadi/include/coin/BonPseudoCosts.hpp +91 -0
- casadi/include/coin/BonPumpForMinlp.hpp +45 -0
- casadi/include/coin/BonQuadCut.hpp +217 -0
- casadi/include/coin/BonQuadRow.hpp +122 -0
- casadi/include/coin/BonRegisteredOptions.hpp +225 -0
- casadi/include/coin/BonStrongBranchingSolver.hpp +69 -0
- casadi/include/coin/BonSubMipSolver.hpp +143 -0
- casadi/include/coin/BonTMINLP.hpp +420 -0
- casadi/include/coin/BonTMINLP2OsiLP.hpp +164 -0
- casadi/include/coin/BonTMINLP2Quad.hpp +191 -0
- casadi/include/coin/BonTMINLP2TNLP.hpp +509 -0
- casadi/include/coin/BonTMINLPLinObj.hpp +216 -0
- casadi/include/coin/BonTMatrix.hpp +167 -0
- casadi/include/coin/BonTNLP2FPNLP.hpp +264 -0
- casadi/include/coin/BonTNLPSolver.hpp +241 -0
- casadi/include/coin/BonTypes.hpp +95 -0
- casadi/include/coin/BonminConfig.h +19 -0
- casadi/include/coin/CbcBranchActual.hpp +26 -0
- casadi/include/coin/CbcBranchAllDifferent.hpp +61 -0
- casadi/include/coin/CbcBranchBase.hpp +79 -0
- casadi/include/coin/CbcBranchCut.hpp +182 -0
- casadi/include/coin/CbcBranchDecision.hpp +135 -0
- casadi/include/coin/CbcBranchDefaultDecision.hpp +101 -0
- casadi/include/coin/CbcBranchDynamic.hpp +210 -0
- casadi/include/coin/CbcBranchLotsize.hpp +249 -0
- casadi/include/coin/CbcBranchToFixLots.hpp +94 -0
- casadi/include/coin/CbcBranchingObject.hpp +245 -0
- casadi/include/coin/CbcClique.hpp +309 -0
- casadi/include/coin/CbcCompare.hpp +46 -0
- casadi/include/coin/CbcCompareActual.hpp +16 -0
- casadi/include/coin/CbcCompareBase.hpp +155 -0
- casadi/include/coin/CbcCompareDefault.hpp +129 -0
- casadi/include/coin/CbcCompareDepth.hpp +48 -0
- casadi/include/coin/CbcCompareEstimate.hpp +48 -0
- casadi/include/coin/CbcCompareObjective.hpp +50 -0
- casadi/include/coin/CbcConfig.h +18 -0
- casadi/include/coin/CbcConsequence.hpp +50 -0
- casadi/include/coin/CbcCountRowCut.hpp +176 -0
- casadi/include/coin/CbcCutGenerator.hpp +550 -0
- casadi/include/coin/CbcCutModifier.hpp +59 -0
- casadi/include/coin/CbcCutSubsetModifier.hpp +69 -0
- casadi/include/coin/CbcDummyBranchingObject.hpp +83 -0
- casadi/include/coin/CbcEventHandler.hpp +250 -0
- casadi/include/coin/CbcFathom.hpp +136 -0
- casadi/include/coin/CbcFathomDynamicProgramming.hpp +177 -0
- casadi/include/coin/CbcFeasibilityBase.hpp +60 -0
- casadi/include/coin/CbcFixVariable.hpp +68 -0
- casadi/include/coin/CbcFollowOn.hpp +207 -0
- casadi/include/coin/CbcFullNodeInfo.hpp +171 -0
- casadi/include/coin/CbcGeneral.hpp +60 -0
- casadi/include/coin/CbcGeneralDepth.hpp +289 -0
- casadi/include/coin/CbcHeuristic.hpp +735 -0
- casadi/include/coin/CbcHeuristicDINS.hpp +98 -0
- casadi/include/coin/CbcHeuristicDW.hpp +374 -0
- casadi/include/coin/CbcHeuristicDive.hpp +198 -0
- casadi/include/coin/CbcHeuristicDiveCoefficient.hpp +52 -0
- casadi/include/coin/CbcHeuristicDiveFractional.hpp +52 -0
- casadi/include/coin/CbcHeuristicDiveGuided.hpp +55 -0
- casadi/include/coin/CbcHeuristicDiveLineSearch.hpp +52 -0
- casadi/include/coin/CbcHeuristicDivePseudoCost.hpp +60 -0
- casadi/include/coin/CbcHeuristicDiveVectorLength.hpp +52 -0
- casadi/include/coin/CbcHeuristicFPump.hpp +375 -0
- casadi/include/coin/CbcHeuristicGreedy.hpp +289 -0
- casadi/include/coin/CbcHeuristicLocal.hpp +276 -0
- casadi/include/coin/CbcHeuristicPivotAndFix.hpp +58 -0
- casadi/include/coin/CbcHeuristicRENS.hpp +79 -0
- casadi/include/coin/CbcHeuristicRINS.hpp +106 -0
- casadi/include/coin/CbcHeuristicRandRound.hpp +58 -0
- casadi/include/coin/CbcHeuristicVND.hpp +95 -0
- casadi/include/coin/CbcLinked.hpp +1443 -0
- casadi/include/coin/CbcMessage.hpp +94 -0
- casadi/include/coin/CbcMipStartIO.hpp +29 -0
- casadi/include/coin/CbcModel.hpp +3296 -0
- casadi/include/coin/CbcNWay.hpp +171 -0
- casadi/include/coin/CbcNode.hpp +380 -0
- casadi/include/coin/CbcNodeInfo.hpp +377 -0
- casadi/include/coin/CbcObject.hpp +288 -0
- casadi/include/coin/CbcObjectUpdateData.hpp +63 -0
- casadi/include/coin/CbcOrClpParam.cpp +4321 -0
- casadi/include/coin/CbcOrClpParam.hpp +585 -0
- casadi/include/coin/CbcParam.hpp +338 -0
- casadi/include/coin/CbcPartialNodeInfo.hpp +116 -0
- casadi/include/coin/CbcSOS.hpp +290 -0
- casadi/include/coin/CbcSimpleInteger.hpp +299 -0
- casadi/include/coin/CbcSimpleIntegerDynamicPseudoCost.hpp +619 -0
- casadi/include/coin/CbcSimpleIntegerPseudoCost.hpp +122 -0
- casadi/include/coin/CbcSolver.hpp +460 -0
- casadi/include/coin/CbcStrategy.hpp +269 -0
- casadi/include/coin/CbcSubProblem.hpp +84 -0
- casadi/include/coin/CbcTree.hpp +493 -0
- casadi/include/coin/CbcTreeLocal.hpp +393 -0
- casadi/include/coin/Cbc_C_Interface.h +904 -0
- casadi/include/coin/Cgl012cut.hpp +464 -0
- casadi/include/coin/CglAllDifferent.hpp +115 -0
- casadi/include/coin/CglClique.hpp +312 -0
- casadi/include/coin/CglConfig.h +19 -0
- casadi/include/coin/CglCutGenerator.hpp +133 -0
- casadi/include/coin/CglDuplicateRow.hpp +189 -0
- casadi/include/coin/CglFlowCover.hpp +371 -0
- casadi/include/coin/CglGMI.hpp +364 -0
- casadi/include/coin/CglGMIParam.hpp +313 -0
- casadi/include/coin/CglGomory.hpp +204 -0
- casadi/include/coin/CglKnapsackCover.hpp +310 -0
- casadi/include/coin/CglLandP.hpp +306 -0
- casadi/include/coin/CglLandPValidator.hpp +130 -0
- casadi/include/coin/CglLiftAndProject.hpp +104 -0
- casadi/include/coin/CglMessage.hpp +49 -0
- casadi/include/coin/CglMixedIntegerRounding.hpp +429 -0
- casadi/include/coin/CglMixedIntegerRounding2.hpp +427 -0
- casadi/include/coin/CglOddHole.hpp +160 -0
- casadi/include/coin/CglParam.hpp +93 -0
- casadi/include/coin/CglPreProcess.hpp +600 -0
- casadi/include/coin/CglProbing.hpp +543 -0
- casadi/include/coin/CglRedSplit.hpp +448 -0
- casadi/include/coin/CglRedSplit2.hpp +494 -0
- casadi/include/coin/CglRedSplit2Param.hpp +495 -0
- casadi/include/coin/CglRedSplitParam.hpp +272 -0
- casadi/include/coin/CglResidualCapacity.hpp +240 -0
- casadi/include/coin/CglSimpleRounding.hpp +174 -0
- casadi/include/coin/CglStored.hpp +140 -0
- casadi/include/coin/CglTreeInfo.hpp +216 -0
- casadi/include/coin/CglTwomir.hpp +562 -0
- casadi/include/coin/CglZeroHalf.hpp +133 -0
- casadi/include/coin/ClpAmplObjective.hpp +113 -0
- casadi/include/coin/ClpCholeskyBase.hpp +321 -0
- casadi/include/coin/ClpCholeskyDense.hpp +157 -0
- casadi/include/coin/ClpCholeskyMumps.hpp +65 -0
- casadi/include/coin/ClpCholeskyPardiso.hpp +67 -0
- casadi/include/coin/ClpConfig.h +17 -0
- casadi/include/coin/ClpConstraint.hpp +129 -0
- casadi/include/coin/ClpConstraintAmpl.hpp +109 -0
- casadi/include/coin/ClpConstraintLinear.hpp +113 -0
- casadi/include/coin/ClpConstraintQuadratic.hpp +123 -0
- casadi/include/coin/ClpDualRowDantzig.hpp +72 -0
- casadi/include/coin/ClpDualRowPivot.hpp +136 -0
- casadi/include/coin/ClpDualRowSteepest.hpp +160 -0
- casadi/include/coin/ClpDummyMatrix.hpp +186 -0
- casadi/include/coin/ClpDynamicExampleMatrix.hpp +199 -0
- casadi/include/coin/ClpDynamicMatrix.hpp +420 -0
- casadi/include/coin/ClpEventHandler.hpp +193 -0
- casadi/include/coin/ClpFactorization.hpp +556 -0
- casadi/include/coin/ClpGubDynamicMatrix.hpp +270 -0
- casadi/include/coin/ClpGubMatrix.hpp +373 -0
- casadi/include/coin/ClpInterior.hpp +622 -0
- casadi/include/coin/ClpLinearObjective.hpp +104 -0
- casadi/include/coin/ClpMatrixBase.hpp +561 -0
- casadi/include/coin/ClpMessage.hpp +131 -0
- casadi/include/coin/ClpModel.hpp +1442 -0
- casadi/include/coin/ClpNetworkMatrix.hpp +235 -0
- casadi/include/coin/ClpNode.hpp +364 -0
- casadi/include/coin/ClpNonLinearCost.hpp +432 -0
- casadi/include/coin/ClpObjective.hpp +142 -0
- casadi/include/coin/ClpPEDualRowDantzig.hpp +84 -0
- casadi/include/coin/ClpPEDualRowSteepest.hpp +100 -0
- casadi/include/coin/ClpPEPrimalColumnDantzig.hpp +71 -0
- casadi/include/coin/ClpPEPrimalColumnSteepest.hpp +107 -0
- casadi/include/coin/ClpPESimplex.hpp +231 -0
- casadi/include/coin/ClpPackedMatrix.hpp +778 -0
- casadi/include/coin/ClpParameters.hpp +132 -0
- casadi/include/coin/ClpPdcoBase.hpp +110 -0
- casadi/include/coin/ClpPlusMinusOneMatrix.hpp +565 -0
- casadi/include/coin/ClpPresolve.hpp +379 -0
- casadi/include/coin/ClpPrimalColumnDantzig.hpp +74 -0
- casadi/include/coin/ClpPrimalColumnPivot.hpp +163 -0
- casadi/include/coin/ClpPrimalColumnSteepest.hpp +281 -0
- casadi/include/coin/ClpQuadraticObjective.hpp +161 -0
- casadi/include/coin/ClpSimplex.hpp +2137 -0
- casadi/include/coin/ClpSimplexDual.hpp +304 -0
- casadi/include/coin/ClpSimplexNonlinear.hpp +117 -0
- casadi/include/coin/ClpSimplexOther.hpp +282 -0
- casadi/include/coin/ClpSimplexPrimal.hpp +244 -0
- casadi/include/coin/ClpSolve.hpp +505 -0
- casadi/include/coin/Clp_C_Interface.h +554 -0
- casadi/include/coin/CoinAlloc.hpp +179 -0
- casadi/include/coin/CoinBuild.hpp +159 -0
- casadi/include/coin/CoinDenseFactorization.hpp +452 -0
- casadi/include/coin/CoinDenseVector.hpp +401 -0
- casadi/include/coin/CoinDistance.hpp +51 -0
- casadi/include/coin/CoinError.hpp +274 -0
- casadi/include/coin/CoinFactorization.hpp +2178 -0
- casadi/include/coin/CoinFileIO.hpp +185 -0
- casadi/include/coin/CoinFinite.hpp +37 -0
- casadi/include/coin/CoinFloatEqual.hpp +204 -0
- casadi/include/coin/CoinHelperFunctions.hpp +1270 -0
- casadi/include/coin/CoinIndexedVector.hpp +1437 -0
- casadi/include/coin/CoinLpIO.hpp +836 -0
- casadi/include/coin/CoinMessage.hpp +95 -0
- casadi/include/coin/CoinMessageHandler.hpp +717 -0
- casadi/include/coin/CoinModel.hpp +1214 -0
- casadi/include/coin/CoinModelUseful.hpp +518 -0
- casadi/include/coin/CoinMpsIO.hpp +1142 -0
- casadi/include/coin/CoinOslFactorization.hpp +287 -0
- casadi/include/coin/CoinPackedMatrix.hpp +956 -0
- casadi/include/coin/CoinPackedVector.hpp +670 -0
- casadi/include/coin/CoinPackedVectorBase.hpp +274 -0
- casadi/include/coin/CoinParam.hpp +644 -0
- casadi/include/coin/CoinPragma.hpp +29 -0
- casadi/include/coin/CoinPresolveDoubleton.hpp +76 -0
- casadi/include/coin/CoinPresolveDual.hpp +84 -0
- casadi/include/coin/CoinPresolveDupcol.hpp +259 -0
- casadi/include/coin/CoinPresolveEmpty.hpp +120 -0
- casadi/include/coin/CoinPresolveFixed.hpp +185 -0
- casadi/include/coin/CoinPresolveForcing.hpp +69 -0
- casadi/include/coin/CoinPresolveImpliedFree.hpp +66 -0
- casadi/include/coin/CoinPresolveIsolated.hpp +59 -0
- casadi/include/coin/CoinPresolveMatrix.hpp +1996 -0
- casadi/include/coin/CoinPresolveMonitor.hpp +105 -0
- casadi/include/coin/CoinPresolvePsdebug.hpp +169 -0
- casadi/include/coin/CoinPresolveSingleton.hpp +115 -0
- casadi/include/coin/CoinPresolveSubst.hpp +103 -0
- casadi/include/coin/CoinPresolveTighten.hpp +58 -0
- casadi/include/coin/CoinPresolveTripleton.hpp +69 -0
- casadi/include/coin/CoinPresolveUseless.hpp +63 -0
- casadi/include/coin/CoinPresolveZeros.hpp +65 -0
- casadi/include/coin/CoinRational.hpp +43 -0
- casadi/include/coin/CoinSearchTree.hpp +523 -0
- casadi/include/coin/CoinShallowPackedVector.hpp +149 -0
- casadi/include/coin/CoinSignal.hpp +127 -0
- casadi/include/coin/CoinSimpFactorization.hpp +432 -0
- casadi/include/coin/CoinSmartPtr.hpp +548 -0
- casadi/include/coin/CoinSnapshot.hpp +572 -0
- casadi/include/coin/CoinSort.hpp +753 -0
- casadi/include/coin/CoinStructuredModel.hpp +270 -0
- casadi/include/coin/CoinTime.hpp +350 -0
- casadi/include/coin/CoinTypes.hpp +67 -0
- casadi/include/coin/CoinUtility.hpp +26 -0
- casadi/include/coin/CoinUtilsConfig.h +34 -0
- casadi/include/coin/CoinWarmStart.hpp +56 -0
- casadi/include/coin/CoinWarmStartBasis.hpp +468 -0
- casadi/include/coin/CoinWarmStartDual.hpp +180 -0
- casadi/include/coin/CoinWarmStartPrimalDual.hpp +233 -0
- casadi/include/coin/CoinWarmStartVector.hpp +523 -0
- casadi/include/coin/Coin_C_defines.h +149 -0
- casadi/include/coin/Idiot.hpp +327 -0
- casadi/include/coin/OsiAuxInfo.hpp +261 -0
- casadi/include/coin/OsiBranchingObject.hpp +1097 -0
- casadi/include/coin/OsiCbcSolverInterface.hpp +791 -0
- casadi/include/coin/OsiChooseVariable.hpp +645 -0
- casadi/include/coin/OsiClpSolverInterface.hpp +1604 -0
- casadi/include/coin/OsiColCut.hpp +322 -0
- casadi/include/coin/OsiCollections.hpp +34 -0
- casadi/include/coin/OsiConfig.h +19 -0
- casadi/include/coin/OsiCut.hpp +251 -0
- casadi/include/coin/OsiCuts.hpp +505 -0
- casadi/include/coin/OsiPresolve.hpp +272 -0
- casadi/include/coin/OsiRowCut.hpp +345 -0
- casadi/include/coin/OsiRowCutDebugger.hpp +190 -0
- casadi/include/coin/OsiSolverBranch.hpp +169 -0
- casadi/include/coin/OsiSolverInterface.hpp +2221 -0
- casadi/include/coin/OsiSolverParameters.hpp +144 -0
- casadi/include/coin/OsiUnitTests.hpp +390 -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/d_blas.h +78 -0
- casadi/include/d_blas_64.h +73 -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/fatrop/auxiliary/Common.hpp +34 -0
- casadi/include/fatrop/auxiliary/DynamicLib.hpp +34 -0
- casadi/include/fatrop/auxiliary/FatropOptions.hpp +68 -0
- casadi/include/fatrop/auxiliary/FatropVector.hpp +143 -0
- casadi/include/fatrop/auxiliary/LinearAlgebra.hpp +88 -0
- casadi/include/fatrop/auxiliary/VectorUtils.hpp +54 -0
- casadi/include/fatrop/blasfeo_wrapper/LinearAlgebraBlasfeo.hpp +496 -0
- casadi/include/fatrop/fatrop.hpp +39 -0
- casadi/include/fatrop/function_evaluation/CasadiCodegen.hpp +104 -0
- casadi/include/fatrop/function_evaluation/FunctionEvaluation.hpp +60 -0
- casadi/include/fatrop/json/json.h +946 -0
- casadi/include/fatrop/ocp/CasadiCApiUserdataWrap.hpp +87 -0
- casadi/include/fatrop/ocp/DuInfEvaluator.hpp +38 -0
- casadi/include/fatrop/ocp/FatropOCP.hpp +161 -0
- casadi/include/fatrop/ocp/FatropOCPBuilder.hpp +52 -0
- casadi/include/fatrop/ocp/FatropOCPResto.hpp +299 -0
- casadi/include/fatrop/ocp/OCP.hpp +82 -0
- casadi/include/fatrop/ocp/OCPAbstract.hpp +254 -0
- casadi/include/fatrop/ocp/OCPAdapter.hpp +197 -0
- casadi/include/fatrop/ocp/OCPCInterface.h +289 -0
- casadi/include/fatrop/ocp/OCPDims.hpp +60 -0
- casadi/include/fatrop/ocp/OCPInitializer.hpp +41 -0
- casadi/include/fatrop/ocp/OCPKKT.hpp +69 -0
- casadi/include/fatrop/ocp/OCPLSRiccati.hpp +198 -0
- casadi/include/fatrop/ocp/OCPLSScaler.hpp +66 -0
- casadi/include/fatrop/ocp/OCPLinearSolver.hpp +75 -0
- casadi/include/fatrop/ocp/OCPNoScaling.hpp +42 -0
- casadi/include/fatrop/ocp/OCPScalingMethod.hpp +42 -0
- casadi/include/fatrop/ocp/StageOCP.hpp +592 -0
- casadi/include/fatrop/ocp/StageOCPApplication.hpp +242 -0
- casadi/include/fatrop/ocp/StageOCPExpressions.hpp +182 -0
- casadi/include/fatrop/ocp/UStageEvalAbstract.hpp +168 -0
- casadi/include/fatrop/ocp/UStageOCPImpl.hpp +152 -0
- casadi/include/fatrop/quasi_newton/bfgs.hpp +159 -0
- casadi/include/fatrop/solver/AlgBuilder.hpp +76 -0
- casadi/include/fatrop/solver/AlgStrategy.hpp +33 -0
- casadi/include/fatrop/solver/FatropAlg.hpp +121 -0
- casadi/include/fatrop/solver/FatropData.hpp +188 -0
- casadi/include/fatrop/solver/FatropOptions.hpp +95 -0
- casadi/include/fatrop/solver/FatropPrinter.hpp +65 -0
- casadi/include/fatrop/solver/FatropStats.hpp +63 -0
- casadi/include/fatrop/solver/Filter.hpp +54 -0
- casadi/include/fatrop/solver/IterationData.hpp +56 -0
- casadi/include/fatrop/solver/LineSearch.hpp +86 -0
- casadi/include/fatrop/solver/NLPL1.hpp +263 -0
- casadi/include/fatrop/templates/NLPAlg.hpp +104 -0
- casadi/include/ghc/filesystem.hpp +6083 -0
- casadi/include/ghc/fs_fwd.hpp +38 -0
- casadi/include/ghc/fs_impl.hpp +35 -0
- casadi/include/ghc/fs_std.hpp +60 -0
- casadi/include/ghc/fs_std_fwd.hpp +63 -0
- casadi/include/ghc/fs_std_impl.hpp +46 -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/highs_export.h +43 -0
- casadi/include/hpipm_aux_mem.h +52 -0
- casadi/include/hpipm_aux_string.h +50 -0
- casadi/include/hpipm_common.h +76 -0
- casadi/include/hpipm_d_cast_qcqp.h +71 -0
- casadi/include/hpipm_d_cond.h +135 -0
- casadi/include/hpipm_d_cond_aux.h +92 -0
- casadi/include/hpipm_d_cond_qcqp.h +129 -0
- casadi/include/hpipm_d_core_qp_ipm.h +101 -0
- casadi/include/hpipm_d_core_qp_ipm_aux.h +68 -0
- casadi/include/hpipm_d_dense_qcqp.h +199 -0
- casadi/include/hpipm_d_dense_qcqp_dim.h +98 -0
- casadi/include/hpipm_d_dense_qcqp_ipm.h +193 -0
- casadi/include/hpipm_d_dense_qcqp_res.h +108 -0
- casadi/include/hpipm_d_dense_qcqp_sol.h +85 -0
- casadi/include/hpipm_d_dense_qcqp_utils.h +82 -0
- casadi/include/hpipm_d_dense_qp.h +207 -0
- casadi/include/hpipm_d_dense_qp_dim.h +92 -0
- casadi/include/hpipm_d_dense_qp_ipm.h +260 -0
- casadi/include/hpipm_d_dense_qp_kkt.h +72 -0
- casadi/include/hpipm_d_dense_qp_res.h +106 -0
- casadi/include/hpipm_d_dense_qp_sol.h +94 -0
- casadi/include/hpipm_d_dense_qp_utils.h +83 -0
- casadi/include/hpipm_d_ocp_qcqp.h +322 -0
- casadi/include/hpipm_d_ocp_qcqp_dim.h +130 -0
- casadi/include/hpipm_d_ocp_qcqp_ipm.h +192 -0
- casadi/include/hpipm_d_ocp_qcqp_red.h +118 -0
- casadi/include/hpipm_d_ocp_qcqp_res.h +115 -0
- casadi/include/hpipm_d_ocp_qcqp_sol.h +114 -0
- casadi/include/hpipm_d_ocp_qcqp_utils.h +81 -0
- casadi/include/hpipm_d_ocp_qp.h +306 -0
- casadi/include/hpipm_d_ocp_qp_dim.h +142 -0
- casadi/include/hpipm_d_ocp_qp_ipm.h +252 -0
- casadi/include/hpipm_d_ocp_qp_kkt.h +66 -0
- casadi/include/hpipm_d_ocp_qp_red.h +117 -0
- casadi/include/hpipm_d_ocp_qp_res.h +113 -0
- casadi/include/hpipm_d_ocp_qp_sol.h +128 -0
- casadi/include/hpipm_d_ocp_qp_utils.h +82 -0
- casadi/include/hpipm_d_part_cond.h +115 -0
- casadi/include/hpipm_d_part_cond_qcqp.h +106 -0
- casadi/include/hpipm_d_sim_erk.h +122 -0
- casadi/include/hpipm_d_sim_rk.h +71 -0
- casadi/include/hpipm_d_tree_ocp_qcqp.h +213 -0
- casadi/include/hpipm_d_tree_ocp_qcqp_dim.h +117 -0
- casadi/include/hpipm_d_tree_ocp_qcqp_ipm.h +191 -0
- casadi/include/hpipm_d_tree_ocp_qcqp_res.h +109 -0
- casadi/include/hpipm_d_tree_ocp_qcqp_sol.h +99 -0
- casadi/include/hpipm_d_tree_ocp_qcqp_utils.h +84 -0
- casadi/include/hpipm_d_tree_ocp_qp.h +195 -0
- casadi/include/hpipm_d_tree_ocp_qp_dim.h +111 -0
- casadi/include/hpipm_d_tree_ocp_qp_ipm.h +209 -0
- casadi/include/hpipm_d_tree_ocp_qp_kkt.h +52 -0
- casadi/include/hpipm_d_tree_ocp_qp_res.h +107 -0
- casadi/include/hpipm_d_tree_ocp_qp_sol.h +100 -0
- casadi/include/hpipm_d_tree_ocp_qp_utils.h +83 -0
- casadi/include/hpipm_m_dense_qp.h +68 -0
- casadi/include/hpipm_m_dense_qp_dim.h +68 -0
- casadi/include/hpipm_m_ocp_qp.h +49 -0
- casadi/include/hpipm_m_ocp_qp_ipm_hard.h +115 -0
- casadi/include/hpipm_m_ocp_qp_kkt.h +45 -0
- casadi/include/hpipm_s_cast_qcqp.h +72 -0
- casadi/include/hpipm_s_cond.h +137 -0
- casadi/include/hpipm_s_cond_aux.h +92 -0
- casadi/include/hpipm_s_cond_qcqp.h +130 -0
- casadi/include/hpipm_s_core_qp_ipm.h +101 -0
- casadi/include/hpipm_s_core_qp_ipm_aux.h +68 -0
- casadi/include/hpipm_s_dense_qcqp.h +200 -0
- casadi/include/hpipm_s_dense_qcqp_dim.h +99 -0
- casadi/include/hpipm_s_dense_qcqp_ipm.h +204 -0
- casadi/include/hpipm_s_dense_qcqp_res.h +109 -0
- casadi/include/hpipm_s_dense_qcqp_sol.h +86 -0
- casadi/include/hpipm_s_dense_qcqp_utils.h +83 -0
- casadi/include/hpipm_s_dense_qp.h +207 -0
- casadi/include/hpipm_s_dense_qp_dim.h +94 -0
- casadi/include/hpipm_s_dense_qp_ipm.h +260 -0
- casadi/include/hpipm_s_dense_qp_kkt.h +72 -0
- casadi/include/hpipm_s_dense_qp_res.h +107 -0
- casadi/include/hpipm_s_dense_qp_sol.h +94 -0
- casadi/include/hpipm_s_dense_qp_utils.h +84 -0
- casadi/include/hpipm_s_ocp_qcqp.h +322 -0
- casadi/include/hpipm_s_ocp_qcqp_dim.h +131 -0
- casadi/include/hpipm_s_ocp_qcqp_ipm.h +193 -0
- casadi/include/hpipm_s_ocp_qcqp_red.h +119 -0
- casadi/include/hpipm_s_ocp_qcqp_res.h +116 -0
- casadi/include/hpipm_s_ocp_qcqp_sol.h +115 -0
- casadi/include/hpipm_s_ocp_qcqp_utils.h +82 -0
- casadi/include/hpipm_s_ocp_qp.h +306 -0
- casadi/include/hpipm_s_ocp_qp_dim.h +141 -0
- casadi/include/hpipm_s_ocp_qp_ipm.h +252 -0
- casadi/include/hpipm_s_ocp_qp_kkt.h +66 -0
- casadi/include/hpipm_s_ocp_qp_red.h +118 -0
- casadi/include/hpipm_s_ocp_qp_res.h +115 -0
- casadi/include/hpipm_s_ocp_qp_sol.h +128 -0
- casadi/include/hpipm_s_ocp_qp_utils.h +83 -0
- casadi/include/hpipm_s_part_cond.h +115 -0
- casadi/include/hpipm_s_part_cond_qcqp.h +107 -0
- casadi/include/hpipm_s_sim_erk.h +121 -0
- casadi/include/hpipm_s_sim_rk.h +72 -0
- casadi/include/hpipm_s_tree_ocp_qcqp.h +213 -0
- casadi/include/hpipm_s_tree_ocp_qcqp_dim.h +118 -0
- casadi/include/hpipm_s_tree_ocp_qcqp_ipm.h +192 -0
- casadi/include/hpipm_s_tree_ocp_qcqp_res.h +110 -0
- casadi/include/hpipm_s_tree_ocp_qcqp_sol.h +97 -0
- casadi/include/hpipm_s_tree_ocp_qcqp_utils.h +85 -0
- casadi/include/hpipm_s_tree_ocp_qp.h +196 -0
- casadi/include/hpipm_s_tree_ocp_qp_dim.h +111 -0
- casadi/include/hpipm_s_tree_ocp_qp_ipm.h +208 -0
- casadi/include/hpipm_s_tree_ocp_qp_kkt.h +54 -0
- casadi/include/hpipm_s_tree_ocp_qp_res.h +108 -0
- casadi/include/hpipm_s_tree_ocp_qp_sol.h +98 -0
- casadi/include/hpipm_s_tree_ocp_qp_utils.h +84 -0
- casadi/include/hpipm_scenario_tree.h +70 -0
- casadi/include/hpipm_timing.h +67 -0
- casadi/include/hpipm_tree.h +76 -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/blasfeo-external/LICENSE.txt +26 -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/fatrop-external/LICENSE.txt +165 -0
- casadi/include/licenses/fatrop-external/external/blasfeo/LICENSE.txt +26 -0
- casadi/include/licenses/fatrop-external/external/pybind11/LICENSE +29 -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/hpipm-external/LICENSE.txt +26 -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/openblas/cblas.h +411 -0
- casadi/include/openblas/f77blas.h +796 -0
- casadi/include/openblas/lapack.h +22997 -0
- casadi/include/openblas/lapacke.h +12665 -0
- casadi/include/openblas/lapacke_config.h +119 -0
- casadi/include/openblas/lapacke_example_aux.h +9 -0
- casadi/include/openblas/lapacke_mangling.h +17 -0
- casadi/include/openblas/lapacke_utils.h +582 -0
- casadi/include/openblas/openblas/lapacke_mangling.h +17 -0
- casadi/include/openblas/openblas_config.h +139 -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/qdldl/qdldl.h +169 -0
- casadi/include/qdldl/qdldl_types.h +23 -0
- casadi/include/s_blas.h +78 -0
- casadi/include/s_blas_64.h +73 -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/sleqp/defs.h +58 -0
- casadi/include/sleqp/export.h +43 -0
- casadi/include/sleqp/pub_cmp.h +18 -0
- casadi/include/sleqp/pub_dyn.h +140 -0
- casadi/include/sleqp/pub_error.h +50 -0
- casadi/include/sleqp/pub_func.h +257 -0
- casadi/include/sleqp/pub_hess_struct.h +105 -0
- casadi/include/sleqp/pub_iterate.h +88 -0
- casadi/include/sleqp/pub_log.h +88 -0
- casadi/include/sleqp/pub_lsq.h +158 -0
- casadi/include/sleqp/pub_mem.h +52 -0
- casadi/include/sleqp/pub_problem.h +213 -0
- casadi/include/sleqp/pub_scale.h +150 -0
- casadi/include/sleqp/pub_settings.h +162 -0
- casadi/include/sleqp/pub_solver.h +155 -0
- casadi/include/sleqp/pub_types.h +230 -0
- casadi/include/sleqp/pub_working_set.h +135 -0
- casadi/include/sleqp/sparse/pub_mat.h +153 -0
- casadi/include/sleqp/sparse/pub_vec.h +336 -0
- casadi/include/sleqp.h +38 -0
- casadi/include/spral.h +13 -0
- casadi/include/spral_lsmr.h +57 -0
- casadi/include/spral_matrix_util.h +40 -0
- casadi/include/spral_random.h +26 -0
- casadi/include/spral_random_matrix.h +27 -0
- casadi/include/spral_rutherford_boeing.h +51 -0
- casadi/include/spral_scaling.h +139 -0
- casadi/include/spral_ssids.h +121 -0
- casadi/include/spral_ssmfe.h +268 -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/include/trlib.h +44 -0
- casadi/include/zconf.h +545 -0
- casadi/include/zip.h +528 -0
- casadi/include/zipconf.h +48 -0
- casadi/include/zlib.h +1938 -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/libblasfeo.so +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_cplex.so +0 -0
- casadi/libcasadi_conic_cplex.so.3.7 +0 -0
- casadi/libcasadi_conic_daqp.so +0 -0
- casadi/libcasadi_conic_daqp.so.3.7 +0 -0
- casadi/libcasadi_conic_fatrop.so +0 -0
- casadi/libcasadi_conic_fatrop.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_hpipm.so +0 -0
- casadi/libcasadi_conic_hpipm.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_fatrop.so +0 -0
- casadi/libcasadi_nlpsol_fatrop.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/libcplex_adaptor.so +0 -0
- casadi/libdaqp.so +0 -0
- casadi/libdaqpstat.a +0 -0
- casadi/libfatrop.so +0 -0
- casadi/libgfortran-040039e1.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/libhpipm.so +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-96973f99.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/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 +2377 -0
- casadi-3.7.2.dist-info/WHEEL +4 -0
- dummy.txt +1 -0
@@ -0,0 +1,2472 @@
|
|
1
|
+
|
2
|
+
///
|
3
|
+
// optional - An implementation of std::optional with extensions
|
4
|
+
// Written in 2017 by Sy Brand (tartanllama@gmail.com, @TartanLlama)
|
5
|
+
//
|
6
|
+
// Documentation available at https://tl.tartanllama.xyz/
|
7
|
+
//
|
8
|
+
// To the extent possible under law, the author(s) have dedicated all
|
9
|
+
// copyright and related and neighboring rights to this software to the
|
10
|
+
// public domain worldwide. This software is distributed without any warranty.
|
11
|
+
//
|
12
|
+
// You should have received a copy of the CC0 Public Domain Dedication
|
13
|
+
// along with this software. If not, see
|
14
|
+
// <http://creativecommons.org/publicdomain/zero/1.0/>.
|
15
|
+
///
|
16
|
+
|
17
|
+
#ifndef TL_OPTIONAL_HPP
|
18
|
+
#define TL_OPTIONAL_HPP
|
19
|
+
|
20
|
+
#define TL_OPTIONAL_VERSION_MAJOR 1
|
21
|
+
#define TL_OPTIONAL_VERSION_MINOR 0
|
22
|
+
#define TL_OPTIONAL_VERSION_PATCH 0
|
23
|
+
|
24
|
+
#include <exception>
|
25
|
+
#include <functional>
|
26
|
+
#include <new>
|
27
|
+
#include <type_traits>
|
28
|
+
#include <utility>
|
29
|
+
|
30
|
+
#if (defined(_MSC_VER) && _MSC_VER == 1900)
|
31
|
+
#define TL_OPTIONAL_MSVC2015
|
32
|
+
#endif
|
33
|
+
|
34
|
+
#if (defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ <= 9 && \
|
35
|
+
!defined(__clang__))
|
36
|
+
#define TL_OPTIONAL_GCC49
|
37
|
+
#endif
|
38
|
+
|
39
|
+
#if (defined(__GNUC__) && __GNUC__ == 5 && __GNUC_MINOR__ <= 4 && \
|
40
|
+
!defined(__clang__))
|
41
|
+
#define TL_OPTIONAL_GCC54
|
42
|
+
#endif
|
43
|
+
|
44
|
+
#if (defined(__GNUC__) && __GNUC__ == 5 && __GNUC_MINOR__ <= 5 && \
|
45
|
+
!defined(__clang__))
|
46
|
+
#define TL_OPTIONAL_GCC55
|
47
|
+
#endif
|
48
|
+
|
49
|
+
#if (defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ <= 9 && \
|
50
|
+
!defined(__clang__))
|
51
|
+
// GCC < 5 doesn't support overloading on const&& for member functions
|
52
|
+
#define TL_OPTIONAL_NO_CONSTRR
|
53
|
+
|
54
|
+
// GCC < 5 doesn't support some standard C++11 type traits
|
55
|
+
#define TL_OPTIONAL_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) \
|
56
|
+
std::has_trivial_copy_constructor<T>::value
|
57
|
+
#define TL_OPTIONAL_IS_TRIVIALLY_COPY_ASSIGNABLE(T) \
|
58
|
+
std::has_trivial_copy_assign<T>::value
|
59
|
+
|
60
|
+
// This one will be different for GCC 5.7 if it's ever supported
|
61
|
+
#define TL_OPTIONAL_IS_TRIVIALLY_DESTRUCTIBLE(T) \
|
62
|
+
std::is_trivially_destructible<T>::value
|
63
|
+
|
64
|
+
// GCC 5 < v < 8 has a bug in is_trivially_copy_constructible which breaks
|
65
|
+
// std::vector for non-copyable types
|
66
|
+
#elif (defined(__GNUC__) && __GNUC__ < 8 && !defined(__clang__))
|
67
|
+
#ifndef TL_GCC_LESS_8_TRIVIALLY_COPY_CONSTRUCTIBLE_MUTEX
|
68
|
+
#define TL_GCC_LESS_8_TRIVIALLY_COPY_CONSTRUCTIBLE_MUTEX
|
69
|
+
namespace tl {
|
70
|
+
namespace detail {
|
71
|
+
template<class T>
|
72
|
+
struct is_trivially_copy_constructible : std::is_trivially_copy_constructible<T>
|
73
|
+
{};
|
74
|
+
#ifdef _GLIBCXX_VECTOR
|
75
|
+
template<class T, class A>
|
76
|
+
struct is_trivially_copy_constructible<std::vector<T, A>>
|
77
|
+
: std::is_trivially_copy_constructible<T>
|
78
|
+
{};
|
79
|
+
#endif
|
80
|
+
}
|
81
|
+
}
|
82
|
+
#endif
|
83
|
+
|
84
|
+
#define TL_OPTIONAL_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) \
|
85
|
+
tl::detail::is_trivially_copy_constructible<T>::value
|
86
|
+
#define TL_OPTIONAL_IS_TRIVIALLY_COPY_ASSIGNABLE(T) \
|
87
|
+
std::is_trivially_copy_assignable<T>::value
|
88
|
+
#define TL_OPTIONAL_IS_TRIVIALLY_DESTRUCTIBLE(T) \
|
89
|
+
std::is_trivially_destructible<T>::value
|
90
|
+
#else
|
91
|
+
#define TL_OPTIONAL_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) \
|
92
|
+
std::is_trivially_copy_constructible<T>::value
|
93
|
+
#define TL_OPTIONAL_IS_TRIVIALLY_COPY_ASSIGNABLE(T) \
|
94
|
+
std::is_trivially_copy_assignable<T>::value
|
95
|
+
#define TL_OPTIONAL_IS_TRIVIALLY_DESTRUCTIBLE(T) \
|
96
|
+
std::is_trivially_destructible<T>::value
|
97
|
+
#endif
|
98
|
+
|
99
|
+
#if __cplusplus > 201103L
|
100
|
+
#define TL_OPTIONAL_CXX14
|
101
|
+
#endif
|
102
|
+
|
103
|
+
// constexpr implies const in C++11, not C++14
|
104
|
+
#if (__cplusplus == 201103L || defined(TL_OPTIONAL_MSVC2015) || \
|
105
|
+
defined(TL_OPTIONAL_GCC49))
|
106
|
+
#define TL_OPTIONAL_11_CONSTEXPR
|
107
|
+
#else
|
108
|
+
#define TL_OPTIONAL_11_CONSTEXPR constexpr
|
109
|
+
#endif
|
110
|
+
|
111
|
+
namespace tl {
|
112
|
+
#ifndef TL_MONOSTATE_INPLACE_MUTEX
|
113
|
+
#define TL_MONOSTATE_INPLACE_MUTEX
|
114
|
+
/// Used to represent an optional with no data; essentially a bool
|
115
|
+
class monostate
|
116
|
+
{};
|
117
|
+
|
118
|
+
/// A tag type to tell optional to construct its value in-place
|
119
|
+
struct in_place_t
|
120
|
+
{
|
121
|
+
explicit in_place_t() = default;
|
122
|
+
};
|
123
|
+
/// A tag to tell optional to construct its value in-place
|
124
|
+
static constexpr in_place_t in_place{};
|
125
|
+
#endif
|
126
|
+
|
127
|
+
template<class T>
|
128
|
+
class optional;
|
129
|
+
|
130
|
+
namespace detail {
|
131
|
+
#ifndef TL_TRAITS_MUTEX
|
132
|
+
#define TL_TRAITS_MUTEX
|
133
|
+
// C++14-style aliases for brevity
|
134
|
+
template<class T>
|
135
|
+
using remove_const_t = typename std::remove_const<T>::type;
|
136
|
+
template<class T>
|
137
|
+
using remove_reference_t = typename std::remove_reference<T>::type;
|
138
|
+
template<class T>
|
139
|
+
using decay_t = typename std::decay<T>::type;
|
140
|
+
template<bool E, class T = void>
|
141
|
+
using enable_if_t = typename std::enable_if<E, T>::type;
|
142
|
+
template<bool B, class T, class F>
|
143
|
+
using conditional_t = typename std::conditional<B, T, F>::type;
|
144
|
+
|
145
|
+
// std::conjunction from C++17
|
146
|
+
template<class...>
|
147
|
+
struct conjunction : std::true_type
|
148
|
+
{};
|
149
|
+
template<class B>
|
150
|
+
struct conjunction<B> : B
|
151
|
+
{};
|
152
|
+
template<class B, class... Bs>
|
153
|
+
struct conjunction<B, Bs...>
|
154
|
+
: std::conditional<bool(B::value), conjunction<Bs...>, B>::type
|
155
|
+
{};
|
156
|
+
|
157
|
+
#if defined(_LIBCPP_VERSION) && __cplusplus == 201103L
|
158
|
+
#define TL_TRAITS_LIBCXX_MEM_FN_WORKAROUND
|
159
|
+
#endif
|
160
|
+
|
161
|
+
// In C++11 mode, there's an issue in libc++'s std::mem_fn
|
162
|
+
// which results in a hard-error when using it in a noexcept expression
|
163
|
+
// in some cases. This is a check to workaround the common failing case.
|
164
|
+
#ifdef TL_TRAITS_LIBCXX_MEM_FN_WORKAROUND
|
165
|
+
template<class T>
|
166
|
+
struct is_pointer_to_non_const_member_func : std::false_type
|
167
|
+
{};
|
168
|
+
template<class T, class Ret, class... Args>
|
169
|
+
struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...)> : std::true_type
|
170
|
+
{};
|
171
|
+
template<class T, class Ret, class... Args>
|
172
|
+
struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...)&>
|
173
|
+
: std::true_type
|
174
|
+
{};
|
175
|
+
template<class T, class Ret, class... Args>
|
176
|
+
struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...) &&>
|
177
|
+
: std::true_type
|
178
|
+
{};
|
179
|
+
template<class T, class Ret, class... Args>
|
180
|
+
struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...) volatile>
|
181
|
+
: std::true_type
|
182
|
+
{};
|
183
|
+
template<class T, class Ret, class... Args>
|
184
|
+
struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...) volatile&>
|
185
|
+
: std::true_type
|
186
|
+
{};
|
187
|
+
template<class T, class Ret, class... Args>
|
188
|
+
struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...) volatile&&>
|
189
|
+
: std::true_type
|
190
|
+
{};
|
191
|
+
|
192
|
+
template<class T>
|
193
|
+
struct is_const_or_const_ref : std::false_type
|
194
|
+
{};
|
195
|
+
template<class T>
|
196
|
+
struct is_const_or_const_ref<T const&> : std::true_type
|
197
|
+
{};
|
198
|
+
template<class T>
|
199
|
+
struct is_const_or_const_ref<T const> : std::true_type
|
200
|
+
{};
|
201
|
+
#endif
|
202
|
+
|
203
|
+
// std::invoke from C++17
|
204
|
+
// https://stackoverflow.com/questions/38288042/c11-14-invoke-workaround
|
205
|
+
template<
|
206
|
+
typename Fn,
|
207
|
+
typename... Args,
|
208
|
+
#ifdef TL_TRAITS_LIBCXX_MEM_FN_WORKAROUND
|
209
|
+
typename = enable_if_t<!(is_pointer_to_non_const_member_func<Fn>::value &&
|
210
|
+
is_const_or_const_ref<Args...>::value)>,
|
211
|
+
#endif
|
212
|
+
typename = enable_if_t<std::is_member_pointer<decay_t<Fn>>::value>,
|
213
|
+
int = 0>
|
214
|
+
constexpr auto
|
215
|
+
invoke(Fn&& f, Args&&... args) noexcept(
|
216
|
+
noexcept(std::mem_fn(f)(std::forward<Args>(args)...)))
|
217
|
+
-> decltype(std::mem_fn(f)(std::forward<Args>(args)...))
|
218
|
+
{
|
219
|
+
return std::mem_fn(f)(std::forward<Args>(args)...);
|
220
|
+
}
|
221
|
+
|
222
|
+
template<typename Fn,
|
223
|
+
typename... Args,
|
224
|
+
typename = enable_if_t<!std::is_member_pointer<decay_t<Fn>>::value>>
|
225
|
+
constexpr auto
|
226
|
+
invoke(Fn&& f, Args&&... args) noexcept(
|
227
|
+
noexcept(std::forward<Fn>(f)(std::forward<Args>(args)...)))
|
228
|
+
-> decltype(std::forward<Fn>(f)(std::forward<Args>(args)...))
|
229
|
+
{
|
230
|
+
return std::forward<Fn>(f)(std::forward<Args>(args)...);
|
231
|
+
}
|
232
|
+
|
233
|
+
// std::invoke_result from C++17
|
234
|
+
template<class F, class, class... Us>
|
235
|
+
struct invoke_result_impl;
|
236
|
+
|
237
|
+
template<class F, class... Us>
|
238
|
+
struct invoke_result_impl<
|
239
|
+
F,
|
240
|
+
decltype(detail::invoke(std::declval<F>(), std::declval<Us>()...), void()),
|
241
|
+
Us...>
|
242
|
+
{
|
243
|
+
using type =
|
244
|
+
decltype(detail::invoke(std::declval<F>(), std::declval<Us>()...));
|
245
|
+
};
|
246
|
+
|
247
|
+
template<class F, class... Us>
|
248
|
+
using invoke_result = invoke_result_impl<F, void, Us...>;
|
249
|
+
|
250
|
+
template<class F, class... Us>
|
251
|
+
using invoke_result_t = typename invoke_result<F, Us...>::type;
|
252
|
+
|
253
|
+
#if defined(_MSC_VER) && _MSC_VER <= 1900
|
254
|
+
// TODO make a version which works with MSVC 2015
|
255
|
+
template<class T, class U = T>
|
256
|
+
struct is_swappable : std::true_type
|
257
|
+
{};
|
258
|
+
|
259
|
+
template<class T, class U = T>
|
260
|
+
struct is_nothrow_swappable : std::true_type
|
261
|
+
{};
|
262
|
+
#else
|
263
|
+
// https://stackoverflow.com/questions/26744589/what-is-a-proper-way-to-implement-is-swappable-to-test-for-the-swappable-concept
|
264
|
+
namespace swap_adl_tests {
|
265
|
+
// if swap ADL finds this then it would call std::swap otherwise (same
|
266
|
+
// signature)
|
267
|
+
struct tag
|
268
|
+
{};
|
269
|
+
|
270
|
+
template<class T>
|
271
|
+
tag
|
272
|
+
swap(T&, T&);
|
273
|
+
template<class T, std::size_t N>
|
274
|
+
tag swap(T (&a)[N], T (&b)[N]);
|
275
|
+
|
276
|
+
// helper functions to test if an unqualified swap is possible, and if it
|
277
|
+
// becomes std::swap
|
278
|
+
template<class, class>
|
279
|
+
std::false_type
|
280
|
+
can_swap(...) noexcept(false);
|
281
|
+
template<class T,
|
282
|
+
class U,
|
283
|
+
class = decltype(swap(std::declval<T&>(), std::declval<U&>()))>
|
284
|
+
std::true_type
|
285
|
+
can_swap(int) noexcept(noexcept(swap(std::declval<T&>(), std::declval<U&>())));
|
286
|
+
|
287
|
+
template<class, class>
|
288
|
+
std::false_type
|
289
|
+
uses_std(...);
|
290
|
+
template<class T, class U>
|
291
|
+
std::is_same<decltype(swap(std::declval<T&>(), std::declval<U&>())), tag>
|
292
|
+
uses_std(int);
|
293
|
+
|
294
|
+
template<class T>
|
295
|
+
struct is_std_swap_noexcept
|
296
|
+
: std::integral_constant<bool,
|
297
|
+
std::is_nothrow_move_constructible<T>::value &&
|
298
|
+
std::is_nothrow_move_assignable<T>::value>
|
299
|
+
{};
|
300
|
+
|
301
|
+
template<class T, std::size_t N>
|
302
|
+
struct is_std_swap_noexcept<T[N]> : is_std_swap_noexcept<T>
|
303
|
+
{};
|
304
|
+
|
305
|
+
template<class T, class U>
|
306
|
+
struct is_adl_swap_noexcept
|
307
|
+
: std::integral_constant<bool, noexcept(can_swap<T, U>(0))>
|
308
|
+
{};
|
309
|
+
} // namespace swap_adl_tests
|
310
|
+
|
311
|
+
template<class T, class U = T>
|
312
|
+
struct is_swappable
|
313
|
+
: std::integral_constant<
|
314
|
+
bool,
|
315
|
+
decltype(detail::swap_adl_tests::can_swap<T, U>(0))::value &&
|
316
|
+
(!decltype(detail::swap_adl_tests::uses_std<T, U>(0))::value ||
|
317
|
+
(std::is_move_assignable<T>::value &&
|
318
|
+
std::is_move_constructible<T>::value))>
|
319
|
+
{};
|
320
|
+
|
321
|
+
template<class T, std::size_t N>
|
322
|
+
struct is_swappable<T[N], T[N]>
|
323
|
+
: std::integral_constant<
|
324
|
+
bool,
|
325
|
+
decltype(detail::swap_adl_tests::can_swap<T[N], T[N]>(0))::value &&
|
326
|
+
(!decltype(detail::swap_adl_tests::uses_std<T[N], T[N]>(0))::value ||
|
327
|
+
is_swappable<T, T>::value)>
|
328
|
+
{};
|
329
|
+
|
330
|
+
template<class T, class U = T>
|
331
|
+
struct is_nothrow_swappable
|
332
|
+
: std::integral_constant<
|
333
|
+
bool,
|
334
|
+
is_swappable<T, U>::value &&
|
335
|
+
((decltype(detail::swap_adl_tests::uses_std<T, U>(0))::value &&
|
336
|
+
detail::swap_adl_tests::is_std_swap_noexcept<T>::value) ||
|
337
|
+
(!decltype(detail::swap_adl_tests::uses_std<T, U>(0))::value &&
|
338
|
+
detail::swap_adl_tests::is_adl_swap_noexcept<T, U>::value))>
|
339
|
+
{};
|
340
|
+
#endif
|
341
|
+
#endif
|
342
|
+
|
343
|
+
// std::void_t from C++17
|
344
|
+
template<class...>
|
345
|
+
struct voider
|
346
|
+
{
|
347
|
+
using type = void;
|
348
|
+
};
|
349
|
+
template<class... Ts>
|
350
|
+
using void_t = typename voider<Ts...>::type;
|
351
|
+
|
352
|
+
// Trait for checking if a type is a tl::optional
|
353
|
+
template<class T>
|
354
|
+
struct is_optional_impl : std::false_type
|
355
|
+
{};
|
356
|
+
template<class T>
|
357
|
+
struct is_optional_impl<optional<T>> : std::true_type
|
358
|
+
{};
|
359
|
+
template<class T>
|
360
|
+
using is_optional = is_optional_impl<decay_t<T>>;
|
361
|
+
|
362
|
+
// Change void to tl::monostate
|
363
|
+
template<class U>
|
364
|
+
using fixup_void = conditional_t<std::is_void<U>::value, monostate, U>;
|
365
|
+
|
366
|
+
template<class F, class U, class = invoke_result_t<F, U>>
|
367
|
+
using get_map_return = optional<fixup_void<invoke_result_t<F, U>>>;
|
368
|
+
|
369
|
+
// Check if invoking F for some Us returns void
|
370
|
+
template<class F, class = void, class... U>
|
371
|
+
struct returns_void_impl;
|
372
|
+
template<class F, class... U>
|
373
|
+
struct returns_void_impl<F, void_t<invoke_result_t<F, U...>>, U...>
|
374
|
+
: std::is_void<invoke_result_t<F, U...>>
|
375
|
+
{};
|
376
|
+
template<class F, class... U>
|
377
|
+
using returns_void = returns_void_impl<F, void, U...>;
|
378
|
+
|
379
|
+
template<class T, class... U>
|
380
|
+
using enable_if_ret_void = enable_if_t<returns_void<T&&, U...>::value>;
|
381
|
+
|
382
|
+
template<class T, class... U>
|
383
|
+
using disable_if_ret_void = enable_if_t<!returns_void<T&&, U...>::value>;
|
384
|
+
|
385
|
+
template<class T, class U>
|
386
|
+
using enable_forward_value =
|
387
|
+
detail::enable_if_t<std::is_constructible<T, U&&>::value &&
|
388
|
+
!std::is_same<detail::decay_t<U>, in_place_t>::value &&
|
389
|
+
!std::is_same<optional<T>, detail::decay_t<U>>::value>;
|
390
|
+
|
391
|
+
template<class T, class U, class Other>
|
392
|
+
using enable_from_other =
|
393
|
+
detail::enable_if_t<std::is_constructible<T, Other>::value &&
|
394
|
+
!std::is_constructible<T, optional<U>&>::value &&
|
395
|
+
!std::is_constructible<T, optional<U>&&>::value &&
|
396
|
+
!std::is_constructible<T, const optional<U>&>::value &&
|
397
|
+
!std::is_constructible<T, const optional<U>&&>::value &&
|
398
|
+
!std::is_convertible<optional<U>&, T>::value &&
|
399
|
+
!std::is_convertible<optional<U>&&, T>::value &&
|
400
|
+
!std::is_convertible<const optional<U>&, T>::value &&
|
401
|
+
!std::is_convertible<const optional<U>&&, T>::value>;
|
402
|
+
|
403
|
+
template<class T, class U>
|
404
|
+
using enable_assign_forward = detail::enable_if_t<
|
405
|
+
!std::is_same<optional<T>, detail::decay_t<U>>::value &&
|
406
|
+
!detail::conjunction<std::is_scalar<T>,
|
407
|
+
std::is_same<T, detail::decay_t<U>>>::value &&
|
408
|
+
std::is_constructible<T, U>::value && std::is_assignable<T&, U>::value>;
|
409
|
+
|
410
|
+
template<class T, class U, class Other>
|
411
|
+
using enable_assign_from_other =
|
412
|
+
detail::enable_if_t<std::is_constructible<T, Other>::value &&
|
413
|
+
std::is_assignable<T&, Other>::value &&
|
414
|
+
!std::is_constructible<T, optional<U>&>::value &&
|
415
|
+
!std::is_constructible<T, optional<U>&&>::value &&
|
416
|
+
!std::is_constructible<T, const optional<U>&>::value &&
|
417
|
+
!std::is_constructible<T, const optional<U>&&>::value &&
|
418
|
+
!std::is_convertible<optional<U>&, T>::value &&
|
419
|
+
!std::is_convertible<optional<U>&&, T>::value &&
|
420
|
+
!std::is_convertible<const optional<U>&, T>::value &&
|
421
|
+
!std::is_convertible<const optional<U>&&, T>::value &&
|
422
|
+
!std::is_assignable<T&, optional<U>&>::value &&
|
423
|
+
!std::is_assignable<T&, optional<U>&&>::value &&
|
424
|
+
!std::is_assignable<T&, const optional<U>&>::value &&
|
425
|
+
!std::is_assignable<T&, const optional<U>&&>::value>;
|
426
|
+
|
427
|
+
// The storage base manages the actual storage, and correctly propagates
|
428
|
+
// trivial destruction from T. This case is for when T is not trivially
|
429
|
+
// destructible.
|
430
|
+
template<class T, bool = ::std::is_trivially_destructible<T>::value>
|
431
|
+
struct optional_storage_base
|
432
|
+
{
|
433
|
+
TL_OPTIONAL_11_CONSTEXPR optional_storage_base() noexcept
|
434
|
+
: m_dummy()
|
435
|
+
, m_has_value(false)
|
436
|
+
{
|
437
|
+
}
|
438
|
+
|
439
|
+
template<class... U>
|
440
|
+
TL_OPTIONAL_11_CONSTEXPR optional_storage_base(in_place_t, U&&... u)
|
441
|
+
: m_value(std::forward<U>(u)...)
|
442
|
+
, m_has_value(true)
|
443
|
+
{
|
444
|
+
}
|
445
|
+
|
446
|
+
~optional_storage_base()
|
447
|
+
{
|
448
|
+
if (m_has_value) {
|
449
|
+
m_value.~T();
|
450
|
+
m_has_value = false;
|
451
|
+
}
|
452
|
+
}
|
453
|
+
|
454
|
+
struct dummy
|
455
|
+
{};
|
456
|
+
union
|
457
|
+
{
|
458
|
+
dummy m_dummy;
|
459
|
+
T m_value;
|
460
|
+
};
|
461
|
+
|
462
|
+
bool m_has_value;
|
463
|
+
};
|
464
|
+
|
465
|
+
// This case is for when T is trivially destructible.
|
466
|
+
template<class T>
|
467
|
+
struct optional_storage_base<T, true>
|
468
|
+
{
|
469
|
+
TL_OPTIONAL_11_CONSTEXPR optional_storage_base() noexcept
|
470
|
+
: m_dummy()
|
471
|
+
, m_has_value(false)
|
472
|
+
{
|
473
|
+
}
|
474
|
+
|
475
|
+
template<class... U>
|
476
|
+
TL_OPTIONAL_11_CONSTEXPR optional_storage_base(in_place_t, U&&... u)
|
477
|
+
: m_value(std::forward<U>(u)...)
|
478
|
+
, m_has_value(true)
|
479
|
+
{
|
480
|
+
}
|
481
|
+
|
482
|
+
// No destructor, so this class is trivially destructible
|
483
|
+
|
484
|
+
struct dummy
|
485
|
+
{};
|
486
|
+
union
|
487
|
+
{
|
488
|
+
dummy m_dummy;
|
489
|
+
T m_value;
|
490
|
+
};
|
491
|
+
|
492
|
+
bool m_has_value = false;
|
493
|
+
};
|
494
|
+
|
495
|
+
// This base class provides some handy member functions which can be used in
|
496
|
+
// further derived classes
|
497
|
+
template<class T>
|
498
|
+
struct optional_operations_base : optional_storage_base<T>
|
499
|
+
{
|
500
|
+
using optional_storage_base<T>::optional_storage_base;
|
501
|
+
|
502
|
+
void hard_reset() noexcept
|
503
|
+
{
|
504
|
+
get().~T();
|
505
|
+
this->m_has_value = false;
|
506
|
+
}
|
507
|
+
|
508
|
+
template<class... Args>
|
509
|
+
void construct(Args&&... args) noexcept
|
510
|
+
{
|
511
|
+
new (std::addressof(this->m_value)) T(std::forward<Args>(args)...);
|
512
|
+
this->m_has_value = true;
|
513
|
+
}
|
514
|
+
|
515
|
+
template<class Opt>
|
516
|
+
void assign(Opt&& rhs)
|
517
|
+
{
|
518
|
+
if (this->has_value()) {
|
519
|
+
if (rhs.has_value()) {
|
520
|
+
this->m_value = std::forward<Opt>(rhs).get();
|
521
|
+
} else {
|
522
|
+
this->m_value.~T();
|
523
|
+
this->m_has_value = false;
|
524
|
+
}
|
525
|
+
}
|
526
|
+
|
527
|
+
else if (rhs.has_value()) {
|
528
|
+
construct(std::forward<Opt>(rhs).get());
|
529
|
+
}
|
530
|
+
}
|
531
|
+
|
532
|
+
bool has_value() const { return this->m_has_value; }
|
533
|
+
|
534
|
+
TL_OPTIONAL_11_CONSTEXPR T& get() & { return this->m_value; }
|
535
|
+
TL_OPTIONAL_11_CONSTEXPR const T& get() const& { return this->m_value; }
|
536
|
+
TL_OPTIONAL_11_CONSTEXPR T&& get() && { return std::move(this->m_value); }
|
537
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
538
|
+
constexpr const T&& get() const&& { return std::move(this->m_value); }
|
539
|
+
#endif
|
540
|
+
};
|
541
|
+
|
542
|
+
// This class manages conditionally having a trivial copy constructor
|
543
|
+
// This specialization is for when T is trivially copy constructible
|
544
|
+
template<class T, bool = TL_OPTIONAL_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T)>
|
545
|
+
struct optional_copy_base : optional_operations_base<T>
|
546
|
+
{
|
547
|
+
using optional_operations_base<T>::optional_operations_base;
|
548
|
+
};
|
549
|
+
|
550
|
+
// This specialization is for when T is not trivially copy constructible
|
551
|
+
template<class T>
|
552
|
+
struct optional_copy_base<T, false> : optional_operations_base<T>
|
553
|
+
{
|
554
|
+
using optional_operations_base<T>::optional_operations_base;
|
555
|
+
|
556
|
+
optional_copy_base() = default;
|
557
|
+
optional_copy_base(const optional_copy_base& rhs)
|
558
|
+
: optional_operations_base<T>()
|
559
|
+
{
|
560
|
+
if (rhs.has_value()) {
|
561
|
+
this->construct(rhs.get());
|
562
|
+
} else {
|
563
|
+
this->m_has_value = false;
|
564
|
+
}
|
565
|
+
}
|
566
|
+
|
567
|
+
optional_copy_base(optional_copy_base&& rhs) = default;
|
568
|
+
optional_copy_base& operator=(const optional_copy_base& rhs) = default;
|
569
|
+
optional_copy_base& operator=(optional_copy_base&& rhs) = default;
|
570
|
+
};
|
571
|
+
|
572
|
+
// This class manages conditionally having a trivial move constructor
|
573
|
+
// Unfortunately there's no way to achieve this in GCC < 5 AFAIK, since it
|
574
|
+
// doesn't implement an analogue to std::is_trivially_move_constructible. We
|
575
|
+
// have to make do with a non-trivial move constructor even if T is trivially
|
576
|
+
// move constructible
|
577
|
+
#ifndef TL_OPTIONAL_GCC49
|
578
|
+
template<class T, bool = std::is_trivially_move_constructible<T>::value>
|
579
|
+
struct optional_move_base : optional_copy_base<T>
|
580
|
+
{
|
581
|
+
using optional_copy_base<T>::optional_copy_base;
|
582
|
+
};
|
583
|
+
#else
|
584
|
+
template<class T, bool = false>
|
585
|
+
struct optional_move_base;
|
586
|
+
#endif
|
587
|
+
template<class T>
|
588
|
+
struct optional_move_base<T, false> : optional_copy_base<T>
|
589
|
+
{
|
590
|
+
using optional_copy_base<T>::optional_copy_base;
|
591
|
+
|
592
|
+
optional_move_base() = default;
|
593
|
+
optional_move_base(const optional_move_base& rhs) = default;
|
594
|
+
|
595
|
+
optional_move_base(optional_move_base&& rhs) noexcept(
|
596
|
+
std::is_nothrow_move_constructible<T>::value)
|
597
|
+
{
|
598
|
+
if (rhs.has_value()) {
|
599
|
+
this->construct(std::move(rhs.get()));
|
600
|
+
} else {
|
601
|
+
this->m_has_value = false;
|
602
|
+
}
|
603
|
+
}
|
604
|
+
optional_move_base& operator=(const optional_move_base& rhs) = default;
|
605
|
+
optional_move_base& operator=(optional_move_base&& rhs) = default;
|
606
|
+
};
|
607
|
+
|
608
|
+
// This class manages conditionally having a trivial copy assignment operator
|
609
|
+
template<class T,
|
610
|
+
bool = TL_OPTIONAL_IS_TRIVIALLY_COPY_ASSIGNABLE(T) &&
|
611
|
+
TL_OPTIONAL_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) &&
|
612
|
+
TL_OPTIONAL_IS_TRIVIALLY_DESTRUCTIBLE(T)>
|
613
|
+
struct optional_copy_assign_base : optional_move_base<T>
|
614
|
+
{
|
615
|
+
using optional_move_base<T>::optional_move_base;
|
616
|
+
};
|
617
|
+
|
618
|
+
template<class T>
|
619
|
+
struct optional_copy_assign_base<T, false> : optional_move_base<T>
|
620
|
+
{
|
621
|
+
using optional_move_base<T>::optional_move_base;
|
622
|
+
|
623
|
+
optional_copy_assign_base() = default;
|
624
|
+
optional_copy_assign_base(const optional_copy_assign_base& rhs) = default;
|
625
|
+
|
626
|
+
optional_copy_assign_base(optional_copy_assign_base&& rhs) = default;
|
627
|
+
optional_copy_assign_base& operator=(const optional_copy_assign_base& rhs)
|
628
|
+
{
|
629
|
+
this->assign(rhs);
|
630
|
+
return *this;
|
631
|
+
}
|
632
|
+
optional_copy_assign_base& operator=(optional_copy_assign_base&& rhs) =
|
633
|
+
default;
|
634
|
+
};
|
635
|
+
|
636
|
+
// This class manages conditionally having a trivial move assignment operator
|
637
|
+
// Unfortunately there's no way to achieve this in GCC < 5 AFAIK, since it
|
638
|
+
// doesn't implement an analogue to std::is_trivially_move_assignable. We have
|
639
|
+
// to make do with a non-trivial move assignment operator even if T is trivially
|
640
|
+
// move assignable
|
641
|
+
#ifndef TL_OPTIONAL_GCC49
|
642
|
+
template<class T,
|
643
|
+
bool = std::is_trivially_destructible<T>::value&&
|
644
|
+
std::is_trivially_move_constructible<T>::value&&
|
645
|
+
std::is_trivially_move_assignable<T>::value>
|
646
|
+
struct optional_move_assign_base : optional_copy_assign_base<T>
|
647
|
+
{
|
648
|
+
using optional_copy_assign_base<T>::optional_copy_assign_base;
|
649
|
+
};
|
650
|
+
#else
|
651
|
+
template<class T, bool = false>
|
652
|
+
struct optional_move_assign_base;
|
653
|
+
#endif
|
654
|
+
|
655
|
+
template<class T>
|
656
|
+
struct optional_move_assign_base<T, false> : optional_copy_assign_base<T>
|
657
|
+
{
|
658
|
+
using optional_copy_assign_base<T>::optional_copy_assign_base;
|
659
|
+
|
660
|
+
optional_move_assign_base() = default;
|
661
|
+
optional_move_assign_base(const optional_move_assign_base& rhs) = default;
|
662
|
+
|
663
|
+
optional_move_assign_base(optional_move_assign_base&& rhs) = default;
|
664
|
+
|
665
|
+
optional_move_assign_base& operator=(const optional_move_assign_base& rhs) =
|
666
|
+
default;
|
667
|
+
|
668
|
+
optional_move_assign_base&
|
669
|
+
operator=(optional_move_assign_base&& rhs) noexcept(
|
670
|
+
std::is_nothrow_move_constructible<T>::value&&
|
671
|
+
std::is_nothrow_move_assignable<T>::value)
|
672
|
+
{
|
673
|
+
this->assign(std::move(rhs));
|
674
|
+
return *this;
|
675
|
+
}
|
676
|
+
};
|
677
|
+
|
678
|
+
// optional_delete_ctor_base will conditionally delete copy and move
|
679
|
+
// constructors depending on whether T is copy/move constructible
|
680
|
+
template<class T,
|
681
|
+
bool EnableCopy = std::is_copy_constructible<T>::value,
|
682
|
+
bool EnableMove = std::is_move_constructible<T>::value>
|
683
|
+
struct optional_delete_ctor_base
|
684
|
+
{
|
685
|
+
optional_delete_ctor_base() = default;
|
686
|
+
optional_delete_ctor_base(const optional_delete_ctor_base&) = default;
|
687
|
+
optional_delete_ctor_base(optional_delete_ctor_base&&) noexcept = default;
|
688
|
+
optional_delete_ctor_base& operator=(const optional_delete_ctor_base&) =
|
689
|
+
default;
|
690
|
+
optional_delete_ctor_base& operator=(optional_delete_ctor_base&&) noexcept =
|
691
|
+
default;
|
692
|
+
};
|
693
|
+
|
694
|
+
template<class T>
|
695
|
+
struct optional_delete_ctor_base<T, true, false>
|
696
|
+
{
|
697
|
+
optional_delete_ctor_base() = default;
|
698
|
+
optional_delete_ctor_base(const optional_delete_ctor_base&) = default;
|
699
|
+
optional_delete_ctor_base(optional_delete_ctor_base&&) noexcept = delete;
|
700
|
+
optional_delete_ctor_base& operator=(const optional_delete_ctor_base&) =
|
701
|
+
default;
|
702
|
+
optional_delete_ctor_base& operator=(optional_delete_ctor_base&&) noexcept =
|
703
|
+
default;
|
704
|
+
};
|
705
|
+
|
706
|
+
template<class T>
|
707
|
+
struct optional_delete_ctor_base<T, false, true>
|
708
|
+
{
|
709
|
+
optional_delete_ctor_base() = default;
|
710
|
+
optional_delete_ctor_base(const optional_delete_ctor_base&) = delete;
|
711
|
+
optional_delete_ctor_base(optional_delete_ctor_base&&) noexcept = default;
|
712
|
+
optional_delete_ctor_base& operator=(const optional_delete_ctor_base&) =
|
713
|
+
default;
|
714
|
+
optional_delete_ctor_base& operator=(optional_delete_ctor_base&&) noexcept =
|
715
|
+
default;
|
716
|
+
};
|
717
|
+
|
718
|
+
template<class T>
|
719
|
+
struct optional_delete_ctor_base<T, false, false>
|
720
|
+
{
|
721
|
+
optional_delete_ctor_base() = default;
|
722
|
+
optional_delete_ctor_base(const optional_delete_ctor_base&) = delete;
|
723
|
+
optional_delete_ctor_base(optional_delete_ctor_base&&) noexcept = delete;
|
724
|
+
optional_delete_ctor_base& operator=(const optional_delete_ctor_base&) =
|
725
|
+
default;
|
726
|
+
optional_delete_ctor_base& operator=(optional_delete_ctor_base&&) noexcept =
|
727
|
+
default;
|
728
|
+
};
|
729
|
+
|
730
|
+
// optional_delete_assign_base will conditionally delete copy and move
|
731
|
+
// constructors depending on whether T is copy/move constructible + assignable
|
732
|
+
template<class T,
|
733
|
+
bool EnableCopy = (std::is_copy_constructible<T>::value &&
|
734
|
+
std::is_copy_assignable<T>::value),
|
735
|
+
bool EnableMove = (std::is_move_constructible<T>::value &&
|
736
|
+
std::is_move_assignable<T>::value)>
|
737
|
+
struct optional_delete_assign_base
|
738
|
+
{
|
739
|
+
optional_delete_assign_base() = default;
|
740
|
+
optional_delete_assign_base(const optional_delete_assign_base&) = default;
|
741
|
+
optional_delete_assign_base(optional_delete_assign_base&&) noexcept = default;
|
742
|
+
optional_delete_assign_base& operator=(const optional_delete_assign_base&) =
|
743
|
+
default;
|
744
|
+
optional_delete_assign_base& operator=(
|
745
|
+
optional_delete_assign_base&&) noexcept = default;
|
746
|
+
};
|
747
|
+
|
748
|
+
template<class T>
|
749
|
+
struct optional_delete_assign_base<T, true, false>
|
750
|
+
{
|
751
|
+
optional_delete_assign_base() = default;
|
752
|
+
optional_delete_assign_base(const optional_delete_assign_base&) = default;
|
753
|
+
optional_delete_assign_base(optional_delete_assign_base&&) noexcept = default;
|
754
|
+
optional_delete_assign_base& operator=(const optional_delete_assign_base&) =
|
755
|
+
default;
|
756
|
+
optional_delete_assign_base& operator=(
|
757
|
+
optional_delete_assign_base&&) noexcept = delete;
|
758
|
+
};
|
759
|
+
|
760
|
+
template<class T>
|
761
|
+
struct optional_delete_assign_base<T, false, true>
|
762
|
+
{
|
763
|
+
optional_delete_assign_base() = default;
|
764
|
+
optional_delete_assign_base(const optional_delete_assign_base&) = default;
|
765
|
+
optional_delete_assign_base(optional_delete_assign_base&&) noexcept = default;
|
766
|
+
optional_delete_assign_base& operator=(const optional_delete_assign_base&) =
|
767
|
+
delete;
|
768
|
+
optional_delete_assign_base& operator=(
|
769
|
+
optional_delete_assign_base&&) noexcept = default;
|
770
|
+
};
|
771
|
+
|
772
|
+
template<class T>
|
773
|
+
struct optional_delete_assign_base<T, false, false>
|
774
|
+
{
|
775
|
+
optional_delete_assign_base() = default;
|
776
|
+
optional_delete_assign_base(const optional_delete_assign_base&) = default;
|
777
|
+
optional_delete_assign_base(optional_delete_assign_base&&) noexcept = default;
|
778
|
+
optional_delete_assign_base& operator=(const optional_delete_assign_base&) =
|
779
|
+
delete;
|
780
|
+
optional_delete_assign_base& operator=(
|
781
|
+
optional_delete_assign_base&&) noexcept = delete;
|
782
|
+
};
|
783
|
+
|
784
|
+
} // namespace detail
|
785
|
+
|
786
|
+
/// A tag type to represent an empty optional
|
787
|
+
struct nullopt_t
|
788
|
+
{
|
789
|
+
struct do_not_use
|
790
|
+
{};
|
791
|
+
constexpr explicit nullopt_t(do_not_use, do_not_use) noexcept {}
|
792
|
+
};
|
793
|
+
/// Represents an empty optional
|
794
|
+
static constexpr nullopt_t nullopt{ nullopt_t::do_not_use{},
|
795
|
+
nullopt_t::do_not_use{} };
|
796
|
+
|
797
|
+
class bad_optional_access : public std::exception
|
798
|
+
{
|
799
|
+
public:
|
800
|
+
bad_optional_access() = default;
|
801
|
+
const char* what() const noexcept { return "Optional has no value"; }
|
802
|
+
};
|
803
|
+
|
804
|
+
/// An optional object is an object that contains the storage for another
|
805
|
+
/// object and manages the lifetime of this contained object, if any. The
|
806
|
+
/// contained object may be initialized after the optional object has been
|
807
|
+
/// initialized, and may be destroyed before the optional object has been
|
808
|
+
/// destroyed. The initialization state of the contained object is tracked by
|
809
|
+
/// the optional object.
|
810
|
+
template<class T>
|
811
|
+
class optional
|
812
|
+
: private detail::optional_move_assign_base<T>
|
813
|
+
, private detail::optional_delete_ctor_base<T>
|
814
|
+
, private detail::optional_delete_assign_base<T>
|
815
|
+
{
|
816
|
+
using base = detail::optional_move_assign_base<T>;
|
817
|
+
|
818
|
+
static_assert(!std::is_same<T, in_place_t>::value,
|
819
|
+
"instantiation of optional with in_place_t is ill-formed");
|
820
|
+
static_assert(!std::is_same<detail::decay_t<T>, nullopt_t>::value,
|
821
|
+
"instantiation of optional with nullopt_t is ill-formed");
|
822
|
+
|
823
|
+
public:
|
824
|
+
// The different versions for C++14 and 11 are needed because deduced return
|
825
|
+
// types are not SFINAE-safe. This provides better support for things like
|
826
|
+
// generic lambdas. C.f.
|
827
|
+
// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0826r0.html
|
828
|
+
#if defined(TL_OPTIONAL_CXX14) && !defined(TL_OPTIONAL_GCC49) && \
|
829
|
+
!defined(TL_OPTIONAL_GCC54) && !defined(TL_OPTIONAL_GCC55)
|
830
|
+
/// Carries out some operation which returns an optional on the stored
|
831
|
+
/// object if there is one.
|
832
|
+
template<class F>
|
833
|
+
TL_OPTIONAL_11_CONSTEXPR auto and_then(F&& f) &
|
834
|
+
{
|
835
|
+
using result = detail::invoke_result_t<F, T&>;
|
836
|
+
static_assert(detail::is_optional<result>::value,
|
837
|
+
"F must return an optional");
|
838
|
+
|
839
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
840
|
+
: result(nullopt);
|
841
|
+
}
|
842
|
+
|
843
|
+
template<class F>
|
844
|
+
TL_OPTIONAL_11_CONSTEXPR auto and_then(F&& f) &&
|
845
|
+
{
|
846
|
+
using result = detail::invoke_result_t<F, T&&>;
|
847
|
+
static_assert(detail::is_optional<result>::value,
|
848
|
+
"F must return an optional");
|
849
|
+
|
850
|
+
return has_value() ? detail::invoke(std::forward<F>(f), std::move(**this))
|
851
|
+
: result(nullopt);
|
852
|
+
}
|
853
|
+
|
854
|
+
template<class F>
|
855
|
+
constexpr auto and_then(F&& f) const&
|
856
|
+
{
|
857
|
+
using result = detail::invoke_result_t<F, const T&>;
|
858
|
+
static_assert(detail::is_optional<result>::value,
|
859
|
+
"F must return an optional");
|
860
|
+
|
861
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
862
|
+
: result(nullopt);
|
863
|
+
}
|
864
|
+
|
865
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
866
|
+
template<class F>
|
867
|
+
constexpr auto and_then(F&& f) const&&
|
868
|
+
{
|
869
|
+
using result = detail::invoke_result_t<F, const T&&>;
|
870
|
+
static_assert(detail::is_optional<result>::value,
|
871
|
+
"F must return an optional");
|
872
|
+
|
873
|
+
return has_value() ? detail::invoke(std::forward<F>(f), std::move(**this))
|
874
|
+
: result(nullopt);
|
875
|
+
}
|
876
|
+
#endif
|
877
|
+
#else
|
878
|
+
/// Carries out some operation which returns an optional on the stored
|
879
|
+
/// object if there is one.
|
880
|
+
template<class F>
|
881
|
+
TL_OPTIONAL_11_CONSTEXPR detail::invoke_result_t<F, T&> and_then(F&& f) &
|
882
|
+
{
|
883
|
+
using result = detail::invoke_result_t<F, T&>;
|
884
|
+
static_assert(detail::is_optional<result>::value,
|
885
|
+
"F must return an optional");
|
886
|
+
|
887
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
888
|
+
: result(nullopt);
|
889
|
+
}
|
890
|
+
|
891
|
+
template<class F>
|
892
|
+
TL_OPTIONAL_11_CONSTEXPR detail::invoke_result_t<F, T&&> and_then(F&& f) &&
|
893
|
+
{
|
894
|
+
using result = detail::invoke_result_t<F, T&&>;
|
895
|
+
static_assert(detail::is_optional<result>::value,
|
896
|
+
"F must return an optional");
|
897
|
+
|
898
|
+
return has_value() ? detail::invoke(std::forward<F>(f), std::move(**this))
|
899
|
+
: result(nullopt);
|
900
|
+
}
|
901
|
+
|
902
|
+
template<class F>
|
903
|
+
constexpr detail::invoke_result_t<F, const T&> and_then(F&& f) const&
|
904
|
+
{
|
905
|
+
using result = detail::invoke_result_t<F, const T&>;
|
906
|
+
static_assert(detail::is_optional<result>::value,
|
907
|
+
"F must return an optional");
|
908
|
+
|
909
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
910
|
+
: result(nullopt);
|
911
|
+
}
|
912
|
+
|
913
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
914
|
+
template<class F>
|
915
|
+
constexpr detail::invoke_result_t<F, const T&&> and_then(F&& f) const&&
|
916
|
+
{
|
917
|
+
using result = detail::invoke_result_t<F, const T&&>;
|
918
|
+
static_assert(detail::is_optional<result>::value,
|
919
|
+
"F must return an optional");
|
920
|
+
|
921
|
+
return has_value() ? detail::invoke(std::forward<F>(f), std::move(**this))
|
922
|
+
: result(nullopt);
|
923
|
+
}
|
924
|
+
#endif
|
925
|
+
#endif
|
926
|
+
|
927
|
+
#if defined(TL_OPTIONAL_CXX14) && !defined(TL_OPTIONAL_GCC49) && \
|
928
|
+
!defined(TL_OPTIONAL_GCC54) && !defined(TL_OPTIONAL_GCC55)
|
929
|
+
/// Carries out some operation on the stored object if there is one.
|
930
|
+
template<class F>
|
931
|
+
TL_OPTIONAL_11_CONSTEXPR auto map(F&& f) &
|
932
|
+
{
|
933
|
+
return optional_map_impl(*this, std::forward<F>(f));
|
934
|
+
}
|
935
|
+
|
936
|
+
template<class F>
|
937
|
+
TL_OPTIONAL_11_CONSTEXPR auto map(F&& f) &&
|
938
|
+
{
|
939
|
+
return optional_map_impl(std::move(*this), std::forward<F>(f));
|
940
|
+
}
|
941
|
+
|
942
|
+
template<class F>
|
943
|
+
constexpr auto map(F&& f) const&
|
944
|
+
{
|
945
|
+
return optional_map_impl(*this, std::forward<F>(f));
|
946
|
+
}
|
947
|
+
|
948
|
+
template<class F>
|
949
|
+
constexpr auto map(F&& f) const&&
|
950
|
+
{
|
951
|
+
return optional_map_impl(std::move(*this), std::forward<F>(f));
|
952
|
+
}
|
953
|
+
#else
|
954
|
+
/// Carries out some operation on the stored object if there is one.
|
955
|
+
template<class F>
|
956
|
+
TL_OPTIONAL_11_CONSTEXPR decltype(optional_map_impl(std::declval<optional&>(),
|
957
|
+
std::declval<F&&>()))
|
958
|
+
map(F&& f) &
|
959
|
+
{
|
960
|
+
return optional_map_impl(*this, std::forward<F>(f));
|
961
|
+
}
|
962
|
+
|
963
|
+
template<class F>
|
964
|
+
TL_OPTIONAL_11_CONSTEXPR decltype(optional_map_impl(
|
965
|
+
std::declval<optional&&>(),
|
966
|
+
std::declval<F&&>()))
|
967
|
+
map(F&& f) &&
|
968
|
+
{
|
969
|
+
return optional_map_impl(std::move(*this), std::forward<F>(f));
|
970
|
+
}
|
971
|
+
|
972
|
+
template<class F>
|
973
|
+
constexpr decltype(optional_map_impl(std::declval<const optional&>(),
|
974
|
+
std::declval<F&&>()))
|
975
|
+
map(F&& f) const&
|
976
|
+
{
|
977
|
+
return optional_map_impl(*this, std::forward<F>(f));
|
978
|
+
}
|
979
|
+
|
980
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
981
|
+
template<class F>
|
982
|
+
constexpr decltype(optional_map_impl(std::declval<const optional&&>(),
|
983
|
+
std::declval<F&&>()))
|
984
|
+
map(F&& f) const&&
|
985
|
+
{
|
986
|
+
return optional_map_impl(std::move(*this), std::forward<F>(f));
|
987
|
+
}
|
988
|
+
#endif
|
989
|
+
#endif
|
990
|
+
|
991
|
+
#if defined(TL_OPTIONAL_CXX14) && !defined(TL_OPTIONAL_GCC49) && \
|
992
|
+
!defined(TL_OPTIONAL_GCC54) && !defined(TL_OPTIONAL_GCC55)
|
993
|
+
/// Carries out some operation on the stored object if there is one.
|
994
|
+
template<class F>
|
995
|
+
TL_OPTIONAL_11_CONSTEXPR auto transform(F&& f) &
|
996
|
+
{
|
997
|
+
return optional_map_impl(*this, std::forward<F>(f));
|
998
|
+
}
|
999
|
+
|
1000
|
+
template<class F>
|
1001
|
+
TL_OPTIONAL_11_CONSTEXPR auto transform(F&& f) &&
|
1002
|
+
{
|
1003
|
+
return optional_map_impl(std::move(*this), std::forward<F>(f));
|
1004
|
+
}
|
1005
|
+
|
1006
|
+
template<class F>
|
1007
|
+
constexpr auto transform(F&& f) const&
|
1008
|
+
{
|
1009
|
+
return optional_map_impl(*this, std::forward<F>(f));
|
1010
|
+
}
|
1011
|
+
|
1012
|
+
template<class F>
|
1013
|
+
constexpr auto transform(F&& f) const&&
|
1014
|
+
{
|
1015
|
+
return optional_map_impl(std::move(*this), std::forward<F>(f));
|
1016
|
+
}
|
1017
|
+
#else
|
1018
|
+
/// Carries out some operation on the stored object if there is one.
|
1019
|
+
template<class F>
|
1020
|
+
TL_OPTIONAL_11_CONSTEXPR decltype(optional_map_impl(std::declval<optional&>(),
|
1021
|
+
std::declval<F&&>()))
|
1022
|
+
transform(F&& f) &
|
1023
|
+
{
|
1024
|
+
return optional_map_impl(*this, std::forward<F>(f));
|
1025
|
+
}
|
1026
|
+
|
1027
|
+
template<class F>
|
1028
|
+
TL_OPTIONAL_11_CONSTEXPR decltype(optional_map_impl(
|
1029
|
+
std::declval<optional&&>(),
|
1030
|
+
std::declval<F&&>()))
|
1031
|
+
transform(F&& f) &&
|
1032
|
+
{
|
1033
|
+
return optional_map_impl(std::move(*this), std::forward<F>(f));
|
1034
|
+
}
|
1035
|
+
|
1036
|
+
template<class F>
|
1037
|
+
constexpr decltype(optional_map_impl(std::declval<const optional&>(),
|
1038
|
+
std::declval<F&&>()))
|
1039
|
+
transform(F&& f) const&
|
1040
|
+
{
|
1041
|
+
return optional_map_impl(*this, std::forward<F>(f));
|
1042
|
+
}
|
1043
|
+
|
1044
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
1045
|
+
template<class F>
|
1046
|
+
constexpr decltype(optional_map_impl(std::declval<const optional&&>(),
|
1047
|
+
std::declval<F&&>()))
|
1048
|
+
transform(F&& f) const&&
|
1049
|
+
{
|
1050
|
+
return optional_map_impl(std::move(*this), std::forward<F>(f));
|
1051
|
+
}
|
1052
|
+
#endif
|
1053
|
+
#endif
|
1054
|
+
|
1055
|
+
/// Calls `f` if the optional is empty
|
1056
|
+
template<class F, detail::enable_if_ret_void<F>* = nullptr>
|
1057
|
+
optional<T> TL_OPTIONAL_11_CONSTEXPR or_else(F&& f) &
|
1058
|
+
{
|
1059
|
+
if (has_value())
|
1060
|
+
return *this;
|
1061
|
+
|
1062
|
+
std::forward<F>(f)();
|
1063
|
+
return nullopt;
|
1064
|
+
}
|
1065
|
+
|
1066
|
+
template<class F, detail::disable_if_ret_void<F>* = nullptr>
|
1067
|
+
optional<T> TL_OPTIONAL_11_CONSTEXPR or_else(F&& f) &
|
1068
|
+
{
|
1069
|
+
return has_value() ? *this : std::forward<F>(f)();
|
1070
|
+
}
|
1071
|
+
|
1072
|
+
template<class F, detail::enable_if_ret_void<F>* = nullptr>
|
1073
|
+
optional<T> or_else(F&& f) &&
|
1074
|
+
{
|
1075
|
+
if (has_value())
|
1076
|
+
return std::move(*this);
|
1077
|
+
|
1078
|
+
std::forward<F>(f)();
|
1079
|
+
return nullopt;
|
1080
|
+
}
|
1081
|
+
|
1082
|
+
template<class F, detail::disable_if_ret_void<F>* = nullptr>
|
1083
|
+
optional<T> TL_OPTIONAL_11_CONSTEXPR or_else(F&& f) &&
|
1084
|
+
{
|
1085
|
+
return has_value() ? std::move(*this) : std::forward<F>(f)();
|
1086
|
+
}
|
1087
|
+
|
1088
|
+
template<class F, detail::enable_if_ret_void<F>* = nullptr>
|
1089
|
+
optional<T> or_else(F&& f) const&
|
1090
|
+
{
|
1091
|
+
if (has_value())
|
1092
|
+
return *this;
|
1093
|
+
|
1094
|
+
std::forward<F>(f)();
|
1095
|
+
return nullopt;
|
1096
|
+
}
|
1097
|
+
|
1098
|
+
template<class F, detail::disable_if_ret_void<F>* = nullptr>
|
1099
|
+
optional<T> TL_OPTIONAL_11_CONSTEXPR or_else(F&& f) const&
|
1100
|
+
{
|
1101
|
+
return has_value() ? *this : std::forward<F>(f)();
|
1102
|
+
}
|
1103
|
+
|
1104
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
1105
|
+
template<class F, detail::enable_if_ret_void<F>* = nullptr>
|
1106
|
+
optional<T> or_else(F&& f) const&&
|
1107
|
+
{
|
1108
|
+
if (has_value())
|
1109
|
+
return std::move(*this);
|
1110
|
+
|
1111
|
+
std::forward<F>(f)();
|
1112
|
+
return nullopt;
|
1113
|
+
}
|
1114
|
+
|
1115
|
+
template<class F, detail::disable_if_ret_void<F>* = nullptr>
|
1116
|
+
optional<T> or_else(F&& f) const&&
|
1117
|
+
{
|
1118
|
+
return has_value() ? std::move(*this) : std::forward<F>(f)();
|
1119
|
+
}
|
1120
|
+
#endif
|
1121
|
+
|
1122
|
+
/// Maps the stored value with `f` if there is one, otherwise returns `u`.
|
1123
|
+
template<class F, class U>
|
1124
|
+
U map_or(F&& f, U&& u) &
|
1125
|
+
{
|
1126
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
1127
|
+
: std::forward<U>(u);
|
1128
|
+
}
|
1129
|
+
|
1130
|
+
template<class F, class U>
|
1131
|
+
U map_or(F&& f, U&& u) &&
|
1132
|
+
{
|
1133
|
+
return has_value() ? detail::invoke(std::forward<F>(f), std::move(**this))
|
1134
|
+
: std::forward<U>(u);
|
1135
|
+
}
|
1136
|
+
|
1137
|
+
template<class F, class U>
|
1138
|
+
U map_or(F&& f, U&& u) const&
|
1139
|
+
{
|
1140
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
1141
|
+
: std::forward<U>(u);
|
1142
|
+
}
|
1143
|
+
|
1144
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
1145
|
+
template<class F, class U>
|
1146
|
+
U map_or(F&& f, U&& u) const&&
|
1147
|
+
{
|
1148
|
+
return has_value() ? detail::invoke(std::forward<F>(f), std::move(**this))
|
1149
|
+
: std::forward<U>(u);
|
1150
|
+
}
|
1151
|
+
#endif
|
1152
|
+
|
1153
|
+
/// Maps the stored value with `f` if there is one, otherwise calls
|
1154
|
+
/// `u` and returns the result.
|
1155
|
+
template<class F, class U>
|
1156
|
+
detail::invoke_result_t<U> map_or_else(F&& f, U&& u) &
|
1157
|
+
{
|
1158
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
1159
|
+
: std::forward<U>(u)();
|
1160
|
+
}
|
1161
|
+
|
1162
|
+
template<class F, class U>
|
1163
|
+
detail::invoke_result_t<U> map_or_else(F&& f, U&& u) &&
|
1164
|
+
{
|
1165
|
+
return has_value() ? detail::invoke(std::forward<F>(f), std::move(**this))
|
1166
|
+
: std::forward<U>(u)();
|
1167
|
+
}
|
1168
|
+
|
1169
|
+
template<class F, class U>
|
1170
|
+
detail::invoke_result_t<U> map_or_else(F&& f, U&& u) const&
|
1171
|
+
{
|
1172
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
1173
|
+
: std::forward<U>(u)();
|
1174
|
+
}
|
1175
|
+
|
1176
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
1177
|
+
template<class F, class U>
|
1178
|
+
detail::invoke_result_t<U> map_or_else(F&& f, U&& u) const&&
|
1179
|
+
{
|
1180
|
+
return has_value() ? detail::invoke(std::forward<F>(f), std::move(**this))
|
1181
|
+
: std::forward<U>(u)();
|
1182
|
+
}
|
1183
|
+
#endif
|
1184
|
+
|
1185
|
+
/// Returns `u` if `*this` has a value, otherwise an empty optional.
|
1186
|
+
template<class U>
|
1187
|
+
constexpr optional<typename std::decay<U>::type> conjunction(U&& u) const
|
1188
|
+
{
|
1189
|
+
using result = optional<detail::decay_t<U>>;
|
1190
|
+
return has_value() ? result{ u } : result{ nullopt };
|
1191
|
+
}
|
1192
|
+
|
1193
|
+
/// Returns `rhs` if `*this` is empty, otherwise the current value.
|
1194
|
+
TL_OPTIONAL_11_CONSTEXPR optional disjunction(const optional& rhs) &
|
1195
|
+
{
|
1196
|
+
return has_value() ? *this : rhs;
|
1197
|
+
}
|
1198
|
+
|
1199
|
+
constexpr optional disjunction(const optional& rhs) const&
|
1200
|
+
{
|
1201
|
+
return has_value() ? *this : rhs;
|
1202
|
+
}
|
1203
|
+
|
1204
|
+
TL_OPTIONAL_11_CONSTEXPR optional disjunction(const optional& rhs) &&
|
1205
|
+
{
|
1206
|
+
return has_value() ? std::move(*this) : rhs;
|
1207
|
+
}
|
1208
|
+
|
1209
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
1210
|
+
constexpr optional disjunction(const optional& rhs) const&&
|
1211
|
+
{
|
1212
|
+
return has_value() ? std::move(*this) : rhs;
|
1213
|
+
}
|
1214
|
+
#endif
|
1215
|
+
|
1216
|
+
TL_OPTIONAL_11_CONSTEXPR optional disjunction(optional&& rhs) &
|
1217
|
+
{
|
1218
|
+
return has_value() ? *this : std::move(rhs);
|
1219
|
+
}
|
1220
|
+
|
1221
|
+
constexpr optional disjunction(optional&& rhs) const&
|
1222
|
+
{
|
1223
|
+
return has_value() ? *this : std::move(rhs);
|
1224
|
+
}
|
1225
|
+
|
1226
|
+
TL_OPTIONAL_11_CONSTEXPR optional disjunction(optional&& rhs) &&
|
1227
|
+
{
|
1228
|
+
return has_value() ? std::move(*this) : std::move(rhs);
|
1229
|
+
}
|
1230
|
+
|
1231
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
1232
|
+
constexpr optional disjunction(optional&& rhs) const&&
|
1233
|
+
{
|
1234
|
+
return has_value() ? std::move(*this) : std::move(rhs);
|
1235
|
+
}
|
1236
|
+
#endif
|
1237
|
+
|
1238
|
+
/// Takes the value out of the optional, leaving it empty
|
1239
|
+
optional take()
|
1240
|
+
{
|
1241
|
+
optional ret = std::move(*this);
|
1242
|
+
reset();
|
1243
|
+
return ret;
|
1244
|
+
}
|
1245
|
+
|
1246
|
+
using value_type = T;
|
1247
|
+
|
1248
|
+
/// Constructs an optional that does not contain a value.
|
1249
|
+
constexpr optional() noexcept = default;
|
1250
|
+
|
1251
|
+
constexpr optional(nullopt_t) noexcept {}
|
1252
|
+
|
1253
|
+
/// Copy constructor
|
1254
|
+
///
|
1255
|
+
/// If `rhs` contains a value, the stored value is direct-initialized with
|
1256
|
+
/// it. Otherwise, the constructed optional is empty.
|
1257
|
+
TL_OPTIONAL_11_CONSTEXPR optional(const optional& rhs) = default;
|
1258
|
+
|
1259
|
+
/// Move constructor
|
1260
|
+
///
|
1261
|
+
/// If `rhs` contains a value, the stored value is direct-initialized with
|
1262
|
+
/// it. Otherwise, the constructed optional is empty.
|
1263
|
+
TL_OPTIONAL_11_CONSTEXPR optional(optional&& rhs) = default;
|
1264
|
+
|
1265
|
+
/// Constructs the stored value in-place using the given arguments.
|
1266
|
+
template<class... Args>
|
1267
|
+
constexpr explicit optional(
|
1268
|
+
detail::enable_if_t<std::is_constructible<T, Args...>::value, in_place_t>,
|
1269
|
+
Args&&... args)
|
1270
|
+
: base(in_place, std::forward<Args>(args)...)
|
1271
|
+
{
|
1272
|
+
}
|
1273
|
+
|
1274
|
+
template<class U, class... Args>
|
1275
|
+
TL_OPTIONAL_11_CONSTEXPR explicit optional(
|
1276
|
+
detail::enable_if_t<
|
1277
|
+
std::is_constructible<T, std::initializer_list<U>&, Args&&...>::value,
|
1278
|
+
in_place_t>,
|
1279
|
+
std::initializer_list<U> il,
|
1280
|
+
Args&&... args)
|
1281
|
+
{
|
1282
|
+
this->construct(il, std::forward<Args>(args)...);
|
1283
|
+
}
|
1284
|
+
|
1285
|
+
/// Constructs the stored value with `u`.
|
1286
|
+
template<class U = T,
|
1287
|
+
detail::enable_if_t<std::is_convertible<U&&, T>::value>* = nullptr,
|
1288
|
+
detail::enable_forward_value<T, U>* = nullptr>
|
1289
|
+
constexpr optional(U&& u)
|
1290
|
+
: base(in_place, std::forward<U>(u))
|
1291
|
+
{
|
1292
|
+
}
|
1293
|
+
|
1294
|
+
template<class U = T,
|
1295
|
+
detail::enable_if_t<!std::is_convertible<U&&, T>::value>* = nullptr,
|
1296
|
+
detail::enable_forward_value<T, U>* = nullptr>
|
1297
|
+
constexpr explicit optional(U&& u)
|
1298
|
+
: base(in_place, std::forward<U>(u))
|
1299
|
+
{
|
1300
|
+
}
|
1301
|
+
|
1302
|
+
/// Converting copy constructor.
|
1303
|
+
template<
|
1304
|
+
class U,
|
1305
|
+
detail::enable_from_other<T, U, const U&>* = nullptr,
|
1306
|
+
detail::enable_if_t<std::is_convertible<const U&, T>::value>* = nullptr>
|
1307
|
+
optional(const optional<U>& rhs)
|
1308
|
+
{
|
1309
|
+
if (rhs.has_value()) {
|
1310
|
+
this->construct(*rhs);
|
1311
|
+
}
|
1312
|
+
}
|
1313
|
+
|
1314
|
+
template<
|
1315
|
+
class U,
|
1316
|
+
detail::enable_from_other<T, U, const U&>* = nullptr,
|
1317
|
+
detail::enable_if_t<!std::is_convertible<const U&, T>::value>* = nullptr>
|
1318
|
+
explicit optional(const optional<U>& rhs)
|
1319
|
+
{
|
1320
|
+
if (rhs.has_value()) {
|
1321
|
+
this->construct(*rhs);
|
1322
|
+
}
|
1323
|
+
}
|
1324
|
+
|
1325
|
+
/// Converting move constructor.
|
1326
|
+
template<class U,
|
1327
|
+
detail::enable_from_other<T, U, U&&>* = nullptr,
|
1328
|
+
detail::enable_if_t<std::is_convertible<U&&, T>::value>* = nullptr>
|
1329
|
+
optional(optional<U>&& rhs)
|
1330
|
+
{
|
1331
|
+
if (rhs.has_value()) {
|
1332
|
+
this->construct(std::move(*rhs));
|
1333
|
+
}
|
1334
|
+
}
|
1335
|
+
|
1336
|
+
template<class U,
|
1337
|
+
detail::enable_from_other<T, U, U&&>* = nullptr,
|
1338
|
+
detail::enable_if_t<!std::is_convertible<U&&, T>::value>* = nullptr>
|
1339
|
+
explicit optional(optional<U>&& rhs)
|
1340
|
+
{
|
1341
|
+
if (rhs.has_value()) {
|
1342
|
+
this->construct(std::move(*rhs));
|
1343
|
+
}
|
1344
|
+
}
|
1345
|
+
|
1346
|
+
/// Destroys the stored value if there is one.
|
1347
|
+
~optional() = default;
|
1348
|
+
|
1349
|
+
/// Assignment to empty.
|
1350
|
+
///
|
1351
|
+
/// Destroys the current value if there is one.
|
1352
|
+
optional& operator=(nullopt_t) noexcept
|
1353
|
+
{
|
1354
|
+
if (has_value()) {
|
1355
|
+
this->m_value.~T();
|
1356
|
+
this->m_has_value = false;
|
1357
|
+
}
|
1358
|
+
|
1359
|
+
return *this;
|
1360
|
+
}
|
1361
|
+
|
1362
|
+
/// Copy assignment.
|
1363
|
+
///
|
1364
|
+
/// Copies the value from `rhs` if there is one. Otherwise resets the stored
|
1365
|
+
/// value in `*this`.
|
1366
|
+
optional& operator=(const optional& rhs) = default;
|
1367
|
+
|
1368
|
+
/// Move assignment.
|
1369
|
+
///
|
1370
|
+
/// Moves the value from `rhs` if there is one. Otherwise resets the stored
|
1371
|
+
/// value in `*this`.
|
1372
|
+
optional& operator=(optional&& rhs) = default;
|
1373
|
+
|
1374
|
+
/// Assigns the stored value from `u`, destroying the old value if there was
|
1375
|
+
/// one.
|
1376
|
+
template<class U = T, detail::enable_assign_forward<T, U>* = nullptr>
|
1377
|
+
optional& operator=(U&& u)
|
1378
|
+
{
|
1379
|
+
if (has_value()) {
|
1380
|
+
this->m_value = std::forward<U>(u);
|
1381
|
+
} else {
|
1382
|
+
this->construct(std::forward<U>(u));
|
1383
|
+
}
|
1384
|
+
|
1385
|
+
return *this;
|
1386
|
+
}
|
1387
|
+
|
1388
|
+
/// Converting copy assignment operator.
|
1389
|
+
///
|
1390
|
+
/// Copies the value from `rhs` if there is one. Otherwise resets the stored
|
1391
|
+
/// value in `*this`.
|
1392
|
+
template<class U, detail::enable_assign_from_other<T, U, const U&>* = nullptr>
|
1393
|
+
optional& operator=(const optional<U>& rhs)
|
1394
|
+
{
|
1395
|
+
if (has_value()) {
|
1396
|
+
if (rhs.has_value()) {
|
1397
|
+
this->m_value = *rhs;
|
1398
|
+
} else {
|
1399
|
+
this->hard_reset();
|
1400
|
+
}
|
1401
|
+
}
|
1402
|
+
|
1403
|
+
if (rhs.has_value()) {
|
1404
|
+
this->construct(*rhs);
|
1405
|
+
}
|
1406
|
+
|
1407
|
+
return *this;
|
1408
|
+
}
|
1409
|
+
|
1410
|
+
// TODO check exception guarantee
|
1411
|
+
/// Converting move assignment operator.
|
1412
|
+
///
|
1413
|
+
/// Moves the value from `rhs` if there is one. Otherwise resets the stored
|
1414
|
+
/// value in `*this`.
|
1415
|
+
template<class U, detail::enable_assign_from_other<T, U, U>* = nullptr>
|
1416
|
+
optional& operator=(optional<U>&& rhs)
|
1417
|
+
{
|
1418
|
+
if (has_value()) {
|
1419
|
+
if (rhs.has_value()) {
|
1420
|
+
this->m_value = std::move(*rhs);
|
1421
|
+
} else {
|
1422
|
+
this->hard_reset();
|
1423
|
+
}
|
1424
|
+
}
|
1425
|
+
|
1426
|
+
if (rhs.has_value()) {
|
1427
|
+
this->construct(std::move(*rhs));
|
1428
|
+
}
|
1429
|
+
|
1430
|
+
return *this;
|
1431
|
+
}
|
1432
|
+
|
1433
|
+
/// Constructs the value in-place, destroying the current one if there is
|
1434
|
+
/// one.
|
1435
|
+
template<class... Args>
|
1436
|
+
T& emplace(Args&&... args)
|
1437
|
+
{
|
1438
|
+
static_assert(std::is_constructible<T, Args&&...>::value,
|
1439
|
+
"T must be constructible with Args");
|
1440
|
+
|
1441
|
+
*this = nullopt;
|
1442
|
+
this->construct(std::forward<Args>(args)...);
|
1443
|
+
return value();
|
1444
|
+
}
|
1445
|
+
|
1446
|
+
template<class U, class... Args>
|
1447
|
+
detail::enable_if_t<
|
1448
|
+
std::is_constructible<T, std::initializer_list<U>&, Args&&...>::value,
|
1449
|
+
T&>
|
1450
|
+
emplace(std::initializer_list<U> il, Args&&... args)
|
1451
|
+
{
|
1452
|
+
*this = nullopt;
|
1453
|
+
this->construct(il, std::forward<Args>(args)...);
|
1454
|
+
return value();
|
1455
|
+
}
|
1456
|
+
|
1457
|
+
/// Swaps this optional with the other.
|
1458
|
+
///
|
1459
|
+
/// If neither optionals have a value, nothing happens.
|
1460
|
+
/// If both have a value, the values are swapped.
|
1461
|
+
/// If one has a value, it is moved to the other and the movee is left
|
1462
|
+
/// valueless.
|
1463
|
+
void swap(optional& rhs) noexcept(
|
1464
|
+
std::is_nothrow_move_constructible<T>::value&&
|
1465
|
+
detail::is_nothrow_swappable<T>::value)
|
1466
|
+
{
|
1467
|
+
using std::swap;
|
1468
|
+
if (has_value()) {
|
1469
|
+
if (rhs.has_value()) {
|
1470
|
+
swap(**this, *rhs);
|
1471
|
+
} else {
|
1472
|
+
new (std::addressof(rhs.m_value)) T(std::move(this->m_value));
|
1473
|
+
this->m_value.T::~T();
|
1474
|
+
}
|
1475
|
+
} else if (rhs.has_value()) {
|
1476
|
+
new (std::addressof(this->m_value)) T(std::move(rhs.m_value));
|
1477
|
+
rhs.m_value.T::~T();
|
1478
|
+
}
|
1479
|
+
swap(this->m_has_value, rhs.m_has_value);
|
1480
|
+
}
|
1481
|
+
|
1482
|
+
/// Returns a pointer to the stored value
|
1483
|
+
constexpr const T* operator->() const
|
1484
|
+
{
|
1485
|
+
return std::addressof(this->m_value);
|
1486
|
+
}
|
1487
|
+
|
1488
|
+
TL_OPTIONAL_11_CONSTEXPR T* operator->()
|
1489
|
+
{
|
1490
|
+
return std::addressof(this->m_value);
|
1491
|
+
}
|
1492
|
+
|
1493
|
+
/// Returns the stored value
|
1494
|
+
TL_OPTIONAL_11_CONSTEXPR T& operator*() & { return this->m_value; }
|
1495
|
+
|
1496
|
+
constexpr const T& operator*() const& { return this->m_value; }
|
1497
|
+
|
1498
|
+
TL_OPTIONAL_11_CONSTEXPR T&& operator*() &&
|
1499
|
+
{
|
1500
|
+
return std::move(this->m_value);
|
1501
|
+
}
|
1502
|
+
|
1503
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
1504
|
+
constexpr const T&& operator*() const&& { return std::move(this->m_value); }
|
1505
|
+
#endif
|
1506
|
+
|
1507
|
+
/// Returns whether or not the optional has a value
|
1508
|
+
constexpr bool has_value() const noexcept { return this->m_has_value; }
|
1509
|
+
|
1510
|
+
constexpr explicit operator bool() const noexcept
|
1511
|
+
{
|
1512
|
+
return this->m_has_value;
|
1513
|
+
}
|
1514
|
+
|
1515
|
+
/// Returns the contained value if there is one, otherwise throws
|
1516
|
+
/// bad_optional_access
|
1517
|
+
TL_OPTIONAL_11_CONSTEXPR T& value() &
|
1518
|
+
{
|
1519
|
+
if (has_value())
|
1520
|
+
return this->m_value;
|
1521
|
+
throw bad_optional_access();
|
1522
|
+
}
|
1523
|
+
TL_OPTIONAL_11_CONSTEXPR const T& value() const&
|
1524
|
+
{
|
1525
|
+
if (has_value())
|
1526
|
+
return this->m_value;
|
1527
|
+
throw bad_optional_access();
|
1528
|
+
}
|
1529
|
+
TL_OPTIONAL_11_CONSTEXPR T&& value() &&
|
1530
|
+
{
|
1531
|
+
if (has_value())
|
1532
|
+
return std::move(this->m_value);
|
1533
|
+
throw bad_optional_access();
|
1534
|
+
}
|
1535
|
+
|
1536
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
1537
|
+
TL_OPTIONAL_11_CONSTEXPR const T&& value() const&&
|
1538
|
+
{
|
1539
|
+
if (has_value())
|
1540
|
+
return std::move(this->m_value);
|
1541
|
+
throw bad_optional_access();
|
1542
|
+
}
|
1543
|
+
#endif
|
1544
|
+
|
1545
|
+
/// Returns the stored value if there is one, otherwise returns `u`
|
1546
|
+
template<class U>
|
1547
|
+
constexpr T value_or(U&& u) const&
|
1548
|
+
{
|
1549
|
+
static_assert(std::is_copy_constructible<T>::value &&
|
1550
|
+
std::is_convertible<U&&, T>::value,
|
1551
|
+
"T must be copy constructible and convertible from U");
|
1552
|
+
return has_value() ? **this : static_cast<T>(std::forward<U>(u));
|
1553
|
+
}
|
1554
|
+
|
1555
|
+
template<class U>
|
1556
|
+
TL_OPTIONAL_11_CONSTEXPR T value_or(U&& u) &&
|
1557
|
+
{
|
1558
|
+
static_assert(std::is_move_constructible<T>::value &&
|
1559
|
+
std::is_convertible<U&&, T>::value,
|
1560
|
+
"T must be move constructible and convertible from U");
|
1561
|
+
return has_value() ? **this : static_cast<T>(std::forward<U>(u));
|
1562
|
+
}
|
1563
|
+
|
1564
|
+
/// Destroys the stored value if one exists, making the optional empty
|
1565
|
+
void reset() noexcept
|
1566
|
+
{
|
1567
|
+
if (has_value()) {
|
1568
|
+
this->m_value.~T();
|
1569
|
+
this->m_has_value = false;
|
1570
|
+
}
|
1571
|
+
}
|
1572
|
+
}; // namespace tl
|
1573
|
+
|
1574
|
+
/// Compares two optional objects
|
1575
|
+
template<class T, class U>
|
1576
|
+
inline constexpr bool
|
1577
|
+
operator==(const optional<T>& lhs, const optional<U>& rhs)
|
1578
|
+
{
|
1579
|
+
return lhs.has_value() == rhs.has_value() &&
|
1580
|
+
(!lhs.has_value() || *lhs == *rhs);
|
1581
|
+
}
|
1582
|
+
template<class T, class U>
|
1583
|
+
inline constexpr bool
|
1584
|
+
operator!=(const optional<T>& lhs, const optional<U>& rhs)
|
1585
|
+
{
|
1586
|
+
return lhs.has_value() != rhs.has_value() ||
|
1587
|
+
(lhs.has_value() && *lhs != *rhs);
|
1588
|
+
}
|
1589
|
+
template<class T, class U>
|
1590
|
+
inline constexpr bool
|
1591
|
+
operator<(const optional<T>& lhs, const optional<U>& rhs)
|
1592
|
+
{
|
1593
|
+
return rhs.has_value() && (!lhs.has_value() || *lhs < *rhs);
|
1594
|
+
}
|
1595
|
+
template<class T, class U>
|
1596
|
+
inline constexpr bool
|
1597
|
+
operator>(const optional<T>& lhs, const optional<U>& rhs)
|
1598
|
+
{
|
1599
|
+
return lhs.has_value() && (!rhs.has_value() || *lhs > *rhs);
|
1600
|
+
}
|
1601
|
+
template<class T, class U>
|
1602
|
+
inline constexpr bool
|
1603
|
+
operator<=(const optional<T>& lhs, const optional<U>& rhs)
|
1604
|
+
{
|
1605
|
+
return !lhs.has_value() || (rhs.has_value() && *lhs <= *rhs);
|
1606
|
+
}
|
1607
|
+
template<class T, class U>
|
1608
|
+
inline constexpr bool
|
1609
|
+
operator>=(const optional<T>& lhs, const optional<U>& rhs)
|
1610
|
+
{
|
1611
|
+
return !rhs.has_value() || (lhs.has_value() && *lhs >= *rhs);
|
1612
|
+
}
|
1613
|
+
|
1614
|
+
/// Compares an optional to a `nullopt`
|
1615
|
+
template<class T>
|
1616
|
+
inline constexpr bool
|
1617
|
+
operator==(const optional<T>& lhs, nullopt_t) noexcept
|
1618
|
+
{
|
1619
|
+
return !lhs.has_value();
|
1620
|
+
}
|
1621
|
+
template<class T>
|
1622
|
+
inline constexpr bool
|
1623
|
+
operator==(nullopt_t, const optional<T>& rhs) noexcept
|
1624
|
+
{
|
1625
|
+
return !rhs.has_value();
|
1626
|
+
}
|
1627
|
+
template<class T>
|
1628
|
+
inline constexpr bool
|
1629
|
+
operator!=(const optional<T>& lhs, nullopt_t) noexcept
|
1630
|
+
{
|
1631
|
+
return lhs.has_value();
|
1632
|
+
}
|
1633
|
+
template<class T>
|
1634
|
+
inline constexpr bool
|
1635
|
+
operator!=(nullopt_t, const optional<T>& rhs) noexcept
|
1636
|
+
{
|
1637
|
+
return rhs.has_value();
|
1638
|
+
}
|
1639
|
+
template<class T>
|
1640
|
+
inline constexpr bool
|
1641
|
+
operator<(const optional<T>&, nullopt_t) noexcept
|
1642
|
+
{
|
1643
|
+
return false;
|
1644
|
+
}
|
1645
|
+
template<class T>
|
1646
|
+
inline constexpr bool
|
1647
|
+
operator<(nullopt_t, const optional<T>& rhs) noexcept
|
1648
|
+
{
|
1649
|
+
return rhs.has_value();
|
1650
|
+
}
|
1651
|
+
template<class T>
|
1652
|
+
inline constexpr bool
|
1653
|
+
operator<=(const optional<T>& lhs, nullopt_t) noexcept
|
1654
|
+
{
|
1655
|
+
return !lhs.has_value();
|
1656
|
+
}
|
1657
|
+
template<class T>
|
1658
|
+
inline constexpr bool
|
1659
|
+
operator<=(nullopt_t, const optional<T>&) noexcept
|
1660
|
+
{
|
1661
|
+
return true;
|
1662
|
+
}
|
1663
|
+
template<class T>
|
1664
|
+
inline constexpr bool
|
1665
|
+
operator>(const optional<T>& lhs, nullopt_t) noexcept
|
1666
|
+
{
|
1667
|
+
return lhs.has_value();
|
1668
|
+
}
|
1669
|
+
template<class T>
|
1670
|
+
inline constexpr bool
|
1671
|
+
operator>(nullopt_t, const optional<T>&) noexcept
|
1672
|
+
{
|
1673
|
+
return false;
|
1674
|
+
}
|
1675
|
+
template<class T>
|
1676
|
+
inline constexpr bool
|
1677
|
+
operator>=(const optional<T>&, nullopt_t) noexcept
|
1678
|
+
{
|
1679
|
+
return true;
|
1680
|
+
}
|
1681
|
+
template<class T>
|
1682
|
+
inline constexpr bool
|
1683
|
+
operator>=(nullopt_t, const optional<T>& rhs) noexcept
|
1684
|
+
{
|
1685
|
+
return !rhs.has_value();
|
1686
|
+
}
|
1687
|
+
|
1688
|
+
/// Compares the optional with a value.
|
1689
|
+
template<class T, class U>
|
1690
|
+
inline constexpr bool
|
1691
|
+
operator==(const optional<T>& lhs, const U& rhs)
|
1692
|
+
{
|
1693
|
+
return lhs.has_value() ? *lhs == rhs : false;
|
1694
|
+
}
|
1695
|
+
template<class T, class U>
|
1696
|
+
inline constexpr bool
|
1697
|
+
operator==(const U& lhs, const optional<T>& rhs)
|
1698
|
+
{
|
1699
|
+
return rhs.has_value() ? lhs == *rhs : false;
|
1700
|
+
}
|
1701
|
+
template<class T, class U>
|
1702
|
+
inline constexpr bool
|
1703
|
+
operator!=(const optional<T>& lhs, const U& rhs)
|
1704
|
+
{
|
1705
|
+
return lhs.has_value() ? *lhs != rhs : true;
|
1706
|
+
}
|
1707
|
+
template<class T, class U>
|
1708
|
+
inline constexpr bool
|
1709
|
+
operator!=(const U& lhs, const optional<T>& rhs)
|
1710
|
+
{
|
1711
|
+
return rhs.has_value() ? lhs != *rhs : true;
|
1712
|
+
}
|
1713
|
+
template<class T, class U>
|
1714
|
+
inline constexpr bool
|
1715
|
+
operator<(const optional<T>& lhs, const U& rhs)
|
1716
|
+
{
|
1717
|
+
return lhs.has_value() ? *lhs < rhs : true;
|
1718
|
+
}
|
1719
|
+
template<class T, class U>
|
1720
|
+
inline constexpr bool
|
1721
|
+
operator<(const U& lhs, const optional<T>& rhs)
|
1722
|
+
{
|
1723
|
+
return rhs.has_value() ? lhs < *rhs : false;
|
1724
|
+
}
|
1725
|
+
template<class T, class U>
|
1726
|
+
inline constexpr bool
|
1727
|
+
operator<=(const optional<T>& lhs, const U& rhs)
|
1728
|
+
{
|
1729
|
+
return lhs.has_value() ? *lhs <= rhs : true;
|
1730
|
+
}
|
1731
|
+
template<class T, class U>
|
1732
|
+
inline constexpr bool
|
1733
|
+
operator<=(const U& lhs, const optional<T>& rhs)
|
1734
|
+
{
|
1735
|
+
return rhs.has_value() ? lhs <= *rhs : false;
|
1736
|
+
}
|
1737
|
+
template<class T, class U>
|
1738
|
+
inline constexpr bool
|
1739
|
+
operator>(const optional<T>& lhs, const U& rhs)
|
1740
|
+
{
|
1741
|
+
return lhs.has_value() ? *lhs > rhs : false;
|
1742
|
+
}
|
1743
|
+
template<class T, class U>
|
1744
|
+
inline constexpr bool
|
1745
|
+
operator>(const U& lhs, const optional<T>& rhs)
|
1746
|
+
{
|
1747
|
+
return rhs.has_value() ? lhs > *rhs : true;
|
1748
|
+
}
|
1749
|
+
template<class T, class U>
|
1750
|
+
inline constexpr bool
|
1751
|
+
operator>=(const optional<T>& lhs, const U& rhs)
|
1752
|
+
{
|
1753
|
+
return lhs.has_value() ? *lhs >= rhs : false;
|
1754
|
+
}
|
1755
|
+
template<class T, class U>
|
1756
|
+
inline constexpr bool
|
1757
|
+
operator>=(const U& lhs, const optional<T>& rhs)
|
1758
|
+
{
|
1759
|
+
return rhs.has_value() ? lhs >= *rhs : true;
|
1760
|
+
}
|
1761
|
+
|
1762
|
+
template<class T,
|
1763
|
+
detail::enable_if_t<std::is_move_constructible<T>::value>* = nullptr,
|
1764
|
+
detail::enable_if_t<detail::is_swappable<T>::value>* = nullptr>
|
1765
|
+
void
|
1766
|
+
swap(optional<T>& lhs, optional<T>& rhs) noexcept(noexcept(lhs.swap(rhs)))
|
1767
|
+
{
|
1768
|
+
return lhs.swap(rhs);
|
1769
|
+
}
|
1770
|
+
|
1771
|
+
namespace detail {
|
1772
|
+
struct i_am_secret
|
1773
|
+
{};
|
1774
|
+
} // namespace detail
|
1775
|
+
|
1776
|
+
template<
|
1777
|
+
class T = detail::i_am_secret,
|
1778
|
+
class U,
|
1779
|
+
class Ret = detail::conditional_t<std::is_same<T, detail::i_am_secret>::value,
|
1780
|
+
detail::decay_t<U>,
|
1781
|
+
T>>
|
1782
|
+
inline constexpr optional<Ret>
|
1783
|
+
make_optional(U&& v)
|
1784
|
+
{
|
1785
|
+
return optional<Ret>(std::forward<U>(v));
|
1786
|
+
}
|
1787
|
+
|
1788
|
+
template<class T, class... Args>
|
1789
|
+
inline constexpr optional<T>
|
1790
|
+
make_optional(Args&&... args)
|
1791
|
+
{
|
1792
|
+
return optional<T>(in_place, std::forward<Args>(args)...);
|
1793
|
+
}
|
1794
|
+
template<class T, class U, class... Args>
|
1795
|
+
inline constexpr optional<T>
|
1796
|
+
make_optional(std::initializer_list<U> il, Args&&... args)
|
1797
|
+
{
|
1798
|
+
return optional<T>(in_place, il, std::forward<Args>(args)...);
|
1799
|
+
}
|
1800
|
+
|
1801
|
+
#if __cplusplus >= 201703L
|
1802
|
+
template<class T>
|
1803
|
+
optional(T) -> optional<T>;
|
1804
|
+
#endif
|
1805
|
+
|
1806
|
+
/// \exclude
|
1807
|
+
namespace detail {
|
1808
|
+
#ifdef TL_OPTIONAL_CXX14
|
1809
|
+
template<class Opt,
|
1810
|
+
class F,
|
1811
|
+
class Ret = decltype(detail::invoke(std::declval<F>(),
|
1812
|
+
*std::declval<Opt>())),
|
1813
|
+
detail::enable_if_t<!std::is_void<Ret>::value>* = nullptr>
|
1814
|
+
constexpr auto
|
1815
|
+
optional_map_impl(Opt&& opt, F&& f)
|
1816
|
+
{
|
1817
|
+
return opt.has_value()
|
1818
|
+
? detail::invoke(std::forward<F>(f), *std::forward<Opt>(opt))
|
1819
|
+
: optional<Ret>(nullopt);
|
1820
|
+
}
|
1821
|
+
|
1822
|
+
template<class Opt,
|
1823
|
+
class F,
|
1824
|
+
class Ret = decltype(detail::invoke(std::declval<F>(),
|
1825
|
+
*std::declval<Opt>())),
|
1826
|
+
detail::enable_if_t<std::is_void<Ret>::value>* = nullptr>
|
1827
|
+
auto
|
1828
|
+
optional_map_impl(Opt&& opt, F&& f)
|
1829
|
+
{
|
1830
|
+
if (opt.has_value()) {
|
1831
|
+
detail::invoke(std::forward<F>(f), *std::forward<Opt>(opt));
|
1832
|
+
return make_optional(monostate{});
|
1833
|
+
}
|
1834
|
+
|
1835
|
+
return optional<monostate>(nullopt);
|
1836
|
+
}
|
1837
|
+
#else
|
1838
|
+
template<class Opt,
|
1839
|
+
class F,
|
1840
|
+
class Ret = decltype(detail::invoke(std::declval<F>(),
|
1841
|
+
*std::declval<Opt>())),
|
1842
|
+
detail::enable_if_t<!std::is_void<Ret>::value>* = nullptr>
|
1843
|
+
|
1844
|
+
constexpr auto
|
1845
|
+
optional_map_impl(Opt&& opt, F&& f) -> optional<Ret>
|
1846
|
+
{
|
1847
|
+
return opt.has_value()
|
1848
|
+
? detail::invoke(std::forward<F>(f), *std::forward<Opt>(opt))
|
1849
|
+
: optional<Ret>(nullopt);
|
1850
|
+
}
|
1851
|
+
|
1852
|
+
template<class Opt,
|
1853
|
+
class F,
|
1854
|
+
class Ret = decltype(detail::invoke(std::declval<F>(),
|
1855
|
+
*std::declval<Opt>())),
|
1856
|
+
detail::enable_if_t<std::is_void<Ret>::value>* = nullptr>
|
1857
|
+
|
1858
|
+
auto
|
1859
|
+
optional_map_impl(Opt&& opt, F&& f) -> optional<monostate>
|
1860
|
+
{
|
1861
|
+
if (opt.has_value()) {
|
1862
|
+
detail::invoke(std::forward<F>(f), *std::forward<Opt>(opt));
|
1863
|
+
return monostate{};
|
1864
|
+
}
|
1865
|
+
|
1866
|
+
return nullopt;
|
1867
|
+
}
|
1868
|
+
#endif
|
1869
|
+
} // namespace detail
|
1870
|
+
|
1871
|
+
/// Specialization for when `T` is a reference. `optional<T&>` acts similarly
|
1872
|
+
/// to a `T*`, but provides more operations and shows intent more clearly.
|
1873
|
+
template<class T>
|
1874
|
+
class optional<T&>
|
1875
|
+
{
|
1876
|
+
public:
|
1877
|
+
// The different versions for C++14 and 11 are needed because deduced return
|
1878
|
+
// types are not SFINAE-safe. This provides better support for things like
|
1879
|
+
// generic lambdas. C.f.
|
1880
|
+
// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0826r0.html
|
1881
|
+
#if defined(TL_OPTIONAL_CXX14) && !defined(TL_OPTIONAL_GCC49) && \
|
1882
|
+
!defined(TL_OPTIONAL_GCC54) && !defined(TL_OPTIONAL_GCC55)
|
1883
|
+
|
1884
|
+
/// Carries out some operation which returns an optional on the stored
|
1885
|
+
/// object if there is one.
|
1886
|
+
template<class F>
|
1887
|
+
TL_OPTIONAL_11_CONSTEXPR auto and_then(F&& f) &
|
1888
|
+
{
|
1889
|
+
using result = detail::invoke_result_t<F, T&>;
|
1890
|
+
static_assert(detail::is_optional<result>::value,
|
1891
|
+
"F must return an optional");
|
1892
|
+
|
1893
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
1894
|
+
: result(nullopt);
|
1895
|
+
}
|
1896
|
+
|
1897
|
+
template<class F>
|
1898
|
+
TL_OPTIONAL_11_CONSTEXPR auto and_then(F&& f) &&
|
1899
|
+
{
|
1900
|
+
using result = detail::invoke_result_t<F, T&>;
|
1901
|
+
static_assert(detail::is_optional<result>::value,
|
1902
|
+
"F must return an optional");
|
1903
|
+
|
1904
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
1905
|
+
: result(nullopt);
|
1906
|
+
}
|
1907
|
+
|
1908
|
+
template<class F>
|
1909
|
+
constexpr auto and_then(F&& f) const&
|
1910
|
+
{
|
1911
|
+
using result = detail::invoke_result_t<F, const T&>;
|
1912
|
+
static_assert(detail::is_optional<result>::value,
|
1913
|
+
"F must return an optional");
|
1914
|
+
|
1915
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
1916
|
+
: result(nullopt);
|
1917
|
+
}
|
1918
|
+
|
1919
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
1920
|
+
template<class F>
|
1921
|
+
constexpr auto and_then(F&& f) const&&
|
1922
|
+
{
|
1923
|
+
using result = detail::invoke_result_t<F, const T&>;
|
1924
|
+
static_assert(detail::is_optional<result>::value,
|
1925
|
+
"F must return an optional");
|
1926
|
+
|
1927
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
1928
|
+
: result(nullopt);
|
1929
|
+
}
|
1930
|
+
#endif
|
1931
|
+
#else
|
1932
|
+
/// Carries out some operation which returns an optional on the stored
|
1933
|
+
/// object if there is one.
|
1934
|
+
template<class F>
|
1935
|
+
TL_OPTIONAL_11_CONSTEXPR detail::invoke_result_t<F, T&> and_then(F&& f) &
|
1936
|
+
{
|
1937
|
+
using result = detail::invoke_result_t<F, T&>;
|
1938
|
+
static_assert(detail::is_optional<result>::value,
|
1939
|
+
"F must return an optional");
|
1940
|
+
|
1941
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
1942
|
+
: result(nullopt);
|
1943
|
+
}
|
1944
|
+
|
1945
|
+
template<class F>
|
1946
|
+
TL_OPTIONAL_11_CONSTEXPR detail::invoke_result_t<F, T&> and_then(F&& f) &&
|
1947
|
+
{
|
1948
|
+
using result = detail::invoke_result_t<F, T&>;
|
1949
|
+
static_assert(detail::is_optional<result>::value,
|
1950
|
+
"F must return an optional");
|
1951
|
+
|
1952
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
1953
|
+
: result(nullopt);
|
1954
|
+
}
|
1955
|
+
|
1956
|
+
template<class F>
|
1957
|
+
constexpr detail::invoke_result_t<F, const T&> and_then(F&& f) const&
|
1958
|
+
{
|
1959
|
+
using result = detail::invoke_result_t<F, const T&>;
|
1960
|
+
static_assert(detail::is_optional<result>::value,
|
1961
|
+
"F must return an optional");
|
1962
|
+
|
1963
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
1964
|
+
: result(nullopt);
|
1965
|
+
}
|
1966
|
+
|
1967
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
1968
|
+
template<class F>
|
1969
|
+
constexpr detail::invoke_result_t<F, const T&> and_then(F&& f) const&&
|
1970
|
+
{
|
1971
|
+
using result = detail::invoke_result_t<F, const T&>;
|
1972
|
+
static_assert(detail::is_optional<result>::value,
|
1973
|
+
"F must return an optional");
|
1974
|
+
|
1975
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
1976
|
+
: result(nullopt);
|
1977
|
+
}
|
1978
|
+
#endif
|
1979
|
+
#endif
|
1980
|
+
|
1981
|
+
#if defined(TL_OPTIONAL_CXX14) && !defined(TL_OPTIONAL_GCC49) && \
|
1982
|
+
!defined(TL_OPTIONAL_GCC54) && !defined(TL_OPTIONAL_GCC55)
|
1983
|
+
/// Carries out some operation on the stored object if there is one.
|
1984
|
+
template<class F>
|
1985
|
+
TL_OPTIONAL_11_CONSTEXPR auto map(F&& f) &
|
1986
|
+
{
|
1987
|
+
return detail::optional_map_impl(*this, std::forward<F>(f));
|
1988
|
+
}
|
1989
|
+
|
1990
|
+
template<class F>
|
1991
|
+
TL_OPTIONAL_11_CONSTEXPR auto map(F&& f) &&
|
1992
|
+
{
|
1993
|
+
return detail::optional_map_impl(std::move(*this), std::forward<F>(f));
|
1994
|
+
}
|
1995
|
+
|
1996
|
+
template<class F>
|
1997
|
+
constexpr auto map(F&& f) const&
|
1998
|
+
{
|
1999
|
+
return detail::optional_map_impl(*this, std::forward<F>(f));
|
2000
|
+
}
|
2001
|
+
|
2002
|
+
template<class F>
|
2003
|
+
constexpr auto map(F&& f) const&&
|
2004
|
+
{
|
2005
|
+
return detail::optional_map_impl(std::move(*this), std::forward<F>(f));
|
2006
|
+
}
|
2007
|
+
#else
|
2008
|
+
/// Carries out some operation on the stored object if there is one.
|
2009
|
+
template<class F>
|
2010
|
+
TL_OPTIONAL_11_CONSTEXPR decltype(detail::optional_map_impl(
|
2011
|
+
std::declval<optional&>(),
|
2012
|
+
std::declval<F&&>()))
|
2013
|
+
map(F&& f) &
|
2014
|
+
{
|
2015
|
+
return detail::optional_map_impl(*this, std::forward<F>(f));
|
2016
|
+
}
|
2017
|
+
|
2018
|
+
template<class F>
|
2019
|
+
TL_OPTIONAL_11_CONSTEXPR decltype(detail::optional_map_impl(
|
2020
|
+
std::declval<optional&&>(),
|
2021
|
+
std::declval<F&&>()))
|
2022
|
+
map(F&& f) &&
|
2023
|
+
{
|
2024
|
+
return detail::optional_map_impl(std::move(*this), std::forward<F>(f));
|
2025
|
+
}
|
2026
|
+
|
2027
|
+
template<class F>
|
2028
|
+
constexpr decltype(detail::optional_map_impl(std::declval<const optional&>(),
|
2029
|
+
std::declval<F&&>()))
|
2030
|
+
map(F&& f) const&
|
2031
|
+
{
|
2032
|
+
return detail::optional_map_impl(*this, std::forward<F>(f));
|
2033
|
+
}
|
2034
|
+
|
2035
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
2036
|
+
template<class F>
|
2037
|
+
constexpr decltype(detail::optional_map_impl(std::declval<const optional&&>(),
|
2038
|
+
std::declval<F&&>()))
|
2039
|
+
map(F&& f) const&&
|
2040
|
+
{
|
2041
|
+
return detail::optional_map_impl(std::move(*this), std::forward<F>(f));
|
2042
|
+
}
|
2043
|
+
#endif
|
2044
|
+
#endif
|
2045
|
+
|
2046
|
+
#if defined(TL_OPTIONAL_CXX14) && !defined(TL_OPTIONAL_GCC49) && \
|
2047
|
+
!defined(TL_OPTIONAL_GCC54) && !defined(TL_OPTIONAL_GCC55)
|
2048
|
+
/// Carries out some operation on the stored object if there is one.
|
2049
|
+
template<class F>
|
2050
|
+
TL_OPTIONAL_11_CONSTEXPR auto transform(F&& f) &
|
2051
|
+
{
|
2052
|
+
return detail::optional_map_impl(*this, std::forward<F>(f));
|
2053
|
+
}
|
2054
|
+
|
2055
|
+
template<class F>
|
2056
|
+
TL_OPTIONAL_11_CONSTEXPR auto transform(F&& f) &&
|
2057
|
+
{
|
2058
|
+
return detail::optional_map_impl(std::move(*this), std::forward<F>(f));
|
2059
|
+
}
|
2060
|
+
|
2061
|
+
template<class F>
|
2062
|
+
constexpr auto transform(F&& f) const&
|
2063
|
+
{
|
2064
|
+
return detail::optional_map_impl(*this, std::forward<F>(f));
|
2065
|
+
}
|
2066
|
+
|
2067
|
+
template<class F>
|
2068
|
+
constexpr auto transform(F&& f) const&&
|
2069
|
+
{
|
2070
|
+
return detail::optional_map_impl(std::move(*this), std::forward<F>(f));
|
2071
|
+
}
|
2072
|
+
#else
|
2073
|
+
/// Carries out some operation on the stored object if there is one.
|
2074
|
+
template<class F>
|
2075
|
+
TL_OPTIONAL_11_CONSTEXPR decltype(detail::optional_map_impl(
|
2076
|
+
std::declval<optional&>(),
|
2077
|
+
std::declval<F&&>()))
|
2078
|
+
transform(F&& f) &
|
2079
|
+
{
|
2080
|
+
return detail::optional_map_impl(*this, std::forward<F>(f));
|
2081
|
+
}
|
2082
|
+
|
2083
|
+
/// \group map
|
2084
|
+
/// \synopsis template <class F> auto transform(F &&f) &&;
|
2085
|
+
template<class F>
|
2086
|
+
TL_OPTIONAL_11_CONSTEXPR decltype(detail::optional_map_impl(
|
2087
|
+
std::declval<optional&&>(),
|
2088
|
+
std::declval<F&&>()))
|
2089
|
+
transform(F&& f) &&
|
2090
|
+
{
|
2091
|
+
return detail::optional_map_impl(std::move(*this), std::forward<F>(f));
|
2092
|
+
}
|
2093
|
+
|
2094
|
+
template<class F>
|
2095
|
+
constexpr decltype(detail::optional_map_impl(std::declval<const optional&>(),
|
2096
|
+
std::declval<F&&>()))
|
2097
|
+
transform(F&& f) const&
|
2098
|
+
{
|
2099
|
+
return detail::optional_map_impl(*this, std::forward<F>(f));
|
2100
|
+
}
|
2101
|
+
|
2102
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
2103
|
+
template<class F>
|
2104
|
+
constexpr decltype(detail::optional_map_impl(std::declval<const optional&&>(),
|
2105
|
+
std::declval<F&&>()))
|
2106
|
+
transform(F&& f) const&&
|
2107
|
+
{
|
2108
|
+
return detail::optional_map_impl(std::move(*this), std::forward<F>(f));
|
2109
|
+
}
|
2110
|
+
#endif
|
2111
|
+
#endif
|
2112
|
+
|
2113
|
+
/// Calls `f` if the optional is empty
|
2114
|
+
template<class F, detail::enable_if_ret_void<F>* = nullptr>
|
2115
|
+
optional<T> TL_OPTIONAL_11_CONSTEXPR or_else(F&& f) &
|
2116
|
+
{
|
2117
|
+
if (has_value())
|
2118
|
+
return *this;
|
2119
|
+
|
2120
|
+
std::forward<F>(f)();
|
2121
|
+
return nullopt;
|
2122
|
+
}
|
2123
|
+
|
2124
|
+
template<class F, detail::disable_if_ret_void<F>* = nullptr>
|
2125
|
+
optional<T> TL_OPTIONAL_11_CONSTEXPR or_else(F&& f) &
|
2126
|
+
{
|
2127
|
+
return has_value() ? *this : std::forward<F>(f)();
|
2128
|
+
}
|
2129
|
+
|
2130
|
+
template<class F, detail::enable_if_ret_void<F>* = nullptr>
|
2131
|
+
optional<T> or_else(F&& f) &&
|
2132
|
+
{
|
2133
|
+
if (has_value())
|
2134
|
+
return std::move(*this);
|
2135
|
+
|
2136
|
+
std::forward<F>(f)();
|
2137
|
+
return nullopt;
|
2138
|
+
}
|
2139
|
+
|
2140
|
+
template<class F, detail::disable_if_ret_void<F>* = nullptr>
|
2141
|
+
optional<T> TL_OPTIONAL_11_CONSTEXPR or_else(F&& f) &&
|
2142
|
+
{
|
2143
|
+
return has_value() ? std::move(*this) : std::forward<F>(f)();
|
2144
|
+
}
|
2145
|
+
|
2146
|
+
template<class F, detail::enable_if_ret_void<F>* = nullptr>
|
2147
|
+
optional<T> or_else(F&& f) const&
|
2148
|
+
{
|
2149
|
+
if (has_value())
|
2150
|
+
return *this;
|
2151
|
+
|
2152
|
+
std::forward<F>(f)();
|
2153
|
+
return nullopt;
|
2154
|
+
}
|
2155
|
+
|
2156
|
+
template<class F, detail::disable_if_ret_void<F>* = nullptr>
|
2157
|
+
optional<T> TL_OPTIONAL_11_CONSTEXPR or_else(F&& f) const&
|
2158
|
+
{
|
2159
|
+
return has_value() ? *this : std::forward<F>(f)();
|
2160
|
+
}
|
2161
|
+
|
2162
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
2163
|
+
template<class F, detail::enable_if_ret_void<F>* = nullptr>
|
2164
|
+
optional<T> or_else(F&& f) const&&
|
2165
|
+
{
|
2166
|
+
if (has_value())
|
2167
|
+
return std::move(*this);
|
2168
|
+
|
2169
|
+
std::forward<F>(f)();
|
2170
|
+
return nullopt;
|
2171
|
+
}
|
2172
|
+
|
2173
|
+
template<class F, detail::disable_if_ret_void<F>* = nullptr>
|
2174
|
+
optional<T> or_else(F&& f) const&&
|
2175
|
+
{
|
2176
|
+
return has_value() ? std::move(*this) : std::forward<F>(f)();
|
2177
|
+
}
|
2178
|
+
#endif
|
2179
|
+
|
2180
|
+
/// Maps the stored value with `f` if there is one, otherwise returns `u`
|
2181
|
+
template<class F, class U>
|
2182
|
+
U map_or(F&& f, U&& u) &
|
2183
|
+
{
|
2184
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
2185
|
+
: std::forward<U>(u);
|
2186
|
+
}
|
2187
|
+
|
2188
|
+
template<class F, class U>
|
2189
|
+
U map_or(F&& f, U&& u) &&
|
2190
|
+
{
|
2191
|
+
return has_value() ? detail::invoke(std::forward<F>(f), std::move(**this))
|
2192
|
+
: std::forward<U>(u);
|
2193
|
+
}
|
2194
|
+
|
2195
|
+
template<class F, class U>
|
2196
|
+
U map_or(F&& f, U&& u) const&
|
2197
|
+
{
|
2198
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
2199
|
+
: std::forward<U>(u);
|
2200
|
+
}
|
2201
|
+
|
2202
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
2203
|
+
template<class F, class U>
|
2204
|
+
U map_or(F&& f, U&& u) const&&
|
2205
|
+
{
|
2206
|
+
return has_value() ? detail::invoke(std::forward<F>(f), std::move(**this))
|
2207
|
+
: std::forward<U>(u);
|
2208
|
+
}
|
2209
|
+
#endif
|
2210
|
+
|
2211
|
+
/// Maps the stored value with `f` if there is one, otherwise calls
|
2212
|
+
/// `u` and returns the result.
|
2213
|
+
template<class F, class U>
|
2214
|
+
detail::invoke_result_t<U> map_or_else(F&& f, U&& u) &
|
2215
|
+
{
|
2216
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
2217
|
+
: std::forward<U>(u)();
|
2218
|
+
}
|
2219
|
+
|
2220
|
+
template<class F, class U>
|
2221
|
+
detail::invoke_result_t<U> map_or_else(F&& f, U&& u) &&
|
2222
|
+
{
|
2223
|
+
return has_value() ? detail::invoke(std::forward<F>(f), std::move(**this))
|
2224
|
+
: std::forward<U>(u)();
|
2225
|
+
}
|
2226
|
+
|
2227
|
+
template<class F, class U>
|
2228
|
+
detail::invoke_result_t<U> map_or_else(F&& f, U&& u) const&
|
2229
|
+
{
|
2230
|
+
return has_value() ? detail::invoke(std::forward<F>(f), **this)
|
2231
|
+
: std::forward<U>(u)();
|
2232
|
+
}
|
2233
|
+
|
2234
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
2235
|
+
template<class F, class U>
|
2236
|
+
detail::invoke_result_t<U> map_or_else(F&& f, U&& u) const&&
|
2237
|
+
{
|
2238
|
+
return has_value() ? detail::invoke(std::forward<F>(f), std::move(**this))
|
2239
|
+
: std::forward<U>(u)();
|
2240
|
+
}
|
2241
|
+
#endif
|
2242
|
+
|
2243
|
+
/// Returns `u` if `*this` has a value, otherwise an empty optional.
|
2244
|
+
template<class U>
|
2245
|
+
constexpr optional<typename std::decay<U>::type> conjunction(U&& u) const
|
2246
|
+
{
|
2247
|
+
using result = optional<detail::decay_t<U>>;
|
2248
|
+
return has_value() ? result{ u } : result{ nullopt };
|
2249
|
+
}
|
2250
|
+
|
2251
|
+
/// Returns `rhs` if `*this` is empty, otherwise the current value.
|
2252
|
+
TL_OPTIONAL_11_CONSTEXPR optional disjunction(const optional& rhs) &
|
2253
|
+
{
|
2254
|
+
return has_value() ? *this : rhs;
|
2255
|
+
}
|
2256
|
+
|
2257
|
+
constexpr optional disjunction(const optional& rhs) const&
|
2258
|
+
{
|
2259
|
+
return has_value() ? *this : rhs;
|
2260
|
+
}
|
2261
|
+
|
2262
|
+
TL_OPTIONAL_11_CONSTEXPR optional disjunction(const optional& rhs) &&
|
2263
|
+
{
|
2264
|
+
return has_value() ? std::move(*this) : rhs;
|
2265
|
+
}
|
2266
|
+
|
2267
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
2268
|
+
constexpr optional disjunction(const optional& rhs) const&&
|
2269
|
+
{
|
2270
|
+
return has_value() ? std::move(*this) : rhs;
|
2271
|
+
}
|
2272
|
+
#endif
|
2273
|
+
|
2274
|
+
TL_OPTIONAL_11_CONSTEXPR optional disjunction(optional&& rhs) &
|
2275
|
+
{
|
2276
|
+
return has_value() ? *this : std::move(rhs);
|
2277
|
+
}
|
2278
|
+
|
2279
|
+
constexpr optional disjunction(optional&& rhs) const&
|
2280
|
+
{
|
2281
|
+
return has_value() ? *this : std::move(rhs);
|
2282
|
+
}
|
2283
|
+
|
2284
|
+
TL_OPTIONAL_11_CONSTEXPR optional disjunction(optional&& rhs) &&
|
2285
|
+
{
|
2286
|
+
return has_value() ? std::move(*this) : std::move(rhs);
|
2287
|
+
}
|
2288
|
+
|
2289
|
+
#ifndef TL_OPTIONAL_NO_CONSTRR
|
2290
|
+
constexpr optional disjunction(optional&& rhs) const&&
|
2291
|
+
{
|
2292
|
+
return has_value() ? std::move(*this) : std::move(rhs);
|
2293
|
+
}
|
2294
|
+
#endif
|
2295
|
+
|
2296
|
+
/// Takes the value out of the optional, leaving it empty
|
2297
|
+
optional take()
|
2298
|
+
{
|
2299
|
+
optional ret = std::move(*this);
|
2300
|
+
reset();
|
2301
|
+
return ret;
|
2302
|
+
}
|
2303
|
+
|
2304
|
+
using value_type = T&;
|
2305
|
+
|
2306
|
+
/// Constructs an optional that does not contain a value.
|
2307
|
+
constexpr optional() noexcept
|
2308
|
+
: m_value(nullptr)
|
2309
|
+
{
|
2310
|
+
}
|
2311
|
+
|
2312
|
+
constexpr optional(nullopt_t) noexcept
|
2313
|
+
: m_value(nullptr)
|
2314
|
+
{
|
2315
|
+
}
|
2316
|
+
|
2317
|
+
/// Copy constructor
|
2318
|
+
///
|
2319
|
+
/// If `rhs` contains a value, the stored value is direct-initialized with
|
2320
|
+
/// it. Otherwise, the constructed optional is empty.
|
2321
|
+
TL_OPTIONAL_11_CONSTEXPR optional(const optional& rhs) noexcept = default;
|
2322
|
+
|
2323
|
+
/// Move constructor
|
2324
|
+
///
|
2325
|
+
/// If `rhs` contains a value, the stored value is direct-initialized with
|
2326
|
+
/// it. Otherwise, the constructed optional is empty.
|
2327
|
+
TL_OPTIONAL_11_CONSTEXPR optional(optional&& rhs) = default;
|
2328
|
+
|
2329
|
+
/// Constructs the stored value with `u`.
|
2330
|
+
template<class U = T,
|
2331
|
+
detail::enable_if_t<
|
2332
|
+
!detail::is_optional<detail::decay_t<U>>::value>* = nullptr>
|
2333
|
+
constexpr optional(U&& u) noexcept
|
2334
|
+
: m_value(std::addressof(u))
|
2335
|
+
{
|
2336
|
+
static_assert(std::is_lvalue_reference<U>::value, "U must be an lvalue");
|
2337
|
+
}
|
2338
|
+
|
2339
|
+
template<class U>
|
2340
|
+
constexpr explicit optional(const optional<U>& rhs) noexcept
|
2341
|
+
: optional(*rhs)
|
2342
|
+
{
|
2343
|
+
}
|
2344
|
+
|
2345
|
+
/// No-op
|
2346
|
+
~optional() = default;
|
2347
|
+
|
2348
|
+
/// Assignment to empty.
|
2349
|
+
///
|
2350
|
+
/// Destroys the current value if there is one.
|
2351
|
+
optional& operator=(nullopt_t) noexcept
|
2352
|
+
{
|
2353
|
+
m_value = nullptr;
|
2354
|
+
return *this;
|
2355
|
+
}
|
2356
|
+
|
2357
|
+
/// Copy assignment.
|
2358
|
+
///
|
2359
|
+
/// Rebinds this optional to the referee of `rhs` if there is one. Otherwise
|
2360
|
+
/// resets the stored value in `*this`.
|
2361
|
+
optional& operator=(const optional& rhs) = default;
|
2362
|
+
|
2363
|
+
/// Rebinds this optional to `u`.
|
2364
|
+
template<class U = T,
|
2365
|
+
detail::enable_if_t<
|
2366
|
+
!detail::is_optional<detail::decay_t<U>>::value>* = nullptr>
|
2367
|
+
optional& operator=(U&& u)
|
2368
|
+
{
|
2369
|
+
static_assert(std::is_lvalue_reference<U>::value, "U must be an lvalue");
|
2370
|
+
m_value = std::addressof(u);
|
2371
|
+
return *this;
|
2372
|
+
}
|
2373
|
+
|
2374
|
+
/// Converting copy assignment operator.
|
2375
|
+
///
|
2376
|
+
/// Rebinds this optional to the referee of `rhs` if there is one. Otherwise
|
2377
|
+
/// resets the stored value in `*this`.
|
2378
|
+
template<class U>
|
2379
|
+
optional& operator=(const optional<U>& rhs) noexcept
|
2380
|
+
{
|
2381
|
+
m_value = std::addressof(rhs.value());
|
2382
|
+
return *this;
|
2383
|
+
}
|
2384
|
+
|
2385
|
+
/// Rebinds this optional to `u`.
|
2386
|
+
template<class U = T,
|
2387
|
+
detail::enable_if_t<
|
2388
|
+
!detail::is_optional<detail::decay_t<U>>::value>* = nullptr>
|
2389
|
+
optional& emplace(U&& u) noexcept
|
2390
|
+
{
|
2391
|
+
return *this = std::forward<U>(u);
|
2392
|
+
}
|
2393
|
+
|
2394
|
+
void swap(optional& rhs) noexcept { std::swap(m_value, rhs.m_value); }
|
2395
|
+
|
2396
|
+
/// Returns a pointer to the stored value
|
2397
|
+
constexpr const T* operator->() const noexcept { return m_value; }
|
2398
|
+
|
2399
|
+
TL_OPTIONAL_11_CONSTEXPR T* operator->() noexcept { return m_value; }
|
2400
|
+
|
2401
|
+
/// Returns the stored value
|
2402
|
+
TL_OPTIONAL_11_CONSTEXPR T& operator*() noexcept { return *m_value; }
|
2403
|
+
|
2404
|
+
constexpr const T& operator*() const noexcept { return *m_value; }
|
2405
|
+
|
2406
|
+
constexpr bool has_value() const noexcept { return m_value != nullptr; }
|
2407
|
+
|
2408
|
+
constexpr explicit operator bool() const noexcept
|
2409
|
+
{
|
2410
|
+
return m_value != nullptr;
|
2411
|
+
}
|
2412
|
+
|
2413
|
+
/// Returns the contained value if there is one, otherwise throws
|
2414
|
+
/// bad_optional_access
|
2415
|
+
TL_OPTIONAL_11_CONSTEXPR T& value()
|
2416
|
+
{
|
2417
|
+
if (has_value())
|
2418
|
+
return *m_value;
|
2419
|
+
throw bad_optional_access();
|
2420
|
+
}
|
2421
|
+
TL_OPTIONAL_11_CONSTEXPR const T& value() const
|
2422
|
+
{
|
2423
|
+
if (has_value())
|
2424
|
+
return *m_value;
|
2425
|
+
throw bad_optional_access();
|
2426
|
+
}
|
2427
|
+
|
2428
|
+
/// Returns the stored value if there is one, otherwise returns `u`
|
2429
|
+
template<class U>
|
2430
|
+
constexpr T value_or(U&& u) const& noexcept
|
2431
|
+
{
|
2432
|
+
static_assert(std::is_copy_constructible<T>::value &&
|
2433
|
+
std::is_convertible<U&&, T>::value,
|
2434
|
+
"T must be copy constructible and convertible from U");
|
2435
|
+
return has_value() ? **this : static_cast<T>(std::forward<U>(u));
|
2436
|
+
}
|
2437
|
+
|
2438
|
+
/// \group value_or
|
2439
|
+
template<class U>
|
2440
|
+
TL_OPTIONAL_11_CONSTEXPR T value_or(U&& u) && noexcept
|
2441
|
+
{
|
2442
|
+
static_assert(std::is_move_constructible<T>::value &&
|
2443
|
+
std::is_convertible<U&&, T>::value,
|
2444
|
+
"T must be move constructible and convertible from U");
|
2445
|
+
return has_value() ? **this : static_cast<T>(std::forward<U>(u));
|
2446
|
+
}
|
2447
|
+
|
2448
|
+
/// Destroys the stored value if one exists, making the optional empty
|
2449
|
+
void reset() noexcept { m_value = nullptr; }
|
2450
|
+
|
2451
|
+
private:
|
2452
|
+
T* m_value;
|
2453
|
+
}; // namespace tl
|
2454
|
+
|
2455
|
+
} // namespace tl
|
2456
|
+
|
2457
|
+
namespace std {
|
2458
|
+
// TODO SFINAE
|
2459
|
+
template<class T>
|
2460
|
+
struct hash<tl::optional<T>>
|
2461
|
+
{
|
2462
|
+
::std::size_t operator()(const tl::optional<T>& o) const
|
2463
|
+
{
|
2464
|
+
if (!o.has_value())
|
2465
|
+
return 0;
|
2466
|
+
|
2467
|
+
return std::hash<tl::detail::remove_const_t<T>>()(*o);
|
2468
|
+
}
|
2469
|
+
};
|
2470
|
+
} // namespace std
|
2471
|
+
|
2472
|
+
#endif
|