model.utils.math

Numerical utility helpers for ADELM.

Module Contents

Functions

avoid_zero_denominator

Replace zero or near-zero denominators with a small numerical threshold.

ensure_positive_threshold

Replace zero or near-zero values with a small positive threshold.

API

model.utils.math.avoid_zero_denominator(a)

Replace zero or near-zero denominators with a small numerical threshold.

model.utils.math.ensure_positive_threshold(a)

Replace zero or near-zero values with a small positive threshold.