cupy.ascontiguousarray#
- cupy.ascontiguousarray(a, dtype=None)[source]#
Returns a C-contiguous array.
- Parameters:
a (cupy.ndarray) – Source array.
dtype – Data type specifier.
- Returns:
If no copy is required, it returns
a
. Otherwise, it returns a copy ofa
.- Return type:
See also