rbmatlab 0.10.01
Functions
test/test_gradient_approx.m File Reference

performing a test of the gradient_approx routine More...

Go to the source code of this file.

Functions

function OK test_gradient_approx ()
 performing a test of the gradient_approx routine
function ret testgradientapprox>grad_test ( dmodel, model_data, U, NU_ind, edge)
function OK testgradientapprox>check_equal ( correct, testval, edge)
function OK testgradientapprox>check_convergence ( dmodel, f, fx, fy, edge)

Detailed Description

performing a test of the gradient_approx routine

Definition in file test_gradient_approx.m.


Function Documentation

function OK = test_gradient_approx ( )

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()

Return values:
OK1, if test is OK, 0 otherwise

Definition at line 1 of file test_gradient_approx.m.

 All Classes Namespaces Files Functions Variables