From c94c18a5ab2241ada64ae8055efdc62c840f47a3 Mon Sep 17 00:00:00 2001 From: Lucas Colley Date: Tue, 20 Aug 2024 10:53:06 +0100 Subject: [PATCH] DOC: document `is_*_namespace` fns --- docs/helper-functions.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/helper-functions.rst b/docs/helper-functions.rst index 22cf7199..f44dc070 100644 --- a/docs/helper-functions.rst +++ b/docs/helper-functions.rst @@ -40,7 +40,7 @@ instead, which would be wrapped. Inspection Helpers ------------------ -These convenience functions can be used to test if an array comes from a +These convenience functions can be used to test if an array or namespace comes from a specific library without importing that library if it hasn't been imported yet. @@ -51,3 +51,11 @@ yet. .. autofunction:: is_jax_array .. autofunction:: is_pydata_sparse_array .. autofunction:: is_ndonnx_array +.. autofunction:: is_numpy_namespace +.. autofunction:: is_cupy_namespace +.. autofunction:: is_torch_namespace +.. autofunction:: is_dask_namespace +.. autofunction:: is_jax_namespace +.. autofunction:: is_pydata_sparse_namespace +.. autofunction:: is_ndonnx_namespace +.. autofunction:: is_array_api_strict_namespace