Skip to main content

Module triangle_algebra

Module triangle_algebra 

Source
Expand description

Allocation-free numeric kernels for triangle algebra.

These functions intentionally operate on flat slices and caller-provided output buffers. Public actuarial types can validate and label data before calling into this layer.

Functionsยง

cumulative_to_incremental_flat
Convert a flat row-major cumulative triangle to incremental values.
cumulative_to_incremental_row
Convert one cumulative row to incremental values.
incremental_to_cumulative_flat
Convert a flat row-major incremental triangle to cumulative values.
incremental_to_cumulative_row
Convert one incremental row to cumulative values.
is_observed_right_triangle
Returns whether a cell is observed under standard right-triangle geometry.
latest_observed_by_origin
Extract the latest observed value and development index for each origin.