bundles / scipy latest / scipy / _lib / _util / _validate_int
function
scipy._lib._util:_validate_int
source: build-install/usr/lib/python3.14/site-packages/scipy/_lib/_util.py:419
Signature
def _validate_int(k, name, minimum = None, maximum = None)Summary
Validate a scalar integer.
Extended Summary
This function can be used to validate an argument to a function that expects the value to be an integer. It uses operator.index to validate the value (so, for example, k=2.0 results in a TypeError).
Parameters
k: intThe value to be validated.
name: strThe name of the parameter.
minimum: int, optionalAn optional lower bound.
maximum: int, optionalAn optional upper bound.
Aliases
scipy.signal._whittaker._validate_int