sleipnirgroup-jormungandr 0.6.7.dev141__tar.gz → 0.6.7.dev143__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.
Files changed (137) hide show
  1. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/PKG-INFO +1 -1
  2. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/autodiff/expression.hpp +70 -72
  3. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/autodiff/expression_functions.hpp +115 -122
  4. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/src/sleipnir/__init__.py +1 -1
  5. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/CMakeLists.txt +0 -0
  6. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/LICENSE.txt +0 -0
  7. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/README.md +0 -0
  8. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/SleipnirConfig.cmake.in +0 -0
  9. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/cmake/BuildTypes.cmake +0 -0
  10. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/cmake/CompilerFlags.cmake +0 -0
  11. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/cmake/Pybind11Mkdoc.cmake +0 -0
  12. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/cmake/Pybind11MkdocPostprocess.cmake +0 -0
  13. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/cmake/SubdirList.cmake +0 -0
  14. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/cmake/aarch64-linux-gnu.cmake +0 -0
  15. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/cmake/arm-none-eabi.cmake +0 -0
  16. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/autodiff/expression_graph.hpp +0 -0
  17. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/autodiff/expression_type.hpp +0 -0
  18. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/autodiff/gradient.hpp +0 -0
  19. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/autodiff/hessian.hpp +0 -0
  20. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/autodiff/jacobian.hpp +0 -0
  21. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/autodiff/sleipnir_base.hpp +0 -0
  22. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/autodiff/slice.hpp +0 -0
  23. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/autodiff/variable.hpp +0 -0
  24. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/autodiff/variable_block.hpp +0 -0
  25. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/autodiff/variable_matrix.hpp +0 -0
  26. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/multistart.hpp +0 -0
  27. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/ocp/dynamics_type.hpp +0 -0
  28. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/ocp/timestep_method.hpp +0 -0
  29. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/ocp/transcription_method.hpp +0 -0
  30. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/ocp.hpp +0 -0
  31. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/problem.hpp +0 -0
  32. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/control_flow.hpp +0 -0
  33. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/exit_status.hpp +0 -0
  34. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/ipm.hpp +0 -0
  35. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/ipm_matrix_callbacks.hpp +0 -0
  36. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/iteration_info.hpp +0 -0
  37. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/newton.hpp +0 -0
  38. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/newton_matrix_callbacks.hpp +0 -0
  39. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/options.hpp +0 -0
  40. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/sqp.hpp +0 -0
  41. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/sqp_matrix_callbacks.hpp +0 -0
  42. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/util/all_finite.hpp +0 -0
  43. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/util/append_as_triplets.hpp +0 -0
  44. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/util/bounds.hpp +0 -0
  45. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/util/constraint_violation.hpp +0 -0
  46. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/util/dense_kkt_solver.hpp +0 -0
  47. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/util/feasibility_restoration.hpp +0 -0
  48. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/util/feasibility_restoration_cycle_detector.hpp +0 -0
  49. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/util/filter.hpp +0 -0
  50. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/util/fraction_to_the_boundary_rule.hpp +0 -0
  51. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/util/kkt_error.hpp +0 -0
  52. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/util/kkt_solver.hpp +0 -0
  53. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/util/problem_scaling.hpp +0 -0
  54. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/util/regularization_limits.hpp +0 -0
  55. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/util/ruiz_equilibration.hpp +0 -0
  56. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/util/sparse_inf_norms.hpp +0 -0
  57. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/util/sparse_kkt_solver.hpp +0 -0
  58. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/optimization/solver/util/time_trace.hpp +0 -0
  59. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/util/assert.hpp +0 -0
  60. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/util/concepts.hpp +0 -0
  61. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/util/empty.hpp +0 -0
  62. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/util/force_inline.hpp +0 -0
  63. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/util/function_ref.hpp +0 -0
  64. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/util/intrusive_shared_ptr.hpp +0 -0
  65. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/util/pool.hpp +0 -0
  66. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/util/print.hpp +0 -0
  67. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/util/print_diagnostics.hpp +0 -0
  68. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/util/scope_exit.hpp +0 -0
  69. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/util/spy.hpp +0 -0
  70. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/util/symbol_exports.hpp +0 -0
  71. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/include/sleipnir/util/time_tracer.hpp +0 -0
  72. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/pyproject.toml +0 -0
  73. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/.clang-tidy +0 -0
  74. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/arity.hpp +0 -0
  75. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/autodiff/bind_expression_type.cpp +0 -0
  76. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/autodiff/bind_gradient.cpp +0 -0
  77. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/autodiff/bind_hessian.cpp +0 -0
  78. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/autodiff/bind_jacobian.cpp +0 -0
  79. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/autodiff/bind_variable.cpp +0 -0
  80. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/autodiff/bind_variable_block.cpp +0 -0
  81. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/autodiff/bind_variable_matrix.cpp +0 -0
  82. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/binders.hpp +0 -0
  83. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/docstrings.hpp +0 -0
  84. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/for_each_type.hpp +0 -0
  85. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/main.cpp +0 -0
  86. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/optimization/bind_equality_constraints.cpp +0 -0
  87. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/optimization/bind_inequality_constraints.cpp +0 -0
  88. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/optimization/bind_ocp.cpp +0 -0
  89. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/optimization/bind_problem.cpp +0 -0
  90. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/optimization/ocp/bind_dynamics_type.cpp +0 -0
  91. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/optimization/ocp/bind_timestep_method.cpp +0 -0
  92. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/optimization/ocp/bind_transcription_method.cpp +0 -0
  93. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/optimization/solver/bind_exit_status.cpp +0 -0
  94. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/optimization/solver/bind_iteration_info.cpp +0 -0
  95. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/slice_tuple.hpp +0 -0
  96. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/text_wrap.hpp +0 -0
  97. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/cpp/try_cast.hpp +0 -0
  98. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/postprocess_stubs.py +0 -0
  99. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/src/sleipnir/autodiff/__init__.py +0 -0
  100. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/src/sleipnir/optimization/__init__.py +0 -0
  101. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/autodiff/gradient_test.py +0 -0
  102. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/autodiff/hessian_test.py +0 -0
  103. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/autodiff/jacobian_test.py +0 -0
  104. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/autodiff/variable_matrix_test.py +0 -0
  105. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/autodiff/variable_test.py +0 -0
  106. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/arm_on_elevator_problem_test.py +0 -0
  107. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/cart_pole_ocp_test.py +0 -0
  108. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/cart_pole_problem_test.py +0 -0
  109. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/cart_pole_util.py +0 -0
  110. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/constraints_test.py +0 -0
  111. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/differential_drive_ocp_test.py +0 -0
  112. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/differential_drive_problem_test.py +0 -0
  113. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/differential_drive_util.py +0 -0
  114. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/double_integrator_problem_test.py +0 -0
  115. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/flywheel_ocp_test.py +0 -0
  116. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/flywheel_problem_test.py +0 -0
  117. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/flywheel_util.py +0 -0
  118. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/linear_problem_test.py +0 -0
  119. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/multistart_test.py +0 -0
  120. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/nonlinear_problem_test.py +0 -0
  121. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/problem_spy_test.py +0 -0
  122. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/problem_variable_test.py +0 -0
  123. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/quadratic_problem_test.py +0 -0
  124. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/rk4.py +0 -0
  125. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/solver/exit_status_test.py +0 -0
  126. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/tolerance.py +0 -0
  127. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/python/test/optimization/trivial_problem_test.py +0 -0
  128. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/src/autodiff/gradient.cpp +0 -0
  129. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/src/autodiff/hessian.cpp +0 -0
  130. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/src/autodiff/jacobian.cpp +0 -0
  131. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/src/autodiff/variable_matrix.cpp +0 -0
  132. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/src/optimization/ocp.cpp +0 -0
  133. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/src/optimization/problem.cpp +0 -0
  134. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/src/optimization/solver/ipm.cpp +0 -0
  135. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/src/optimization/solver/newton.cpp +0 -0
  136. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/src/optimization/solver/sqp.cpp +0 -0
  137. {sleipnirgroup_jormungandr-0.6.7.dev141 → sleipnirgroup_jormungandr-0.6.7.dev143}/src/util/pool.cpp +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sleipnirgroup-jormungandr
