sleipnirgroup-jormungandr 0.6.7.dev194__tar.gz → 0.6.7.dev195__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 (149) hide show
  1. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/PKG-INFO +1 -1
  2. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/autodiff/matrix.hpp +30 -26
  3. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/autodiff/submatrix.hpp +23 -7
  4. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/autodiff/bind_real_matrix.cpp +3 -3
  5. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/docstrings.hpp +21 -8
  6. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/src/sleipnir/__init__.py +1 -1
  7. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/autodiff/real_matrix_test.py +2 -2
  8. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/CMakeLists.txt +0 -0
  9. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/LICENSE.txt +0 -0
  10. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/README.md +0 -0
  11. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/SleipnirConfig.cmake.in +0 -0
  12. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/cmake/BuildTypes.cmake +0 -0
  13. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/cmake/CompilerFlags.cmake +0 -0
  14. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/cmake/Pybind11Mkdoc.cmake +0 -0
  15. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/cmake/Pybind11MkdocPostprocess.cmake +0 -0
  16. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/cmake/SubdirList.cmake +0 -0
  17. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/cmake/aarch64-linux-gnu.cmake +0 -0
  18. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/cmake/arm-none-eabi.cmake +0 -0
  19. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/autodiff/expression.hpp +0 -0
  20. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/autodiff/expression_functions.hpp +0 -0
  21. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/autodiff/expression_graph.hpp +0 -0
  22. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/autodiff/expression_type.hpp +0 -0
  23. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/autodiff/gradient.hpp +0 -0
  24. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/autodiff/hessian.hpp +0 -0
  25. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/autodiff/jacobian.hpp +0 -0
  26. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/autodiff/matrix_fwd.hpp +0 -0
  27. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/autodiff/real.hpp +0 -0
  28. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/autodiff/sleipnir_base.hpp +0 -0
  29. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/autodiff/slice.hpp +0 -0
  30. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/multistart.hpp +0 -0
  31. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/ocp/dynamics_type.hpp +0 -0
  32. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/ocp/timestep_method.hpp +0 -0
  33. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/ocp/transcription_method.hpp +0 -0
  34. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/ocp.hpp +0 -0
  35. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/problem.hpp +0 -0
  36. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/control_flow.hpp +0 -0
  37. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/exit_status.hpp +0 -0
  38. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/ipm.hpp +0 -0
  39. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/ipm_matrix_callbacks.hpp +0 -0
  40. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/iteration_info.hpp +0 -0
  41. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/newton.hpp +0 -0
  42. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/newton_matrix_callbacks.hpp +0 -0
  43. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/options.hpp +0 -0
  44. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/sqp.hpp +0 -0
  45. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/sqp_matrix_callbacks.hpp +0 -0
  46. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/all_finite.hpp +0 -0
  47. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/append_as_triplets.hpp +0 -0
  48. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/barrier_parameter.hpp +0 -0
  49. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/bounds.hpp +0 -0
  50. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/constraint_violation.hpp +0 -0
  51. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/dense_kkt_solver.hpp +0 -0
  52. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/feasibility_restoration.hpp +0 -0
  53. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/feasibility_restoration_cycle_detector.hpp +0 -0
  54. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/filter.hpp +0 -0
  55. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/first_derivatives.hpp +0 -0
  56. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/fraction_to_the_boundary_rule.hpp +0 -0
  57. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/function_values.hpp +0 -0
  58. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/iterates.hpp +0 -0
  59. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/kkt_error.hpp +0 -0
  60. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/kkt_solver.hpp +0 -0
  61. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/kkt_system.hpp +0 -0
  62. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/problem_scaling.hpp +0 -0
  63. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/regularization_limits.hpp +0 -0
  64. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/ruiz_equilibration.hpp +0 -0
  65. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/sparse_inf_norms.hpp +0 -0
  66. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/sparse_kkt_solver.hpp +0 -0
  67. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/step.hpp +0 -0
  68. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/optimization/solver/util/time_trace.hpp +0 -0
  69. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/util/assert.hpp +0 -0
  70. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/util/concepts.hpp +0 -0
  71. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/util/empty.hpp +0 -0
  72. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/util/force_inline.hpp +0 -0
  73. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/util/function_ref.hpp +0 -0
  74. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/util/intrusive_shared_ptr.hpp +0 -0
  75. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/util/pool.hpp +0 -0
  76. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/util/print.hpp +0 -0
  77. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/util/print_diagnostics.hpp +0 -0
  78. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/util/scope_exit.hpp +0 -0
  79. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/util/spy.hpp +0 -0
  80. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/util/symbol_exports.hpp +0 -0
  81. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/include/sleipnir/util/time_tracer.hpp +0 -0
  82. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/pyproject.toml +0 -0
  83. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/.clang-tidy +0 -0
  84. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/arity.hpp +0 -0
  85. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/array_ufunc.hpp +0 -0
  86. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/autodiff/bind_expression_type.cpp +0 -0
  87. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/autodiff/bind_gradient.cpp +0 -0
  88. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/autodiff/bind_hessian.cpp +0 -0
  89. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/autodiff/bind_jacobian.cpp +0 -0
  90. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/autodiff/bind_real.cpp +0 -0
  91. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/autodiff/bind_real_submatrix.cpp +0 -0
  92. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/binders.hpp +0 -0
  93. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/element_index.hpp +0 -0
  94. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/for_each_type.hpp +0 -0
  95. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/main.cpp +0 -0
  96. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/optimization/bind_equality_constraints.cpp +0 -0
  97. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/optimization/bind_inequality_constraints.cpp +0 -0
  98. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/optimization/bind_ocp.cpp +0 -0
  99. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/optimization/bind_problem.cpp +0 -0
  100. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/optimization/ocp/bind_dynamics_type.cpp +0 -0
  101. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/optimization/ocp/bind_timestep_method.cpp +0 -0
  102. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/optimization/ocp/bind_transcription_method.cpp +0 -0
  103. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/optimization/solver/bind_exit_status.cpp +0 -0
  104. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/optimization/solver/bind_iteration_info.cpp +0 -0
  105. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/real_scalar.hpp +0 -0
  106. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/real_scalar_comparisons.hpp +0 -0
  107. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/real_vector_caster.hpp +0 -0
  108. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/slice_tuple.hpp +0 -0
  109. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/text_wrap.hpp +0 -0
  110. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/cpp/try_cast.hpp +0 -0
  111. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/postprocess_stubs.py +0 -0
  112. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/src/sleipnir/autodiff/__init__.py +0 -0
  113. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/src/sleipnir/optimization/__init__.py +0 -0
  114. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/autodiff/gradient_test.py +0 -0
  115. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/autodiff/hessian_test.py +0 -0
  116. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/autodiff/jacobian_test.py +0 -0
  117. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/autodiff/real_test.py +0 -0
  118. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/arm_on_elevator_problem_test.py +0 -0
  119. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/cart_pole_ocp_test.py +0 -0
  120. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/cart_pole_problem_test.py +0 -0
  121. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/cart_pole_util.py +0 -0
  122. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/constraints_test.py +0 -0
  123. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/differential_drive_ocp_test.py +0 -0
  124. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/differential_drive_problem_test.py +0 -0
  125. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/differential_drive_util.py +0 -0
  126. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/double_integrator_problem_test.py +0 -0
  127. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/flywheel_ocp_test.py +0 -0
  128. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/flywheel_problem_test.py +0 -0
  129. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/flywheel_util.py +0 -0
  130. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/linear_problem_test.py +0 -0
  131. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/multistart_test.py +0 -0
  132. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/nonlinear_problem_test.py +0 -0
  133. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/problem_spy_test.py +0 -0
  134. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/problem_variable_test.py +0 -0
  135. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/quadratic_problem_test.py +0 -0
  136. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/rk4.py +0 -0
  137. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/solver/exit_status_test.py +0 -0
  138. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/tolerance.py +0 -0
  139. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/python/test/optimization/trivial_problem_test.py +0 -0
  140. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/src/autodiff/gradient.cpp +0 -0
  141. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/src/autodiff/hessian.cpp +0 -0
  142. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/src/autodiff/jacobian.cpp +0 -0
  143. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/src/autodiff/matrix.cpp +0 -0
  144. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/src/optimization/ocp.cpp +0 -0
  145. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/src/optimization/problem.cpp +0 -0
  146. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/src/optimization/solver/ipm.cpp +0 -0
  147. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/src/optimization/solver/newton.cpp +0 -0
  148. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/src/optimization/solver/sqp.cpp +0 -0
  149. {sleipnirgroup_jormungandr-0.6.7.dev194 → sleipnirgroup_jormungandr-0.6.7.dev195}/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.dev194
