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, ...])

Perform a basic derivative check.

rosenbrock(x[, return_g, return_H])

Evaluate the Rosenbrock function.

get_quadratic(A, b[, c])

Return a function that evaluates the given quadratic.

setup_mesh(mesh_type, nC, nDim)

Generate arbitrary mesh for testing.

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

Do a dot product test for the forward operator and its adjoint operator.