Min

class cubie.outputhandling.summarymetrics.min.Min(precision)[source]

Bases: SummaryMetric

Summary metric that tracks the minimum value of a variable.

Notes

A single buffer slot stores the running minimum. The buffer resets to 1.0e30 after each save so any new value can replace it.

__init__(precision) None[source]

Initialise the Min summary metric with fixed buffer sizes.

build() MetricFuncCache[source]

Generate CUDA device functions for minimum value calculation.

Returns:

Cache containing the device update and save callbacks.

Return type:

MetricFuncCache

Notes

The update callback keeps the running minimum while the save callback writes the result and resets the buffer sentinel.