3
+ Version: 0.6.7.dev195
4
4
  Summary: Reverse mode autodiff library and NLP solver DSL
5
5
  License-Expression: BSD-3-Clause
6
6
  License-File: LICENSE.txt
@@ -6,6 +6,7 @@
6
6
  #include <array>
7
7
  #include <concepts>
8
8
  #include <cstddef>
9
+ #include <functional>
9
10
  #include <initializer_list>
10
11
  #include <iterator>
11
12
  #include <span>
@@ -27,7 +28,6 @@
27
28
  #include "sleipnir/util/assert.hpp"
28
29
  #include "sleipnir/util/concepts.hpp"
29
30
  #include "sleipnir/util/empty.hpp"
30
- #include "sleipnir/util/function_ref.hpp"
31
31
  #include "sleipnir/util/symbol_exports.hpp"
32
32
 
33
33
  namespace slp {
@@ -911,18 +911,20 @@ class Matrix : public SleipnirBase {
911
911
  return result;
912
912
  }
913
913
 
914
- /// Transforms the matrix coefficient-wise with an unary operator.
914
+ /// Transforms the matrix coefficient-wise with a unary operator.
915
915
  ///
916
+ /// @tparam F Unary operator type.
916
917
  /// @param unary_op The unary operator to use for the transform operation.
917
- /// @return Result of the unary operator.
918
- Matrix cwise_transform(
919
- function_ref<Element(const Element& x)> unary_op) const {
920
- Matrix result{detail::empty, rows(), cols()};
921
-
922
- for (int row = 0; row < rows(); ++row) {
923
- for (int col = 0; col < cols(); ++col) {
924
- result[row, col] = unary_op((*this)[row, col]);
925
- }
918
+ /// @return Result of the unary operator. Its element type is the operator's
919
+ /// return type.
920
+ template <std::invocable<const Element&> F>
921
+ Matrix<detail::transform_result_t<F, const Element&>, Rows, Cols>
922
+ cwise_transform(F&& unary_op) const {
923
+ Matrix<detail::transform_result_t<F, const Element&>, Rows, Cols> result{
924
+ detail::empty, rows(), cols()};
925
+
926
+ for (int index = 0; index < rows() * cols(); ++index) {
927
+ result[index] = std::invoke(unary_op, m_storage[index]);
926
928
  }
927
929
 
928
930
  return result;
@@ -1427,29 +1429,31 @@ auto operator-(const LHS& lhs, const RHS& rhs) {
1427
1429
  return result;
1428
1430
  }
1429
1431
 
1430
- /// Applies a coefficient-wise reduce operation to two matrices.
1432
+ /// Transforms two matrices coefficient-wise with a binary operator.
1431
1433
  ///
1432
- /// @tparam Scalar Scalar type.
1434
+ /// @tparam Element Matrix element type.
1433
1435
  /// @tparam Rows Number of rows at compile time.
1434
1436
  /// @tparam Cols Number of columns at compile time.
1437
+ /// @tparam F Binary operator type.
1435
1438
  /// @param lhs The left-hand side of the binary operator.
1436
1439
  /// @param rhs The right-hand side of the binary operator.
1437
- /// @param binary_op The binary operator to use for the reduce operation.
1438
- template <typename Scalar, int Rows, int Cols>
1439
- Matrix<Real<Scalar>, Rows, Cols> cwise_reduce(
1440
- const Matrix<Real<Scalar>, Rows, Cols>& lhs,
1441
- const Matrix<Real<Scalar>, Rows, Cols>& rhs,
1442
- function_ref<Real<Scalar>(const Real<Scalar>& x, const Real<Scalar>& y)>
1443
- binary_op) {
1440
+ /// @param binary_op The binary operator to use for the transform operation.
1441
+ /// @return Result of the binary operator. Its element type is the operator's
1442
+ /// return type.
1443
+ template <typename Element, int Rows, int Cols,
1444
+ std::invocable<const Element&, const Element&> F>
1445
+ Matrix<detail::transform_result_t<F, const Element&, const Element&>, Rows,
1446
+ Cols>
1447
+ cwise_transform(const Matrix<Element, Rows, Cols>& lhs,
1448
+ const Matrix<Element, Rows, Cols>& rhs, F&& binary_op) {
1444
1449
  slp_assert(lhs.rows() == rhs.rows() && lhs.cols() == rhs.cols());
1445
1450
 
1446
- Matrix<Real<Scalar>, Rows, Cols> result{detail::empty, lhs.rows(),
1447
- lhs.cols()};
1451
+ Matrix<detail::transform_result_t<F, const Element&, const Element&>, Rows,
1452
+ Cols>
1453
+ result{detail::empty, lhs.rows(), lhs.cols()};
1448
1454
 
1449
- for (int row = 0; row < lhs.rows(); ++row) {
1450
- for (int col = 0; col < lhs.cols(); ++col) {
1451
- result[row, col] = binary_op(lhs[row, col], rhs[row, col]);
1452
- }
1455
+ for (int index = 0; index < lhs.rows() * lhs.cols(); ++index) {
1456
+ result[index] = std::invoke(binary_op, lhs[index], rhs[index]);
1453
1457
  }
1454
1458
 
1455
1459
  return result;
@@ -4,6 +4,7 @@
4
4
 
5
5
  #include <concepts>
6
6
  #include <cstddef>
7
+ #include <functional>
7
8
  #include <iterator>
8
9
  #include <type_traits>
9
10
  #include <utility>
@@ -16,10 +17,21 @@
16
17
  #include "sleipnir/util/assert.hpp"
17
18
  #include "sleipnir/util/concepts.hpp"
18
19
  #include "sleipnir/util/empty.hpp"
19
- #include "sleipnir/util/function_ref.hpp"
20
20
 
21
21
  namespace slp {
22
22
 
23
+ namespace detail {
24
+
25
+ /// The matrix element type cwise_transform() produces.
26
+ ///
27
+ /// @tparam F Operator type.
28
+ /// @tparam Args Operator argument types.
29
+ template <typename F, typename... Args>
30
+ using transform_result_t =
31
+ std::remove_cvref_t<std::invoke_result_t<F&, Args...>>;
32
+
33
+ } // namespace detail
34
+
23
35
  /// A submatrix of autodiff expressions with reference semantics.
24
36
  ///
25
37
  /// @tparam Mat The type of the matrix whose storage this class points to.
@@ -623,17 +635,21 @@ class Submatrix : public SleipnirBase {
623
635
  return result;
624
636
  }
625
637
 
626
- /// Transforms the matrix coefficient-wise with an unary operator.
638
+ /// Transforms the matrix coefficient-wise with a unary operator.
627
639
  ///
640
+ /// @tparam F Unary operator type.
628
641
  /// @param unary_op The unary operator to use for the transform operation.
629
- /// @return Result of the unary operator.
630
- Matrix<Element, Rows, Cols> cwise_transform(
631
- function_ref<Element(const Element& x)> unary_op) const {
632
- Matrix<Element, Rows, Cols> result{detail::empty, rows(), cols()};
642
+ /// @return Result of the unary operator. Its element type is the operator's
643
+ /// return type.
644
+ template <std::invocable<const Element&> F>
645
+ Matrix<detail::transform_result_t<F, const Element&>, Rows, Cols>
646
+ cwise_transform(F&& unary_op) const {
647
+ Matrix<detail::transform_result_t<F, const Element&>, Rows, Cols> result{
648
+ detail::empty, rows(), cols()};
633
649
 
634
650
  for (int row = 0; row < rows(); ++row) {
635
651
  for (int col = 0; col < cols(); ++col) {
636
- result[row, col] = unary_op((*this)[row, col]);
652
+ result[row, col] = std::invoke(unary_op, (*this)[row, col]);
637
653
  }
638
654
  }
639
655
 
@@ -378,13 +378,13 @@ void bind_real_matrix(nb::module_& autodiff,
378
378
  nb::keep_alive<0, 1>());
379
379
 
380
380
  autodiff.def(
381
- "cwise_reduce",
381
+ "cwise_map",
382
382
  [](const RealMatrix<double>& lhs, const RealMatrix<double>& rhs,
383
383
  const std::function<Real<double>(const Real<double>& x,
384
384
  const Real<double>& y)>& binary_op) {
385
- return cwise_reduce<double>(lhs, rhs, binary_op);
385
+ return cwise_transform(lhs, rhs, binary_op);
386
386
  },
387
- "lhs"_a, "rhs"_a, "binary_op"_a, DOC(slp, cwise_reduce));
387
+ "lhs"_a, "rhs"_a, "binary_op"_a, DOC(slp, cwise_transform));
388
388
 
389
389
  autodiff.def(
390
390
  "block",
@@ -813,13 +813,17 @@ Returns:
813
813
  )doc";
814
814
 
815
815
  constexpr char mkd_doc_slp_Matrix_cwise_transform[] =
816
- R"doc(Transforms the matrix coefficient-wise with an unary operator.
816
+ R"doc(Transforms the matrix coefficient-wise with a unary operator.
817
817
 
818
818
  Args:
819
819
  unary_op: The unary operator to use for the transform operation.
820
820
 
821
+ Template Args:
822
+ F: Unary operator type.
823
+
821
824
  Returns:
822
- Result of the unary operator.
825
+ Result of the unary operator. Its element type is the operator's
826
+ return type.
823
827
 
824
828
  )doc";
825
829
 
@@ -2206,13 +2210,17 @@ Returns:
2206
2210
  )doc";
2207
2211
 
2208
2212
  constexpr char mkd_doc_slp_Submatrix_cwise_transform[] =
2209
- R"doc(Transforms the matrix coefficient-wise with an unary operator.
2213
+ R"doc(Transforms the matrix coefficient-wise with a unary operator.
2210
2214
 
2211
2215
  Args:
2212
2216
  unary_op: The unary operator to use for the transform operation.
2213
2217
 
2218
+ Template Args:
2219
+ F: Unary operator type.
2220
+
2214
2221
  Returns:
2215
- Result of the unary operator.
2222
+ Result of the unary operator. Its element type is the operator's
2223
+ return type.
2216
2224
 
2217
2225
  )doc";
2218
2226
 
@@ -2909,18 +2917,23 @@ Template Args:
2909
2917
 
2910
2918
  )doc";
2911
2919
 
2912
- constexpr char mkd_doc_slp_cwise_reduce[] =
2913
- R"doc(Applies a coefficient-wise reduce operation to two matrices.
2920
+ constexpr char mkd_doc_slp_cwise_transform[] =
2921
+ R"doc(Transforms two matrices coefficient-wise with a binary operator.
2914
2922
 
2915
2923
  Args:
2916
2924
  lhs: The left-hand side of the binary operator.
2917
2925
  rhs: The right-hand side of the binary operator.
2918
- binary_op: The binary operator to use for the reduce operation.
2926
+ binary_op: The binary operator to use for the transform operation.
2919
2927
 
2920
2928
  Template Args:
2921
- Scalar: Scalar type.
2929
+ Element: Matrix element type.
2922
2930
  Rows: Number of rows at compile time.
2923
2931
  Cols: Number of columns at compile time.
2932
+ F: Binary operator type.
2933
+
2934
+ Returns:
2935
+ Result of the binary operator. Its element type is the operator's
2936
+ return type.
2924
2937
 
2925
2938
  )doc";
2926
2939
 
@@ -2,4 +2,4 @@
2
2
 
3
3
  from ._sleipnir import *
4
4
 
5
- __version__ = "0.6.7.dev194"
5
+ __version__ = "0.6.7.dev195"
@@ -770,10 +770,10 @@ def test_constant_static_function() -> None:
770
770
  assert A[row, col].value() == 2.0
771
771
 
772
772
 
773
- def test_cwise_reduce() -> None:
773
+ def test_cwise_map_free_function() -> None:
774
774
  A = RealMatrix([[2.0, 3.0, 4.0], [5.0, 6.0, 7.0]])
775
775
  B = RealMatrix([[8.0, 9.0, 10.0], [11.0, 12.0, 13.0]])
776
- result = autodiff.cwise_reduce(A, B, lambda a, b: a * b)
776
+ result = autodiff.cwise_map(A, B, lambda a, b: a * b)
777
777
 
778
778
  assert (result.value() == np.array([[16.0, 27.0, 40.0], [55.0, 72.0, 91.0]])).all()
779
779