sleipnirgroup-jormungandr 0.6.7.dev190__tar.gz → 0.6.7.dev192__tar.gz
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.
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/PKG-INFO +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/autodiff/real.hpp +163 -91
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/autodiff/real_matrix.hpp +11 -7
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/autodiff/real_submatrix.hpp +11 -7
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/util/concepts.hpp +43 -9
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/autodiff/bind_real_matrix.cpp +13 -9
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/autodiff/bind_real_submatrix.cpp +7 -7
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/docstrings.hpp +30 -4
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/src/sleipnir/__init__.py +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/CMakeLists.txt +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/LICENSE.txt +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/README.md +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/SleipnirConfig.cmake.in +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/cmake/BuildTypes.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/cmake/CompilerFlags.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/cmake/Pybind11Mkdoc.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/cmake/Pybind11MkdocPostprocess.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/cmake/SubdirList.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/cmake/aarch64-linux-gnu.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/cmake/arm-none-eabi.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/autodiff/expression.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/autodiff/expression_functions.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/autodiff/expression_graph.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/autodiff/expression_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/autodiff/gradient.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/autodiff/hessian.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/autodiff/jacobian.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/autodiff/sleipnir_base.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/autodiff/slice.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/multistart.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/ocp/dynamics_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/ocp/timestep_method.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/ocp/transcription_method.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/ocp.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/problem.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/control_flow.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/exit_status.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/ipm.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/ipm_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/iteration_info.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/newton.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/newton_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/options.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/sqp.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/sqp_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/all_finite.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/append_as_triplets.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/barrier_parameter.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/bounds.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/constraint_violation.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/dense_kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/feasibility_restoration.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/feasibility_restoration_cycle_detector.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/filter.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/first_derivatives.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/fraction_to_the_boundary_rule.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/function_values.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/iterates.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/kkt_error.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/kkt_system.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/problem_scaling.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/regularization_limits.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/ruiz_equilibration.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/sparse_inf_norms.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/sparse_kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/step.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/optimization/solver/util/time_trace.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/util/assert.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/util/empty.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/util/force_inline.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/util/function_ref.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/util/intrusive_shared_ptr.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/util/pool.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/util/print.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/util/print_diagnostics.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/util/scope_exit.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/util/spy.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/util/symbol_exports.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/include/sleipnir/util/time_tracer.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/pyproject.toml +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/.clang-tidy +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/arity.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/array_ufunc.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/autodiff/bind_expression_type.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/autodiff/bind_gradient.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/autodiff/bind_hessian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/autodiff/bind_jacobian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/autodiff/bind_real.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/binders.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/element_index.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/for_each_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/main.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/optimization/bind_equality_constraints.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/optimization/bind_inequality_constraints.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/optimization/bind_ocp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/optimization/bind_problem.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/optimization/ocp/bind_dynamics_type.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/optimization/ocp/bind_timestep_method.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/optimization/ocp/bind_transcription_method.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/optimization/solver/bind_exit_status.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/optimization/solver/bind_iteration_info.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/real_scalar.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/real_scalar_comparisons.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/slice_tuple.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/text_wrap.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/cpp/try_cast.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/postprocess_stubs.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/src/sleipnir/autodiff/__init__.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/src/sleipnir/optimization/__init__.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/autodiff/gradient_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/autodiff/hessian_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/autodiff/jacobian_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/autodiff/real_matrix_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/autodiff/real_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/arm_on_elevator_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/cart_pole_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/cart_pole_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/cart_pole_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/constraints_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/differential_drive_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/differential_drive_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/differential_drive_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/double_integrator_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/flywheel_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/flywheel_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/flywheel_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/linear_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/multistart_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/nonlinear_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/problem_spy_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/problem_variable_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/quadratic_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/rk4.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/solver/exit_status_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/tolerance.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/python/test/optimization/trivial_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/src/autodiff/gradient.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/src/autodiff/hessian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/src/autodiff/jacobian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/src/autodiff/real_matrix.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/src/optimization/ocp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/src/optimization/problem.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/src/optimization/solver/ipm.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/src/optimization/solver/newton.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/src/optimization/solver/sqp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev190 → sleipnirgroup_jormungandr-0.6.7.dev192}/src/util/pool.cpp +0 -0
|
@@ -164,117 +164,169 @@ class Real : public SleipnirBase {
|
|
|
164
164
|
|
|
165
165
|
/// Real-scalar multiplication operator.
|
|
166
166
|
///
|
|
167
|
-
/// @tparam LHS Operator left-hand side type.
|
|
168
167
|
/// @tparam RHS Operator right-hand side type.
|
|
169
168
|
/// @param lhs Operator left-hand side.
|
|
170
169
|
/// @param rhs Operator right-hand side.
|
|
171
170
|
/// @return Result of multiplication.
|
|
172
|
-
template <
|
|
173
|
-
friend Real
|
|
174
|
-
|
|
171
|
+
template <detail::RealOperand<Scalar> RHS>
|
|
172
|
+
friend Real operator*(const Real& lhs, const RHS& rhs) {
|
|
173
|
+
const Real& r = rhs;
|
|
174
|
+
return Real{lhs.expr * r.expr};
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
/// Real
|
|
177
|
+
/// Scalar-Real multiplication operator.
|
|
178
178
|
///
|
|
179
179
|
/// @tparam LHS Operator left-hand side type.
|
|
180
|
-
/// @tparam RHS Operator right-hand side type.
|
|
181
180
|
/// @param lhs Operator left-hand side.
|
|
182
181
|
/// @param rhs Operator right-hand side.
|
|
183
182
|
/// @return Result of multiplication.
|
|
184
|
-
template <
|
|
185
|
-
|
|
186
|
-
|
|
183
|
+
template <detail::RealOperand<Scalar> LHS>
|
|
184
|
+
requires(!SleipnirType<LHS>)
|
|
185
|
+
friend Real operator*(const LHS& lhs, const Real& rhs) {
|
|
186
|
+
return Real{lhs} * rhs;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
/// Real
|
|
189
|
+
/// Real compound multiplication operator.
|
|
190
190
|
///
|
|
191
|
-
/// @
|
|
191
|
+
/// @tparam RHS Operator right-hand side type: a RealOperand, or a matrix
|
|
192
|
+
/// of autodiff expressions that converts to a Real.
|
|
192
193
|
/// @param rhs Operator right-hand side.
|
|
193
194
|
/// @return Result of multiplication.
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
195
|
+
template <typename RHS>
|
|
196
|
+
requires detail::RealOperand<RHS, Scalar> ||
|
|
197
|
+
std::convertible_to<const RHS&, Real>
|
|
198
|
+
Real& operator*=(const RHS& rhs) {
|
|
199
|
+
const Real& r = rhs;
|
|
200
|
+
*this = *this * r;
|
|
201
|
+
return *this;
|
|
197
202
|
}
|
|
198
203
|
|
|
199
|
-
/// Real-
|
|
204
|
+
/// Real-scalar division operator.
|
|
200
205
|
///
|
|
206
|
+
/// @tparam RHS Operator right-hand side type.
|
|
207
|
+
/// @param lhs Operator left-hand side.
|
|
201
208
|
/// @param rhs Operator right-hand side.
|
|
202
|
-
/// @return Result of
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
209
|
+
/// @return Result of division.
|
|
210
|
+
template <detail::RealOperand<Scalar> RHS>
|
|
211
|
+
friend Real operator/(const Real& lhs, const RHS& rhs) {
|
|
212
|
+
const Real& r = rhs;
|
|
213
|
+
return Real{lhs.expr / r.expr};
|
|
206
214
|
}
|
|
207
215
|
|
|
208
|
-
///
|
|
216
|
+
/// Scalar-Real division operator.
|
|
209
217
|
///
|
|
218
|
+
/// @tparam LHS Operator left-hand side type.
|
|
210
219
|
/// @param lhs Operator left-hand side.
|
|
211
220
|
/// @param rhs Operator right-hand side.
|
|
212
221
|
/// @return Result of division.
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
222
|
+
template <detail::RealOperand<Scalar> LHS>
|
|
223
|
+
requires(!SleipnirType<LHS>)
|
|
224
|
+
friend Real operator/(const LHS& lhs, const Real& rhs) {
|
|
225
|
+
return Real{lhs} / rhs;
|
|
216
226
|
}
|
|
217
227
|
|
|
218
|
-
/// Real
|
|
228
|
+
/// Real compound division operator.
|
|
219
229
|
///
|
|
230
|
+
/// @tparam RHS Operator right-hand side type: a RealOperand, or a matrix
|
|
231
|
+
/// of autodiff expressions that converts to a Real.
|
|
220
232
|
/// @param rhs Operator right-hand side.
|
|
221
233
|
/// @return Result of division.
|
|
222
|
-
|
|
223
|
-
|
|
234
|
+
template <typename RHS>
|
|
235
|
+
requires detail::RealOperand<RHS, Scalar> ||
|
|
236
|
+
std::convertible_to<const RHS&, Real>
|
|
237
|
+
Real& operator/=(const RHS& rhs) {
|
|
238
|
+
const Real& r = rhs;
|
|
239
|
+
*this = *this / r;
|
|
224
240
|
return *this;
|
|
225
241
|
}
|
|
226
242
|
|
|
227
|
-
/// Real-
|
|
243
|
+
/// Real-scalar addition operator.
|
|
244
|
+
///
|
|
245
|
+
/// @tparam RHS Operator right-hand side type.
|
|
246
|
+
/// @param lhs Operator left-hand side.
|
|
247
|
+
/// @param rhs Operator right-hand side.
|
|
248
|
+
/// @return Result of addition.
|
|
249
|
+
template <detail::RealOperand<Scalar> RHS>
|
|
250
|
+
friend Real operator+(const Real& lhs, const RHS& rhs) {
|
|
251
|
+
const Real& r = rhs;
|
|
252
|
+
return Real{lhs.expr + r.expr};
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/// Scalar-Real addition operator.
|
|
228
256
|
///
|
|
257
|
+
/// @tparam LHS Operator left-hand side type.
|
|
229
258
|
/// @param lhs Operator left-hand side.
|
|
230
259
|
/// @param rhs Operator right-hand side.
|
|
231
260
|
/// @return Result of addition.
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
261
|
+
template <detail::RealOperand<Scalar> LHS>
|
|
262
|
+
requires(!SleipnirType<LHS>)
|
|
263
|
+
friend Real operator+(const LHS& lhs, const Real& rhs) {
|
|
264
|
+
return Real{lhs} + rhs;
|
|
235
265
|
}
|
|
236
266
|
|
|
237
|
-
/// Real
|
|
267
|
+
/// Real compound addition operator.
|
|
238
268
|
///
|
|
269
|
+
/// @tparam RHS Operator right-hand side type: a RealOperand, or a matrix
|
|
270
|
+
/// of autodiff expressions that converts to a Real.
|
|
239
271
|
/// @param rhs Operator right-hand side.
|
|
240
272
|
/// @return Result of addition.
|
|
241
|
-
|
|
242
|
-
|
|
273
|
+
template <typename RHS>
|
|
274
|
+
requires detail::RealOperand<RHS, Scalar> ||
|
|
275
|
+
std::convertible_to<const RHS&, Real>
|
|
276
|
+
Real& operator+=(const RHS& rhs) {
|
|
277
|
+
const Real& r = rhs;
|
|
278
|
+
*this = *this + r;
|
|
243
279
|
return *this;
|
|
244
280
|
}
|
|
245
281
|
|
|
246
|
-
/// Real-
|
|
282
|
+
/// Real-scalar subtraction operator.
|
|
247
283
|
///
|
|
284
|
+
/// @tparam RHS Operator right-hand side type.
|
|
285
|
+
/// @param lhs Operator left-hand side.
|
|
286
|
+
/// @param rhs Operator right-hand side.
|
|
287
|
+
/// @return Result of subtraction.
|
|
288
|
+
template <detail::RealOperand<Scalar> RHS>
|
|
289
|
+
friend Real operator-(const Real& lhs, const RHS& rhs) {
|
|
290
|
+
const Real& r = rhs;
|
|
291
|
+
return Real{lhs.expr - r.expr};
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/// Scalar-Real subtraction operator.
|
|
295
|
+
///
|
|
296
|
+
/// @tparam LHS Operator left-hand side type.
|
|
248
297
|
/// @param lhs Operator left-hand side.
|
|
249
298
|
/// @param rhs Operator right-hand side.
|
|
250
299
|
/// @return Result of subtraction.
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
300
|
+
template <detail::RealOperand<Scalar> LHS>
|
|
301
|
+
requires(!SleipnirType<LHS>)
|
|
302
|
+
friend Real operator-(const LHS& lhs, const Real& rhs) {
|
|
303
|
+
return Real{lhs} - rhs;
|
|
254
304
|
}
|
|
255
305
|
|
|
256
|
-
/// Real
|
|
306
|
+
/// Real compound subtraction operator.
|
|
257
307
|
///
|
|
308
|
+
/// @tparam RHS Operator right-hand side type: a RealOperand, or a matrix
|
|
309
|
+
/// of autodiff expressions that converts to a Real.
|
|
258
310
|
/// @param rhs Operator right-hand side.
|
|
259
311
|
/// @return Result of subtraction.
|
|
260
|
-
|
|
261
|
-
|
|
312
|
+
template <typename RHS>
|
|
313
|
+
requires detail::RealOperand<RHS, Scalar> ||
|
|
314
|
+
std::convertible_to<const RHS&, Real>
|
|
315
|
+
Real& operator-=(const RHS& rhs) {
|
|
316
|
+
const Real& r = rhs;
|
|
317
|
+
*this = *this - r;
|
|
262
318
|
return *this;
|
|
263
319
|
}
|
|
264
320
|
|
|
265
321
|
/// Unary minus operator.
|
|
266
322
|
///
|
|
267
323
|
/// @param lhs Operand for unary minus.
|
|
268
|
-
friend Real
|
|
269
|
-
return Real{-lhs.expr};
|
|
270
|
-
}
|
|
324
|
+
friend Real operator-(const Real& lhs) { return Real{-lhs.expr}; }
|
|
271
325
|
|
|
272
326
|
/// Unary plus operator.
|
|
273
327
|
///
|
|
274
328
|
/// @param lhs Operand for unary plus.
|
|
275
|
-
friend Real
|
|
276
|
-
return Real{+lhs.expr};
|
|
277
|
-
}
|
|
329
|
+
friend Real operator+(const Real& lhs) { return lhs; }
|
|
278
330
|
|
|
279
331
|
private:
|
|
280
332
|
/// The expression node
|
|
@@ -822,9 +874,9 @@ struct EqualityConstraints {
|
|
|
822
874
|
/// @param lhs Left-hand side.
|
|
823
875
|
/// @param rhs Right-hand side.
|
|
824
876
|
template <typename LHS, typename RHS>
|
|
825
|
-
requires
|
|
826
|
-
|
|
827
|
-
|
|
877
|
+
requires detail::RealComparisonOperand<LHS, Scalar> &&
|
|
878
|
+
detail::RealComparisonOperand<RHS, Scalar> &&
|
|
879
|
+
(SleipnirType<LHS> || SleipnirType<RHS>)
|
|
828
880
|
EqualityConstraints(LHS&& lhs, RHS&& rhs)
|
|
829
881
|
: constraints{make_constraints<Scalar>(lhs, rhs)} {}
|
|
830
882
|
|
|
@@ -892,9 +944,9 @@ struct InequalityConstraints {
|
|
|
892
944
|
/// @param rhs Right-hand side.
|
|
893
945
|
/// @param strict Whether the comparison is strict (lhs > rhs).
|
|
894
946
|
template <typename LHS, typename RHS>
|
|
895
|
-
requires
|
|
896
|
-
|
|
897
|
-
|
|
947
|
+
requires detail::RealComparisonOperand<LHS, Scalar> &&
|
|
948
|
+
detail::RealComparisonOperand<RHS, Scalar> &&
|
|
949
|
+
(SleipnirType<LHS> || SleipnirType<RHS>)
|
|
898
950
|
InequalityConstraints(LHS&& lhs, RHS&& rhs, bool strict = false)
|
|
899
951
|
: constraints{make_constraints<Scalar>(lhs, rhs)},
|
|
900
952
|
strict(constraints.size(), strict) {}
|
|
@@ -915,39 +967,45 @@ struct InequalityConstraints {
|
|
|
915
967
|
///
|
|
916
968
|
/// @tparam LHS Left-hand side type.
|
|
917
969
|
/// @tparam RHS Right-hand side type.
|
|
970
|
+
/// @tparam Scalar Scalar type.
|
|
918
971
|
/// @param lhs Left-hand side.
|
|
919
972
|
/// @param rhs Right-hand side.
|
|
920
|
-
template <typename LHS, typename RHS
|
|
921
|
-
|
|
922
|
-
|
|
973
|
+
template <typename LHS, typename RHS,
|
|
974
|
+
typename Scalar = detail::operand_scalar_t<LHS, RHS>>
|
|
975
|
+
requires detail::RealComparisonOperand<LHS, Scalar> && SleipnirType<LHS> &&
|
|
976
|
+
detail::RealComparisonOperand<RHS, Scalar> && (!SleipnirType<RHS>)
|
|
923
977
|
auto operator==(LHS&& lhs, RHS&& rhs) {
|
|
924
|
-
return EqualityConstraints<
|
|
978
|
+
return EqualityConstraints<Scalar>{lhs, rhs};
|
|
925
979
|
}
|
|
926
980
|
|
|
927
981
|
/// Equality operator that returns an equality constraint for two Reals.
|
|
928
982
|
///
|
|
929
983
|
/// @tparam LHS Left-hand side type.
|
|
930
984
|
/// @tparam RHS Right-hand side type.
|
|
985
|
+
/// @tparam Scalar Scalar type.
|
|
931
986
|
/// @param lhs Left-hand side.
|
|
932
987
|
/// @param rhs Right-hand side.
|
|
933
|
-
template <typename LHS, typename RHS
|
|
934
|
-
|
|
935
|
-
|
|
988
|
+
template <typename LHS, typename RHS,
|
|
989
|
+
typename Scalar = detail::operand_scalar_t<LHS, RHS>>
|
|
990
|
+
requires detail::RealComparisonOperand<LHS, Scalar> && (!SleipnirType<LHS>) &&
|
|
991
|
+
detail::RealComparisonOperand<RHS, Scalar> && SleipnirType<RHS>
|
|
936
992
|
auto operator==(LHS&& lhs, RHS&& rhs) {
|
|
937
|
-
return EqualityConstraints<
|
|
993
|
+
return EqualityConstraints<Scalar>{lhs, rhs};
|
|
938
994
|
}
|
|
939
995
|
|
|
940
996
|
/// Equality operator that returns an equality constraint for two Reals.
|
|
941
997
|
///
|
|
942
998
|
/// @tparam LHS Left-hand side type.
|
|
943
999
|
/// @tparam RHS Right-hand side type.
|
|
1000
|
+
/// @tparam Scalar Scalar type.
|
|
944
1001
|
/// @param lhs Left-hand side.
|
|
945
1002
|
/// @param rhs Right-hand side.
|
|
946
|
-
template <typename LHS, typename RHS
|
|
947
|
-
|
|
948
|
-
|
|
1003
|
+
template <typename LHS, typename RHS,
|
|
1004
|
+
typename Scalar = detail::operand_scalar_t<LHS, RHS>>
|
|
1005
|
+
requires detail::RealComparisonOperand<LHS, Scalar> && SleipnirType<LHS> &&
|
|
1006
|
+
detail::RealComparisonOperand<RHS, Scalar> && SleipnirType<RHS>
|
|
949
1007
|
auto operator==(LHS&& lhs, RHS&& rhs) {
|
|
950
|
-
return EqualityConstraints<
|
|
1008
|
+
return EqualityConstraints<Scalar>{lhs, rhs};
|
|
951
1009
|
}
|
|
952
1010
|
|
|
953
1011
|
/// Less-than comparison operator that returns an inequality constraint for two
|
|
@@ -955,12 +1013,14 @@ auto operator==(LHS&& lhs, RHS&& rhs) {
|
|
|
955
1013
|
///
|
|
956
1014
|
/// @tparam LHS Left-hand side type.
|
|
957
1015
|
/// @tparam RHS Right-hand side type.
|
|
1016
|
+
/// @tparam Scalar Scalar type.
|
|
958
1017
|
/// @param lhs Left-hand side.
|
|
959
1018
|
/// @param rhs Right-hand side.
|
|
960
|
-
template <typename LHS, typename RHS
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
1019
|
+
template <typename LHS, typename RHS,
|
|
1020
|
+
typename Scalar = detail::operand_scalar_t<LHS, RHS>>
|
|
1021
|
+
requires detail::RealComparisonOperand<LHS, Scalar> &&
|
|
1022
|
+
detail::RealComparisonOperand<RHS, Scalar> &&
|
|
1023
|
+
(SleipnirType<LHS> || SleipnirType<RHS>)
|
|
964
1024
|
auto operator<(LHS&& lhs, RHS&& rhs) {
|
|
965
1025
|
return decltype(rhs >= lhs){rhs, lhs, true};
|
|
966
1026
|
}
|
|
@@ -970,12 +1030,14 @@ auto operator<(LHS&& lhs, RHS&& rhs) {
|
|
|
970
1030
|
///
|
|
971
1031
|
/// @tparam LHS Left-hand side type.
|
|
972
1032
|
/// @tparam RHS Right-hand side type.
|
|
1033
|
+
/// @tparam Scalar Scalar type.
|
|
973
1034
|
/// @param lhs Left-hand side.
|
|
974
1035
|
/// @param rhs Right-hand side.
|
|
975
|
-
template <typename LHS, typename RHS
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
1036
|
+
template <typename LHS, typename RHS,
|
|
1037
|
+
typename Scalar = detail::operand_scalar_t<LHS, RHS>>
|
|
1038
|
+
requires detail::RealComparisonOperand<LHS, Scalar> &&
|
|
1039
|
+
detail::RealComparisonOperand<RHS, Scalar> &&
|
|
1040
|
+
(SleipnirType<LHS> || SleipnirType<RHS>)
|
|
979
1041
|
auto operator<=(LHS&& lhs, RHS&& rhs) {
|
|
980
1042
|
return rhs >= lhs;
|
|
981
1043
|
}
|
|
@@ -985,12 +1047,14 @@ auto operator<=(LHS&& lhs, RHS&& rhs) {
|
|
|
985
1047
|
///
|
|
986
1048
|
/// @tparam LHS Left-hand side type.
|
|
987
1049
|
/// @tparam RHS Right-hand side type.
|
|
1050
|
+
/// @tparam Scalar Scalar type.
|
|
988
1051
|
/// @param lhs Left-hand side.
|
|
989
1052
|
/// @param rhs Right-hand side.
|
|
990
|
-
template <typename LHS, typename RHS
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1053
|
+
template <typename LHS, typename RHS,
|
|
1054
|
+
typename Scalar = detail::operand_scalar_t<LHS, RHS>>
|
|
1055
|
+
requires detail::RealComparisonOperand<LHS, Scalar> &&
|
|
1056
|
+
detail::RealComparisonOperand<RHS, Scalar> &&
|
|
1057
|
+
(SleipnirType<LHS> || SleipnirType<RHS>)
|
|
994
1058
|
auto operator>(LHS&& lhs, RHS&& rhs) {
|
|
995
1059
|
return decltype(lhs >= rhs){lhs, rhs, true};
|
|
996
1060
|
}
|
|
@@ -1000,13 +1064,15 @@ auto operator>(LHS&& lhs, RHS&& rhs) {
|
|
|
1000
1064
|
///
|
|
1001
1065
|
/// @tparam LHS Left-hand side type.
|
|
1002
1066
|
/// @tparam RHS Right-hand side type.
|
|
1067
|
+
/// @tparam Scalar Scalar type.
|
|
1003
1068
|
/// @param lhs Left-hand side.
|
|
1004
1069
|
/// @param rhs Right-hand side.
|
|
1005
|
-
template <typename LHS, typename RHS
|
|
1006
|
-
|
|
1007
|
-
|
|
1070
|
+
template <typename LHS, typename RHS,
|
|
1071
|
+
typename Scalar = detail::operand_scalar_t<LHS, RHS>>
|
|
1072
|
+
requires detail::RealComparisonOperand<LHS, Scalar> && SleipnirType<LHS> &&
|
|
1073
|
+
detail::RealComparisonOperand<RHS, Scalar> && (!SleipnirType<RHS>)
|
|
1008
1074
|
auto operator>=(LHS&& lhs, RHS&& rhs) {
|
|
1009
|
-
return InequalityConstraints<
|
|
1075
|
+
return InequalityConstraints<Scalar>{lhs, rhs};
|
|
1010
1076
|
}
|
|
1011
1077
|
|
|
1012
1078
|
/// Greater-than-or-equal-to comparison operator that returns an inequality
|
|
@@ -1014,13 +1080,15 @@ auto operator>=(LHS&& lhs, RHS&& rhs) {
|
|
|
1014
1080
|
///
|
|
1015
1081
|
/// @tparam LHS Left-hand side type.
|
|
1016
1082
|
/// @tparam RHS Right-hand side type.
|
|
1083
|
+
/// @tparam Scalar Scalar type.
|
|
1017
1084
|
/// @param lhs Left-hand side.
|
|
1018
1085
|
/// @param rhs Right-hand side.
|
|
1019
|
-
template <typename LHS, typename RHS
|
|
1020
|
-
|
|
1021
|
-
|
|
1086
|
+
template <typename LHS, typename RHS,
|
|
1087
|
+
typename Scalar = detail::operand_scalar_t<LHS, RHS>>
|
|
1088
|
+
requires detail::RealComparisonOperand<LHS, Scalar> && (!SleipnirType<LHS>) &&
|
|
1089
|
+
detail::RealComparisonOperand<RHS, Scalar> && SleipnirType<RHS>
|
|
1022
1090
|
auto operator>=(LHS&& lhs, RHS&& rhs) {
|
|
1023
|
-
return InequalityConstraints<
|
|
1091
|
+
return InequalityConstraints<Scalar>{lhs, rhs};
|
|
1024
1092
|
}
|
|
1025
1093
|
|
|
1026
1094
|
/// Greater-than-or-equal-to comparison operator that returns an inequality
|
|
@@ -1028,13 +1096,15 @@ auto operator>=(LHS&& lhs, RHS&& rhs) {
|
|
|
1028
1096
|
///
|
|
1029
1097
|
/// @tparam LHS Left-hand side type.
|
|
1030
1098
|
/// @tparam RHS Right-hand side type.
|
|
1099
|
+
/// @tparam Scalar Scalar type.
|
|
1031
1100
|
/// @param lhs Left-hand side.
|
|
1032
1101
|
/// @param rhs Right-hand side.
|
|
1033
|
-
template <typename LHS, typename RHS
|
|
1034
|
-
|
|
1035
|
-
|
|
1102
|
+
template <typename LHS, typename RHS,
|
|
1103
|
+
typename Scalar = detail::operand_scalar_t<LHS, RHS>>
|
|
1104
|
+
requires detail::RealComparisonOperand<LHS, Scalar> && SleipnirType<LHS> &&
|
|
1105
|
+
detail::RealComparisonOperand<RHS, Scalar> && SleipnirType<RHS>
|
|
1036
1106
|
auto operator>=(LHS&& lhs, RHS&& rhs) {
|
|
1037
|
-
return InequalityConstraints<
|
|
1107
|
+
return InequalityConstraints<Scalar>{lhs, rhs};
|
|
1038
1108
|
}
|
|
1039
1109
|
|
|
1040
1110
|
/// Returns t if the equality constraint cond is satisfied, otherwise f.
|
|
@@ -1090,12 +1160,14 @@ Real<Scalar> if_else(const InequalityConstraints<Scalar>& cond,
|
|
|
1090
1160
|
/// @tparam L Lower bound type.
|
|
1091
1161
|
/// @tparam X Type of the Real to bound.
|
|
1092
1162
|
/// @tparam U Upper bound type.
|
|
1163
|
+
/// @tparam Scalar Scalar type.
|
|
1093
1164
|
/// @param l Lower bound.
|
|
1094
1165
|
/// @param x Real to bound.
|
|
1095
1166
|
/// @param u Upper bound.
|
|
1096
|
-
template <typename L, typename X, typename U
|
|
1097
|
-
|
|
1098
|
-
|
|
1167
|
+
template <typename L, typename X, typename U,
|
|
1168
|
+
typename Scalar = typename std::decay_t<X>::Scalar>
|
|
1169
|
+
requires detail::RealComparisonOperand<L, Scalar> && SleipnirType<X> &&
|
|
1170
|
+
detail::RealComparisonOperand<U, Scalar>
|
|
1099
1171
|
auto bounds(L&& l, X&& x, U&& u) {
|
|
1100
1172
|
return InequalityConstraints{l <= x, x <= u};
|
|
1101
1173
|
}
|
|
@@ -244,6 +244,7 @@ class RealMatrix : public SleipnirBase {
|
|
|
244
244
|
/// @tparam Derived Eigen matrix type.
|
|
245
245
|
/// @param values Eigen matrix of values.
|
|
246
246
|
template <typename Derived>
|
|
247
|
+
requires detail::RealMatrixOperand<Derived, Scalar>
|
|
247
248
|
// NOLINTNEXTLINE (google-explicit-constructor)
|
|
248
249
|
RealMatrix(const Eigen::MatrixBase<Derived>& values)
|
|
249
250
|
: m_rows{static_cast<int>(values.rows())},
|
|
@@ -261,6 +262,8 @@ class RealMatrix : public SleipnirBase {
|
|
|
261
262
|
/// @tparam Derived Eigen diagonal matrix type.
|
|
262
263
|
/// @param values Diagonal matrix of values.
|
|
263
264
|
template <typename Derived>
|
|
265
|
+
requires std::same_as<typename Derived::Scalar, Scalar> ||
|
|
266
|
+
std::same_as<typename Derived::Scalar, Real<Scalar>>
|
|
264
267
|
// NOLINTNEXTLINE (google-explicit-constructor)
|
|
265
268
|
RealMatrix(const Eigen::DiagonalBase<Derived>& values)
|
|
266
269
|
: m_rows{static_cast<int>(values.rows())},
|
|
@@ -356,6 +359,7 @@ class RealMatrix : public SleipnirBase {
|
|
|
356
359
|
/// @param values Eigen matrix of values.
|
|
357
360
|
/// @return This matrix.
|
|
358
361
|
template <typename Derived>
|
|
362
|
+
requires detail::RealMatrixOperand<Derived, Scalar>
|
|
359
363
|
RealMatrix& operator=(const Eigen::MatrixBase<Derived>& values) {
|
|
360
364
|
slp_assert(rows() == values.rows() && cols() == values.cols());
|
|
361
365
|
|
|
@@ -594,7 +598,7 @@ class RealMatrix : public SleipnirBase {
|
|
|
594
598
|
///
|
|
595
599
|
/// @param rhs Real to multiply.
|
|
596
600
|
/// @return Result of multiplication.
|
|
597
|
-
RealMatrix& operator*=(const
|
|
601
|
+
RealMatrix& operator*=(const detail::RealMatrixOperand<Scalar> auto& rhs) {
|
|
598
602
|
slp_assert(cols() == rhs.rows() && cols() == rhs.cols());
|
|
599
603
|
|
|
600
604
|
for (int i = 0; i < rows(); ++i) {
|
|
@@ -615,7 +619,7 @@ class RealMatrix : public SleipnirBase {
|
|
|
615
619
|
///
|
|
616
620
|
/// @param rhs Real to multiply.
|
|
617
621
|
/// @return Result of multiplication.
|
|
618
|
-
RealMatrix& operator*=(const
|
|
622
|
+
RealMatrix& operator*=(const detail::RealOperand<Scalar> auto& rhs) {
|
|
619
623
|
for (int row = 0; row < rows(); ++row) {
|
|
620
624
|
for (int col = 0; col < cols(); ++col) {
|
|
621
625
|
(*this)[row, col] *= rhs;
|
|
@@ -629,7 +633,7 @@ class RealMatrix : public SleipnirBase {
|
|
|
629
633
|
///
|
|
630
634
|
/// @param rhs Real to divide.
|
|
631
635
|
/// @return Result of division.
|
|
632
|
-
RealMatrix& operator/=(const
|
|
636
|
+
RealMatrix& operator/=(const detail::RealOperand<Scalar> auto& rhs) {
|
|
633
637
|
for (int row = 0; row < rows(); ++row) {
|
|
634
638
|
for (int col = 0; col < cols(); ++col) {
|
|
635
639
|
(*this)[row, col] /= rhs;
|
|
@@ -643,7 +647,7 @@ class RealMatrix : public SleipnirBase {
|
|
|
643
647
|
///
|
|
644
648
|
/// @param rhs Real to add.
|
|
645
649
|
/// @return Result of addition.
|
|
646
|
-
RealMatrix& operator+=(const
|
|
650
|
+
RealMatrix& operator+=(const detail::RealMatrixOperand<Scalar> auto& rhs) {
|
|
647
651
|
slp_assert(rows() == rhs.rows() && cols() == rhs.cols());
|
|
648
652
|
|
|
649
653
|
for (int row = 0; row < rows(); ++row) {
|
|
@@ -659,7 +663,7 @@ class RealMatrix : public SleipnirBase {
|
|
|
659
663
|
///
|
|
660
664
|
/// @param rhs Real to add.
|
|
661
665
|
/// @return Result of addition.
|
|
662
|
-
RealMatrix& operator+=(const
|
|
666
|
+
RealMatrix& operator+=(const detail::RealOperand<Scalar> auto& rhs) {
|
|
663
667
|
slp_assert(rows() == 1 && cols() == 1);
|
|
664
668
|
|
|
665
669
|
for (int row = 0; row < rows(); ++row) {
|
|
@@ -675,7 +679,7 @@ class RealMatrix : public SleipnirBase {
|
|
|
675
679
|
///
|
|
676
680
|
/// @param rhs Real to subtract.
|
|
677
681
|
/// @return Result of subtraction.
|
|
678
|
-
RealMatrix& operator-=(const
|
|
682
|
+
RealMatrix& operator-=(const detail::RealMatrixOperand<Scalar> auto& rhs) {
|
|
679
683
|
slp_assert(rows() == rhs.rows() && cols() == rhs.cols());
|
|
680
684
|
|
|
681
685
|
for (int row = 0; row < rows(); ++row) {
|
|
@@ -691,7 +695,7 @@ class RealMatrix : public SleipnirBase {
|
|
|
691
695
|
///
|
|
692
696
|
/// @param rhs Real to subtract.
|
|
693
697
|
/// @return Result of subtraction.
|
|
694
|
-
RealMatrix& operator-=(const
|
|
698
|
+
RealMatrix& operator-=(const detail::RealOperand<Scalar> auto& rhs) {
|
|
695
699
|
slp_assert(rows() == 1 && cols() == 1);
|
|
696
700
|
|
|
697
701
|
for (int row = 0; row < rows(); ++row) {
|
|
@@ -160,6 +160,7 @@ class RealSubmatrix : public SleipnirBase {
|
|
|
160
160
|
/// @param values Eigen matrix of values to assign.
|
|
161
161
|
/// @return This submatrix.
|
|
162
162
|
template <typename Derived>
|
|
163
|
+
requires detail::RealMatrixOperand<Derived, Scalar>
|
|
163
164
|
RealSubmatrix<Mat>& operator=(const Eigen::MatrixBase<Derived>& values) {
|
|
164
165
|
slp_assert(rows() == values.rows() && cols() == values.cols());
|
|
165
166
|
|
|
@@ -421,7 +422,8 @@ class RealSubmatrix : public SleipnirBase {
|
|
|
421
422
|
///
|
|
422
423
|
/// @param rhs Real to multiply.
|
|
423
424
|
/// @return Result of multiplication.
|
|
424
|
-
RealSubmatrix<Mat>& operator*=(
|
|
425
|
+
RealSubmatrix<Mat>& operator*=(
|
|
426
|
+
const detail::RealMatrixOperand<Scalar> auto& rhs) {
|
|
425
427
|
slp_assert(cols() == rhs.rows() && cols() == rhs.cols());
|
|
426
428
|
|
|
427
429
|
for (int i = 0; i < rows(); ++i) {
|
|
@@ -442,7 +444,7 @@ class RealSubmatrix : public SleipnirBase {
|
|
|
442
444
|
///
|
|
443
445
|
/// @param rhs Real to multiply.
|
|
444
446
|
/// @return Result of multiplication.
|
|
445
|
-
RealSubmatrix<Mat>& operator*=(const
|
|
447
|
+
RealSubmatrix<Mat>& operator*=(const detail::RealOperand<Scalar> auto& rhs) {
|
|
446
448
|
for (int row = 0; row < rows(); ++row) {
|
|
447
449
|
for (int col = 0; col < cols(); ++col) {
|
|
448
450
|
(*this)[row, col] *= rhs;
|
|
@@ -456,7 +458,7 @@ class RealSubmatrix : public SleipnirBase {
|
|
|
456
458
|
///
|
|
457
459
|
/// @param rhs Real to divide.
|
|
458
460
|
/// @return Result of division.
|
|
459
|
-
RealSubmatrix<Mat>& operator/=(const
|
|
461
|
+
RealSubmatrix<Mat>& operator/=(const detail::RealOperand<Scalar> auto& rhs) {
|
|
460
462
|
for (int row = 0; row < rows(); ++row) {
|
|
461
463
|
for (int col = 0; col < cols(); ++col) {
|
|
462
464
|
(*this)[row, col] /= rhs;
|
|
@@ -470,7 +472,8 @@ class RealSubmatrix : public SleipnirBase {
|
|
|
470
472
|
///
|
|
471
473
|
/// @param rhs Real to add.
|
|
472
474
|
/// @return Result of addition.
|
|
473
|
-
RealSubmatrix<Mat>& operator+=(
|
|
475
|
+
RealSubmatrix<Mat>& operator+=(
|
|
476
|
+
const detail::RealMatrixOperand<Scalar> auto& rhs) {
|
|
474
477
|
slp_assert(rows() == rhs.rows() && cols() == rhs.cols());
|
|
475
478
|
|
|
476
479
|
for (int row = 0; row < rows(); ++row) {
|
|
@@ -486,7 +489,7 @@ class RealSubmatrix : public SleipnirBase {
|
|
|
486
489
|
///
|
|
487
490
|
/// @param rhs Real to add.
|
|
488
491
|
/// @return Result of addition.
|
|
489
|
-
RealSubmatrix<Mat>& operator+=(const
|
|
492
|
+
RealSubmatrix<Mat>& operator+=(const detail::RealOperand<Scalar> auto& rhs) {
|
|
490
493
|
slp_assert(rows() == 1 && cols() == 1);
|
|
491
494
|
|
|
492
495
|
for (int row = 0; row < rows(); ++row) {
|
|
@@ -502,7 +505,8 @@ class RealSubmatrix : public SleipnirBase {
|
|
|
502
505
|
///
|
|
503
506
|
/// @param rhs Real to subtract.
|
|
504
507
|
/// @return Result of subtraction.
|
|
505
|
-
RealSubmatrix<Mat>& operator-=(
|
|
508
|
+
RealSubmatrix<Mat>& operator-=(
|
|
509
|
+
const detail::RealMatrixOperand<Scalar> auto& rhs) {
|
|
506
510
|
slp_assert(rows() == rhs.rows() && cols() == rhs.cols());
|
|
507
511
|
|
|
508
512
|
for (int row = 0; row < rows(); ++row) {
|
|
@@ -518,7 +522,7 @@ class RealSubmatrix : public SleipnirBase {
|
|
|
518
522
|
///
|
|
519
523
|
/// @param rhs Real to subtract.
|
|
520
524
|
/// @return Result of subtraction.
|
|
521
|
-
RealSubmatrix<Mat>& operator-=(const
|
|
525
|
+
RealSubmatrix<Mat>& operator-=(const detail::RealOperand<Scalar> auto& rhs) {
|
|
522
526
|
slp_assert(rows() == 1 && cols() == 1);
|
|
523
527
|
|
|
524
528
|
for (int row = 0; row < rows(); ++row) {
|