DxdtMin

class cubie.outputhandling.summarymetrics.dxdt_min.DxdtMin(precision)[source]

Bases: SummaryMetric

Summary metric that tracks minimum first derivative values.

Notes

Uses two buffer slots: buffer[0] for previous value and buffer[1] for minimum unscaled derivative. The derivative is computed using finite differences and scaled by sample_summaries_every in the save function.

__init__(precision) None[source]

Initialise the DxdtMin summary metric.

build() MetricFuncCache[source]

Generate CUDA device functions for minimum derivative calculation.

Returns:

Cache containing the device update and save callbacks.

Return type:

MetricFuncCache

Notes

The update callback computes finite differences and tracks the minimum unscaled derivative. The save callback scales by sample_summaries_every and resets the buffers.