sleipnirgroup-jormungandr 0.6.7.dev140__tar.gz → 0.6.7.dev142__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.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/CMakeLists.txt +8 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/PKG-INFO +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/autodiff/expression.hpp +20 -22
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/autodiff/expression_functions.hpp +43 -40
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/autodiff/hessian.hpp +0 -1
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/autodiff/jacobian.hpp +0 -1
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/autodiff/variable_matrix.hpp +2 -2
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/newton.hpp +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/sqp.hpp +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/util/all_finite.hpp +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/util/bounds.hpp +1 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/util/sparse_inf_norms.hpp +1 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/util/function_ref.hpp +1 -1
- sleipnirgroup_jormungandr-0.6.7.dev142/python/.clang-tidy +4 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/src/sleipnir/__init__.py +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/src/optimization/solver/ipm.cpp +10 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/src/optimization/solver/newton.cpp +10 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/src/optimization/solver/sqp.cpp +10 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/LICENSE.txt +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/README.md +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/SleipnirConfig.cmake.in +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/cmake/BuildTypes.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/cmake/CompilerFlags.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/cmake/Pybind11Mkdoc.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/cmake/Pybind11MkdocPostprocess.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/cmake/SubdirList.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/cmake/aarch64-linux-gnu.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/cmake/arm-none-eabi.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/autodiff/expression_graph.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/autodiff/expression_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/autodiff/gradient.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/autodiff/sleipnir_base.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/autodiff/slice.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/autodiff/variable.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/autodiff/variable_block.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/multistart.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/ocp/dynamics_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/ocp/timestep_method.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/ocp/transcription_method.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/ocp.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/problem.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/control_flow.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/exit_status.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/ipm.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/ipm_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/iteration_info.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/newton_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/options.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/sqp_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/util/append_as_triplets.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/util/constraint_violation.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/util/dense_kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/util/feasibility_restoration.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/util/feasibility_restoration_cycle_detector.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/util/filter.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/util/fraction_to_the_boundary_rule.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/util/kkt_error.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/util/kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/util/problem_scaling.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/util/regularization_limits.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/util/ruiz_equilibration.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/util/sparse_kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/optimization/solver/util/time_trace.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/util/assert.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/util/concepts.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/util/empty.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/util/force_inline.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/util/intrusive_shared_ptr.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/util/pool.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/util/print.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/util/print_diagnostics.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/util/scope_exit.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/util/spy.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/util/symbol_exports.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/include/sleipnir/util/time_tracer.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/pyproject.toml +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/arity.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/autodiff/bind_expression_type.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/autodiff/bind_gradient.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/autodiff/bind_hessian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/autodiff/bind_jacobian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/autodiff/bind_variable.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/autodiff/bind_variable_block.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/autodiff/bind_variable_matrix.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/binders.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/docstrings.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/for_each_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/main.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/optimization/bind_equality_constraints.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/optimization/bind_inequality_constraints.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/optimization/bind_ocp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/optimization/bind_problem.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/optimization/ocp/bind_dynamics_type.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/optimization/ocp/bind_timestep_method.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/optimization/ocp/bind_transcription_method.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/optimization/solver/bind_exit_status.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/optimization/solver/bind_iteration_info.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/slice_tuple.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/text_wrap.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/cpp/try_cast.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/postprocess_stubs.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/src/sleipnir/autodiff/__init__.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/src/sleipnir/optimization/__init__.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/autodiff/gradient_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/autodiff/hessian_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/autodiff/jacobian_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/autodiff/variable_matrix_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/autodiff/variable_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/arm_on_elevator_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/cart_pole_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/cart_pole_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/cart_pole_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/constraints_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/differential_drive_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/differential_drive_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/differential_drive_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/double_integrator_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/flywheel_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/flywheel_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/flywheel_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/linear_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/multistart_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/nonlinear_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/problem_spy_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/problem_variable_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/quadratic_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/rk4.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/solver/exit_status_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/tolerance.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/python/test/optimization/trivial_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/src/autodiff/gradient.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/src/autodiff/hessian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/src/autodiff/jacobian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/src/autodiff/variable_matrix.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/src/optimization/ocp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/src/optimization/problem.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/src/util/pool.cpp +0 -0
{sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/CMakeLists.txt
RENAMED
|
@@ -136,7 +136,11 @@ if(PROJECT_IS_TOP_LEVEL AND BUILD_TESTING)
|
|
|
136
136
|
EXCLUDE_FROM_ALL
|
|
137
137
|
SYSTEM
|
|
138
138
|
)
|
|
139
|
+
# Keep Catch2's sources out of compile_commands.json so tools infer header
|
|
140
|
+
# compile commands from Sleipnir's own sources
|
|
141
|
+
set(CMAKE_EXPORT_COMPILE_COMMANDS OFF)
|
|
139
142
|
FetchContent_MakeAvailable(Catch2)
|
|
143
|
+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
140
144
|
|
|
141
145
|
# Enable StringMaker<std::string_view>
|
|
142
146
|
target_compile_features(Catch2 PRIVATE cxx_std_23)
|
|
@@ -208,7 +212,11 @@ if(SLEIPNIR_BUILD_BENCHMARKS)
|
|
|
208
212
|
EXCLUDE_FROM_ALL
|
|
209
213
|
SYSTEM
|
|
210
214
|
)
|
|
215
|
+
# Keep benchmark's sources out of compile_commands.json so tools
|
|
216
|
+
# infer header compile commands from Sleipnir's own sources
|
|
217
|
+
set(CMAKE_EXPORT_COMPILE_COMMANDS OFF)
|
|
211
218
|
FetchContent_MakeAvailable(benchmark)
|
|
219
|
+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
212
220
|
else()
|
|
213
221
|
find_package(benchmark CONFIG REQUIRED)
|
|
214
222
|
endif()
|
|
@@ -33,14 +33,12 @@ inline constexpr bool USE_POOL_ALLOCATOR = true;
|
|
|
33
33
|
template <typename Scalar>
|
|
34
34
|
struct Expression;
|
|
35
35
|
|
|
36
|
-
/// The maximum number of arguments an expression can have.
|
|
37
|
-
inline constexpr size_t MAX_ARGS = 4;
|
|
38
|
-
|
|
39
36
|
/// Array with one element per expression argument in visit_args() order.
|
|
40
37
|
///
|
|
41
38
|
/// @tparam T Element type.
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
/// @tparam N The number of arguments.
|
|
40
|
+
template <typename T, size_t N>
|
|
41
|
+
using ArgArray = std::array<T, N>;
|
|
44
42
|
|
|
45
43
|
/// Typedef for intrusive shared pointer to Expression.
|
|
46
44
|
///
|
|
@@ -413,12 +411,6 @@ struct Expression {
|
|
|
413
411
|
template <typename Derived, typename Scalar, size_t NumArgs,
|
|
414
412
|
ExpressionType Type = ExpressionType::NONLINEAR>
|
|
415
413
|
struct NonLeafExpression : Expression<Scalar> {
|
|
416
|
-
/// The number of arguments.
|
|
417
|
-
static constexpr size_t NUM_ARGS = NumArgs;
|
|
418
|
-
|
|
419
|
-
// Ensure ArgArray is big enough to hold one element per argument
|
|
420
|
-
static_assert(NumArgs <= MAX_ARGS, "Increase MAX_ARGS");
|
|
421
|
-
|
|
422
414
|
/// Whether the partial derivatives are the same at every argument value.
|
|
423
415
|
static constexpr bool CONSTANT_PARTIALS = false;
|
|
424
416
|
|
|
@@ -477,7 +469,7 @@ struct NonLeafExpression : Expression<Scalar> {
|
|
|
477
469
|
void accumulate_adjoints() const final {
|
|
478
470
|
[&]<size_t... Is>(std::index_sequence<Is...>) {
|
|
479
471
|
// Evaluate gradients
|
|
480
|
-
ArgArray<Scalar> g{};
|
|
472
|
+
ArgArray<Scalar, NumArgs> g{};
|
|
481
473
|
grad(g, this->val, args[Is]->val...);
|
|
482
474
|
|
|
483
475
|
// Accumulate adjoints
|
|
@@ -492,7 +484,7 @@ struct NonLeafExpression : Expression<Scalar> {
|
|
|
492
484
|
// instead of building them as expressions
|
|
493
485
|
if constexpr (Derived::CONSTANT_PARTIALS) {
|
|
494
486
|
// Evaluate gradients
|
|
495
|
-
ArgArray<Scalar> g{};
|
|
487
|
+
ArgArray<Scalar, NumArgs> g{};
|
|
496
488
|
grad(g, this->val, args[Is]->val...);
|
|
497
489
|
|
|
498
490
|
// Accumulate adjoints
|
|
@@ -511,7 +503,7 @@ struct NonLeafExpression : Expression<Scalar> {
|
|
|
511
503
|
...);
|
|
512
504
|
} else {
|
|
513
505
|
// Evaluate gradients
|
|
514
|
-
ArgArray<ExpressionPtr<Scalar
|
|
506
|
+
ArgArray<ExpressionPtr<Scalar>, NumArgs> g;
|
|
515
507
|
grad(g, ExpressionPtr<Scalar>{const_cast<NonLeafExpression*>(this)},
|
|
516
508
|
args[Is]...);
|
|
517
509
|
|
|
@@ -542,7 +534,8 @@ struct NonLeafExpression : Expression<Scalar> {
|
|
|
542
534
|
/// @param val The expression's value.
|
|
543
535
|
/// @param x The argument values in visit_args() order.
|
|
544
536
|
template <typename Value, typename... Args>
|
|
545
|
-
void grad(ArgArray<Value>& g, const Value& val,
|
|
537
|
+
void grad(ArgArray<Value, NumArgs>& g, const Value& val,
|
|
538
|
+
const Args&... x) const {
|
|
546
539
|
if constexpr (requires(const Derived& expr) {
|
|
547
540
|
expr.eval_grad(g, val, x...);
|
|
548
541
|
}) {
|
|
@@ -602,7 +595,8 @@ struct BinaryMinusExpression final
|
|
|
602
595
|
static Scalar eval(Scalar lhs, Scalar rhs) { return lhs - rhs; }
|
|
603
596
|
|
|
604
597
|
template <typename Value>
|
|
605
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
598
|
+
static void eval_grad(ArgArray<Value, 2>& g,
|
|
599
|
+
[[maybe_unused]] const Value& val,
|
|
606
600
|
[[maybe_unused]] const Value& lhs,
|
|
607
601
|
[[maybe_unused]] const Value& rhs) {
|
|
608
602
|
g[0] = lit<Value>(Scalar(1));
|
|
@@ -628,7 +622,8 @@ struct BinaryPlusExpression final
|
|
|
628
622
|
static Scalar eval(Scalar lhs, Scalar rhs) { return lhs + rhs; }
|
|
629
623
|
|
|
630
624
|
template <typename Value>
|
|
631
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
625
|
+
static void eval_grad(ArgArray<Value, 2>& g,
|
|
626
|
+
[[maybe_unused]] const Value& val,
|
|
632
627
|
[[maybe_unused]] const Value& lhs,
|
|
633
628
|
[[maybe_unused]] const Value& rhs) {
|
|
634
629
|
g[0] = lit<Value>(Scalar(1));
|
|
@@ -651,8 +646,9 @@ struct DivExpression final
|
|
|
651
646
|
static Scalar eval(Scalar lhs, Scalar rhs) { return lhs / rhs; }
|
|
652
647
|
|
|
653
648
|
template <typename Value>
|
|
654
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
655
|
-
const Value&
|
|
649
|
+
static void eval_grad(ArgArray<Value, 2>& g,
|
|
650
|
+
[[maybe_unused]] const Value& val, const Value& lhs,
|
|
651
|
+
const Value& rhs) {
|
|
656
652
|
g[0] = lit<Value>(Scalar(1)) / rhs;
|
|
657
653
|
g[1] = -lhs / (rhs * rhs);
|
|
658
654
|
}
|
|
@@ -673,8 +669,9 @@ struct MultExpression final
|
|
|
673
669
|
static Scalar eval(Scalar lhs, Scalar rhs) { return lhs * rhs; }
|
|
674
670
|
|
|
675
671
|
template <typename Value>
|
|
676
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
677
|
-
const Value&
|
|
672
|
+
static void eval_grad(ArgArray<Value, 2>& g,
|
|
673
|
+
[[maybe_unused]] const Value& val, const Value& lhs,
|
|
674
|
+
const Value& rhs) {
|
|
678
675
|
g[0] = rhs;
|
|
679
676
|
g[1] = lhs;
|
|
680
677
|
}
|
|
@@ -698,7 +695,8 @@ struct UnaryMinusExpression final
|
|
|
698
695
|
static Scalar eval(Scalar lhs) { return -lhs; }
|
|
699
696
|
|
|
700
697
|
template <typename Value>
|
|
701
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
698
|
+
static void eval_grad(ArgArray<Value, 1>& g,
|
|
699
|
+
[[maybe_unused]] const Value& val,
|
|
702
700
|
[[maybe_unused]] const Value& lhs) {
|
|
703
701
|
g[0] = lit<Value>(Scalar(-1));
|
|
704
702
|
}
|
|
@@ -32,8 +32,8 @@ struct AbsExpression final
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
template <typename Value>
|
|
35
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
36
|
-
const Value& x) {
|
|
35
|
+
static void eval_grad(ArgArray<Value, 1>& g,
|
|
36
|
+
[[maybe_unused]] const Value& val, const Value& x) {
|
|
37
37
|
if constexpr (std::same_as<Value, Scalar>) {
|
|
38
38
|
if (x < Scalar(0)) {
|
|
39
39
|
g[0] = Scalar(-1);
|
|
@@ -75,8 +75,8 @@ struct AcosExpression final
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
template <typename Value>
|
|
78
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
79
|
-
const Value& x) {
|
|
78
|
+
static void eval_grad(ArgArray<Value, 1>& g,
|
|
79
|
+
[[maybe_unused]] const Value& val, const Value& x) {
|
|
80
80
|
using std::sqrt;
|
|
81
81
|
g[0] = lit<Value>(Scalar(-1)) / sqrt(lit<Value>(Scalar(1)) - x * x);
|
|
82
82
|
}
|
|
@@ -109,8 +109,8 @@ struct AsinExpression final
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
template <typename Value>
|
|
112
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
113
|
-
const Value& x) {
|
|
112
|
+
static void eval_grad(ArgArray<Value, 1>& g,
|
|
113
|
+
[[maybe_unused]] const Value& val, const Value& x) {
|
|
114
114
|
using std::sqrt;
|
|
115
115
|
g[0] = lit<Value>(Scalar(1)) / sqrt(lit<Value>(Scalar(1)) - x * x);
|
|
116
116
|
}
|
|
@@ -143,8 +143,8 @@ struct AtanExpression final
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
template <typename Value>
|
|
146
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
147
|
-
const Value& x) {
|
|
146
|
+
static void eval_grad(ArgArray<Value, 1>& g,
|
|
147
|
+
[[maybe_unused]] const Value& val, const Value& x) {
|
|
148
148
|
g[0] = lit<Value>(Scalar(1)) / (lit<Value>(Scalar(1)) + x * x);
|
|
149
149
|
}
|
|
150
150
|
};
|
|
@@ -176,8 +176,9 @@ struct Atan2Expression final
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
template <typename Value>
|
|
179
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
180
|
-
const Value&
|
|
179
|
+
static void eval_grad(ArgArray<Value, 2>& g,
|
|
180
|
+
[[maybe_unused]] const Value& val, const Value& y,
|
|
181
|
+
const Value& x) {
|
|
181
182
|
Value d = y * y + x * x;
|
|
182
183
|
g[0] = x / d;
|
|
183
184
|
g[1] = -y / d;
|
|
@@ -213,7 +214,7 @@ struct CbrtExpression final
|
|
|
213
214
|
}
|
|
214
215
|
|
|
215
216
|
template <typename Value>
|
|
216
|
-
static void eval_grad(ArgArray<Value>& g, const Value& val,
|
|
217
|
+
static void eval_grad(ArgArray<Value, 1>& g, const Value& val,
|
|
217
218
|
[[maybe_unused]] const Value& x) {
|
|
218
219
|
g[0] = lit<Value>(Scalar(1)) / (lit<Value>(Scalar(3)) * val * val);
|
|
219
220
|
}
|
|
@@ -246,8 +247,8 @@ struct CosExpression final
|
|
|
246
247
|
}
|
|
247
248
|
|
|
248
249
|
template <typename Value>
|
|
249
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
250
|
-
const Value& x) {
|
|
250
|
+
static void eval_grad(ArgArray<Value, 1>& g,
|
|
251
|
+
[[maybe_unused]] const Value& val, const Value& x) {
|
|
251
252
|
using std::sin;
|
|
252
253
|
g[0] = -sin(x);
|
|
253
254
|
}
|
|
@@ -280,8 +281,8 @@ struct CoshExpression final
|
|
|
280
281
|
}
|
|
281
282
|
|
|
282
283
|
template <typename Value>
|
|
283
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
284
|
-
const Value& x) {
|
|
284
|
+
static void eval_grad(ArgArray<Value, 1>& g,
|
|
285
|
+
[[maybe_unused]] const Value& val, const Value& x) {
|
|
285
286
|
using std::sinh;
|
|
286
287
|
g[0] = sinh(x);
|
|
287
288
|
}
|
|
@@ -314,8 +315,8 @@ struct ErfExpression final
|
|
|
314
315
|
}
|
|
315
316
|
|
|
316
317
|
template <typename Value>
|
|
317
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
318
|
-
const Value& x) {
|
|
318
|
+
static void eval_grad(ArgArray<Value, 1>& g,
|
|
319
|
+
[[maybe_unused]] const Value& val, const Value& x) {
|
|
319
320
|
using std::exp;
|
|
320
321
|
g[0] = lit<Value>(Scalar(2.0 * std::numbers::inv_sqrtpi)) * exp(-x * x);
|
|
321
322
|
}
|
|
@@ -348,7 +349,7 @@ struct ExpExpression final
|
|
|
348
349
|
}
|
|
349
350
|
|
|
350
351
|
template <typename Value>
|
|
351
|
-
static void eval_grad(ArgArray<Value>& g, const Value& val,
|
|
352
|
+
static void eval_grad(ArgArray<Value, 1>& g, const Value& val,
|
|
352
353
|
[[maybe_unused]] const Value& x) {
|
|
353
354
|
g[0] = val;
|
|
354
355
|
}
|
|
@@ -385,7 +386,7 @@ struct Hypot2Expression final
|
|
|
385
386
|
}
|
|
386
387
|
|
|
387
388
|
template <typename Value>
|
|
388
|
-
static void eval_grad(ArgArray<Value>& g, const Value& val, const Value& x,
|
|
389
|
+
static void eval_grad(ArgArray<Value, 2>& g, const Value& val, const Value& x,
|
|
389
390
|
const Value& y) {
|
|
390
391
|
g[0] = x / val;
|
|
391
392
|
g[1] = y / val;
|
|
@@ -433,7 +434,7 @@ struct Hypot3Expression final
|
|
|
433
434
|
}
|
|
434
435
|
|
|
435
436
|
template <typename Value>
|
|
436
|
-
static void eval_grad(ArgArray<Value>& g, const Value& val, const Value& x,
|
|
437
|
+
static void eval_grad(ArgArray<Value, 3>& g, const Value& val, const Value& x,
|
|
437
438
|
const Value& y, const Value& z) {
|
|
438
439
|
g[0] = x / val;
|
|
439
440
|
g[1] = y / val;
|
|
@@ -497,7 +498,7 @@ struct IfElseExpression final
|
|
|
497
498
|
}
|
|
498
499
|
|
|
499
500
|
template <typename Value>
|
|
500
|
-
void eval_grad(ArgArray<Value>& g, [[maybe_unused]] const Value& val,
|
|
501
|
+
void eval_grad(ArgArray<Value, 4>& g, [[maybe_unused]] const Value& val,
|
|
501
502
|
const Value& a, const Value& b,
|
|
502
503
|
[[maybe_unused]] const Value& t,
|
|
503
504
|
[[maybe_unused]] const Value& f) const {
|
|
@@ -573,8 +574,8 @@ struct LogExpression final
|
|
|
573
574
|
}
|
|
574
575
|
|
|
575
576
|
template <typename Value>
|
|
576
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
577
|
-
const Value& x) {
|
|
577
|
+
static void eval_grad(ArgArray<Value, 1>& g,
|
|
578
|
+
[[maybe_unused]] const Value& val, const Value& x) {
|
|
578
579
|
g[0] = lit<Value>(Scalar(1)) / x;
|
|
579
580
|
}
|
|
580
581
|
};
|
|
@@ -606,8 +607,8 @@ struct Log10Expression final
|
|
|
606
607
|
}
|
|
607
608
|
|
|
608
609
|
template <typename Value>
|
|
609
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
610
|
-
const Value& x) {
|
|
610
|
+
static void eval_grad(ArgArray<Value, 1>& g,
|
|
611
|
+
[[maybe_unused]] const Value& val, const Value& x) {
|
|
611
612
|
g[0] = lit<Value>(Scalar(1)) / (lit<Value>(Scalar(std::numbers::ln10)) * x);
|
|
612
613
|
}
|
|
613
614
|
};
|
|
@@ -641,8 +642,9 @@ struct MaxExpression final
|
|
|
641
642
|
}
|
|
642
643
|
|
|
643
644
|
template <typename Value>
|
|
644
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
645
|
-
const Value&
|
|
645
|
+
static void eval_grad(ArgArray<Value, 2>& g,
|
|
646
|
+
[[maybe_unused]] const Value& val, const Value& a,
|
|
647
|
+
const Value& b) {
|
|
646
648
|
if constexpr (std::same_as<Value, Scalar>) {
|
|
647
649
|
bool c = a >= b;
|
|
648
650
|
g[0] = c ? Scalar(1) : Scalar(0);
|
|
@@ -688,8 +690,9 @@ struct MinExpression final
|
|
|
688
690
|
}
|
|
689
691
|
|
|
690
692
|
template <typename Value>
|
|
691
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
692
|
-
const Value&
|
|
693
|
+
static void eval_grad(ArgArray<Value, 2>& g,
|
|
694
|
+
[[maybe_unused]] const Value& val, const Value& a,
|
|
695
|
+
const Value& b) {
|
|
693
696
|
if constexpr (std::same_as<Value, Scalar>) {
|
|
694
697
|
bool c = a <= b;
|
|
695
698
|
g[0] = c ? Scalar(1) : Scalar(0);
|
|
@@ -740,8 +743,8 @@ struct PowExpression final
|
|
|
740
743
|
}
|
|
741
744
|
|
|
742
745
|
template <typename Value>
|
|
743
|
-
static void eval_grad(ArgArray<Value>& g, const Value& val,
|
|
744
|
-
const Value& power) {
|
|
746
|
+
static void eval_grad(ArgArray<Value, 2>& g, const Value& val,
|
|
747
|
+
const Value& base, const Value& power) {
|
|
745
748
|
using std::log;
|
|
746
749
|
using std::pow;
|
|
747
750
|
|
|
@@ -847,8 +850,8 @@ struct SinExpression final
|
|
|
847
850
|
}
|
|
848
851
|
|
|
849
852
|
template <typename Value>
|
|
850
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
851
|
-
const Value& x) {
|
|
853
|
+
static void eval_grad(ArgArray<Value, 1>& g,
|
|
854
|
+
[[maybe_unused]] const Value& val, const Value& x) {
|
|
852
855
|
using std::cos;
|
|
853
856
|
g[0] = cos(x);
|
|
854
857
|
}
|
|
@@ -881,8 +884,8 @@ struct SinhExpression final
|
|
|
881
884
|
}
|
|
882
885
|
|
|
883
886
|
template <typename Value>
|
|
884
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
885
|
-
const Value& x) {
|
|
887
|
+
static void eval_grad(ArgArray<Value, 1>& g,
|
|
888
|
+
[[maybe_unused]] const Value& val, const Value& x) {
|
|
886
889
|
using std::cosh;
|
|
887
890
|
g[0] = cosh(x);
|
|
888
891
|
}
|
|
@@ -915,7 +918,7 @@ struct SqrtExpression final
|
|
|
915
918
|
}
|
|
916
919
|
|
|
917
920
|
template <typename Value>
|
|
918
|
-
static void eval_grad(ArgArray<Value>& g, const Value& val,
|
|
921
|
+
static void eval_grad(ArgArray<Value, 1>& g, const Value& val,
|
|
919
922
|
[[maybe_unused]] const Value& x) {
|
|
920
923
|
g[0] = lit<Value>(Scalar(1)) / (lit<Value>(Scalar(2)) * val);
|
|
921
924
|
}
|
|
@@ -948,8 +951,8 @@ struct TanExpression final
|
|
|
948
951
|
}
|
|
949
952
|
|
|
950
953
|
template <typename Value>
|
|
951
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
952
|
-
const Value& x) {
|
|
954
|
+
static void eval_grad(ArgArray<Value, 1>& g,
|
|
955
|
+
[[maybe_unused]] const Value& val, const Value& x) {
|
|
953
956
|
using std::cos;
|
|
954
957
|
|
|
955
958
|
Value c = cos(x);
|
|
@@ -984,8 +987,8 @@ struct TanhExpression final
|
|
|
984
987
|
}
|
|
985
988
|
|
|
986
989
|
template <typename Value>
|
|
987
|
-
static void eval_grad(ArgArray<Value>& g,
|
|
988
|
-
const Value& x) {
|
|
990
|
+
static void eval_grad(ArgArray<Value, 1>& g,
|
|
991
|
+
[[maybe_unused]] const Value& val, const Value& x) {
|
|
989
992
|
using std::cosh;
|
|
990
993
|
|
|
991
994
|
Value c = cosh(x);
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
|
|
12
12
|
#include "sleipnir/autodiff/expression.hpp"
|
|
13
13
|
#include "sleipnir/autodiff/expression_graph.hpp"
|
|
14
|
-
#include "sleipnir/autodiff/expression_type.hpp"
|
|
15
14
|
#include "sleipnir/autodiff/variable.hpp"
|
|
16
15
|
#include "sleipnir/autodiff/variable_matrix.hpp"
|
|
17
16
|
#include "sleipnir/util/assert.hpp"
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
#include "sleipnir/autodiff/expression.hpp"
|
|
12
12
|
#include "sleipnir/autodiff/expression_graph.hpp"
|
|
13
|
-
#include "sleipnir/autodiff/expression_type.hpp"
|
|
14
13
|
#include "sleipnir/autodiff/variable.hpp"
|
|
15
14
|
#include "sleipnir/autodiff/variable_matrix.hpp"
|
|
16
15
|
#include "sleipnir/util/assert.hpp"
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
#include <vector>
|
|
15
15
|
|
|
16
16
|
#include <Eigen/Core>
|
|
17
|
-
#include <Eigen/LU>
|
|
18
|
-
#include <Eigen/QR>
|
|
17
|
+
#include <Eigen/LU> // IWYU pragma: keep
|
|
18
|
+
#include <Eigen/QR> // IWYU pragma: keep
|
|
19
19
|
#include <gch/small_vector.hpp>
|
|
20
20
|
|
|
21
21
|
#include "sleipnir/autodiff/expression_graph.hpp"
|
|
@@ -31,7 +31,7 @@ class function_ref<R(Args...)> {
|
|
|
31
31
|
/// @param f Callable to which to refer.
|
|
32
32
|
template <typename F>
|
|
33
33
|
requires(!std::is_same_v<std::decay_t<F>, function_ref> &&
|
|
34
|
-
std::is_invocable_r_v<R, F
|
|
34
|
+
std::is_invocable_r_v<R, F&&, Args...>)
|
|
35
35
|
// NOLINTNEXTLINE (google-explicit-constructor)
|
|
36
36
|
constexpr function_ref(F&& f) noexcept
|
|
37
37
|
: obj_(const_cast<void*>(
|
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
#include "sleipnir/optimization/solver/ipm.hpp"
|
|
4
4
|
|
|
5
|
+
#include <functional>
|
|
6
|
+
#include <span>
|
|
7
|
+
|
|
8
|
+
#include <Eigen/Core>
|
|
9
|
+
|
|
10
|
+
#include "sleipnir/optimization/solver/control_flow.hpp"
|
|
11
|
+
#include "sleipnir/optimization/solver/exit_status.hpp"
|
|
12
|
+
#include "sleipnir/optimization/solver/ipm_matrix_callbacks.hpp"
|
|
13
|
+
#include "sleipnir/optimization/solver/iteration_info.hpp"
|
|
14
|
+
#include "sleipnir/optimization/solver/options.hpp"
|
|
5
15
|
#include "sleipnir/util/symbol_exports.hpp"
|
|
6
16
|
|
|
7
17
|
template SLEIPNIR_DLLEXPORT slp::ExitStatus slp::ipm(
|
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
#include "sleipnir/optimization/solver/newton.hpp"
|
|
4
4
|
|
|
5
|
+
#include <functional>
|
|
6
|
+
#include <span>
|
|
7
|
+
|
|
8
|
+
#include <Eigen/Core>
|
|
9
|
+
|
|
10
|
+
#include "sleipnir/optimization/solver/control_flow.hpp"
|
|
11
|
+
#include "sleipnir/optimization/solver/exit_status.hpp"
|
|
12
|
+
#include "sleipnir/optimization/solver/iteration_info.hpp"
|
|
13
|
+
#include "sleipnir/optimization/solver/newton_matrix_callbacks.hpp"
|
|
14
|
+
#include "sleipnir/optimization/solver/options.hpp"
|
|
5
15
|
#include "sleipnir/util/symbol_exports.hpp"
|
|
6
16
|
|
|
7
17
|
template SLEIPNIR_DLLEXPORT slp::ExitStatus slp::newton(
|
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
#include "sleipnir/optimization/solver/sqp.hpp"
|
|
4
4
|
|
|
5
|
+
#include <functional>
|
|
6
|
+
#include <span>
|
|
7
|
+
|
|
8
|
+
#include <Eigen/Core>
|
|
9
|
+
|
|
10
|
+
#include "sleipnir/optimization/solver/control_flow.hpp"
|
|
11
|
+
#include "sleipnir/optimization/solver/exit_status.hpp"
|
|
12
|
+
#include "sleipnir/optimization/solver/iteration_info.hpp"
|
|
13
|
+
#include "sleipnir/optimization/solver/options.hpp"
|
|
14
|
+
#include "sleipnir/optimization/solver/sqp_matrix_callbacks.hpp"
|
|
5
15
|
#include "sleipnir/util/symbol_exports.hpp"
|
|
6
16
|
|
|
7
17
|
template SLEIPNIR_DLLEXPORT slp::ExitStatus slp::sqp(
|
{sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/LICENSE.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/pyproject.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev140 → sleipnirgroup_jormungandr-0.6.7.dev142}/src/util/pool.cpp
RENAMED
|
File without changes
|