sleipnirgroup-jormungandr 0.6.7.dev169__tar.gz → 0.6.7.dev170__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/PKG-INFO +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/autodiff/real_matrix.hpp +61 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/util/concepts.hpp +6 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/autodiff/bind_real_matrix.cpp +13 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/autodiff/bind_submatrix.cpp +13 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/postprocess_stubs.py +30 -4
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/src/sleipnir/__init__.py +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/autodiff/real_matrix_test.py +41 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/CMakeLists.txt +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/LICENSE.txt +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/README.md +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/SleipnirConfig.cmake.in +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/cmake/BuildTypes.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/cmake/CompilerFlags.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/cmake/Pybind11Mkdoc.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/cmake/Pybind11MkdocPostprocess.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/cmake/SubdirList.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/cmake/aarch64-linux-gnu.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/cmake/arm-none-eabi.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/autodiff/expression.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/autodiff/expression_functions.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/autodiff/expression_graph.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/autodiff/expression_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/autodiff/gradient.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/autodiff/hessian.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/autodiff/jacobian.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/autodiff/real.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/autodiff/sleipnir_base.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/autodiff/slice.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/autodiff/submatrix.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/multistart.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/ocp/dynamics_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/ocp/timestep_method.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/ocp/transcription_method.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/ocp.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/problem.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/control_flow.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/exit_status.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/ipm.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/ipm_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/iteration_info.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/newton.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/newton_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/options.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/sqp.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/sqp_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/all_finite.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/append_as_triplets.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/barrier_parameter.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/bounds.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/constraint_violation.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/dense_kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/feasibility_restoration.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/feasibility_restoration_cycle_detector.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/filter.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/first_derivatives.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/fraction_to_the_boundary_rule.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/function_values.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/iterates.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/kkt_error.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/kkt_system.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/problem_scaling.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/regularization_limits.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/ruiz_equilibration.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/sparse_inf_norms.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/sparse_kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/step.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/optimization/solver/util/time_trace.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/util/assert.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/util/empty.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/util/force_inline.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/util/function_ref.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/util/intrusive_shared_ptr.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/util/pool.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/util/print.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/util/print_diagnostics.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/util/scope_exit.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/util/spy.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/util/symbol_exports.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/include/sleipnir/util/time_tracer.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/pyproject.toml +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/.clang-tidy +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/arity.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/autodiff/bind_expression_type.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/autodiff/bind_gradient.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/autodiff/bind_hessian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/autodiff/bind_jacobian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/autodiff/bind_real.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/binders.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/docstrings.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/for_each_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/main.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/optimization/bind_equality_constraints.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/optimization/bind_inequality_constraints.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/optimization/bind_ocp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/optimization/bind_problem.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/optimization/ocp/bind_dynamics_type.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/optimization/ocp/bind_timestep_method.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/optimization/ocp/bind_transcription_method.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/optimization/solver/bind_exit_status.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/optimization/solver/bind_iteration_info.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/slice_tuple.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/text_wrap.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/cpp/try_cast.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/src/sleipnir/autodiff/__init__.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/src/sleipnir/optimization/__init__.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/autodiff/gradient_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/autodiff/hessian_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/autodiff/jacobian_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/autodiff/real_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/arm_on_elevator_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/cart_pole_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/cart_pole_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/cart_pole_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/constraints_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/differential_drive_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/differential_drive_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/differential_drive_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/double_integrator_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/flywheel_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/flywheel_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/flywheel_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/linear_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/multistart_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/nonlinear_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/problem_spy_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/problem_variable_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/quadratic_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/rk4.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/solver/exit_status_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/tolerance.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/test/optimization/trivial_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/src/autodiff/gradient.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/src/autodiff/hessian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/src/autodiff/jacobian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/src/autodiff/real_matrix.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/src/optimization/ocp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/src/optimization/problem.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/src/optimization/solver/ipm.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/src/optimization/solver/newton.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/src/optimization/solver/sqp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/src/util/pool.cpp +0 -0
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
#include <Eigen/Core>
|
|
17
17
|
#include <Eigen/LU> // IWYU pragma: keep
|
|
18
18
|
#include <Eigen/QR> // IWYU pragma: keep
|
|
19
|
+
#include <Eigen/SparseCore>
|
|
19
20
|
#include <gch/small_vector.hpp>
|
|
20
21
|
|
|
21
22
|
#include "sleipnir/autodiff/expression_graph.hpp"
|
|
@@ -562,6 +563,66 @@ class RealMatrix : public SleipnirBase {
|
|
|
562
563
|
return result;
|
|
563
564
|
}
|
|
564
565
|
|
|
566
|
+
/// Sparse matrix multiplication operator.
|
|
567
|
+
///
|
|
568
|
+
/// @param lhs Operator left-hand side.
|
|
569
|
+
/// @param rhs Operator right-hand side.
|
|
570
|
+
template <EigenSparseMatrixLike LHS, SleipnirMatrixLike<Scalar> RHS>
|
|
571
|
+
requires std::same_as<typename std::decay_t<LHS>::Scalar, Scalar>
|
|
572
|
+
friend RealMatrix<Scalar> operator*(const LHS& lhs, const RHS& rhs) {
|
|
573
|
+
slp_assert(lhs.cols() == rhs.rows());
|
|
574
|
+
|
|
575
|
+
RealMatrix<Scalar> result(detail::empty, lhs.rows(), rhs.cols());
|
|
576
|
+
for (auto& elem : result) {
|
|
577
|
+
elem = Real{Scalar(0)};
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
// Binds without a copy if lhs is already a column-major SparseMatrix
|
|
581
|
+
const Eigen::SparseMatrix<Scalar>& A = lhs;
|
|
582
|
+
for (int outer = 0; outer < A.outerSize(); ++outer) {
|
|
583
|
+
for (typename Eigen::SparseMatrix<Scalar>::InnerIterator it{A, outer}; it;
|
|
584
|
+
++it) {
|
|
585
|
+
int i = static_cast<int>(it.row());
|
|
586
|
+
int k = static_cast<int>(it.col());
|
|
587
|
+
for (int j = 0; j < rhs.cols(); ++j) {
|
|
588
|
+
result[i, j] += it.value() * rhs[k, j];
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
return result;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/// Sparse matrix multiplication operator.
|
|
597
|
+
///
|
|
598
|
+
/// @param lhs Operator left-hand side.
|
|
599
|
+
/// @param rhs Operator right-hand side.
|
|
600
|
+
template <SleipnirMatrixLike<Scalar> LHS, EigenSparseMatrixLike RHS>
|
|
601
|
+
requires std::same_as<typename std::decay_t<RHS>::Scalar, Scalar>
|
|
602
|
+
friend RealMatrix<Scalar> operator*(const LHS& lhs, const RHS& rhs) {
|
|
603
|
+
slp_assert(lhs.cols() == rhs.rows());
|
|
604
|
+
|
|
605
|
+
RealMatrix<Scalar> result(detail::empty, lhs.rows(), rhs.cols());
|
|
606
|
+
for (auto& elem : result) {
|
|
607
|
+
elem = Real{Scalar(0)};
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
// Binds without a copy if rhs is already a column-major SparseMatrix
|
|
611
|
+
const Eigen::SparseMatrix<Scalar>& B = rhs;
|
|
612
|
+
for (int outer = 0; outer < B.outerSize(); ++outer) {
|
|
613
|
+
for (typename Eigen::SparseMatrix<Scalar>::InnerIterator it{B, outer}; it;
|
|
614
|
+
++it) {
|
|
615
|
+
int k = static_cast<int>(it.row());
|
|
616
|
+
int j = static_cast<int>(it.col());
|
|
617
|
+
for (int i = 0; i < lhs.rows(); ++i) {
|
|
618
|
+
result[i, j] += lhs[i, k] * it.value();
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
return result;
|
|
624
|
+
}
|
|
625
|
+
|
|
565
626
|
/// Matrix-scalar multiplication operator.
|
|
566
627
|
///
|
|
567
628
|
/// @param lhs Operator left-hand side.
|
|
@@ -29,6 +29,12 @@ concept EigenMatrixLike =
|
|
|
29
29
|
std::derived_from<std::decay_t<T>, Eigen::MatrixBase<std::decay_t<T>>> &&
|
|
30
30
|
MatrixLike<T>;
|
|
31
31
|
|
|
32
|
+
template <typename T>
|
|
33
|
+
concept EigenSparseMatrixLike =
|
|
34
|
+
std::derived_from<std::decay_t<T>,
|
|
35
|
+
Eigen::SparseMatrixBase<std::decay_t<T>>> &&
|
|
36
|
+
MatrixLike<T>;
|
|
37
|
+
|
|
32
38
|
template <typename T, typename Scalar>
|
|
33
39
|
concept SleipnirMatrixLike =
|
|
34
40
|
SleipnirType<T> && MatrixLike<T> &&
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Copyright (c) Sleipnir contributors
|
|
2
2
|
|
|
3
3
|
#include <nanobind/eigen/dense.h>
|
|
4
|
+
#include <nanobind/eigen/sparse.h>
|
|
4
5
|
#include <nanobind/make_iterator.h>
|
|
5
6
|
#include <nanobind/nanobind.h>
|
|
6
7
|
#include <nanobind/operators.h>
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
#include <vector>
|
|
21
22
|
|
|
22
23
|
#include <Eigen/Core>
|
|
24
|
+
#include <Eigen/SparseCore>
|
|
23
25
|
#include <sleipnir/autodiff/real.hpp>
|
|
24
26
|
#include <sleipnir/autodiff/real_matrix.hpp>
|
|
25
27
|
#include <sleipnir/autodiff/slice.hpp>
|
|
@@ -532,6 +534,17 @@ void bind_real_matrix(nb::module_& autodiff,
|
|
|
532
534
|
return solve(RealMatrix<double>(A), B);
|
|
533
535
|
},
|
|
534
536
|
"A"_a, "B"_a, DOC(slp, solve));
|
|
537
|
+
// RealMatrix multiplication with SciPy sparse matrices on the right. These
|
|
538
|
+
// come after every other overload because the sparse caster converts scalars
|
|
539
|
+
// to 1x1 matrices. SciPy sparse matrices on the left don't defer to reflected
|
|
540
|
+
// operators.
|
|
541
|
+
for (const char* name : {"__mul__", "__matmul__"}) {
|
|
542
|
+
cls.def(
|
|
543
|
+
name,
|
|
544
|
+
[](const RealMatrix<double>& lhs,
|
|
545
|
+
const Eigen::SparseMatrix<double>& rhs) { return lhs * rhs; },
|
|
546
|
+
nb::is_operator(), "rhs"_a);
|
|
547
|
+
}
|
|
535
548
|
}
|
|
536
549
|
|
|
537
550
|
} // namespace slp
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Copyright (c) Sleipnir contributors
|
|
2
2
|
|
|
3
3
|
#include <nanobind/eigen/dense.h>
|
|
4
|
+
#include <nanobind/eigen/sparse.h>
|
|
4
5
|
#include <nanobind/make_iterator.h>
|
|
5
6
|
#include <nanobind/nanobind.h>
|
|
6
7
|
#include <nanobind/operators.h>
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
#include <tuple>
|
|
20
21
|
|
|
21
22
|
#include <Eigen/Core>
|
|
23
|
+
#include <Eigen/SparseCore>
|
|
22
24
|
#include <sleipnir/autodiff/real.hpp>
|
|
23
25
|
#include <sleipnir/autodiff/real_matrix.hpp>
|
|
24
26
|
#include <sleipnir/autodiff/slice.hpp>
|
|
@@ -472,6 +474,17 @@ void bind_submatrix(nb::class_<Submatrix<RealMatrix<double>>>& cls) {
|
|
|
472
474
|
"value_iterator", self.begin(), self.end());
|
|
473
475
|
},
|
|
474
476
|
nb::keep_alive<0, 1>());
|
|
477
|
+
// RealMatrix multiplication with SciPy sparse matrices on the right. These
|
|
478
|
+
// come after every other overload because the sparse caster converts scalars
|
|
479
|
+
// to 1x1 matrices. SciPy sparse matrices on the left don't defer to reflected
|
|
480
|
+
// operators.
|
|
481
|
+
for (const char* name : {"__mul__", "__matmul__"}) {
|
|
482
|
+
cls.def(
|
|
483
|
+
name,
|
|
484
|
+
[](const Submatrix<RealMatrix<double>>& lhs,
|
|
485
|
+
const Eigen::SparseMatrix<double>& rhs) { return lhs * rhs; },
|
|
486
|
+
nb::is_operator(), "rhs"_a);
|
|
487
|
+
}
|
|
475
488
|
}
|
|
476
489
|
|
|
477
490
|
} // namespace slp
|
|
@@ -9,6 +9,8 @@ stubgen can't express some things the bindings support at runtime:
|
|
|
9
9
|
RealMatrix, and float converts to Real. Every RealMatrix parameter also accepts a
|
|
10
10
|
Submatrix, and every Real parameter also accepts a float. Return types and
|
|
11
11
|
callback arguments are left alone since those are always RealMatrix or Real.
|
|
12
|
+
Sparse matrix parameters annotated as scipy.sparse.csc_matrix also accept
|
|
13
|
+
scipy.sparse.csr_matrix.
|
|
12
14
|
2. Sparse matrices are annotated as scipy.sparse.csc_matrix[float], but
|
|
13
15
|
scipy-stubs expects a NumPy numeric scalar type argument.
|
|
14
16
|
"""
|
|
@@ -52,6 +54,22 @@ REAL = re.compile(
|
|
|
52
54
|
)
|
|
53
55
|
|
|
54
56
|
|
|
57
|
+
# A CSC sparse matrix parameter. The bindings also accept CSR sparse matrices,
|
|
58
|
+
# which nanobind converts. The lookahead prevents already-widened annotations
|
|
59
|
+
# from matching again.
|
|
60
|
+
#
|
|
61
|
+
# x: scipy.sparse.csc_matrix[float]
|
|
62
|
+
# -> x: scipy.sparse.csc_matrix[float] | scipy.sparse.csr_matrix[float]
|
|
63
|
+
SPARSE = re.compile(
|
|
64
|
+
r"""
|
|
65
|
+
(?<![\w.]) # Not part of another name
|
|
66
|
+
scipy\.sparse\.csc_matrix\[(\w+)\] # Type name and scalar type
|
|
67
|
+
(?!\ \|\ scipy\.sparse\.csr_matrix\b) # Not already widened
|
|
68
|
+
""",
|
|
69
|
+
re.VERBOSE,
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
|
|
55
73
|
@dataclass(frozen=True)
|
|
56
74
|
class Widening:
|
|
57
75
|
"""A type that also accepts another type via implicit conversion."""
|
|
@@ -68,6 +86,11 @@ class Widening:
|
|
|
68
86
|
|
|
69
87
|
# \1 is "sleipnir._sleipnir.autodiff." prefix or empty
|
|
70
88
|
WIDENINGS = [
|
|
89
|
+
Widening(
|
|
90
|
+
SPARSE,
|
|
91
|
+
r"scipy.sparse.csr_matrix[\1]",
|
|
92
|
+
r"scipy.sparse.csc_matrix[\1] | scipy.sparse.csr_matrix[\1]",
|
|
93
|
+
),
|
|
71
94
|
Widening(MATRIX, r"\1Submatrix", r"\1RealMatrix | \1Submatrix"),
|
|
72
95
|
Widening(REAL, "float", r"\1Real | float"),
|
|
73
96
|
]
|
|
@@ -195,12 +218,15 @@ def widen_signatures(stub: str) -> str:
|
|
|
195
218
|
|
|
196
219
|
def fix_sparse_matrices(stub: str) -> str:
|
|
197
220
|
"""
|
|
198
|
-
Replaces scipy.sparse.csc_matrix[float]
|
|
199
|
-
scipy.sparse.csc_matrix[numpy.float64]
|
|
221
|
+
Replaces scipy.sparse.csc_matrix[float] and scipy.sparse.csr_matrix[float]
|
|
222
|
+
with scipy.sparse.csc_matrix[numpy.float64] and
|
|
223
|
+
scipy.sparse.csr_matrix[numpy.float64], since scipy-stubs requires a NumPy
|
|
200
224
|
numeric scalar type argument.
|
|
201
225
|
"""
|
|
202
|
-
return
|
|
203
|
-
"scipy
|
|
226
|
+
return re.sub(
|
|
227
|
+
r"scipy\.sparse\.(cs[cr]_matrix)\[float\]",
|
|
228
|
+
r"scipy.sparse.\1[numpy.float64]",
|
|
229
|
+
stub,
|
|
204
230
|
)
|
|
205
231
|
|
|
206
232
|
|
|
@@ -2,6 +2,7 @@ import math
|
|
|
2
2
|
import sys
|
|
3
3
|
|
|
4
4
|
import numpy as np
|
|
5
|
+
import scipy.sparse
|
|
5
6
|
from sleipnir import autodiff
|
|
6
7
|
from sleipnir.autodiff import ExpressionType, Real, RealMatrix
|
|
7
8
|
|
|
@@ -231,6 +232,46 @@ def test_subslicing() -> None:
|
|
|
231
232
|
).all()
|
|
232
233
|
|
|
233
234
|
|
|
235
|
+
def test_dense_matrix_multiplication() -> None:
|
|
236
|
+
A_dense = np.array([[1.0, 0.0, 2.0], [0.0, 3.0, 0.0], [-1.0, 0.0, 4.0]])
|
|
237
|
+
A = RealMatrix(A_dense)
|
|
238
|
+
B_dense = np.array([[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]])
|
|
239
|
+
B = RealMatrix(B_dense)
|
|
240
|
+
|
|
241
|
+
# RealMatrix-RealMatrix
|
|
242
|
+
assert np.array_equal((A @ B).value(), A_dense @ B_dense)
|
|
243
|
+
assert np.array_equal((B.T @ A).value(), B_dense.T @ A_dense)
|
|
244
|
+
assert np.array_equal((A @ B[:, :1]).value(), A_dense @ B_dense[:, :1])
|
|
245
|
+
|
|
246
|
+
# NumPy-RealMatrix
|
|
247
|
+
assert np.array_equal((A_dense @ B).value(), A_dense @ B_dense)
|
|
248
|
+
assert np.array_equal((A_dense @ B[:, :1]).value(), A_dense @ B_dense[:, :1])
|
|
249
|
+
|
|
250
|
+
# RealMatrix-NumPy
|
|
251
|
+
assert np.array_equal((A @ B_dense).value(), A_dense @ B_dense)
|
|
252
|
+
assert np.array_equal((B.T @ A_dense).value(), B_dense.T @ A_dense)
|
|
253
|
+
assert np.array_equal((A @ B_dense[:, :1]).value(), A_dense @ B_dense[:, :1])
|
|
254
|
+
|
|
255
|
+
# RealMatrix-scalar
|
|
256
|
+
assert np.array_equal((B * 2.0).value(), B_dense * 2.0)
|
|
257
|
+
assert np.array_equal((2.0 * B).value(), 2.0 * B_dense)
|
|
258
|
+
assert np.array_equal((B[:, :1] * 2.0).value(), B_dense[:, :1] * 2.0)
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
def test_sparse_matrix_multiplication() -> None:
|
|
262
|
+
A_dense = np.array([[1.0, 0.0, 2.0], [0.0, 3.0, 0.0], [-1.0, 0.0, 4.0]])
|
|
263
|
+
B_dense = np.array([[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]])
|
|
264
|
+
B = RealMatrix(B_dense)
|
|
265
|
+
|
|
266
|
+
sparse: list[scipy.sparse.csc_matrix | scipy.sparse.csr_matrix] = [
|
|
267
|
+
scipy.sparse.csc_matrix(A_dense),
|
|
268
|
+
scipy.sparse.csr_matrix(A_dense),
|
|
269
|
+
]
|
|
270
|
+
for A in sparse:
|
|
271
|
+
assert np.array_equal((B.T @ A).value(), B_dense.T @ A_dense)
|
|
272
|
+
assert np.array_equal((B[:, :1].T @ A).value(), B_dense[:, :1].T @ A_dense)
|
|
273
|
+
|
|
274
|
+
|
|
234
275
|
def test_compound_assignment_operators() -> None:
|
|
235
276
|
A1 = RealMatrix([[1]])
|
|
236
277
|
A2 = RealMatrix([[1, 2], [3, 4]])
|
{sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/CMakeLists.txt
RENAMED
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/LICENSE.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/pyproject.toml
RENAMED
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/python/.clang-tidy
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev169 → sleipnirgroup_jormungandr-0.6.7.dev170}/src/util/pool.cpp
RENAMED
|
File without changes
|