Skip to content

check_floating_dtype

Module: strata.utils • Kind: function
Source: strata/utils/validation.mojo

def check_floating_dtype[
dtype: DType,
caller: StringLiteral = "Estimator",
]()
from strata.utils import check_floating_dtype

Asserts at compile time that the specified dtype is a floating-point type.