sleipnirgroup-jormungandr 0.6.7.dev187__tar.gz → 0.6.7.dev190__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 (147) hide show
  1. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/PKG-INFO +1 -1
  2. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/autodiff/real.hpp +7 -2
  3. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/autodiff/real_matrix.hpp +27 -52
  4. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/autodiff/real_submatrix.hpp +6 -20
  5. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/autodiff/slice.hpp +10 -0
  6. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/autodiff/bind_real.cpp +2 -2
  7. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/autodiff/bind_real_matrix.cpp +4 -24
  8. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/autodiff/bind_real_submatrix.cpp +4 -24
  9. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/docstrings.hpp +15 -0
  10. sleipnirgroup_jormungandr-0.6.7.dev190/python/cpp/element_index.hpp +54 -0
  11. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/real_scalar.hpp +2 -3
  12. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/src/sleipnir/__init__.py +1 -1
  13. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/autodiff/real_matrix_test.py +5 -0
  14. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/CMakeLists.txt +0 -0
  15. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/LICENSE.txt +0 -0
  16. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/README.md +0 -0
  17. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/SleipnirConfig.cmake.in +0 -0
  18. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/cmake/BuildTypes.cmake +0 -0
  19. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/cmake/CompilerFlags.cmake +0 -0
  20. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/cmake/Pybind11Mkdoc.cmake +0 -0
  21. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/cmake/Pybind11MkdocPostprocess.cmake +0 -0
  22. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/cmake/SubdirList.cmake +0 -0
  23. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/cmake/aarch64-linux-gnu.cmake +0 -0
  24. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/cmake/arm-none-eabi.cmake +0 -0
  25. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/autodiff/expression.hpp +0 -0
  26. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/autodiff/expression_functions.hpp +0 -0
  27. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/autodiff/expression_graph.hpp +0 -0
  28. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/autodiff/expression_type.hpp +0 -0
  29. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/autodiff/gradient.hpp +0 -0
  30. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/autodiff/hessian.hpp +0 -0
  31. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/autodiff/jacobian.hpp +0 -0
  32. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/autodiff/sleipnir_base.hpp +0 -0
  33. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/multistart.hpp +0 -0
  34. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/ocp/dynamics_type.hpp +0 -0
  35. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/ocp/timestep_method.hpp +0 -0
  36. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/ocp/transcription_method.hpp +0 -0
  37. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/ocp.hpp +0 -0
  38. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/problem.hpp +0 -0
  39. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/control_flow.hpp +0 -0
  40. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/exit_status.hpp +0 -0
  41. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/ipm.hpp +0 -0
  42. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/ipm_matrix_callbacks.hpp +0 -0
  43. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/iteration_info.hpp +0 -0
  44. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/newton.hpp +0 -0
  45. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/newton_matrix_callbacks.hpp +0 -0
  46. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/options.hpp +0 -0
  47. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/sqp.hpp +0 -0
  48. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/sqp_matrix_callbacks.hpp +0 -0
  49. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/all_finite.hpp +0 -0
  50. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/append_as_triplets.hpp +0 -0
  51. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/barrier_parameter.hpp +0 -0
  52. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/bounds.hpp +0 -0
  53. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/constraint_violation.hpp +0 -0
  54. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/dense_kkt_solver.hpp +0 -0
  55. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/feasibility_restoration.hpp +0 -0
  56. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/feasibility_restoration_cycle_detector.hpp +0 -0
  57. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/filter.hpp +0 -0
  58. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/first_derivatives.hpp +0 -0
  59. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/fraction_to_the_boundary_rule.hpp +0 -0
  60. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/function_values.hpp +0 -0
  61. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/iterates.hpp +0 -0
  62. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/kkt_error.hpp +0 -0
  63. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/kkt_solver.hpp +0 -0
  64. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/kkt_system.hpp +0 -0
  65. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/problem_scaling.hpp +0 -0
  66. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/regularization_limits.hpp +0 -0
  67. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/ruiz_equilibration.hpp +0 -0
  68. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/sparse_inf_norms.hpp +0 -0
  69. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/sparse_kkt_solver.hpp +0 -0
  70. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/step.hpp +0 -0
  71. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/optimization/solver/util/time_trace.hpp +0 -0
  72. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/util/assert.hpp +0 -0
  73. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/util/concepts.hpp +0 -0
  74. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/util/empty.hpp +0 -0
  75. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/util/force_inline.hpp +0 -0
  76. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/util/function_ref.hpp +0 -0
  77. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/util/intrusive_shared_ptr.hpp +0 -0
  78. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/util/pool.hpp +0 -0
  79. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/util/print.hpp +0 -0
  80. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/util/print_diagnostics.hpp +0 -0
  81. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/util/scope_exit.hpp +0 -0
  82. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/util/spy.hpp +0 -0
  83. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/util/symbol_exports.hpp +0 -0
  84. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/include/sleipnir/util/time_tracer.hpp +0 -0
  85. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/pyproject.toml +0 -0
  86. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/.clang-tidy +0 -0
  87. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/arity.hpp +0 -0
  88. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/array_ufunc.hpp +0 -0
  89. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/autodiff/bind_expression_type.cpp +0 -0
  90. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/autodiff/bind_gradient.cpp +0 -0
  91. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/autodiff/bind_hessian.cpp +0 -0
  92. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/autodiff/bind_jacobian.cpp +0 -0
  93. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/binders.hpp +0 -0
  94. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/for_each_type.hpp +0 -0
  95. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/main.cpp +0 -0
  96. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/optimization/bind_equality_constraints.cpp +0 -0
  97. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/optimization/bind_inequality_constraints.cpp +0 -0
  98. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/optimization/bind_ocp.cpp +0 -0
  99. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/optimization/bind_problem.cpp +0 -0
  100. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/optimization/ocp/bind_dynamics_type.cpp +0 -0
  101. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/optimization/ocp/bind_timestep_method.cpp +0 -0
  102. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/optimization/ocp/bind_transcription_method.cpp +0 -0
  103. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/optimization/solver/bind_exit_status.cpp +0 -0
  104. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/optimization/solver/bind_iteration_info.cpp +0 -0
  105. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/real_scalar_comparisons.hpp +0 -0
  106. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/slice_tuple.hpp +0 -0
  107. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/text_wrap.hpp +0 -0
  108. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/cpp/try_cast.hpp +0 -0
  109. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/postprocess_stubs.py +0 -0
  110. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/src/sleipnir/autodiff/__init__.py +0 -0
  111. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/src/sleipnir/optimization/__init__.py +0 -0
  112. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/autodiff/gradient_test.py +0 -0
  113. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/autodiff/hessian_test.py +0 -0
  114. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/autodiff/jacobian_test.py +0 -0
  115. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/autodiff/real_test.py +0 -0
  116. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/arm_on_elevator_problem_test.py +0 -0
  117. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/cart_pole_ocp_test.py +0 -0
  118. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/cart_pole_problem_test.py +0 -0
  119. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/cart_pole_util.py +0 -0
  120. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/constraints_test.py +0 -0
  121. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/differential_drive_ocp_test.py +0 -0
  122. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/differential_drive_problem_test.py +0 -0
  123. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/differential_drive_util.py +0 -0
  124. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/double_integrator_problem_test.py +0 -0
  125. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/flywheel_ocp_test.py +0 -0
  126. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/flywheel_problem_test.py +0 -0
  127. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/flywheel_util.py +0 -0
  128. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/linear_problem_test.py +0 -0
  129. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/multistart_test.py +0 -0
  130. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/nonlinear_problem_test.py +0 -0
  131. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/problem_spy_test.py +0 -0
  132. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/problem_variable_test.py +0 -0
  133. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/quadratic_problem_test.py +0 -0
  134. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/rk4.py +0 -0
  135. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/solver/exit_status_test.py +0 -0
  136. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/tolerance.py +0 -0
  137. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/python/test/optimization/trivial_problem_test.py +0 -0
  138. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/src/autodiff/gradient.cpp +0 -0
  139. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/src/autodiff/hessian.cpp +0 -0
  140. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/src/autodiff/jacobian.cpp +0 -0
  141. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/src/autodiff/real_matrix.cpp +0 -0
  142. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/src/optimization/ocp.cpp +0 -0
  143. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/src/optimization/problem.cpp +0 -0
  144. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/src/optimization/solver/ipm.cpp +0 -0
  145. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/src/optimization/solver/newton.cpp +0 -0
  146. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/src/optimization/solver/sqp.cpp +0 -0
  147. {sleipnirgroup_jormungandr-0.6.7.dev187 → sleipnirgroup_jormungandr-0.6.7.dev190}/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.dev187
