Check out the Hyperspy Workshop May 13-17, 2024 Online

is_cupy_array#

pyxem.utils.diffraction.is_cupy_array(array)[source]#

Convenience function to determine if an array is a cupy array

Parameters:

array (array) – The array to determine whether it is a cupy array or not.

Returns:

True if it is cupy array, False otherwise.

Return type:

bool