numpy.asfortranarray

numpy.asfortranarray(a, dtype=None)

Return an array laid out in Fortran-order in memory.

Parameters:

a : array_like

Input array.

dtype : data-type, optional

By default, the data-type is inferred from the input data.

Returns:

out : ndarray

Array interpretation of a in Fortran (column-order).

See also

asarray
Similar function which always returns ndarrays.
ascontiguousarray
Convert input to a contiguous array.
asfarray
Convert input to a floating point ndarray.
asanyarray
Convert input to an ndarray with either row or column-major memory order.
asarray_chkfinite
Similar function which checks input for NaNs and Infs.
fromiter
Create an array from an iterator.
fromfunction
Construct an array by executing a function on grid positions.

Previous topic

numpy.asfarray

Next topic

numpy.asscalar

This Page

Quick search