bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / stats / _distn_infrastructure / _check_shape
function
scipy.stats._distn_infrastructure:_check_shape
source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_distn_infrastructure.py:4207
Signature
def _check_shape(argshape, size)Summary
This is a utility function used by _rvs() in the class geninvgauss_gen. It compares the tuple argshape to the tuple size.
Parameters
argshape: tuple of integersShape of the arguments.
size: tuple of integers or integerSize argument of rvs().
Returns
: The function returns two tuples, scalar_shape and bc.scalar_shape: tupleShape to which the 1-d array of random variates returned by _rvs_scalar() is converted when it is copied into the output array of _rvs().
bc: tuple of booleansbc is a tuple the same length as size. bc[j] is True if the data associated with that index is generated in one call of _rvs_scalar().
Aliases
scipy.stats._continuous_distns._check_shape