numpy.ascontiguousarray

numpy.ascontiguousarray(a, dtype=None)

Return a contiguous array in memory (C order).

Parameters:

a : array_like

Input array.

dtype : string

Type code of returned array.

Returns:

out : ndarray

Contiguous array of same shape and content as a with type dtype.

Previous topic

numpy.asanyarray

Next topic

numpy.asmatrix

This Page

Quick search