Expand description
Numerical conformance helpers for custom rules.
The helpers accept closures for perturbation, differencing, and pairings so that the core protocol does not need a matrix, tensor, normed-space, or device-array abstraction.
Functionsยง
- assert_
adjoint_ identity - Checks the adjoint identity for arbitrary tangent and cotangent types.
- assert_
close - Asserts approximate equality using combined absolute and relative tolerances.
- assert_
scalar_ adjoint_ identity - Scalar convenience wrapper for
assert_adjoint_identity. - central_
difference - Estimates a scalar directional derivative with a central difference.
- directional_
central_ difference - Estimates a directional derivative for an arbitrary output type.