Expand description
Input validation — kept deliberately off the compute hot path.
Call these at the ingress boundary (CSV/DB/API → Triangle). Kernels in
the rest of the crate assume validated inputs and skip defensive checks.
Enums§
- Monotonicity
Policy - Policy controlling whether cumulative rows must be monotonically non-decreasing.
- Validation
Error - Validation failure modes for triangle inputs.
Functions§
- validate_
premium - Validate a premium vector: length matches origins, finite positive.
- validate_
triangle - Validate a triangle view: square shape, finite non-negative observed
cells. Unobserved cells (
i + j > n − 1) are ignored.