D2xdt2Min
- class cubie.outputhandling.summarymetrics.d2xdt2_min.D2xdt2Min(precision)[source]
Bases:
SummaryMetricSummary metric that tracks minimum second derivative values.
Notes
Uses three buffer slots: buffer[0] for previous value, buffer[1] for previous-previous value, and buffer[2] for minimum unscaled second derivative. The derivative is computed using central differences and scaled by sample_summaries_every² in the save function.
- build() MetricFuncCache[source]
Generate CUDA device functions for minimum second derivative.
- Returns:
Cache containing the device update and save callbacks.
- Return type:
MetricFuncCache
Notes
The update callback computes central finite differences and tracks the minimum unscaled second derivative. The save callback scales by sample_summaries_every² and resets the buffers.