gustaf.utils.arr.make_c_contiguous#

gustaf.utils.arr.make_c_contiguous(array, dtype=None)[source]#

Make given array like object a c contiguous np.ndarray. dtype is optional. If None is given, just returns None.

Parameters:
  • array (array-like)

  • dtype (type or str) – (Optional) numpy interpretable type or str, describing type.

Returns:

c_contiguous_array

Return type:

np.ndarray