sleipnirgroup-jormungandr 0.6.7.dev109__tar.gz → 0.6.7.dev111__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.
Potentially problematic release.
This version of sleipnirgroup-jormungandr might be problematic. Click here for more details.
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/PKG-INFO +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/src/sleipnir/__init__.py +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/autodiff/gradient_test.py +20 -12
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/autodiff/hessian_test.py +44 -31
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/autodiff/variable_matrix_test.py +51 -13
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/CMakeLists.txt +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/LICENSE.txt +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/README.md +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/SleipnirConfig.cmake.in +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/cmake/BuildTypes.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/cmake/CompilerFlags.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/cmake/Pybind11Mkdoc.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/cmake/Pybind11MkdocPostprocess.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/cmake/SubdirList.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/cmake/aarch64-linux-gnu.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/cmake/arm-none-eabi.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/autodiff/expression.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/autodiff/expression_functions.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/autodiff/expression_graph.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/autodiff/expression_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/autodiff/gradient.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/autodiff/hessian.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/autodiff/jacobian.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/autodiff/sleipnir_base.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/autodiff/slice.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/autodiff/variable.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/autodiff/variable_block.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/autodiff/variable_matrix.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/multistart.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/ocp/dynamics_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/ocp/timestep_method.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/ocp/transcription_method.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/ocp.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/problem.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/exit_status.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/ipm.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/ipm_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/iteration_info.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/newton.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/newton_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/options.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/sqp.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/sqp_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/util/all_finite.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/util/append_as_triplets.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/util/bounds.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/util/constraint_violation.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/util/dense_kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/util/feasibility_restoration.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/util/feasibility_restoration_cycle_detector.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/util/filter.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/util/fraction_to_the_boundary_rule.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/util/inertia.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/util/kkt_error.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/util/kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/util/problem_scaling.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/util/sparse_inf_norms.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/util/sparse_kkt_solver.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/optimization/solver/util/time_trace.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/util/assert.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/util/concepts.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/util/empty.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/util/force_inline.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/util/function_ref.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/util/intrusive_shared_ptr.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/util/pool.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/util/print.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/util/print_diagnostics.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/util/scope_exit.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/util/spy.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/util/symbol_exports.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/include/sleipnir/util/time_tracer.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/pyproject.toml +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/arity.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/autodiff/bind_expression_type.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/autodiff/bind_gradient.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/autodiff/bind_hessian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/autodiff/bind_jacobian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/autodiff/bind_variable.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/autodiff/bind_variable_block.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/autodiff/bind_variable_matrix.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/binders.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/docstrings.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/for_each_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/main.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/optimization/bind_equality_constraints.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/optimization/bind_inequality_constraints.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/optimization/bind_ocp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/optimization/bind_problem.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/optimization/ocp/bind_dynamics_type.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/optimization/ocp/bind_timestep_method.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/optimization/ocp/bind_transcription_method.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/optimization/solver/bind_exit_status.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/optimization/solver/bind_iteration_info.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/slice_tuple.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/text_wrap.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/cpp/try_cast.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/postprocess_stubs.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/src/sleipnir/autodiff/__init__.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/src/sleipnir/optimization/__init__.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/autodiff/jacobian_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/autodiff/variable_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/arm_on_elevator_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/cart_pole_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/cart_pole_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/cart_pole_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/constraints_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/decision_variable_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/differential_drive_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/differential_drive_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/differential_drive_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/double_integrator_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/flywheel_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/flywheel_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/linear_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/multistart_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/near.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/nonlinear_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/problem_spy_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/quadratic_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/rk4.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/solver/exit_status_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/python/test/optimization/trivial_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/src/autodiff/gradient.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/src/autodiff/hessian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/src/autodiff/jacobian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/src/autodiff/variable_matrix.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/src/optimization/ocp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/src/optimization/problem.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/src/optimization/solver/ipm.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/src/optimization/solver/newton.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/src/optimization/solver/sqp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/src/util/pool.cpp +0 -0
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import math
|
|
2
|
+
import sys
|
|
2
3
|
|
|
3
4
|
import numpy as np
|
|
4
5
|
import pytest
|
|
5
6
|
from sleipnir import autodiff
|
|
6
7
|
from sleipnir.autodiff import Gradient, Variable, VariableMatrix
|
|
7
8
|
|
|
9
|
+
# Machine epsilon for the binding's scalar type (double)
|
|
10
|
+
ε = sys.float_info.epsilon
|
|
11
|
+
|
|
8
12
|
|
|
9
13
|
def test_trivial_case() -> None:
|
|
10
14
|
a = Variable()
|
|
@@ -389,10 +393,10 @@ def test_atan2() -> None:
|
|
|
389
393
|
|
|
390
394
|
g = Gradient(autodiff.atan2(2.0, x), x)
|
|
391
395
|
assert g.get().value()[0, 0] == pytest.approx(
|
|
392
|
-
-2.0 / (2 * 2 + x.value() * x.value()), abs=
|
|
396
|
+
-2.0 / (2 * 2 + x.value() * x.value()), rel=8 * ε, abs=0
|
|
393
397
|
)
|
|
394
398
|
assert g.value()[0, 0] == pytest.approx(
|
|
395
|
-
-2.0 / (2 * 2 + x.value() * x.value()), abs=
|
|
399
|
+
-2.0 / (2 * 2 + x.value() * x.value()), rel=8 * ε, abs=0
|
|
396
400
|
)
|
|
397
401
|
|
|
398
402
|
# Testing atan2 function on (var, double)
|
|
@@ -402,10 +406,10 @@ def test_atan2() -> None:
|
|
|
402
406
|
|
|
403
407
|
g = Gradient(autodiff.atan2(x, 2.0), x)
|
|
404
408
|
assert g.get().value()[0, 0] == pytest.approx(
|
|
405
|
-
(2.0 / (2 * 2 + x * x)).value(), abs=
|
|
409
|
+
(2.0 / (2 * 2 + x * x)).value(), rel=8 * ε, abs=0
|
|
406
410
|
)
|
|
407
411
|
assert g.value()[0, 0] == pytest.approx(
|
|
408
|
-
2.0 / (2 * 2 + x.value() * x.value()), abs=
|
|
412
|
+
2.0 / (2 * 2 + x.value() * x.value()), rel=8 * ε, abs=0
|
|
409
413
|
)
|
|
410
414
|
|
|
411
415
|
# Testing atan2 function on (var, var)
|
|
@@ -415,18 +419,18 @@ def test_atan2() -> None:
|
|
|
415
419
|
|
|
416
420
|
g = Gradient(autodiff.atan2(y, x), y)
|
|
417
421
|
assert g.get().value()[0, 0] == pytest.approx(
|
|
418
|
-
(x / (x * x + y * y)).value(), abs=
|
|
422
|
+
(x / (x * x + y * y)).value(), rel=8 * ε, abs=0
|
|
419
423
|
)
|
|
420
424
|
assert g.value()[0, 0] == pytest.approx(
|
|
421
|
-
x.value() / (x.value() * x.value() + y.value() * y.value()), abs=
|
|
425
|
+
x.value() / (x.value() * x.value() + y.value() * y.value()), rel=8 * ε, abs=0
|
|
422
426
|
)
|
|
423
427
|
|
|
424
428
|
g = Gradient(autodiff.atan2(y, x), x)
|
|
425
429
|
assert g.get().value()[0, 0] == pytest.approx(
|
|
426
|
-
-y.value() / (x.value() * x.value() + y.value() * y.value()), abs=
|
|
430
|
+
-y.value() / (x.value() * x.value() + y.value() * y.value()), rel=8 * ε, abs=0
|
|
427
431
|
)
|
|
428
432
|
assert g.value()[0, 0] == pytest.approx(
|
|
429
|
-
-y.value() / (x.value() * x.value() + y.value() * y.value()), abs=
|
|
433
|
+
-y.value() / (x.value() * x.value() + y.value() * y.value()), rel=8 * ε, abs=0
|
|
430
434
|
)
|
|
431
435
|
|
|
432
436
|
# Testing atan2 function on (expr, expr)
|
|
@@ -443,7 +447,8 @@ def test_atan2() -> None:
|
|
|
443
447
|
(2 * x.value() + 1) * (2 * x.value() + 1)
|
|
444
448
|
+ math.sin(y.value()) * math.sin(y.value())
|
|
445
449
|
),
|
|
446
|
-
|
|
450
|
+
rel=8 * ε,
|
|
451
|
+
abs=0,
|
|
447
452
|
)
|
|
448
453
|
assert g.value()[0, 0] == pytest.approx(
|
|
449
454
|
3
|
|
@@ -453,7 +458,8 @@ def test_atan2() -> None:
|
|
|
453
458
|
(2 * x.value() + 1) * (2 * x.value() + 1)
|
|
454
459
|
+ math.sin(y.value()) * math.sin(y.value())
|
|
455
460
|
),
|
|
456
|
-
|
|
461
|
+
rel=8 * ε,
|
|
462
|
+
abs=0,
|
|
457
463
|
)
|
|
458
464
|
|
|
459
465
|
g = Gradient(3 * autodiff.atan2(autodiff.sin(y), 2 * x + 1), x)
|
|
@@ -465,7 +471,8 @@ def test_atan2() -> None:
|
|
|
465
471
|
(2 * x.value() + 1) * (2 * x.value() + 1)
|
|
466
472
|
+ math.sin(y.value()) * math.sin(y.value())
|
|
467
473
|
),
|
|
468
|
-
|
|
474
|
+
rel=8 * ε,
|
|
475
|
+
abs=0,
|
|
469
476
|
)
|
|
470
477
|
assert g.value()[0, 0] == pytest.approx(
|
|
471
478
|
3
|
|
@@ -475,7 +482,8 @@ def test_atan2() -> None:
|
|
|
475
482
|
(2 * x.value() + 1) * (2 * x.value() + 1)
|
|
476
483
|
+ math.sin(y.value()) * math.sin(y.value())
|
|
477
484
|
),
|
|
478
|
-
|
|
485
|
+
rel=8 * ε,
|
|
486
|
+
abs=0,
|
|
479
487
|
)
|
|
480
488
|
|
|
481
489
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import math
|
|
2
2
|
import operator
|
|
3
|
+
import sys
|
|
3
4
|
from collections.abc import Callable, Iterable
|
|
4
5
|
from functools import reduce
|
|
5
6
|
|
|
@@ -8,6 +9,9 @@ import pytest
|
|
|
8
9
|
from sleipnir import autodiff
|
|
9
10
|
from sleipnir.autodiff import Gradient, Hessian, Jacobian, Variable, VariableMatrix
|
|
10
11
|
|
|
12
|
+
# Machine epsilon for the binding's scalar type (double)
|
|
13
|
+
ε = sys.float_info.epsilon
|
|
14
|
+
|
|
11
15
|
|
|
12
16
|
def prod[T](iterable: Iterable[T]) -> T:
|
|
13
17
|
return reduce(operator.mul, iterable)
|
|
@@ -122,15 +126,17 @@ def test_product_of_sines() -> None:
|
|
|
122
126
|
|
|
123
127
|
# y = prod(sin(x))
|
|
124
128
|
y = prod(autodiff.sin(x))
|
|
125
|
-
assert y.value() == pytest.approx(
|
|
129
|
+
assert y.value() == pytest.approx(
|
|
130
|
+
prod(math.sin(x) for x in range(1, 6)), rel=8 * ε, abs=0
|
|
131
|
+
)
|
|
126
132
|
|
|
127
133
|
g = Gradient(y, x)
|
|
128
134
|
for i in range(x.rows()):
|
|
129
135
|
assert g.get().value()[i, 0] == pytest.approx(
|
|
130
|
-
y.value() / math.tan(x[i].value()), abs=
|
|
136
|
+
y.value() / math.tan(x[i].value()), rel=8 * ε, abs=0
|
|
131
137
|
)
|
|
132
138
|
assert g.value()[i, 0] == pytest.approx(
|
|
133
|
-
y.value() / math.tan(x[i].value()), abs=
|
|
139
|
+
y.value() / math.tan(x[i].value()), rel=8 * ε, abs=0
|
|
134
140
|
)
|
|
135
141
|
|
|
136
142
|
H = Hessian(y, x)
|
|
@@ -144,8 +150,8 @@ def test_product_of_sines() -> None:
|
|
|
144
150
|
expected_H[i, j] = y.value() / (
|
|
145
151
|
math.tan(x[i].value()) * math.tan(x[j].value())
|
|
146
152
|
)
|
|
147
|
-
np.testing.assert_allclose(H.get().value(), expected_H)
|
|
148
|
-
np.testing.assert_allclose(H.value().todense(), expected_H)
|
|
153
|
+
np.testing.assert_allclose(H.get().value(), expected_H, rtol=8 * ε, atol=0)
|
|
154
|
+
np.testing.assert_allclose(H.value().todense(), expected_H, rtol=8 * ε, atol=0)
|
|
149
155
|
|
|
150
156
|
|
|
151
157
|
def test_sum_of_squared_residuals() -> None:
|
|
@@ -204,10 +210,10 @@ def test_nested_powers() -> None:
|
|
|
204
210
|
y = (x**2) ** 2
|
|
205
211
|
|
|
206
212
|
J = Jacobian(y, x).value()
|
|
207
|
-
assert J[0, 0] == pytest.approx(4 * x0 * x0 * x0, abs=
|
|
213
|
+
assert J[0, 0] == pytest.approx(4 * x0 * x0 * x0, rel=8 * ε, abs=0)
|
|
208
214
|
|
|
209
215
|
H = Hessian(y, x).value()
|
|
210
|
-
assert H[0, 0] == pytest.approx(12 * x0 * x0, abs=
|
|
216
|
+
assert H[0, 0] == pytest.approx(12 * x0 * x0, rel=8 * ε, abs=0)
|
|
211
217
|
|
|
212
218
|
|
|
213
219
|
def check_unary_hessian(
|
|
@@ -232,12 +238,18 @@ def check_unary_hessian(
|
|
|
232
238
|
x[1].set_value(x1)
|
|
233
239
|
|
|
234
240
|
u = x0 * x1
|
|
241
|
+
|
|
242
|
+
# The mixed partial is a sum of two terms that can cancel (e.g., to zero
|
|
243
|
+
# for log10()), so its rounding error scales with the terms instead of
|
|
244
|
+
# with the result
|
|
235
245
|
mixed = d2f(u) * u + df(u)
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
246
|
+
mixed_margin = 8 * ε * (abs(d2f(u) * u) + abs(df(u)))
|
|
247
|
+
|
|
248
|
+
for H in [symbolic_H.value(), hessian.value().todense()]:
|
|
249
|
+
assert H[0, 0] == pytest.approx(d2f(u) * x1 * x1, rel=8 * ε, abs=0)
|
|
250
|
+
assert H[0, 1] == pytest.approx(mixed, abs=mixed_margin)
|
|
251
|
+
assert H[1, 0] == pytest.approx(mixed, abs=mixed_margin)
|
|
252
|
+
assert H[1, 1] == pytest.approx(d2f(u) * x0 * x0, rel=8 * ε, abs=0)
|
|
241
253
|
|
|
242
254
|
|
|
243
255
|
def test_division() -> None:
|
|
@@ -256,9 +268,9 @@ def test_division() -> None:
|
|
|
256
268
|
|
|
257
269
|
mixed = -1.0 / (x1 * x1)
|
|
258
270
|
expected = np.array([[0.0, mixed], [mixed, 2.0 * x0 / (x1 * x1 * x1)]])
|
|
259
|
-
np.testing.assert_allclose(symbolic_H.value(), expected, rtol=
|
|
271
|
+
np.testing.assert_allclose(symbolic_H.value(), expected, rtol=8 * ε, atol=0)
|
|
260
272
|
np.testing.assert_allclose(
|
|
261
|
-
hessian.value().todense(), expected, rtol=
|
|
273
|
+
hessian.value().todense(), expected, rtol=8 * ε, atol=0
|
|
262
274
|
)
|
|
263
275
|
|
|
264
276
|
|
|
@@ -313,9 +325,9 @@ def test_atan2() -> None:
|
|
|
313
325
|
expected = np.array(
|
|
314
326
|
[[-2.0 * x * y / (d * d), mixed], [mixed, 2.0 * x * y / (d * d)]]
|
|
315
327
|
)
|
|
316
|
-
np.testing.assert_allclose(symbolic_H.value(), expected, rtol=
|
|
328
|
+
np.testing.assert_allclose(symbolic_H.value(), expected, rtol=8 * ε, atol=0)
|
|
317
329
|
np.testing.assert_allclose(
|
|
318
|
-
hessian.value().todense(), expected, rtol=
|
|
330
|
+
hessian.value().todense(), expected, rtol=8 * ε, atol=0
|
|
319
331
|
)
|
|
320
332
|
|
|
321
333
|
|
|
@@ -365,9 +377,9 @@ def test_hypot_two_arguments() -> None:
|
|
|
365
377
|
x[1].set_value(x1)
|
|
366
378
|
|
|
367
379
|
expected = hypot_expected_H(np.array([x0, x1]))
|
|
368
|
-
np.testing.assert_allclose(symbolic_H.value(), expected, rtol=
|
|
380
|
+
np.testing.assert_allclose(symbolic_H.value(), expected, rtol=32 * ε, atol=0)
|
|
369
381
|
np.testing.assert_allclose(
|
|
370
|
-
hessian.value().todense(), expected, rtol=
|
|
382
|
+
hessian.value().todense(), expected, rtol=32 * ε, atol=0
|
|
371
383
|
)
|
|
372
384
|
|
|
373
385
|
|
|
@@ -382,9 +394,9 @@ def test_hypot_three_arguments() -> None:
|
|
|
382
394
|
x[2].set_value(v[2])
|
|
383
395
|
|
|
384
396
|
expected = hypot_expected_H(v)
|
|
385
|
-
np.testing.assert_allclose(symbolic_H.value(), expected, rtol=
|
|
397
|
+
np.testing.assert_allclose(symbolic_H.value(), expected, rtol=8 * ε, atol=0)
|
|
386
398
|
np.testing.assert_allclose(
|
|
387
|
-
hessian.value().todense(), expected, rtol=
|
|
399
|
+
hessian.value().todense(), expected, rtol=8 * ε, atol=0
|
|
388
400
|
)
|
|
389
401
|
|
|
390
402
|
|
|
@@ -408,9 +420,9 @@ def test_hypot_repeated_argument() -> None:
|
|
|
408
420
|
expected = np.array(
|
|
409
421
|
[[(2.0 * y2 - 4.0 * a * a) / y3, mixed], [mixed, (y2 - b * b) / y3]]
|
|
410
422
|
)
|
|
411
|
-
np.testing.assert_allclose(symbolic_H.value(), expected, rtol=
|
|
423
|
+
np.testing.assert_allclose(symbolic_H.value(), expected, rtol=16 * ε, atol=0)
|
|
412
424
|
np.testing.assert_allclose(
|
|
413
|
-
hessian.value().todense(), expected, rtol=
|
|
425
|
+
hessian.value().todense(), expected, rtol=16 * ε, atol=0
|
|
414
426
|
)
|
|
415
427
|
|
|
416
428
|
|
|
@@ -467,19 +479,15 @@ def test_pow() -> None:
|
|
|
467
479
|
input[1].set_value(3.0)
|
|
468
480
|
mixed = 9.0 * (1.0 + 3.0 * math.log(3.0))
|
|
469
481
|
expected = np.array([[18.0, mixed], [mixed, 27.0 * math.log(3.0) ** 2]])
|
|
470
|
-
np.testing.assert_allclose(symbolic_H.value(), expected, rtol=
|
|
471
|
-
np.testing.assert_allclose(
|
|
472
|
-
hessian.value().todense(), expected, rtol=0.0, atol=1e-12
|
|
473
|
-
)
|
|
482
|
+
np.testing.assert_allclose(symbolic_H.value(), expected, rtol=8 * ε, atol=0)
|
|
483
|
+
np.testing.assert_allclose(hessian.value().todense(), expected, rtol=8 * ε, atol=0)
|
|
474
484
|
|
|
475
485
|
input[0].set_value(3.0)
|
|
476
486
|
input[1].set_value(2.0)
|
|
477
487
|
mixed = 4.0 * (1.0 + 2.0 * math.log(4.0))
|
|
478
488
|
expected = np.array([[2.0, mixed], [mixed, 16.0 * math.log(4.0) ** 2]])
|
|
479
|
-
np.testing.assert_allclose(symbolic_H.value(), expected, rtol=
|
|
480
|
-
np.testing.assert_allclose(
|
|
481
|
-
hessian.value().todense(), expected, rtol=0.0, atol=1e-12
|
|
482
|
-
)
|
|
489
|
+
np.testing.assert_allclose(symbolic_H.value(), expected, rtol=8 * ε, atol=0)
|
|
490
|
+
np.testing.assert_allclose(hessian.value().todense(), expected, rtol=8 * ε, atol=0)
|
|
483
491
|
|
|
484
492
|
|
|
485
493
|
def test_sign() -> None:
|
|
@@ -543,7 +551,12 @@ def test_rosenbrock() -> None:
|
|
|
543
551
|
y.set_value(y0)
|
|
544
552
|
|
|
545
553
|
H = hessian.value().todense()
|
|
546
|
-
|
|
554
|
+
# 1200x₀² − 400y₀ + 2 cancels terms, so the rounding error scales
|
|
555
|
+
# with their magnitudes instead of with the result
|
|
556
|
+
assert H[0, 0] == pytest.approx(
|
|
557
|
+
1200 * x0**2 - 400 * y0 + 2,
|
|
558
|
+
abs=8 * ε * (1200 * x0**2 + 400 * abs(y0) + 2),
|
|
559
|
+
)
|
|
547
560
|
assert H[0, 1] == -400 * x0
|
|
548
561
|
assert H[1, 0] == -400 * x0
|
|
549
562
|
assert H[1, 1] == 200
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import math
|
|
2
|
+
import sys
|
|
2
3
|
|
|
3
4
|
import numpy as np
|
|
4
5
|
from sleipnir import autodiff
|
|
5
6
|
from sleipnir.autodiff import VariableMatrix
|
|
6
7
|
|
|
8
|
+
# Machine epsilon for the binding's scalar type (double)
|
|
9
|
+
ε = sys.float_info.epsilon
|
|
10
|
+
|
|
7
11
|
|
|
8
12
|
def test_assignment_to_default() -> None:
|
|
9
13
|
mat = VariableMatrix()
|
|
@@ -409,38 +413,65 @@ def test_cwise_reduce() -> None:
|
|
|
409
413
|
def test_exp() -> None:
|
|
410
414
|
# Scalar
|
|
411
415
|
A1 = VariableMatrix([[4.0]])
|
|
412
|
-
np.testing.assert_allclose(
|
|
413
|
-
|
|
416
|
+
np.testing.assert_allclose(
|
|
417
|
+
A1.exp().value(), np.array([[math.exp(4.0)]]), rtol=16 * ε, atol=0
|
|
418
|
+
)
|
|
419
|
+
np.testing.assert_allclose(
|
|
420
|
+
A1[:, :].exp().value(), np.array([[math.exp(4.0)]]), rtol=16 * ε, atol=0
|
|
421
|
+
)
|
|
422
|
+
|
|
423
|
+
# exp(A) exp(−A) = I cancels terms as large as ‖exp(A)‖‖exp(−A)‖, so the
|
|
424
|
+
# rounding error scales with that product instead of with I
|
|
425
|
+
def exp_product_margin(A: VariableMatrix) -> float:
|
|
426
|
+
return float(
|
|
427
|
+
8 * ε * np.linalg.norm(A.exp().value()) * np.linalg.norm((-A).exp().value())
|
|
428
|
+
)
|
|
414
429
|
|
|
415
430
|
A2 = VariableMatrix([[0.0, 1.0], [0.0, -0.5]])
|
|
416
431
|
np.testing.assert_allclose(
|
|
417
|
-
A2.exp().value() @ (-A2).exp().value(),
|
|
432
|
+
A2.exp().value() @ (-A2).exp().value(),
|
|
433
|
+
np.identity(2),
|
|
434
|
+
atol=exp_product_margin(A2),
|
|
418
435
|
)
|
|
419
436
|
np.testing.assert_allclose(
|
|
420
|
-
A2[:, :].exp().value() @ (-A2[:, :]).exp().value(),
|
|
437
|
+
A2[:, :].exp().value() @ (-A2[:, :]).exp().value(),
|
|
438
|
+
np.identity(2),
|
|
439
|
+
atol=exp_product_margin(A2),
|
|
421
440
|
)
|
|
422
441
|
|
|
423
442
|
A3 = VariableMatrix([[0.0, 1.0], [0.0, 10.0]])
|
|
424
443
|
np.testing.assert_allclose(
|
|
425
|
-
A3.exp().value() @ (-A3).exp().value(),
|
|
444
|
+
A3.exp().value() @ (-A3).exp().value(),
|
|
445
|
+
np.identity(2),
|
|
446
|
+
atol=exp_product_margin(A3),
|
|
426
447
|
)
|
|
427
448
|
np.testing.assert_allclose(
|
|
428
|
-
A3[:, :].exp().value() @ (-A3[:, :]).exp().value(),
|
|
449
|
+
A3[:, :].exp().value() @ (-A3[:, :]).exp().value(),
|
|
450
|
+
np.identity(2),
|
|
451
|
+
atol=exp_product_margin(A3),
|
|
429
452
|
)
|
|
430
453
|
A4 = VariableMatrix([[1.0, 10.0], [0.0, 0.0]])
|
|
431
454
|
np.testing.assert_allclose(
|
|
432
|
-
A4.exp().value() @ (-A4).exp().value(),
|
|
455
|
+
A4.exp().value() @ (-A4).exp().value(),
|
|
456
|
+
np.identity(2),
|
|
457
|
+
atol=exp_product_margin(A4),
|
|
433
458
|
)
|
|
434
459
|
np.testing.assert_allclose(
|
|
435
|
-
A4[:, :].exp().value() @ (-A4[:, :]).exp().value(),
|
|
460
|
+
A4[:, :].exp().value() @ (-A4[:, :]).exp().value(),
|
|
461
|
+
np.identity(2),
|
|
462
|
+
atol=exp_product_margin(A4),
|
|
436
463
|
)
|
|
437
464
|
|
|
438
465
|
A5 = VariableMatrix([[2.0, 3.0], [4.0, 5.0]])
|
|
439
466
|
np.testing.assert_allclose(
|
|
440
|
-
A5.exp().value() @ (-A5).exp().value(),
|
|
467
|
+
A5.exp().value() @ (-A5).exp().value(),
|
|
468
|
+
np.identity(2),
|
|
469
|
+
atol=exp_product_margin(A5),
|
|
441
470
|
)
|
|
442
471
|
np.testing.assert_allclose(
|
|
443
|
-
A5[:, :].exp().value() @ (-A5[:, :]).exp().value(),
|
|
472
|
+
A5[:, :].exp().value() @ (-A5[:, :]).exp().value(),
|
|
473
|
+
np.identity(2),
|
|
474
|
+
atol=exp_product_margin(A5),
|
|
444
475
|
)
|
|
445
476
|
|
|
446
477
|
# Pascal matrix
|
|
@@ -462,8 +493,12 @@ def test_exp() -> None:
|
|
|
462
493
|
expected_pascal[row, col] = (
|
|
463
494
|
expected_pascal[row - 1, col - 1] + expected_pascal[row - 1, col]
|
|
464
495
|
)
|
|
465
|
-
np.testing.assert_allclose(
|
|
466
|
-
|
|
496
|
+
np.testing.assert_allclose(
|
|
497
|
+
pascal.exp().value(), expected_pascal, rtol=32 * ε, atol=0
|
|
498
|
+
)
|
|
499
|
+
np.testing.assert_allclose(
|
|
500
|
+
pascal[:, :].exp().value(), expected_pascal, rtol=32 * ε, atol=0
|
|
501
|
+
)
|
|
467
502
|
|
|
468
503
|
|
|
469
504
|
def test_block_free_function() -> None:
|
|
@@ -491,7 +526,10 @@ def check_solve(A: VariableMatrix, B: VariableMatrix) -> None:
|
|
|
491
526
|
X = autodiff.solve(A, B)
|
|
492
527
|
|
|
493
528
|
assert X.shape == (A.shape[1], B.shape[1])
|
|
494
|
-
|
|
529
|
+
|
|
530
|
+
# Backward error bound of a stable solve
|
|
531
|
+
residual = np.linalg.norm(A.value() @ X.value() - B.value())
|
|
532
|
+
assert residual <= 8 * ε * np.linalg.norm(A.value()) * np.linalg.norm(X.value())
|
|
495
533
|
|
|
496
534
|
|
|
497
535
|
def test_solve_free_function() -> None:
|
{sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/CMakeLists.txt
RENAMED
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/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
|
{sleipnirgroup_jormungandr-0.6.7.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/pyproject.toml
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.dev109 → sleipnirgroup_jormungandr-0.6.7.dev111}/src/util/pool.cpp
RENAMED
|
File without changes
|