{ } Raw JSON

bundles / scipy 1.18.0 / scipy / _external / array_api_extra / _lib / _funcs / _apply_where

function

scipy._external.array_api_extra._lib._funcs:_apply_where

source: /scipy/_external/array_api_extra/_lib/_funcs.py:165

Signature

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

Summary

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

Aliases

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