Skip to main content

Module validate

Module validate 

Source
Expand description

Shape, energy, and tangent validation shared by the CPU and GPU backends.

Each check returns a typed RefloxideError and never panics. It does not build solver inputs beyond the LayerCoeffs packing in jvp_coeffs.

Functionsยง

jvp_coeffs
Validated value and tangent layer records for the JVP entry points.
validate_batch
Shape and energy checks shared by the batched CPU and GPU entry points.
validate_points
Checks shared by the CPU and GPU point entry points.