Testing Utilities (discretize.tests)#

This module contains utilities for convergence testing

Classes#

OrderTest([methodName])

Base class for testing convergence of discrete operators with respect to cell size.

Functions#

check_derivative(fctn, x0[, num, plotIt, ...])

Basic derivative check

rosenbrock(x[, return_g, return_H])

Rosenbrock function for testing Gauss-Newton scheme

get_quadratic(A, b[, c])

Given A, b and c, this returns a function that evaluates the quandratic for a vector x.

setup_mesh(mesh_type, nC, nDim)

Generate arbitrary mesh for testing.

assert_isadjoint(forward, adjoint, shape_u, ...)

Dot product test for the forward operator and its adjoint operator.