magtrack._cupy ============== .. py:module:: magtrack._cupy .. autoapi-nested-parse:: Compatibility helpers for optional CuPy support. This module exposes ``cp`` and ``cupyx`` objects that either proxy to the real CuPy modules (when available) or provide lightweight NumPy/SciPy fallbacks. Attributes ---------- .. autoapisummary:: magtrack._cupy._cupy_available magtrack._cupy._cupy magtrack._cupy.cp Functions --------- .. autoapisummary:: magtrack._cupy.is_cupy_available magtrack._cupy.check_cupy Module Contents --------------- .. py:data:: _cupy_available :value: False .. py:data:: _cupy :value: None .. py:data:: cp .. py:function:: is_cupy_available() -> bool Return ``True`` when the real CuPy package is importable. .. py:function:: check_cupy() -> bool Perform a more thorough check to ensure CuPy and CUDA are usable.