bundles / scipy 1.18.0 / scipy / _lib / _util / _validate_int
function
scipy._lib._util:_validate_int
source: /scipy/_lib/_util.py:420
Signature
def _validate_int(k, name, minimum = 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.
Aliases
scipy.signal._whittaker._validate_int