napf.base.enforce_contiguous#

napf.base.enforce_contiguous(array, dtype=None)[source]#

If input is an instance / subclass of np.ndarray, this will check if they are configuous. If so, returns same object, else turns makes it contiguous and returns.

Parameters:

array (array-like)

Returns:

contiguous_array

Return type:

array-like