sleipnirgroup-jormungandr 0.6.7.dev204__tar.gz → 0.6.7.dev206__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.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/PKG-INFO +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/autodiff/matrix.hpp +23 -15
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/autodiff/submatrix.hpp +22 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/autodiff/bind_real_matrix.cpp +85 -40
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/autodiff/bind_real_submatrix.cpp +34 -19
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/docstrings.hpp +22 -4
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/src/sleipnir/__init__.py +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/autodiff/real_matrix_test.py +38 -5
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/CMakeLists.txt +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/LICENSE.txt +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/README.md +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/SleipnirConfig.cmake.in +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/cmake/BuildTypes.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/cmake/CompilerFlags.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/cmake/Pybind11Mkdoc.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/cmake/Pybind11MkdocPostprocess.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/cmake/SubdirList.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/cmake/aarch64-linux-gnu.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/cmake/arm-none-eabi.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/autodiff/expression.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/autodiff/expression_functions.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/autodiff/expression_graph.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/autodiff/expression_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/autodiff/gradient.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/autodiff/hessian.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/autodiff/jacobian.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/autodiff/matrix_fwd.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/autodiff/real.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/autodiff/sleipnir_base.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/autodiff/slice.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/multistart.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/ocp/dynamics_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/ocp/timestep_method.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/ocp/transcription_method.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/ocp.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/problem.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/control_flow.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/exit_status.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/ipm.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/ipm_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/iteration_info.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/newton.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/newton_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/options.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/sqp.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/sqp_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/all_finite.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/append_as_triplets.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/barrier_parameter.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/bounds.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/constraint_violation.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/dense_kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/feasibility_restoration.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/feasibility_restoration_cycle_detector.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/filter.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/first_derivatives.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/fraction_to_the_boundary_rule.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/function_values.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/iterates.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/kkt_error.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/kkt_system.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/problem_scaling.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/regularization_limits.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/ruiz_equilibration.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/sparse_inf_norms.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/sparse_kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/step.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/optimization/solver/util/time_trace.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/util/assert.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/util/concepts.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/util/empty.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/util/force_inline.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/util/function_ref.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/util/intrusive_shared_ptr.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/util/pool.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/util/print.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/util/print_diagnostics.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/util/scope_exit.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/util/spy.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/util/symbol_exports.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/include/sleipnir/util/time_tracer.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/pyproject.toml +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/.clang-tidy +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/arity.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/array_ufunc.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/autodiff/bind_expression_type.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/autodiff/bind_gradient.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/autodiff/bind_hessian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/autodiff/bind_jacobian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/autodiff/bind_real.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/binders.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/element_index.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/for_each_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/main.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/optimization/bind_equality_constraints.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/optimization/bind_inequality_constraints.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/optimization/bind_ocp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/optimization/bind_problem.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/optimization/ocp/bind_dynamics_type.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/optimization/ocp/bind_timestep_method.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/optimization/ocp/bind_transcription_method.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/optimization/solver/bind_exit_status.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/optimization/solver/bind_iteration_info.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/real_scalar.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/real_scalar_comparisons.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/real_vector_caster.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/slice_tuple.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/text_wrap.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/cpp/try_cast.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/postprocess_stubs.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/src/sleipnir/autodiff/__init__.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/src/sleipnir/optimization/__init__.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/autodiff/gradient_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/autodiff/hessian_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/autodiff/jacobian_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/autodiff/real_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/arm_on_elevator_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/cart_pole_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/cart_pole_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/cart_pole_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/constraints_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/differential_drive_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/differential_drive_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/differential_drive_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/double_integrator_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/flywheel_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/flywheel_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/flywheel_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/linear_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/multistart_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/nonlinear_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/problem_spy_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/problem_variable_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/quadratic_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/rk4.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/solver/exit_status_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/tolerance.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/python/test/optimization/trivial_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/src/autodiff/gradient.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/src/autodiff/hessian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/src/autodiff/jacobian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/src/autodiff/matrix.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/src/optimization/ocp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/src/optimization/problem.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/src/optimization/solver/ipm.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/src/optimization/solver/newton.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/src/optimization/solver/sqp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/src/util/pool.cpp +0 -0
|
@@ -1446,31 +1446,39 @@ auto operator-(const LHS& lhs, const RHS& rhs) {
|
|
|
1446
1446
|
return result;
|
|
1447
1447
|
}
|
|
1448
1448
|
|
|
1449
|
-
/// Transforms two
|
|
1449
|
+
/// Transforms two matrix operands coefficient-wise with a binary operator.
|
|
1450
1450
|
///
|
|
1451
|
-
///
|
|
1452
|
-
///
|
|
1453
|
-
/// @tparam
|
|
1451
|
+
/// At least one operand is a matrix of autodiff expressions.
|
|
1452
|
+
///
|
|
1453
|
+
/// @tparam LHS Left-hand side operand type.
|
|
1454
|
+
/// @tparam RHS Right-hand side operand type.
|
|
1454
1455
|
/// @tparam F Binary operator type.
|
|
1455
1456
|
/// @param lhs The left-hand side of the binary operator.
|
|
1456
1457
|
/// @param rhs The right-hand side of the binary operator.
|
|
1457
1458
|
/// @param binary_op The binary operator to use for the transform operation.
|
|
1458
1459
|
/// @return Result of the binary operator. Its element type is the operator's
|
|
1459
1460
|
/// return type.
|
|
1460
|
-
template <typename
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
cwise_transform(const Matrix<Element, Rows, Cols>& lhs,
|
|
1465
|
-
const Matrix<Element, Rows, Cols>& rhs, F&& binary_op) {
|
|
1461
|
+
template <typename LHS, typename RHS, typename F>
|
|
1462
|
+
requires(SleipnirType<LHS> || SleipnirType<RHS>) &&
|
|
1463
|
+
std::invocable<F&, detail::entry_t<LHS>, detail::entry_t<RHS>>
|
|
1464
|
+
auto cwise_transform(const LHS& lhs, const RHS& rhs, F&& binary_op) {
|
|
1466
1465
|
slp_assert(lhs.rows() == rhs.rows() && lhs.cols() == rhs.cols());
|
|
1467
1466
|
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1467
|
+
constexpr int ROWS =
|
|
1468
|
+
detail::rows_v<LHS> == 1 || detail::rows_v<RHS> == 1 ? 1 : Dynamic;
|
|
1469
|
+
constexpr int COLS =
|
|
1470
|
+
detail::cols_v<LHS> == 1 || detail::cols_v<RHS> == 1 ? 1 : Dynamic;
|
|
1471
|
+
Matrix<
|
|
1472
|
+
detail::transform_result_t<F, detail::entry_t<LHS>, detail::entry_t<RHS>>,
|
|
1473
|
+
ROWS, COLS>
|
|
1474
|
+
result{detail::empty, static_cast<int>(lhs.rows()),
|
|
1475
|
+
static_cast<int>(lhs.cols())};
|
|
1471
1476
|
|
|
1472
|
-
for (int
|
|
1473
|
-
|
|
1477
|
+
for (int row = 0; row < result.rows(); ++row) {
|
|
1478
|
+
for (int col = 0; col < result.cols(); ++col) {
|
|
1479
|
+
result[row, col] = std::invoke(binary_op, detail::entry(lhs, row, col),
|
|
1480
|
+
detail::entry(rhs, row, col));
|
|
1481
|
+
}
|
|
1474
1482
|
}
|
|
1475
1483
|
|
|
1476
1484
|
return result;
|
|
@@ -30,6 +30,28 @@ template <typename F, typename... Args>
|
|
|
30
30
|
using transform_result_t =
|
|
31
31
|
std::remove_cvref_t<std::invoke_result_t<F&, Args...>>;
|
|
32
32
|
|
|
33
|
+
/// Returns entry (row, col) of a matrix operand.
|
|
34
|
+
///
|
|
35
|
+
/// @tparam T Matrix operand type.
|
|
36
|
+
/// @param m The matrix operand.
|
|
37
|
+
/// @param row The entry's row.
|
|
38
|
+
/// @param col The entry's column.
|
|
39
|
+
/// @return The entry.
|
|
40
|
+
template <typename T>
|
|
41
|
+
decltype(auto) entry(const T& m, int row, int col) {
|
|
42
|
+
if constexpr (EigenSparseMatrix<T>) {
|
|
43
|
+
return m.coeff(row, col);
|
|
44
|
+
} else {
|
|
45
|
+
return m[row, col];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/// The type of a matrix operand's entries as entry() returns them.
|
|
50
|
+
///
|
|
51
|
+
/// @tparam T Matrix operand type.
|
|
52
|
+
template <typename T>
|
|
53
|
+
using entry_t = decltype(entry(std::declval<const T&>(), 0, 0));
|
|
54
|
+
|
|
33
55
|
} // namespace detail
|
|
34
56
|
|
|
35
57
|
/// A submatrix of autodiff expressions with reference semantics.
|
|
@@ -193,43 +193,71 @@ void bind_real_matrix(nb::module_& autodiff,
|
|
|
193
193
|
},
|
|
194
194
|
"col"_a, nb::keep_alive<0, 1>(), DOC(slp, Matrix, col));
|
|
195
195
|
|
|
196
|
-
// RealMatrix-matrix
|
|
197
|
-
//
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
196
|
+
// RealMatrix-matrix products. Products with a RealSubmatrix on the left are
|
|
197
|
+
// bound on RealSubmatrix.
|
|
198
|
+
cls.def(
|
|
199
|
+
"__mul__",
|
|
200
|
+
[](const RealMatrix<double>& lhs, const RealMatrix<double>& rhs) {
|
|
201
|
+
return cwise_transform(lhs, rhs, std::multiplies{});
|
|
202
|
+
},
|
|
203
|
+
nb::is_operator(), "rhs"_a);
|
|
204
|
+
cls.def(
|
|
205
|
+
"__matmul__",
|
|
206
|
+
[](const RealMatrix<double>& lhs, const RealMatrix<double>& rhs) {
|
|
207
|
+
return lhs * rhs;
|
|
208
|
+
},
|
|
209
|
+
nb::is_operator(), "rhs"_a, DOC(slp, operator, mul));
|
|
210
|
+
cls.def(
|
|
211
|
+
"__mul__",
|
|
212
|
+
[](const RealMatrix<double>& lhs,
|
|
213
|
+
const Submatrix<RealMatrix<double>>& rhs) {
|
|
214
|
+
return cwise_transform(lhs, rhs, std::multiplies{});
|
|
215
|
+
},
|
|
216
|
+
nb::is_operator(), "rhs"_a);
|
|
217
|
+
cls.def(
|
|
218
|
+
"__matmul__",
|
|
219
|
+
[](const RealMatrix<double>& lhs,
|
|
220
|
+
const Submatrix<RealMatrix<double>>& rhs) { return lhs * rhs; },
|
|
221
|
+
nb::is_operator(), "rhs"_a, DOC(slp, operator, mul));
|
|
222
|
+
cls.def(
|
|
223
|
+
"__rmul__",
|
|
224
|
+
[](const RealMatrix<double>& rhs,
|
|
225
|
+
const Submatrix<RealMatrix<double>>& lhs) {
|
|
226
|
+
return cwise_transform(lhs, rhs, std::multiplies{});
|
|
227
|
+
},
|
|
228
|
+
nb::is_operator(), "lhs"_a);
|
|
229
|
+
cls.def(
|
|
230
|
+
"__rmatmul__",
|
|
231
|
+
[](const RealMatrix<double>& rhs,
|
|
232
|
+
const Submatrix<RealMatrix<double>>& lhs) { return lhs * rhs; },
|
|
233
|
+
nb::is_operator(), "lhs"_a, DOC(slp, operator, mul));
|
|
218
234
|
|
|
219
|
-
// RealMatrix
|
|
235
|
+
// RealMatrix products with NumPy arrays. These are also handled by
|
|
220
236
|
// __array_ufunc__ below, but type checkers only see these overloads.
|
|
237
|
+
cls.def(
|
|
238
|
+
"__mul__",
|
|
239
|
+
[](const RealMatrix<double>& lhs, Eigen::MatrixXd rhs) {
|
|
240
|
+
return cwise_transform(lhs, rhs, std::multiplies{});
|
|
241
|
+
},
|
|
242
|
+
nb::is_operator(), "rhs"_a);
|
|
221
243
|
cls.def(
|
|
222
244
|
"__matmul__",
|
|
223
245
|
[](const RealMatrix<double>& lhs, Eigen::MatrixXd rhs) {
|
|
224
246
|
return lhs * rhs;
|
|
225
247
|
},
|
|
226
|
-
nb::is_operator(), "rhs"_a);
|
|
248
|
+
nb::is_operator(), "rhs"_a, DOC(slp, operator, mul));
|
|
249
|
+
cls.def(
|
|
250
|
+
"__rmul__",
|
|
251
|
+
[](const RealMatrix<double>& rhs, Eigen::MatrixXd lhs) {
|
|
252
|
+
return cwise_transform(lhs, rhs, std::multiplies{});
|
|
253
|
+
},
|
|
254
|
+
nb::is_operator(), "lhs"_a);
|
|
227
255
|
cls.def(
|
|
228
256
|
"__rmatmul__",
|
|
229
257
|
[](const RealMatrix<double>& rhs, Eigen::MatrixXd lhs) {
|
|
230
258
|
return lhs * rhs;
|
|
231
259
|
},
|
|
232
|
-
nb::is_operator(), "lhs"_a);
|
|
260
|
+
nb::is_operator(), "lhs"_a, DOC(slp, operator, mul));
|
|
233
261
|
|
|
234
262
|
// NumPy ufuncs with a RealMatrix operand call its operators and autodiff
|
|
235
263
|
// functions
|
|
@@ -378,14 +406,33 @@ void bind_real_matrix(nb::module_& autodiff,
|
|
|
378
406
|
},
|
|
379
407
|
nb::keep_alive<0, 1>());
|
|
380
408
|
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
409
|
+
// Binary cwise_map() for every pair of real matrix operands with at least one
|
|
410
|
+
// RealMatrix or RealSubmatrix
|
|
411
|
+
for_each_type<const RealMatrix<double>&, const Submatrix<RealMatrix<double>>&,
|
|
412
|
+
Eigen::MatrixXd>([&]<typename LHS> {
|
|
413
|
+
for_each_type<const RealMatrix<double>&,
|
|
414
|
+
const Submatrix<RealMatrix<double>>&>([&]<typename RHS> {
|
|
415
|
+
autodiff.def(
|
|
416
|
+
"cwise_map",
|
|
417
|
+
[](LHS lhs, RHS rhs,
|
|
418
|
+
const std::function<Real<double>(
|
|
419
|
+
const Real<double>& x, const Real<double>& y)>& binary_op) {
|
|
420
|
+
return cwise_transform(lhs, rhs, binary_op);
|
|
421
|
+
},
|
|
422
|
+
"lhs"_a, "rhs"_a, "binary_op"_a, DOC(slp, cwise_transform));
|
|
423
|
+
});
|
|
424
|
+
});
|
|
425
|
+
for_each_type<const RealMatrix<double>&,
|
|
426
|
+
const Submatrix<RealMatrix<double>>&>([&]<typename LHS> {
|
|
427
|
+
autodiff.def(
|
|
428
|
+
"cwise_map",
|
|
429
|
+
[](LHS lhs, Eigen::MatrixXd rhs,
|
|
430
|
+
const std::function<Real<double>(
|
|
431
|
+
const Real<double>& x, const Real<double>& y)>& binary_op) {
|
|
432
|
+
return cwise_transform(lhs, rhs, binary_op);
|
|
433
|
+
},
|
|
434
|
+
"lhs"_a, "rhs"_a, "binary_op"_a, DOC(slp, cwise_transform));
|
|
435
|
+
});
|
|
389
436
|
|
|
390
437
|
autodiff.def(
|
|
391
438
|
"block",
|
|
@@ -411,13 +458,11 @@ void bind_real_matrix(nb::module_& autodiff,
|
|
|
411
458
|
// come after every other overload because the sparse caster converts scalars
|
|
412
459
|
// to 1x1 matrices. SciPy sparse matrices on the left don't defer to reflected
|
|
413
460
|
// operators.
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
nb::is_operator(), "rhs"_a);
|
|
420
|
-
}
|
|
461
|
+
cls.def(
|
|
462
|
+
"__matmul__",
|
|
463
|
+
[](const RealMatrix<double>& lhs,
|
|
464
|
+
const Eigen::SparseMatrix<double>& rhs) { return lhs * rhs; },
|
|
465
|
+
nb::is_operator(), "rhs"_a, DOC(slp, operator, mul));
|
|
421
466
|
}
|
|
422
467
|
|
|
423
468
|
} // namespace slp
|
|
@@ -155,30 +155,47 @@ void bind_real_submatrix(nb::module_& autodiff,
|
|
|
155
155
|
},
|
|
156
156
|
"col"_a, nb::keep_alive<0, 1>(), DOC(slp, Submatrix, col));
|
|
157
157
|
|
|
158
|
-
//
|
|
159
|
-
//
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
158
|
+
// RealSubmatrix-matrix products. Products with a RealMatrix on the left are
|
|
159
|
+
// bound on RealMatrix.
|
|
160
|
+
cls.def(
|
|
161
|
+
"__mul__",
|
|
162
|
+
[](const Submatrix<RealMatrix<double>>& lhs,
|
|
163
|
+
const Submatrix<RealMatrix<double>>& rhs) {
|
|
164
|
+
return cwise_transform(lhs, rhs, std::multiplies{});
|
|
165
|
+
},
|
|
166
|
+
nb::is_operator(), "rhs"_a);
|
|
167
|
+
cls.def(
|
|
168
|
+
"__matmul__",
|
|
169
|
+
[](const Submatrix<RealMatrix<double>>& lhs,
|
|
170
|
+
const Submatrix<RealMatrix<double>>& rhs) { return lhs * rhs; },
|
|
171
|
+
nb::is_operator(), "rhs"_a, DOC(slp, operator, mul));
|
|
167
172
|
|
|
168
|
-
//
|
|
173
|
+
// RealSubmatrix products with NumPy arrays. These are also handled by
|
|
169
174
|
// __array_ufunc__ below, but type checkers only see these overloads.
|
|
175
|
+
cls.def(
|
|
176
|
+
"__mul__",
|
|
177
|
+
[](const Submatrix<RealMatrix<double>>& lhs, Eigen::MatrixXd rhs) {
|
|
178
|
+
return cwise_transform(lhs, rhs, std::multiplies{});
|
|
179
|
+
},
|
|
180
|
+
nb::is_operator(), "rhs"_a);
|
|
170
181
|
cls.def(
|
|
171
182
|
"__matmul__",
|
|
172
183
|
[](const Submatrix<RealMatrix<double>>& lhs, Eigen::MatrixXd rhs) {
|
|
173
184
|
return lhs * rhs;
|
|
174
185
|
},
|
|
175
|
-
nb::is_operator(), "rhs"_a);
|
|
186
|
+
nb::is_operator(), "rhs"_a, DOC(slp, operator, mul));
|
|
187
|
+
cls.def(
|
|
188
|
+
"__rmul__",
|
|
189
|
+
[](const Submatrix<RealMatrix<double>>& rhs, Eigen::MatrixXd lhs) {
|
|
190
|
+
return cwise_transform(lhs, rhs, std::multiplies{});
|
|
191
|
+
},
|
|
192
|
+
nb::is_operator(), "lhs"_a);
|
|
176
193
|
cls.def(
|
|
177
194
|
"__rmatmul__",
|
|
178
195
|
[](const Submatrix<RealMatrix<double>>& rhs, Eigen::MatrixXd lhs) {
|
|
179
196
|
return lhs * rhs;
|
|
180
197
|
},
|
|
181
|
-
nb::is_operator(), "lhs"_a);
|
|
198
|
+
nb::is_operator(), "lhs"_a, DOC(slp, operator, mul));
|
|
182
199
|
|
|
183
200
|
// NumPy ufuncs with a RealSubmatrix operand call its operators and autodiff
|
|
184
201
|
// functions
|
|
@@ -337,13 +354,11 @@ void bind_real_submatrix(nb::module_& autodiff,
|
|
|
337
354
|
// come after every other overload because the sparse caster converts scalars
|
|
338
355
|
// to 1x1 matrices. SciPy sparse matrices on the left don't defer to reflected
|
|
339
356
|
// operators.
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
nb::is_operator(), "rhs"_a);
|
|
346
|
-
}
|
|
357
|
+
cls.def(
|
|
358
|
+
"__matmul__",
|
|
359
|
+
[](const Submatrix<RealMatrix<double>>& lhs,
|
|
360
|
+
const Eigen::SparseMatrix<double>& rhs) { return lhs * rhs; },
|
|
361
|
+
nb::is_operator(), "rhs"_a, DOC(slp, operator, mul));
|
|
347
362
|
}
|
|
348
363
|
|
|
349
364
|
} // namespace slp
|
|
@@ -2918,7 +2918,10 @@ Template Args:
|
|
|
2918
2918
|
)doc";
|
|
2919
2919
|
|
|
2920
2920
|
constexpr char mkd_doc_slp_cwise_transform[] =
|
|
2921
|
-
R"doc(Transforms two
|
|
2921
|
+
R"doc(Transforms two matrix operands coefficient-wise with a binary
|
|
2922
|
+
operator.
|
|
2923
|
+
|
|
2924
|
+
At least one operand is a matrix of autodiff expressions.
|
|
2922
2925
|
|
|
2923
2926
|
Args:
|
|
2924
2927
|
lhs: The left-hand side of the binary operator.
|
|
@@ -2926,9 +2929,8 @@ Args:
|
|
|
2926
2929
|
binary_op: The binary operator to use for the transform operation.
|
|
2927
2930
|
|
|
2928
2931
|
Template Args:
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
Cols: Number of columns at compile time.
|
|
2932
|
+
LHS: Left-hand side operand type.
|
|
2933
|
+
RHS: Right-hand side operand type.
|
|
2932
2934
|
F: Binary operator type.
|
|
2933
2935
|
|
|
2934
2936
|
Returns:
|
|
@@ -2952,6 +2954,22 @@ Returns:
|
|
|
2952
2954
|
|
|
2953
2955
|
)doc";
|
|
2954
2956
|
|
|
2957
|
+
constexpr char mkd_doc_slp_detail_entry[] =
|
|
2958
|
+
R"doc(Returns entry (row, col) of a matrix operand.
|
|
2959
|
+
|
|
2960
|
+
Args:
|
|
2961
|
+
m: The matrix operand.
|
|
2962
|
+
row: The entry's row.
|
|
2963
|
+
col: The entry's column.
|
|
2964
|
+
|
|
2965
|
+
Template Args:
|
|
2966
|
+
T: Matrix operand type.
|
|
2967
|
+
|
|
2968
|
+
Returns:
|
|
2969
|
+
The entry.
|
|
2970
|
+
|
|
2971
|
+
)doc";
|
|
2972
|
+
|
|
2955
2973
|
constexpr char mkd_doc_slp_detail_exp_pade[] =
|
|
2956
2974
|
R"doc(Returns the numerator P and denominator Q of the (13, 13) Padé
|
|
2957
2975
|
approximant of a square matrix's exponential, exp(A)Q ≈ P.
|
|
@@ -318,6 +318,17 @@ def test_dense_matrix_multiplication() -> None:
|
|
|
318
318
|
assert np.array_equal((2.0 * B).value(), 2.0 * B_dense)
|
|
319
319
|
assert np.array_equal((B[:, :1] * 2.0).value(), B_dense[:, :1] * 2.0)
|
|
320
320
|
|
|
321
|
+
# Coefficient-wise
|
|
322
|
+
assert np.array_equal((A * A.T).value(), A_dense * A_dense.T)
|
|
323
|
+
assert np.array_equal((A_dense * A.T).value(), A_dense * A_dense.T)
|
|
324
|
+
assert np.array_equal((A * A_dense.T).value(), A_dense * A_dense.T)
|
|
325
|
+
assert np.array_equal(
|
|
326
|
+
(B[:, :1] * B[:, 1:]).value(), B_dense[:, :1] * B_dense[:, 1:]
|
|
327
|
+
)
|
|
328
|
+
assert np.array_equal(
|
|
329
|
+
(B[:, :1] * B_dense[:, 1:]).value(), B_dense[:, :1] * B_dense[:, 1:]
|
|
330
|
+
)
|
|
331
|
+
|
|
321
332
|
|
|
322
333
|
def test_sparse_matrix_multiplication() -> None:
|
|
323
334
|
A_dense = np.array([[1.0, 0.0, 2.0], [0.0, 3.0, 0.0], [-1.0, 0.0, 4.0]])
|
|
@@ -345,6 +356,9 @@ def test_compound_assignment_operators() -> None:
|
|
|
345
356
|
A2 -= B
|
|
346
357
|
assert (A2.value() == np.array([[1, 2], [3, 4]])).all()
|
|
347
358
|
A2 *= B
|
|
359
|
+
assert (A2.value() == np.array([[1, 4], [9, 16]])).all()
|
|
360
|
+
A2.set_value(np.array([[1, 2], [3, 4]]))
|
|
361
|
+
A2 @= B
|
|
348
362
|
assert (A2.value() == np.array([[7, 10], [15, 22]])).all()
|
|
349
363
|
A2.set_value(np.array([[1, 2], [3, 4]]))
|
|
350
364
|
|
|
@@ -354,6 +368,9 @@ def test_compound_assignment_operators() -> None:
|
|
|
354
368
|
A2[:, :] -= B
|
|
355
369
|
assert (A2.value() == np.array([[1, 2], [3, 4]])).all()
|
|
356
370
|
A2[:, :] *= B
|
|
371
|
+
assert (A2.value() == np.array([[1, 4], [9, 16]])).all()
|
|
372
|
+
A2.set_value(np.array([[1, 2], [3, 4]]))
|
|
373
|
+
A2[:, :] @= B
|
|
357
374
|
assert (A2.value() == np.array([[7, 10], [15, 22]])).all()
|
|
358
375
|
A2.set_value(np.array([[1, 2], [3, 4]]))
|
|
359
376
|
|
|
@@ -431,7 +448,7 @@ def test_numpy_array_dtypes() -> None:
|
|
|
431
448
|
x = Real(3.0)
|
|
432
449
|
B = np.array([[1.0, 2.0], [3.0, 5.0]])
|
|
433
450
|
|
|
434
|
-
arithmetic = [operator.add, operator.sub, operator.matmul]
|
|
451
|
+
arithmetic = [operator.add, operator.sub, operator.mul, operator.matmul]
|
|
435
452
|
comparisons: list[Callable[[Any, Any], object]] = [
|
|
436
453
|
operator.eq,
|
|
437
454
|
operator.lt,
|
|
@@ -771,11 +788,27 @@ def test_constant_static_function() -> None:
|
|
|
771
788
|
|
|
772
789
|
|
|
773
790
|
def test_cwise_map_free_function() -> None:
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
791
|
+
A_value = np.array([[2.0, 3.0, 4.0], [5.0, 6.0, 7.0]])
|
|
792
|
+
B_value = np.array([[8.0, 9.0, 10.0], [11.0, 12.0, 13.0]])
|
|
793
|
+
A = RealMatrix(A_value)
|
|
794
|
+
B = RealMatrix(B_value)
|
|
795
|
+
expected = np.array([[16.0, 27.0, 40.0], [55.0, 72.0, 91.0]])
|
|
796
|
+
|
|
797
|
+
# RealMatrix-RealMatrix
|
|
798
|
+
result1 = autodiff.cwise_map(A, B, lambda a, b: a * b)
|
|
799
|
+
assert np.array_equal(result1.value(), expected)
|
|
800
|
+
|
|
801
|
+
# RealMatrix-NumPy
|
|
802
|
+
result2 = autodiff.cwise_map(A, B_value, lambda a, b: a * b)
|
|
803
|
+
assert np.array_equal(result2.value(), expected)
|
|
804
|
+
|
|
805
|
+
# NumPy-RealMatrix
|
|
806
|
+
result3 = autodiff.cwise_map(A_value, B, lambda a, b: a * b)
|
|
807
|
+
assert np.array_equal(result3.value(), expected)
|
|
777
808
|
|
|
778
|
-
|
|
809
|
+
# RealSubmatrix-RealSubmatrix
|
|
810
|
+
result4 = autodiff.cwise_map(A[:, :2], B[:, 1:], lambda a, b: a * b)
|
|
811
|
+
assert np.array_equal(result4.value(), np.array([[18.0, 30.0], [60.0, 78.0]]))
|
|
779
812
|
|
|
780
813
|
|
|
781
814
|
def test_block_free_function() -> None:
|
{sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/CMakeLists.txt
RENAMED
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/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.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/pyproject.toml
RENAMED
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev204 → sleipnirgroup_jormungandr-0.6.7.dev206}/src/util/pool.cpp
RENAMED
|
File without changes
|