sleipnirgroup-jormungandr 0.6.7.dev173__tar.gz → 0.6.7.dev174__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.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/PKG-INFO +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/autodiff/real_submatrix.hpp +2 -2
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/autodiff/bind_real_matrix.cpp +4 -65
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/autodiff/bind_real_submatrix.cpp +4 -68
- sleipnirgroup_jormungandr-0.6.7.dev174/python/cpp/slice_tuple.hpp +48 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/src/sleipnir/__init__.py +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/autodiff/real_matrix_test.py +21 -0
- sleipnirgroup_jormungandr-0.6.7.dev173/python/cpp/slice_tuple.hpp +0 -21
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/CMakeLists.txt +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/LICENSE.txt +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/README.md +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/SleipnirConfig.cmake.in +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/cmake/BuildTypes.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/cmake/CompilerFlags.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/cmake/Pybind11Mkdoc.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/cmake/Pybind11MkdocPostprocess.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/cmake/SubdirList.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/cmake/aarch64-linux-gnu.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/cmake/arm-none-eabi.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/autodiff/expression.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/autodiff/expression_functions.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/autodiff/expression_graph.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/autodiff/expression_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/autodiff/gradient.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/autodiff/hessian.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/autodiff/jacobian.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/autodiff/real.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/autodiff/real_matrix.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/autodiff/sleipnir_base.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/autodiff/slice.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/multistart.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/ocp/dynamics_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/ocp/timestep_method.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/ocp/transcription_method.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/ocp.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/problem.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/control_flow.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/exit_status.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/ipm.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/ipm_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/iteration_info.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/newton.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/newton_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/options.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/sqp.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/sqp_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/all_finite.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/append_as_triplets.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/barrier_parameter.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/bounds.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/constraint_violation.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/dense_kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/feasibility_restoration.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/feasibility_restoration_cycle_detector.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/filter.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/first_derivatives.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/fraction_to_the_boundary_rule.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/function_values.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/iterates.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/kkt_error.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/kkt_system.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/problem_scaling.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/regularization_limits.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/ruiz_equilibration.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/sparse_inf_norms.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/sparse_kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/step.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/optimization/solver/util/time_trace.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/util/assert.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/util/concepts.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/util/empty.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/util/force_inline.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/util/function_ref.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/util/intrusive_shared_ptr.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/util/pool.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/util/print.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/util/print_diagnostics.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/util/scope_exit.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/util/spy.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/util/symbol_exports.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/include/sleipnir/util/time_tracer.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/pyproject.toml +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/.clang-tidy +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/arity.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/autodiff/bind_expression_type.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/autodiff/bind_gradient.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/autodiff/bind_hessian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/autodiff/bind_jacobian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/autodiff/bind_real.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/binders.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/docstrings.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/for_each_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/main.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/optimization/bind_equality_constraints.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/optimization/bind_inequality_constraints.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/optimization/bind_ocp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/optimization/bind_problem.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/optimization/ocp/bind_dynamics_type.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/optimization/ocp/bind_timestep_method.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/optimization/ocp/bind_transcription_method.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/optimization/solver/bind_exit_status.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/optimization/solver/bind_iteration_info.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/text_wrap.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/cpp/try_cast.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/postprocess_stubs.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/src/sleipnir/autodiff/__init__.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/src/sleipnir/optimization/__init__.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/autodiff/gradient_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/autodiff/hessian_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/autodiff/jacobian_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/autodiff/real_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/arm_on_elevator_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/cart_pole_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/cart_pole_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/cart_pole_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/constraints_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/differential_drive_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/differential_drive_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/differential_drive_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/double_integrator_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/flywheel_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/flywheel_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/flywheel_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/linear_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/multistart_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/nonlinear_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/problem_spy_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/problem_variable_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/quadratic_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/rk4.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/solver/exit_status_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/tolerance.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/python/test/optimization/trivial_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/src/autodiff/gradient.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/src/autodiff/hessian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/src/autodiff/jacobian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/src/autodiff/real_matrix.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/src/optimization/ocp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/src/optimization/problem.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/src/optimization/solver/ipm.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/src/optimization/solver/newton.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/src/optimization/solver/sqp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/src/util/pool.cpp +0 -0
|
@@ -357,7 +357,7 @@ class RealSubmatrix : public SleipnirBase {
|
|
|
357
357
|
int row_slice_length,
|
|
358
358
|
Slice col_slice,
|
|
359
359
|
int col_slice_length) const {
|
|
360
|
-
return RealSubmatrix{
|
|
360
|
+
return RealSubmatrix<const Mat>{
|
|
361
361
|
*m_mat,
|
|
362
362
|
{m_row_slice.start + row_slice.start * m_row_slice.step,
|
|
363
363
|
m_row_slice.start + row_slice.stop * m_row_slice.step,
|
|
@@ -386,7 +386,7 @@ class RealSubmatrix : public SleipnirBase {
|
|
|
386
386
|
/// @param offset The offset of the segment.
|
|
387
387
|
/// @param length The length of the segment.
|
|
388
388
|
/// @return A segment of the submatrix.
|
|
389
|
-
const RealSubmatrix<Mat> segment(int offset, int length) const {
|
|
389
|
+
const RealSubmatrix<const Mat> segment(int offset, int length) const {
|
|
390
390
|
slp_assert(cols() == 1);
|
|
391
391
|
slp_assert(offset >= 0 && offset < rows());
|
|
392
392
|
slp_assert(length >= 0 && length <= rows() - offset);
|
|
@@ -98,40 +98,8 @@ void bind_real_matrix(nb::module_& autodiff,
|
|
|
98
98
|
std::format("Expected 2 slices, got {}.", slices.size()).c_str());
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
Slice col_slice;
|
|
104
|
-
int col_slice_length;
|
|
105
|
-
|
|
106
|
-
// Row slice
|
|
107
|
-
const auto& row_elem = slices[0];
|
|
108
|
-
if (auto py_row_slice = try_cast<nb::slice>(row_elem)) {
|
|
109
|
-
auto t = py_row_slice.value().compute(self.rows());
|
|
110
|
-
row_slice = Slice{t.get<0>(), t.get<1>(), t.get<2>()};
|
|
111
|
-
row_slice_length = t.get<3>();
|
|
112
|
-
} else {
|
|
113
|
-
int start = nb::cast<int>(row_elem);
|
|
114
|
-
if (start < 0) {
|
|
115
|
-
start += self.rows();
|
|
116
|
-
}
|
|
117
|
-
row_slice = Slice{start, start + 1};
|
|
118
|
-
row_slice_length = 1;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// Column slice
|
|
122
|
-
const auto& col_elem = slices[1];
|
|
123
|
-
if (auto py_col_slice = try_cast<nb::slice>(col_elem)) {
|
|
124
|
-
auto t = py_col_slice.value().compute(self.cols());
|
|
125
|
-
col_slice = Slice{t.get<0>(), t.get<1>(), t.get<2>()};
|
|
126
|
-
col_slice_length = t.get<3>();
|
|
127
|
-
} else {
|
|
128
|
-
int start = nb::cast<int>(col_elem);
|
|
129
|
-
if (start < 0) {
|
|
130
|
-
start += self.cols();
|
|
131
|
-
}
|
|
132
|
-
col_slice = Slice{start, start + 1};
|
|
133
|
-
col_slice_length = 1;
|
|
134
|
-
}
|
|
101
|
+
auto [row_slice, row_slice_length] = to_slice(slices[0], self.rows());
|
|
102
|
+
auto [col_slice, col_slice_length] = to_slice(slices[1], self.cols());
|
|
135
103
|
|
|
136
104
|
auto lhs =
|
|
137
105
|
self[row_slice, row_slice_length, col_slice, col_slice_length];
|
|
@@ -199,37 +167,8 @@ void bind_real_matrix(nb::module_& autodiff,
|
|
|
199
167
|
std::format("Expected 2 slices, got {}.", slices.size()).c_str());
|
|
200
168
|
}
|
|
201
169
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
Slice col_slice;
|
|
205
|
-
int col_slice_length;
|
|
206
|
-
|
|
207
|
-
// Row slice
|
|
208
|
-
const auto& row_elem = slices[0];
|
|
209
|
-
if (auto py_row_slice = try_cast<nb::slice>(row_elem)) {
|
|
210
|
-
auto t = py_row_slice.value().compute(self.rows());
|
|
211
|
-
row_slice = Slice{t.get<0>(), t.get<1>(), t.get<2>()};
|
|
212
|
-
row_slice_length = t.get<3>();
|
|
213
|
-
} else {
|
|
214
|
-
int start = nb::cast<int>(row_elem);
|
|
215
|
-
row_slice = Slice{start, start + 1};
|
|
216
|
-
row_slice_length = 1;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
// Column slice
|
|
220
|
-
const auto& col_elem = slices[1];
|
|
221
|
-
if (auto py_col_slice = try_cast<nb::slice>(col_elem)) {
|
|
222
|
-
auto t = py_col_slice.value().compute(self.cols());
|
|
223
|
-
col_slice = Slice{t.get<0>(), t.get<1>(), t.get<2>()};
|
|
224
|
-
col_slice_length = t.get<3>();
|
|
225
|
-
} else {
|
|
226
|
-
int start = nb::cast<int>(col_elem);
|
|
227
|
-
if (start < 0) {
|
|
228
|
-
start += self.cols();
|
|
229
|
-
}
|
|
230
|
-
col_slice = Slice{start, start + 1};
|
|
231
|
-
col_slice_length = 1;
|
|
232
|
-
}
|
|
170
|
+
auto [row_slice, row_slice_length] = to_slice(slices[0], self.rows());
|
|
171
|
+
auto [col_slice, col_slice_length] = to_slice(slices[1], self.cols());
|
|
233
172
|
|
|
234
173
|
return self[row_slice, row_slice_length, col_slice, col_slice_length];
|
|
235
174
|
},
|
|
@@ -78,40 +78,8 @@ void bind_real_submatrix(nb::class_<RealSubmatrix<RealMatrix<double>>>& cls) {
|
|
|
78
78
|
std::format("Expected 2 slices, got {}.", slices.size()).c_str());
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
Slice col_slice;
|
|
84
|
-
int col_slice_length;
|
|
85
|
-
|
|
86
|
-
// Row slice
|
|
87
|
-
const auto& row_elem = slices[0];
|
|
88
|
-
if (auto py_row_slice = try_cast<nb::slice>(row_elem)) {
|
|
89
|
-
auto t = py_row_slice.value().compute(self.rows());
|
|
90
|
-
row_slice = Slice{t.get<0>(), t.get<1>(), t.get<2>()};
|
|
91
|
-
row_slice_length = t.get<3>();
|
|
92
|
-
} else {
|
|
93
|
-
int start = nb::cast<int>(row_elem);
|
|
94
|
-
if (start < 0) {
|
|
95
|
-
start += self.rows();
|
|
96
|
-
}
|
|
97
|
-
row_slice = Slice{start, start + 1};
|
|
98
|
-
row_slice_length = 1;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// Column slice
|
|
102
|
-
const auto& col_elem = slices[1];
|
|
103
|
-
if (auto py_col_slice = try_cast<nb::slice>(col_elem)) {
|
|
104
|
-
auto t = py_col_slice.value().compute(self.cols());
|
|
105
|
-
col_slice = Slice{t.get<0>(), t.get<1>(), t.get<2>()};
|
|
106
|
-
col_slice_length = t.get<3>();
|
|
107
|
-
} else {
|
|
108
|
-
int start = nb::cast<int>(col_elem);
|
|
109
|
-
if (start < 0) {
|
|
110
|
-
start += self.cols();
|
|
111
|
-
}
|
|
112
|
-
col_slice = Slice{start, start + 1};
|
|
113
|
-
col_slice_length = 1;
|
|
114
|
-
}
|
|
81
|
+
auto [row_slice, row_slice_length] = to_slice(slices[0], self.rows());
|
|
82
|
+
auto [col_slice, col_slice_length] = to_slice(slices[1], self.cols());
|
|
115
83
|
|
|
116
84
|
auto lhs =
|
|
117
85
|
self[row_slice, row_slice_length, col_slice, col_slice_length];
|
|
@@ -179,40 +147,8 @@ void bind_real_submatrix(nb::class_<RealSubmatrix<RealMatrix<double>>>& cls) {
|
|
|
179
147
|
std::format("Expected 2 slices, got {}.", slices.size()).c_str());
|
|
180
148
|
}
|
|
181
149
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
Slice col_slice;
|
|
185
|
-
int col_slice_length;
|
|
186
|
-
|
|
187
|
-
// Row slice
|
|
188
|
-
const auto& row_elem = slices[0];
|
|
189
|
-
if (auto py_row_slice = try_cast<nb::slice>(row_elem)) {
|
|
190
|
-
auto t = py_row_slice.value().compute(self.rows());
|
|
191
|
-
row_slice = Slice{t.get<0>(), t.get<1>(), t.get<2>()};
|
|
192
|
-
row_slice_length = t.get<3>();
|
|
193
|
-
} else {
|
|
194
|
-
int start = nb::cast<int>(row_elem);
|
|
195
|
-
if (start < 0) {
|
|
196
|
-
start += self.rows();
|
|
197
|
-
}
|
|
198
|
-
row_slice = Slice{start, start + 1};
|
|
199
|
-
row_slice_length = 1;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
// Column slice
|
|
203
|
-
const auto& col_elem = slices[1];
|
|
204
|
-
if (auto py_col_slice = try_cast<nb::slice>(col_elem)) {
|
|
205
|
-
auto t = py_col_slice.value().compute(self.cols());
|
|
206
|
-
col_slice = Slice{t.get<0>(), t.get<1>(), t.get<2>()};
|
|
207
|
-
col_slice_length = t.get<3>();
|
|
208
|
-
} else {
|
|
209
|
-
int start = nb::cast<int>(col_elem);
|
|
210
|
-
if (start < 0) {
|
|
211
|
-
start += self.cols();
|
|
212
|
-
}
|
|
213
|
-
col_slice = Slice{start, start + 1};
|
|
214
|
-
col_slice_length = 1;
|
|
215
|
-
}
|
|
150
|
+
auto [row_slice, row_slice_length] = to_slice(slices[0], self.rows());
|
|
151
|
+
auto [col_slice, col_slice_length] = to_slice(slices[1], self.cols());
|
|
216
152
|
|
|
217
153
|
return self[row_slice, row_slice_length, col_slice, col_slice_length];
|
|
218
154
|
},
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Copyright (c) Sleipnir contributors
|
|
2
|
+
|
|
3
|
+
#pragma once
|
|
4
|
+
|
|
5
|
+
#include <nanobind/nanobind.h>
|
|
6
|
+
#include <nanobind/stl/variant.h>
|
|
7
|
+
|
|
8
|
+
#include <tuple>
|
|
9
|
+
#include <variant>
|
|
10
|
+
|
|
11
|
+
#include <sleipnir/autodiff/slice.hpp>
|
|
12
|
+
|
|
13
|
+
#include "try_cast.hpp"
|
|
14
|
+
|
|
15
|
+
namespace nb = nanobind;
|
|
16
|
+
|
|
17
|
+
namespace slp {
|
|
18
|
+
|
|
19
|
+
/// A 2D index of the form (row, col) where each element is an int or a slice.
|
|
20
|
+
///
|
|
21
|
+
/// The element types only affect the generated type stubs; the tuple's contents
|
|
22
|
+
/// are checked at runtime.
|
|
23
|
+
using SliceTuple = nb::typed<nb::tuple, std::variant<int, nb::slice>,
|
|
24
|
+
std::variant<int, nb::slice>>;
|
|
25
|
+
|
|
26
|
+
/// Converts a Python index or slice into a Slice and its length.
|
|
27
|
+
///
|
|
28
|
+
/// @param elem The Python index or slice.
|
|
29
|
+
/// @param length The length of the sliced dimension.
|
|
30
|
+
/// @return The Slice and its length.
|
|
31
|
+
inline std::tuple<Slice, int> to_slice(const nb::object& elem, int length) {
|
|
32
|
+
if (auto py_slice = try_cast<nb::slice>(elem)) {
|
|
33
|
+
auto t = py_slice.value().compute(length);
|
|
34
|
+
return {Slice{t.get<0>(), t.get<1>(), t.get<2>()},
|
|
35
|
+
static_cast<int>(t.get<3>())};
|
|
36
|
+
} else {
|
|
37
|
+
int start = nb::cast<int>(elem);
|
|
38
|
+
if (start < 0) {
|
|
39
|
+
start += length;
|
|
40
|
+
}
|
|
41
|
+
if (start < 0 || start >= length) {
|
|
42
|
+
throw nb::index_error("Index out of bounds");
|
|
43
|
+
}
|
|
44
|
+
return {Slice{start, start + 1}, 1};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
} // namespace slp
|
|
@@ -2,6 +2,7 @@ import math
|
|
|
2
2
|
import sys
|
|
3
3
|
|
|
4
4
|
import numpy as np
|
|
5
|
+
import pytest
|
|
5
6
|
import scipy.sparse
|
|
6
7
|
from sleipnir import autodiff
|
|
7
8
|
from sleipnir.autodiff import ExpressionType, Real, RealMatrix
|
|
@@ -158,6 +159,26 @@ def test_slicing() -> None:
|
|
|
158
159
|
).all()
|
|
159
160
|
|
|
160
161
|
|
|
162
|
+
def test_slicing_integer_indices() -> None:
|
|
163
|
+
A = np.arange(1.0, 7.0).reshape(2, 3)
|
|
164
|
+
mat = RealMatrix(A)
|
|
165
|
+
|
|
166
|
+
# Negative indices count from the end
|
|
167
|
+
assert np.array_equal(mat[-1, :].value(), A[-1:, :])
|
|
168
|
+
assert np.array_equal(mat[:, -1].value(), A[:, -1:])
|
|
169
|
+
assert np.array_equal(mat[:, :][-2, 1:].value(), A[-2:-1, 1:])
|
|
170
|
+
|
|
171
|
+
# Out-of-range indices raise
|
|
172
|
+
with pytest.raises(IndexError):
|
|
173
|
+
mat[2, :]
|
|
174
|
+
with pytest.raises(IndexError):
|
|
175
|
+
mat[:, -4]
|
|
176
|
+
with pytest.raises(IndexError):
|
|
177
|
+
mat[:, :][0, 3]
|
|
178
|
+
with pytest.raises(IndexError):
|
|
179
|
+
mat[:, :][-3, :] = 1.0
|
|
180
|
+
|
|
181
|
+
|
|
161
182
|
def test_subslicing() -> None:
|
|
162
183
|
# Block-of-block assignment (row skip forward)
|
|
163
184
|
mat = RealMatrix(5, 5)
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Sleipnir contributors
|
|
2
|
-
|
|
3
|
-
#pragma once
|
|
4
|
-
|
|
5
|
-
#include <nanobind/nanobind.h>
|
|
6
|
-
#include <nanobind/stl/variant.h>
|
|
7
|
-
|
|
8
|
-
#include <variant>
|
|
9
|
-
|
|
10
|
-
namespace nb = nanobind;
|
|
11
|
-
|
|
12
|
-
namespace slp {
|
|
13
|
-
|
|
14
|
-
/// A 2D index of the form (row, col) where each element is an int or a slice.
|
|
15
|
-
///
|
|
16
|
-
/// The element types only affect the generated type stubs; the tuple's contents
|
|
17
|
-
/// are checked at runtime.
|
|
18
|
-
using SliceTuple = nb::typed<nb::tuple, std::variant<int, nb::slice>,
|
|
19
|
-
std::variant<int, nb::slice>>;
|
|
20
|
-
|
|
21
|
-
} // namespace slp
|
{sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/CMakeLists.txt
RENAMED
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/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
|
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/pyproject.toml
RENAMED
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/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.dev173 → sleipnirgroup_jormungandr-0.6.7.dev174}/src/util/pool.cpp
RENAMED
|
File without changes
|