This pull request refactors the test_analytical_gradient function to use parameterization.
Adding helper functions generate_test_data, compute_gradient, and generate_dvectors functions, the test_analytical_gradient function is now parameterized making it more modular and extensible.
This pull request refactors the
test_analytical_gradient
function to use parameterization.Adding helper functions
generate_test_data
,compute_gradient
, andgenerate_dvectors
functions, thetest_analytical_gradient
function is now parameterized making it more modular and extensible.