Skip to main content

Module testing

Module testing 

Source
Expand description

Small validation helpers for custom rules.

Functionsยง

assert_close
Asserts approximate equality using combined absolute and relative tolerances.
assert_scalar_adjoint_identity
Checks the defining adjoint identity <Jv, w> = <v, J^T w> for scalars.
central_difference
Estimates a scalar directional derivative with a central difference.