3
+ Version: 0.6.7.dev190
4
4
  Summary: Reverse mode autodiff library and NLP solver DSL
5
5
  License-Expression: BSD-3-Clause
6
6
  License-File: LICENSE.txt
@@ -1127,12 +1127,17 @@ struct NumTraits<slp::Real<Scalar>> : NumTraits<Scalar> {
1127
1127
  static constexpr int IsSigned = 1;
1128
1128
  /// Require initialization.
1129
1129
  static constexpr int RequireInitialization = 1;
1130
+
1131
+ // Costs are in units of a double read. Reading a Real through a const
1132
+ // reference is one pointer load. Adds and multiplies allocate an expression
1133
+ // node, which is two orders of magnitude slower.
1134
+
1130
1135
  /// Read cost.
1131
1136
  static constexpr int ReadCost = 1;
1132
1137
  /// Add cost.
1133
- static constexpr int AddCost = 3;
1138
+ static constexpr int AddCost = 150;
1134
1139
  /// Multiply cost.
1135
- static constexpr int MulCost = 3;
1140
+ static constexpr int MulCost = 200;
1136
1141
  };
1137
1142
 
1138
1143
  } // namespace Eigen
@@ -1310,18 +1310,16 @@ RealMatrix<Scalar> cwise_reduce(
1310
1310
  return result;
1311
1311
  }
