sleipnirgroup-jormungandr 0.6.7.dev173__tar.gz → 0.6.7.dev175__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.dev175}/PKG-INFO +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/autodiff/real_submatrix.hpp +2 -2
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/autodiff/bind_real.cpp +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/autodiff/bind_real_matrix.cpp +5 -65
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/autodiff/bind_real_submatrix.cpp +5 -68
- sleipnirgroup_jormungandr-0.6.7.dev175/python/cpp/numpy_ops.hpp +53 -0
- sleipnirgroup_jormungandr-0.6.7.dev175/python/cpp/slice_tuple.hpp +48 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/try_cast.hpp +0 -36
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/src/sleipnir/__init__.py +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/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.dev175}/CMakeLists.txt +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/LICENSE.txt +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/README.md +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/SleipnirConfig.cmake.in +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/cmake/BuildTypes.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/cmake/CompilerFlags.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/cmake/Pybind11Mkdoc.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/cmake/Pybind11MkdocPostprocess.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/cmake/SubdirList.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/cmake/aarch64-linux-gnu.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/cmake/arm-none-eabi.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/autodiff/expression.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/autodiff/expression_functions.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/autodiff/expression_graph.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/autodiff/expression_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/autodiff/gradient.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/autodiff/hessian.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/autodiff/jacobian.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/autodiff/real.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/autodiff/real_matrix.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/autodiff/sleipnir_base.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/autodiff/slice.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/multistart.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/ocp/dynamics_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/ocp/timestep_method.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/ocp/transcription_method.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/ocp.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/problem.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/control_flow.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/exit_status.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/ipm.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/ipm_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/iteration_info.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/newton.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/newton_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/options.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/sqp.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/sqp_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/all_finite.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/append_as_triplets.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/barrier_parameter.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/bounds.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/constraint_violation.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/dense_kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/feasibility_restoration.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/feasibility_restoration_cycle_detector.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/filter.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/first_derivatives.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/fraction_to_the_boundary_rule.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/function_values.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/iterates.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/kkt_error.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/kkt_system.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/problem_scaling.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/regularization_limits.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/ruiz_equilibration.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/sparse_inf_norms.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/sparse_kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/step.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/optimization/solver/util/time_trace.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/util/assert.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/util/concepts.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/util/empty.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/util/force_inline.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/util/function_ref.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/util/intrusive_shared_ptr.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/util/pool.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/util/print.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/util/print_diagnostics.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/util/scope_exit.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/util/spy.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/util/symbol_exports.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/include/sleipnir/util/time_tracer.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/pyproject.toml +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/.clang-tidy +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/arity.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/autodiff/bind_expression_type.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/autodiff/bind_gradient.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/autodiff/bind_hessian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/autodiff/bind_jacobian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/binders.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/docstrings.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/for_each_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/main.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/optimization/bind_equality_constraints.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/optimization/bind_inequality_constraints.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/optimization/bind_ocp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/optimization/bind_problem.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/optimization/ocp/bind_dynamics_type.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/optimization/ocp/bind_timestep_method.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/optimization/ocp/bind_transcription_method.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/optimization/solver/bind_exit_status.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/optimization/solver/bind_iteration_info.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/cpp/text_wrap.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/postprocess_stubs.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/src/sleipnir/autodiff/__init__.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/src/sleipnir/optimization/__init__.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/autodiff/gradient_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/autodiff/hessian_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/autodiff/jacobian_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/autodiff/real_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/arm_on_elevator_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/cart_pole_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/cart_pole_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/cart_pole_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/constraints_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/differential_drive_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/differential_drive_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/differential_drive_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/double_integrator_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/flywheel_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/flywheel_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/flywheel_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/linear_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/multistart_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/nonlinear_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/problem_spy_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/problem_variable_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/quadratic_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/rk4.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/solver/exit_status_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/tolerance.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/python/test/optimization/trivial_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/src/autodiff/gradient.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/src/autodiff/hessian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/src/autodiff/jacobian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/src/autodiff/real_matrix.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/src/optimization/ocp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/src/optimization/problem.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/src/optimization/solver/ipm.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/src/optimization/solver/newton.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/src/optimization/solver/sqp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/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);
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
#include "docstrings.hpp"
|
|
32
32
|
#include "for_each_type.hpp"
|
|
33
|
+
#include "numpy_ops.hpp"
|
|
33
34
|
#include "slice_tuple.hpp"
|
|
34
35
|
#include "try_cast.hpp"
|
|
35
36
|
|
|
@@ -98,40 +99,8 @@ void bind_real_matrix(nb::module_& autodiff,
|
|
|
98
99
|
std::format("Expected 2 slices, got {}.", slices.size()).c_str());
|
|
99
100
|
}
|
|
100
101
|
|
|
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
|
-
}
|
|
102
|
+
auto [row_slice, row_slice_length] = to_slice(slices[0], self.rows());
|
|
103
|
+
auto [col_slice, col_slice_length] = to_slice(slices[1], self.cols());
|
|
135
104
|
|
|
136
105
|
auto lhs =
|
|
137
106
|
self[row_slice, row_slice_length, col_slice, col_slice_length];
|
|
@@ -199,37 +168,8 @@ void bind_real_matrix(nb::module_& autodiff,
|
|
|
199
168
|
std::format("Expected 2 slices, got {}.", slices.size()).c_str());
|
|
200
169
|
}
|
|
201
170
|
|
|
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
|
-
}
|
|
171
|
+
auto [row_slice, row_slice_length] = to_slice(slices[0], self.rows());
|
|
172
|
+
auto [col_slice, col_slice_length] = to_slice(slices[1], self.cols());
|
|
233
173
|
|
|
234
174
|
return self[row_slice, row_slice_length, col_slice, col_slice_length];
|
|
235
175
|
},
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
#include "docstrings.hpp"
|
|
31
31
|
#include "for_each_type.hpp"
|
|
32
|
+
#include "numpy_ops.hpp"
|
|
32
33
|
#include "slice_tuple.hpp"
|
|
33
34
|
#include "try_cast.hpp"
|
|
34
35
|
|
|
@@ -78,40 +79,8 @@ void bind_real_submatrix(nb::class_<RealSubmatrix<RealMatrix<double>>>& cls) {
|
|
|
78
79
|
std::format("Expected 2 slices, got {}.", slices.size()).c_str());
|
|
79
80
|
}
|
|
80
81
|
|
|
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
|
-
}
|
|
82
|
+
auto [row_slice, row_slice_length] = to_slice(slices[0], self.rows());
|
|
83
|
+
auto [col_slice, col_slice_length] = to_slice(slices[1], self.cols());
|
|
115
84
|
|
|
116
85
|
auto lhs =
|
|
117
86
|
self[row_slice, row_slice_length, col_slice, col_slice_length];
|
|
@@ -179,40 +148,8 @@ void bind_real_submatrix(nb::class_<RealSubmatrix<RealMatrix<double>>>& cls) {
|
|
|
179
148
|
std::format("Expected 2 slices, got {}.", slices.size()).c_str());
|
|
180
149
|
}
|
|
181
150
|
|
|
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
|
-
}
|
|
151
|
+
auto [row_slice, row_slice_length] = to_slice(slices[0], self.rows());
|
|
152
|
+
auto [col_slice, col_slice_length] = to_slice(slices[1], self.cols());
|
|
216
153
|
|
|
217
154
|
return self[row_slice, row_slice_length, col_slice, col_slice_length];
|
|
218
155
|
},
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// Copyright (c) Sleipnir contributors
|
|
2
|
+
|
|
3
|
+
#pragma once
|
|
4
|
+
|
|
5
|
+
#include <nanobind/nanobind.h>
|
|
6
|
+
|
|
7
|
+
#include <stdint.h>
|
|
8
|
+
|
|
9
|
+
#include <optional>
|
|
10
|
+
#include <utility>
|
|
11
|
+
|
|
12
|
+
#include "try_cast.hpp"
|
|
13
|
+
|
|
14
|
+
namespace nb = nanobind;
|
|
15
|
+
|
|
16
|
+
namespace slp {
|
|
17
|
+
|
|
18
|
+
namespace detail {
|
|
19
|
+
|
|
20
|
+
/// Converts the given nb::ndarray to an Eigen type with the first scalar type
|
|
21
|
+
/// that works, then calls a function on it and returns the result.
|
|
22
|
+
///
|
|
23
|
+
/// @tparam Scalar Scalar type to try.
|
|
24
|
+
/// @tparam Scalars Rest of Scalar types to try.
|
|
25
|
+
/// @tparam F Type of function to apply.
|
|
26
|
+
/// @param f Function to apply.
|
|
27
|
+
/// @param obj The nb::ndarray.
|
|
28
|
+
template <typename Scalar, typename... Scalars, typename F>
|
|
29
|
+
std::optional<nb::object> apply_eigen_op(F&& f, const nb::object& obj) {
|
|
30
|
+
if (auto mat = try_cast_to_eigen<Scalar>(obj)) {
|
|
31
|
+
return nb::cast(f(mat.value()));
|
|
32
|
+
} else if constexpr (sizeof...(Scalars) > 0) {
|
|
33
|
+
return apply_eigen_op<Scalars...>(f, obj);
|
|
34
|
+
} else {
|
|
35
|
+
return std::nullopt;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
} // namespace detail
|
|
40
|
+
|
|
41
|
+
/// Converts the given nb::ndarray to an Eigen type, then calls a function on it
|
|
42
|
+
/// and returns the result.
|
|
43
|
+
///
|
|
44
|
+
/// @tparam F Type of function to apply.
|
|
45
|
+
/// @param f Function to apply.
|
|
46
|
+
/// @param obj The nb::ndarray.
|
|
47
|
+
template <typename F>
|
|
48
|
+
std::optional<nb::object> apply_eigen_op(F&& f, const nb::object& obj) {
|
|
49
|
+
return detail::apply_eigen_op<double, float, int64_t, int32_t>(
|
|
50
|
+
std::forward<F>(f), obj);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
} // namespace slp
|
|
@@ -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
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
#include <stdint.h>
|
|
9
9
|
|
|
10
10
|
#include <optional>
|
|
11
|
-
#include <utility>
|
|
12
11
|
|
|
13
12
|
#include <Eigen/Core>
|
|
14
13
|
#include <sleipnir/util/assert.hpp>
|
|
@@ -50,39 +49,4 @@ std::optional<Eigen::MatrixX<Scalar>> try_cast_to_eigen(const nb::object& obj) {
|
|
|
50
49
|
}
|
|
51
50
|
}
|
|
52
51
|
|
|
53
|
-
namespace detail {
|
|
54
|
-
|
|
55
|
-
/// Converts the given nb::ndarray to an Eigen type with the first scalar type
|
|
56
|
-
/// that works, then calls a function on it and returns the result.
|
|
57
|
-
///
|
|
58
|
-
/// @tparam Scalar Scalar type to try.
|
|
59
|
-
/// @tparam Scalars Rest of Scalar types to try.
|
|
60
|
-
/// @tparam F Type of function to apply.
|
|
61
|
-
/// @param f Function to apply.
|
|
62
|
-
/// @param obj The nb::ndarray.
|
|
63
|
-
template <typename Scalar, typename... Scalars, typename F>
|
|
64
|
-
std::optional<nb::object> apply_eigen_op(F&& f, const nb::object& obj) {
|
|
65
|
-
if (auto mat = try_cast_to_eigen<Scalar>(obj)) {
|
|
66
|
-
return nb::cast(f(mat.value()));
|
|
67
|
-
} else if constexpr (sizeof...(Scalars) > 0) {
|
|
68
|
-
return apply_eigen_op<Scalars...>(f, obj);
|
|
69
|
-
} else {
|
|
70
|
-
return std::nullopt;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
} // namespace detail
|
|
75
|
-
|
|
76
|
-
/// Converts the given nb::ndarray to an Eigen type, then calls a function on it
|
|
77
|
-
/// and returns the result.
|
|
78
|
-
///
|
|
79
|
-
/// @tparam F Type of function to apply.
|
|
80
|
-
/// @param f Function to apply.
|
|
81
|
-
/// @param obj The nb::ndarray.
|
|
82
|
-
template <typename F>
|
|
83
|
-
std::optional<nb::object> apply_eigen_op(F&& f, const nb::object& obj) {
|
|
84
|
-
return detail::apply_eigen_op<double, float, int64_t, int32_t>(
|
|
85
|
-
std::forward<F>(f), obj);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
52
|
} // 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.dev175}/CMakeLists.txt
RENAMED
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/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.dev175}/pyproject.toml
RENAMED
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/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
|
{sleipnirgroup_jormungandr-0.6.7.dev173 → sleipnirgroup_jormungandr-0.6.7.dev175}/src/util/pool.cpp
RENAMED
|
File without changes
|