This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / _external / array_api_extra / _lib / _utils / _helpers / is_python_scalar

function

scipy._external.array_api_extra._lib._utils._helpers:is_python_scalar

source: build-install/usr/lib/python3.14/site-packages/scipy/_external/array_api_extra/_lib/_utils/_helpers.py:146

Signature

def is_python_scalar(x: object) → TypeIs[complex]

Summary

Return True if x is a Python scalar, False otherwise.

Aliases

  • scipy.differentiate.xpx._lib._lazy.is_python_scalar