This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / _external / array_api_extra / _lib / _funcs / _apply_where

function

scipy._external.array_api_extra._lib._funcs:_apply_where

source: build-install/usr/lib/python3.14/site-packages/scipy/_external/array_api_extra/_lib/_funcs.py:183

Signature

def _apply_where(cond: Array, f1: Callable[..., Array], f2: Callable[..., Array] | None, fill_value: Array | complex | bool | None, *args: Array, kwkeys: list[str], xp: ArrayNamespace) → Array

Summary

Helper of apply_where. On Dask, this runs on a single chunk.

Aliases

  • scipy.differentiate.xpx._delegation._funcs._apply_where