def intersect(
a: _BufferType,
b: _BufferType,
/,
*,
capabilities: Capability | int | None = ...,
stream: int | None = ...,
) -> int Similar to numpy.intersect1d, returning the size of the intersection rather than its elements.
Parameters
capabilitiesCapability | int | None | Capabilities to run within: every CPU one by default, or for packed operands the mask that packed them. | |
|---|---|---|
streamint | None | A GPU stream pointer, left None on the CPU. |