bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / _external / array_api_extra / _delegation / union1d
function
scipy._external.array_api_extra._delegation:union1d
source: build-install/usr/lib/python3.14/site-packages/scipy/_external/array_api_extra/_delegation.py:1485
Signature
def union1d(a: Array, b: Array, /, xp: ArrayNamespace | None = None) → ArraySummary
Find the union of two arrays.
Extended Summary
Return the unique, sorted array of values that are in either of the two input arrays.
Parameters
a, b: ArrayInput arrays. They are flattened internally if they are not already 1D.
xp: array_namespace, optionalThe standard-compatible namespace for
aandb. Default: infer.
Returns
: ArrayUnique, sorted union of the input arrays.
Notes
This function is not compatible with jax.jit. See the docstring of the corresponding JAX function for more information.
See also
- jax.numpy.union1d
Corresponding function in JAX.
Aliases
scipy.differentiate.xpx.union1d