performing a test of the gradient_approx routine More...
Go to the source code of this file.
Functions | |
function OK = | test_gradient_approx_matrix () |
performing a test of the gradient_approx routine | |
function ret = | testgradientapproxmatrix>grad_test (params, model_data, U, NU_ind, edge) |
function OK = | testgradientapproxmatrix>check_equal (correct, testval, edge) |
function OK = | testgradientapproxmatrix>check_convergence (params, f, fx, fy, edge) |
performing a test of the gradient_approx routine
Definition in file test_gradient_approx_matrix.m.
function OK = test_gradient_approx_matrix | ( | ) |
performing a test of the gradient_approx routine
It generates a simple 2x2
grid on which the gradients over each edge can be pre-calculated manually (c.f. grad_correct
vector), and compares it to the output of gradient_approx()
OK | 1 , if test is OK, 0 otherwise |
Definition at line 17 of file test_gradient_approx_matrix.m.