3
- Version: 0.6.7.dev141
3
+ Version: 0.6.7.dev143
4
4
  Summary: Reverse mode autodiff library and NLP solver DSL
5
5
  License-Expression: BSD-3-Clause
6
6
  License-File: LICENSE.txt
@@ -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
- template <typename T>
43
- using ArgArray = std::array<T, MAX_ARGS>;
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
  ///
@@ -51,55 +49,56 @@ using ExpressionPtr = IntrusiveSharedPtr<Expression<Scalar>>;
51
49
  /// Creates an intrusive shared pointer to an expression from the global pool
52
50
  /// allocator.
53
51
  ///
54
- /// @tparam T The derived expression type.
52
+ /// @tparam Derived Derived expression type.
55
53
  /// @param args Constructor arguments for Expression.
56
- template <typename T, typename... Args>
57
- static ExpressionPtr<typename T::Scalar> make_expression_ptr(Args&&... args) {
54
+ template <typename Derived, typename... Args>
55
+ static ExpressionPtr<typename Derived::Scalar> make_expression_ptr(
56
+ Args&&... args) {
58
57
  if constexpr (USE_POOL_ALLOCATOR) {
59
- return allocate_intrusive_shared<T>(global_pool_allocator<T>(),
60
- std::forward<Args>(args)...);
58
+ return allocate_intrusive_shared<Derived>(global_pool_allocator<Derived>(),
59
+ std::forward<Args>(args)...);
61
60
  } else {
62
- return make_intrusive_shared<T>(std::forward<Args>(args)...);
61
+ return make_intrusive_shared<Derived>(std::forward<Args>(args)...);
63
62
  }
64
63
  }
65
64
 
66
- template <typename Scalar, ExpressionType T>
65
+ template <typename Scalar, ExpressionType Type>
67
66
  struct BinaryMinusExpression;
68
67
 
69
- template <typename Scalar, ExpressionType T>
68
+ template <typename Scalar, ExpressionType Type>
70
69
  struct BinaryPlusExpression;
71
70
 
72
- template <typename Scalar, ExpressionType T>
71
+ template <typename Scalar, ExpressionType Type>
73
72
  struct DivExpression;
74
73
 
75
- template <typename Scalar, ExpressionType T>
74
+ template <typename Scalar, ExpressionType Type>
76
75
  struct MultExpression;
77
76
 
78
- template <typename Scalar, ExpressionType T>
77
+ template <typename Scalar, ExpressionType Type>
79
78
  struct UnaryMinusExpression;
80
79
 
81
80
  /// Creates an intrusive shared pointer to a derived expression type templated
82
81
  /// on ExpressionType, instantiated with the given expression type.
83
82
  ///
84
- /// @tparam T Derived expression type template.
83
+ /// @tparam Derived Derived expression type template.
85
84
  /// @tparam Scalar Scalar type.
86
85
  /// @tparam Args Argument types.
87
86
  /// @param type The expression's type.
88
87
  /// @param args The arguments.
89
- template <template <typename, ExpressionType> typename T, typename Scalar,
88
+ template <template <typename, ExpressionType> typename Derived, typename Scalar,
90
89
  typename... Args>
91
90
  SLEIPNIR_FORCE_INLINE ExpressionPtr<Scalar> make_typed_expression_ptr(
92
91
  ExpressionType type, const Args&... args) {
93
92
  using enum ExpressionType;
94
93
 
95
94
  if (type == PARAMETER) {
96
- return make_expression_ptr<T<Scalar, PARAMETER>>(args...);
95
+ return make_expression_ptr<Derived<Scalar, PARAMETER>>(args...);
97
96
  } else if (type == LINEAR) {
98
- return make_expression_ptr<T<Scalar, LINEAR>>(args...);
97
+ return make_expression_ptr<Derived<Scalar, LINEAR>>(args...);
99
98
  } else if (type == QUADRATIC) {
100
- return make_expression_ptr<T<Scalar, QUADRATIC>>(args...);
99
+ return make_expression_ptr<Derived<Scalar, QUADRATIC>>(args...);
101
100
  } else {
102
- return make_expression_ptr<T<Scalar, NONLINEAR>>(args...);
101
+ return make_expression_ptr<Derived<Scalar, NONLINEAR>>(args...);
103
102
  }
104
103
  }
105
104
 
@@ -406,19 +405,13 @@ struct Expression {
406
405
  /// trees evaluate the partial derivatives as Scalars instead of building them
407
406
  /// as expressions.
408
407
  ///
409
- /// @tparam Derived Derived expression type.
408
+ /// @tparam Derived Derived expression type template.
410
409
  /// @tparam Scalar Scalar type.
411
- /// @tparam NumArgs The number of arguments.
412
410
  /// @tparam Type The expression's type.
413
- template <typename Derived, typename Scalar, size_t NumArgs,
414
- ExpressionType Type = ExpressionType::NONLINEAR>
411
+ /// @tparam NumArgs The number of arguments.
412
+ template <template <typename, ExpressionType> typename Derived, typename Scalar,
413
+ ExpressionType Type, size_t NumArgs>
415
414
  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
415
  /// Whether the partial derivatives are the same at every argument value.
423
416
  static constexpr bool CONSTANT_PARTIALS = false;
424
417
 
@@ -450,7 +443,7 @@ struct NonLeafExpression : Expression<Scalar> {
450
443
  /// @return The node's value.
451
444
  Scalar value() const final {
452
445
  return [&]<size_t... Is>(std::index_sequence<Is...>) {
453
- return static_cast<const Derived&>(*this).eval(args[Is]->val...);
446
+ return static_cast<const Self&>(*this).eval(args[Is]->val...);
454
447
  }(std::make_index_sequence<NumArgs>{});
455
448
  }
456
449
 
@@ -462,22 +455,20 @@ struct NonLeafExpression : Expression<Scalar> {
462
455
  /// Returns the name of this expression.
463
456
  ///
464
457
  /// @return The name of this expression.
465
- std::string_view name() const final { return Derived::NAME; }
458
+ std::string_view name() const final { return Self::NAME; }
466
459
 
467
460
  /// Returns true if the partial derivatives are the same at every argument
468
461
  /// value.
469
462
  ///
470
463
  /// @return True if the partial derivatives are the same at every argument
471
464
  /// value.
472
- bool has_constant_partials() const final {
473
- return Derived::CONSTANT_PARTIALS;
474
- }
465
+ bool has_constant_partials() const final { return Self::CONSTANT_PARTIALS; }
475
466
 
476
467
  /// Accumulates the child adjoints as Scalars.
477
468
  void accumulate_adjoints() const final {
478
469
  [&]<size_t... Is>(std::index_sequence<Is...>) {
479
470
  // Evaluate gradients
480
- ArgArray<Scalar> g{};
471
+ ArgArray<Scalar, NumArgs> g{};
481
472
  grad(g, this->val, args[Is]->val...);
482
473
 
483
474
  // Accumulate adjoints
@@ -490,9 +481,9 @@ struct NonLeafExpression : Expression<Scalar> {
490
481
  [&]<size_t... Is>(std::index_sequence<Is...>) {
491
482
  // If the partial derivatives are constant, evaluate them as Scalars
492
483
  // instead of building them as expressions
493
- if constexpr (Derived::CONSTANT_PARTIALS) {
484
+ if constexpr (Self::CONSTANT_PARTIALS) {
494
485
  // Evaluate gradients
495
- ArgArray<Scalar> g{};
486
+ ArgArray<Scalar, NumArgs> g{};
496
487
  grad(g, this->val, args[Is]->val...);
497
488
 
498
489
  // Accumulate adjoints
@@ -511,7 +502,7 @@ struct NonLeafExpression : Expression<Scalar> {
511
502
  ...);
512
503
  } else {
513
504
  // Evaluate gradients
514
- ArgArray<ExpressionPtr<Scalar>> g;
505
+ ArgArray<ExpressionPtr<Scalar>, NumArgs> g;
515
506
  grad(g, ExpressionPtr<Scalar>{const_cast<NonLeafExpression*>(this)},
516
507
  args[Is]...);
517
508
 
@@ -529,6 +520,8 @@ struct NonLeafExpression : Expression<Scalar> {
529
520
  }
530
521
 
531
522
  private:
523
+ using Self = Derived<Scalar, Type>;
524
+
532
525
  /// Computes the partial derivatives with the derived expression type's
533
526
  /// eval_grad(), or leaves them unwritten if it doesn't define one.
534
527
  ///
@@ -542,11 +535,12 @@ struct NonLeafExpression : Expression<Scalar> {
542
535
  /// @param val The expression's value.
543
536
  /// @param x The argument values in visit_args() order.
544
537
  template <typename Value, typename... Args>
545
- void grad(ArgArray<Value>& g, const Value& val, const Args&... x) const {
546
- if constexpr (requires(const Derived& expr) {
538
+ void grad(ArgArray<Value, NumArgs>& g, const Value& val,
539
+ const Args&... x) const {
540
+ if constexpr (requires(const Self& expr) {
547
541
  expr.eval_grad(g, val, x...);
548
542
  }) {
549
- static_cast<const Derived&>(*this).eval_grad(g, val, x...);
543
+ static_cast<const Self&>(*this).eval_grad(g, val, x...);
550
544
  }
551
545
  }
552
546
  };
@@ -557,17 +551,17 @@ struct NonLeafExpression : Expression<Scalar> {
557
551
  /// A unary operator that maps its constant argument to itself (e.g., sin(0) =
558
552
  /// 0) returns the argument instead of allocating a new constant.
559
553
  ///
560
- /// @tparam T Derived expression type template.
554
+ /// @tparam Derived Derived expression type template.
561
555
  /// @tparam Scalar Scalar type.
562
556
  /// @tparam Args Argument types.
563
557
  /// @param args The arguments.
564
- template <template <typename, ExpressionType> typename T, typename Scalar,
558
+ template <template <typename, ExpressionType> typename Derived, typename Scalar,
565
559
  typename... Args>
566
560
  ExpressionPtr<Scalar> fold_or_make(const Args&... args) {
567
561
  using enum ExpressionType;
568
562
 
569
563
  if (((args->type() == CONSTANT) && ...)) {
570
- Scalar val = T<Scalar, NONLINEAR>::eval(args->val...);
564
+ Scalar val = Derived<Scalar, NONLINEAR>::eval(args->val...);
571
565
  if constexpr (sizeof...(Args) == 1) {
572
566
  const auto& x = std::get<0>(std::forward_as_tuple(args...));
573
567
  if (x->val == val) {
@@ -578,19 +572,19 @@ ExpressionPtr<Scalar> fold_or_make(const Args&... args) {
578
572
  }
579
573
 
580
574
  if (((args->type() <= PARAMETER) && ...)) {
581
- return make_expression_ptr<T<Scalar, PARAMETER>>(args...);
575
+ return make_expression_ptr<Derived<Scalar, PARAMETER>>(args...);
582
576
  } else {
583
- return make_expression_ptr<T<Scalar, NONLINEAR>>(args...);
577
+ return make_expression_ptr<Derived<Scalar, NONLINEAR>>(args...);
584
578
  }
585
579
  }
586
580
 
587
581
  /// Derived expression type for binary minus operator.
588
582
  ///
589
583
  /// @tparam Scalar Scalar type.
590
- /// @tparam T Expression type.
591
- template <typename Scalar, ExpressionType T>
584
+ /// @tparam Type Expression type.
585
+ template <typename Scalar, ExpressionType Type>
592
586
  struct BinaryMinusExpression final
593
- : NonLeafExpression<BinaryMinusExpression<Scalar, T>, Scalar, 2, T> {
587
+ : NonLeafExpression<BinaryMinusExpression, Scalar, Type, 2> {
594
588
  using BinaryMinusExpression::NonLeafExpression::NonLeafExpression;
595
589
 
596
590
  /// The expression's name.
@@ -602,7 +596,8 @@ struct BinaryMinusExpression final
602
596
  static Scalar eval(Scalar lhs, Scalar rhs) { return lhs - rhs; }
603
597
 
604
598
  template <typename Value>
605
- static void eval_grad(ArgArray<Value>& g, [[maybe_unused]] const Value& val,
599
+ static void eval_grad(ArgArray<Value, 2>& g,
600
+ [[maybe_unused]] const Value& val,
606
601
  [[maybe_unused]] const Value& lhs,
607
602
  [[maybe_unused]] const Value& rhs) {
608
603
  g[0] = lit<Value>(Scalar(1));
@@ -613,10 +608,10 @@ struct BinaryMinusExpression final
613
608
  /// Derived expression type for binary plus operator.
614
609
  ///
615
610
  /// @tparam Scalar Scalar type.
616
- /// @tparam T Expression type.
617
- template <typename Scalar, ExpressionType T>
611
+ /// @tparam Type Expression type.
612
+ template <typename Scalar, ExpressionType Type>
618
613
  struct BinaryPlusExpression final
619
- : NonLeafExpression<BinaryPlusExpression<Scalar, T>, Scalar, 2, T> {
614
+ : NonLeafExpression<BinaryPlusExpression, Scalar, Type, 2> {
620
615
  using BinaryPlusExpression::NonLeafExpression::NonLeafExpression;
621
616
 
622
617
  /// The expression's name.
@@ -628,7 +623,8 @@ struct BinaryPlusExpression final
628
623
  static Scalar eval(Scalar lhs, Scalar rhs) { return lhs + rhs; }
629
624
 
630
625
  template <typename Value>
631
- static void eval_grad(ArgArray<Value>& g, [[maybe_unused]] const Value& val,
626
+ static void eval_grad(ArgArray<Value, 2>& g,
627
+ [[maybe_unused]] const Value& val,
632
628
  [[maybe_unused]] const Value& lhs,
633
629
  [[maybe_unused]] const Value& rhs) {
634
630
  g[0] = lit<Value>(Scalar(1));
@@ -639,10 +635,9 @@ struct BinaryPlusExpression final
639
635
  /// Derived expression type for binary division operator.
640
636
  ///
641
637
  /// @tparam Scalar Scalar type.
642
- /// @tparam T Expression type.
643
- template <typename Scalar, ExpressionType T>
644
- struct DivExpression final
645
- : NonLeafExpression<DivExpression<Scalar, T>, Scalar, 2, T> {
638
+ /// @tparam Type Expression type.
639
+ template <typename Scalar, ExpressionType Type>
640
+ struct DivExpression final : NonLeafExpression<DivExpression, Scalar, Type, 2> {
646
641
  using DivExpression::NonLeafExpression::NonLeafExpression;
647
642
 
648
643
  /// The expression's name.
@@ -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, [[maybe_unused]] const Value& val,
655
- const Value& lhs, const Value& rhs) {
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
  }
@@ -661,10 +657,10 @@ struct DivExpression final
661
657
  /// Derived expression type for binary multiplication operator.
662
658
  ///
663
659
  /// @tparam Scalar Scalar type.
664
- /// @tparam T Expression type.
665
- template <typename Scalar, ExpressionType T>
660
+ /// @tparam Type Expression type.
661
+ template <typename Scalar, ExpressionType Type>
666
662
  struct MultExpression final
667
- : NonLeafExpression<MultExpression<Scalar, T>, Scalar, 2, T> {
663
+ : NonLeafExpression<MultExpression, Scalar, Type, 2> {
668
664
  using MultExpression::NonLeafExpression::NonLeafExpression;
669
665
 
670
666
  /// The expression's name.
@@ -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, [[maybe_unused]] const Value& val,
677
- const Value& lhs, const Value& rhs) {
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
  }
@@ -683,10 +680,10 @@ struct MultExpression final
683
680
  /// Derived expression type for unary minus operator.
684
681
  ///
685
682
  /// @tparam Scalar Scalar type.
686
- /// @tparam T Expression type.
687
- template <typename Scalar, ExpressionType T>
683
+ /// @tparam Type Expression type.
684
+ template <typename Scalar, ExpressionType Type>
688
685
  struct UnaryMinusExpression final
689
- : NonLeafExpression<UnaryMinusExpression<Scalar, T>, Scalar, 1, T> {
686
+ : NonLeafExpression<UnaryMinusExpression, Scalar, Type, 1> {
690
687
  using UnaryMinusExpression::NonLeafExpression::NonLeafExpression;
691
688
 
692
689
  /// The expression's name.
@@ -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, [[maybe_unused]] const Value& val,
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
  }