ak.argcombinations — Awkward Array 2.8.2 documentation (original) (raw)

Defined in awkward.operations.ak_argcombinations on line 18.

ak.argcombinations(array, n, *, replacement=False, axis=1, fields=None, parameters=None, with_name=None, highlevel=True, behavior=None, attrs=None)#

Parameters:

Computes a Cartesian product (i.e. cross product) of array with itself that is restricted to combinations sampled without replacement, like ak.combinations, but returning integer indexes forak.Array.__getitem__.

The motivation and uses of this function are similar to those ofak.argcartesian. See ak.combinations and ak.argcartesian for a more complete description.