Module Import alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad NameLoad attr Num body Raise Call NameLoad Str orelse If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr Str body Raise Call NameLoad Str orelse If BoolOpOr CompareNotEq Call NameLoad Call NameLoad NameLoad BinOpAdd Call NameLoad NameLoad Num CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad Str Return NameLoad decorator_list
N/A N/A numpy check_valid_permutation N/A N/A permutation N/A N/A N/A Check that a given container contains a valid permutation.

    Parameters
    ----------
    permutation : array-like, 1-dimensional
        An array, list, etc.

    Returns
    -------
    permutation : ndarray, 1-dimensional
        An ndarray of integers representing a permutation.

    Raises
    ------
    ValueError
        If the given input is not a valid permutation on the
        integers.

     N/A permutation N/A N/A numpy asarray permutation N/A N/A N/A permutation ndim 1 N/A N/A N/A ValueError expected 1-dimensional permutation argument N/A N/A N/A N/A N/A permutation dtype kind i N/A N/A N/A ValueError expected integer dtype argument N/A N/A N/A N/A N/A len N/A set permutation N/A N/A max permutation 1 N/A N/A min permutation 0 N/A N/A N/A ValueError invalid permutation N/A permutation N/A