1312
1312
 
1313
- /// Assembles a RealMatrix from a nested list of blocks.
1314
- ///
1315
- /// Each row's blocks must have the same height, and the assembled block rows
1316
- /// must have the same width. For example, for the block matrix [[A, B], [C]] to
1317
- /// be constructible, the number of rows in A and B must match, and the number
1318
- /// of columns in [A, B] and [C] must match.
1313
+ namespace detail {
1314
+
1315
+ /// Assembles a matrix from a nested list of blocks.
1319
1316
  ///
1320
- /// @tparam Scalar Scalar type.
1317
+ /// @tparam Matrix Matrix type.
1318
+ /// @tparam List Nested list type.
1321
1319
  /// @param list The nested list of blocks.
1322
- template <typename Scalar>
1323
- RealMatrix<Scalar> block(
1324
- std::initializer_list<std::initializer_list<RealMatrix<Scalar>>> list) {
1320
+ /// @return The assembled matrix.
1321
+ template <typename Matrix, typename List>
1322
+ Matrix assemble_blocks(const List& list) {
1325
1323
  // Get row and column counts for destination matrix
1326
1324
  int rows = 0;
1327
1325
  int cols = -1;
@@ -1348,7 +1346,7 @@ RealMatrix<Scalar> block(
1348
1346
  }
1349
1347
  }
1350
1348
 
1351
- RealMatrix<Scalar> result{detail::empty, rows, cols};
1349
+ Matrix result{detail::empty, rows, cols};
1352
1350
 
1353
1351
  int row_offset = 0;
1354
1352
  for (const auto& row : list) {
@@ -1365,6 +1363,23 @@ RealMatrix<Scalar> block(
1365
1363
  return result;
1366
1364
  }
1367
1365
 
1366
+ } // namespace detail
1367
+
1368
+ /// Assembles a RealMatrix from a nested list of blocks.
1369
+ ///
1370
+ /// Each row's blocks must have the same height, and the assembled block rows
1371
+ /// must have the same width. For example, for the block matrix [[A, B], [C]] to
1372
+ /// be constructible, the number of rows in A and B must match, and the number
1373
+ /// of columns in [A, B] and [C] must match.
1374
+ ///
1375
+ /// @tparam Scalar Scalar type.
1376
+ /// @param list The nested list of blocks.
1377
+ template <typename Scalar>
1378
+ RealMatrix<Scalar> block(
1379
+ std::initializer_list<std::initializer_list<RealMatrix<Scalar>>> list) {
1380
+ return detail::assemble_blocks<RealMatrix<Scalar>>(list);
1381
+ }
1382
+
1368
1383
  /// Assembles a RealMatrix from a nested list of blocks.
1369
1384
  ///
1370
1385
  /// Each row's blocks must have the same height, and the assembled block rows
@@ -1379,47 +1394,7 @@ RealMatrix<Scalar> block(
1379
1394
  template <typename Scalar>
1380
1395
  RealMatrix<Scalar> block(
1381
1396
  const std::vector<std::vector<RealMatrix<Scalar>>>& list) {
1382
- // Get row and column counts for destination matrix
1383
- int rows = 0;
1384
- int cols = -1;
1385
- for (const auto& row : list) {
1386
- if (row.size() > 0) {
1387
- rows += row.begin()->rows();
1388
- }
1389
-
1390
- // Get number of columns in this row
1391
- int latest_cols = 0;
1392
- for (const auto& elem : row) {
1393
- // Assert the first and latest row have the same height
1394
- slp_assert(row.begin()->rows() == elem.rows());
1395
-
1396
- latest_cols += elem.cols();
1397
- }
1398
-
1399
- // If this is the first row, record the column count. Otherwise, assert the
1400
- // first and latest column counts are the same.
1401
- if (cols == -1) {
1402
- cols = latest_cols;
1403
- } else {
1404
- slp_assert(cols == latest_cols);
1405
- }
1406
- }
1407
-
1408
- RealMatrix<Scalar> result{detail::empty, rows, cols};
1409
-
1410
- int row_offset = 0;
1411
- for (const auto& row : list) {
1412
- int col_offset = 0;
1413
- for (const auto& elem : row) {
1414
- result.block(row_offset, col_offset, elem.rows(), elem.cols()) = elem;
1415
- col_offset += elem.cols();
1416
- }
1417
- if (row.size() > 0) {
1418
- row_offset += row.begin()->rows();
1419
- }
1420
- }
1421
-
1422
- return result;
1397
+ return detail::assemble_blocks<RealMatrix<Scalar>>(list);
1423
1398
  }
1424
1399
 
1425
1400
  namespace detail {
@@ -333,16 +333,9 @@ class RealSubmatrix : public SleipnirBase {
333
333
  /// @return A slice of the submatrix.
334
334
  RealSubmatrix<Mat> operator[](Slice row_slice, int row_slice_length,
335
335
  Slice col_slice, int col_slice_length) {
336
- return RealSubmatrix{
337
- *m_mat,
338
- {m_row_slice.start + row_slice.start * m_row_slice.step,
339
- m_row_slice.start + row_slice.stop * m_row_slice.step,
340
- row_slice.step * m_row_slice.step},
341
- row_slice_length,
342
- {m_col_slice.start + col_slice.start * m_col_slice.step,
343
- m_col_slice.start + col_slice.stop * m_col_slice.step,
344
- col_slice.step * m_col_slice.step},
345
- col_slice_length};
336
+ return RealSubmatrix{*m_mat, m_row_slice.compose(row_slice),
337
+ row_slice_length, m_col_slice.compose(col_slice),
338
+ col_slice_length};
346
339
  }
347
340
 
348
341
  /// Returns a slice of the submatrix.
@@ -360,15 +353,8 @@ class RealSubmatrix : public SleipnirBase {
360
353
  Slice col_slice,
361
354
  int col_slice_length) const {
362
355
  return RealSubmatrix<const Mat>{
363
- *m_mat,
364
- {m_row_slice.start + row_slice.start * m_row_slice.step,
365
- m_row_slice.start + row_slice.stop * m_row_slice.step,
366
- row_slice.step * m_row_slice.step},
367
- row_slice_length,
368
- {m_col_slice.start + col_slice.start * m_col_slice.step,
369
- m_col_slice.start + col_slice.stop * m_col_slice.step,
370
- col_slice.step * m_col_slice.step},
371
- col_slice_length};
356
+ *m_mat, m_row_slice.compose(row_slice), row_slice_length,
357
+ m_col_slice.compose(col_slice), col_slice_length};
372
358
  }
373
359
 
374
360
  /// Returns a segment of the submatrix.
@@ -722,7 +708,7 @@ class RealSubmatrix : public SleipnirBase {
722
708
  }
723
709
 
724
710
  constexpr const_iterator operator--(int) noexcept {
725
- iterator retval = *this;
711
+ const_iterator retval = *this;
726
712
  --(*this);
727
713
  return retval;
728
714
  }
@@ -115,6 +115,16 @@ class SLEIPNIR_DLLEXPORT Slice {
115
115
  }
116
116
  }
117
117
 
118
+ /// Returns a slice of this slice's elements in the indices of the sequence
119
+ /// this slice selects from.
120
+ ///
121
+ /// @param inner The slice of this slice's elements.
122
+ /// @return The slice of the sequence.
123
+ constexpr Slice compose(const Slice& inner) const {
124
+ return Slice{start + inner.start * step, start + inner.stop * step,
125
+ inner.step * step};
126
+ }
127
+
118
128
  /// Adjusts start and end slice indices assuming a sequence of the specified
119
129
  /// length.
120
130
  ///
@@ -255,11 +255,11 @@ void bind_real(nb::module_& autodiff, nb::class_<Real<double>>& cls) {
255
255
  def_unary_math(autodiff, "exp", &exp<double>, "x"_a, DOC(slp, exp));
256
256
  def_binary_math(autodiff, "hypot",
257
257
  nb::overload_cast<const V&, const V&>(&hypot<double>), "x"_a,
258
- "y"_a, DOC(slp, hypot));
258
+ "y"_a, DOC(slp, hypot, 3));
259
259
  def_ternary_math(
260
260
  autodiff, "hypot",
261
261
  nb::overload_cast<const V&, const V&, const V&>(&hypot<double>), "x"_a,
262
- "y"_a, "z"_a, DOC(slp, hypot, 2));
262
+ "y"_a, "z"_a, DOC(slp, hypot, 4));
263
263
  autodiff.def(
264
264
  "if_else",
265
265
  [](const EqualityConstraints<double>& cond, const V& t, const V& f) {
@@ -15,7 +15,6 @@
15
15
  #include <concepts>
16
16
  #include <format>
17
17
  #include <functional>
18
- #include <stdexcept>
19
18
  #include <string>
20
19
  #include <tuple>
21
20
  #include <vector>
@@ -30,6 +29,7 @@
30
29
 
31
30
  #include "array_ufunc.hpp"
32
31
  #include "docstrings.hpp"
32
+ #include "element_index.hpp"
33
33
  #include "for_each_type.hpp"
34
34
  #include "real_scalar.hpp"
35
35
  #include "real_scalar_comparisons.hpp"
@@ -103,12 +103,7 @@ void bind_real_matrix(nb::module_& autodiff,
103
103
  cls.def(
104
104
  "__setitem__",
105
105
  [](RealMatrix<double>& self, int row, const Real<double>& value) {
106
- if (row < 0) {
107
- row += self.size();
108
- }
109
- if (row < 0 || row >= static_cast<int>(self.size())) {
110
- throw std::out_of_range("Index out of bounds");
111
- }
106
+ row = element_index(self, row);
112
107
  return self[row] = value;
113
108
  },
114
109
  "row"_a, "value"_a);
@@ -153,12 +148,7 @@ void bind_real_matrix(nb::module_& autodiff,
153
148
  cls.def(
154
149
  "__getitem__",
155
150
  [](RealMatrix<double>& self, int row) -> Real<double>& {
156
- if (row < 0) {
157
- row += self.size();
158
- }
159
- if (row < 0 || row >= static_cast<int>(self.size())) {
160
- throw std::out_of_range("Index out of bounds");
161
- }
151
+ row = element_index(self, row);
162
152
  return self[row];
163
153
  },
164
154
  nb::keep_alive<0, 1>(), "row"_a,
@@ -167,17 +157,7 @@ void bind_real_matrix(nb::module_& autodiff,
167
157
  "__getitem__",
168
158
  [](RealMatrix<double>& self,
169
159
  std::tuple<int, int> slices) -> Real<double>& {
170
- auto [row, col] = slices;
171
-
172
- if (row < 0) {
173
- row += self.rows();
174
- }
175
- if (col < 0) {
176
- col += self.cols();
177
- }
178
- if (row < 0 || row >= self.rows() || col < 0 || col >= self.cols()) {
179
- throw std::out_of_range("Index out of bounds");
180
- }
160
+ auto [row, col] = element_index(self, slices);
181
161
  return self[row, col];
182
162
  },
183
163
  nb::rv_policy::reference_internal, "slices"_a,
@@ -15,7 +15,6 @@
15
15
  #include <concepts>
16
16
  #include <format>
17
17
  #include <functional>
18
- #include <stdexcept>
19
18
  #include <string>
20
19
  #include <tuple>
21
20
 
@@ -29,6 +28,7 @@
29
28
 
30
29
  #include "array_ufunc.hpp"
31
30
  #include "docstrings.hpp"
31
+ #include "element_index.hpp"
32
32
  #include "for_each_type.hpp"
33
33
  #include "real_scalar.hpp"
34
34
  #include "real_scalar_comparisons.hpp"
@@ -67,12 +67,7 @@ void bind_real_submatrix(nb::module_& autodiff,
67
67
  "__setitem__",
68
68
  [](RealSubmatrix<RealMatrix<double>>& self, int row,
69
69
  const Real<double>& value) {
70
- if (row < 0) {
71
- row += self.size();
72
- }
73
- if (row < 0 || row >= static_cast<int>(self.size())) {
74
- throw std::out_of_range("Index out of bounds");
75
- }
70
+ row = element_index(self, row);
76
71
  return self[row] = value;
77
72
  },
78
73
  "row"_a, "value"_a);
@@ -118,12 +113,7 @@ void bind_real_submatrix(nb::module_& autodiff,
118
113
  cls.def(
119
114
  "__getitem__",
120
115
  [](RealSubmatrix<RealMatrix<double>>& self, int row) -> Real<double>& {
121
- if (row < 0) {
122
- row += self.size();
123
- }
124
- if (row < 0 || row >= static_cast<int>(self.size())) {
125
- throw std::out_of_range("Index out of bounds");
126
- }
116
+ row = element_index(self, row);
127
117
  return self[row];
128
118
  },
129
119
  nb::keep_alive<0, 1>(), "row"_a,
@@ -132,17 +122,7 @@ void bind_real_submatrix(nb::module_& autodiff,
132
122
  "__getitem__",
133
123
  [](RealSubmatrix<RealMatrix<double>>& self,
134
124
  std::tuple<int, int> slices) -> Real<double>& {
135
- auto [row, col] = slices;
136
-
137
- if (row < 0) {
138
- row += self.rows();
139
- }
140
- if (col < 0) {
141
- col += self.cols();
142
- }
143
- if (row < 0 || row >= self.rows() || col < 0 || col >= self.cols()) {
144
- throw std::out_of_range("Index out of bounds");
145
- }
125
+ auto [row, col] = element_index(self, slices);
146
126
  return self[row, col];
147
127
  },
148
128
  nb::rv_policy::reference_internal, "slices"_a,
@@ -2809,6 +2809,21 @@ Template Args:
2809
2809
 
2810
2810
  )doc";
2811
2811
 
2812
+ constexpr char mkd_doc_slp_detail_assemble_blocks[] =
2813
+ R"doc(Assembles a matrix from a nested list of blocks.
2814
+
2815
+ Args:
2816
+ list: The nested list of blocks.
2817
+
2818
+ Template Args:
2819
+ Matrix: Matrix type.
2820
+ List: Nested list type.
2821
+
2822
+ Returns:
2823
+ The assembled matrix.
2824
+
2825
+ )doc";
2826
+
2812
2827
  constexpr char mkd_doc_slp_detail_exp_pade[] =
2813
2828
  R"doc(Returns the numerator P and denominator Q of the (13, 13) Padé
2814
2829
  approximant of a square matrix's exponential, exp(A)Q ≈ P.
@@ -0,0 +1,54 @@
1
+ // Copyright (c) Sleipnir contributors
2
+
3
+ #pragma once
4
+
5
+ #include <stdexcept>
6
+ #include <tuple>
7
+
8
+ namespace slp {
9
+
10
+ /// Converts a Python element index, which may be negative, into a matrix's
11
+ /// storage index.
12
+ ///
13
+ /// @tparam Mat Matrix type.
14
+ /// @param mat The matrix.
15
+ /// @param index The Python index.
16
+ /// @return The storage index.
17
+ /// @throws std::out_of_range if the index is out of bounds.
18
+ template <typename Mat>
19
+ int element_index(const Mat& mat, int index) {
20
+ int size = static_cast<int>(mat.size());
21
+ if (index < 0) {
22
+ index += size;
23
+ }
24
+ if (index < 0 || index >= size) {
25
+ throw std::out_of_range("Index out of bounds");
26
+ }
27
+ return index;
28
+ }
29
+
30
+ /// Converts a Python (row, col) index, whose elements may be negative, into a
31
+ /// matrix's row and column.
32
+ ///
33
+ /// @tparam Mat Matrix type.
34
+ /// @param mat The matrix.
35
+ /// @param indices The Python (row, col) index.
36
+ /// @return The row and column.
37
+ /// @throws std::out_of_range if the index is out of bounds.
38
+ template <typename Mat>
39
+ std::tuple<int, int> element_index(const Mat& mat,
40
+ std::tuple<int, int> indices) {
41
+ auto [row, col] = indices;
42
+ if (row < 0) {
43
+ row += mat.rows();
44
+ }
45
+ if (col < 0) {
46
+ col += mat.cols();
47
+ }
48
+ if (row < 0 || row >= mat.rows() || col < 0 || col >= mat.cols()) {
49
+ throw std::out_of_range("Index out of bounds");
50
+ }
51
+ return {row, col};
52
+ }
53
+
54
+ } // namespace slp
@@ -12,9 +12,8 @@ namespace slp {
12
12
 
13
13
  /// A Python real number.
14
14
  ///
15
- /// Unlike double, whose caster converts anything with __float__(), this
16
- /// rejects complex numbers, complex NumPy scalars, and complex NumPy arrays,
17
- /// whose __float__() drops the imaginary part.
15
+ /// The caster rejects complex numbers, complex NumPy scalars, and complex NumPy
16
+ /// arrays.
18
17
  struct RealScalar {
19
18
  /// The value.
20
19
  double value;
@@ -2,4 +2,4 @@
2
2
 
3
3
  from ._sleipnir import *
4
4
 
5
- __version__ = "0.6.7.dev187"
5
+ __version__ = "0.6.7.dev190"
@@ -28,6 +28,11 @@ def test_mixed_list_constructor() -> None:
28
28
  assert mat[1, 0].type() == ExpressionType.CONSTANT
29
29
 
30
30
 
31
+ def test_construct_from_numpy_array() -> None:
32
+ expected = np.array([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])
33
+ assert np.array_equal(RealMatrix(expected).value(), expected)
34
+
35
+
31
36
  def test_assignment_to_default() -> None:
32
37
  mat = RealMatrix()
33
38