Return a flattened matrix. Refer to `numpy.ravel` for more documentation. Parameters ---------- order : {'C', 'F', 'A', 'K'}, optional The elements of `m` are read using this index order. 'C' means to index the elements in C-like ord
(self, order='C')
| 900 | return self.__array__().ravel() |
| 901 | |
| 902 | def ravel(self, order='C'): |
| 903 | """ |
| 904 | Return a flattened matrix. |
| 905 | |
| 906 | Refer to `numpy.ravel` for more documentation. |
| 907 | |
| 908 | Parameters |
| 909 | ---------- |
| 910 | order : {'C', 'F', 'A', 'K'}, optional |
| 911 | The elements of `m` are read using this index order. 'C' means to |
| 912 | index the elements in C-like order, with the last axis index |
| 913 | changing fastest, back to the first axis index changing slowest. |
| 914 | 'F' means to index the elements in Fortran-like index order, with |
| 915 | the first index changing fastest, and the last index changing |
| 916 | slowest. Note that the 'C' and 'F' options take no account of the |
| 917 | memory layout of the underlying array, and only refer to the order |
| 918 | of axis indexing. 'A' means to read the elements in Fortran-like |
| 919 | index order if `m` is Fortran *contiguous* in memory, C-like order |
| 920 | otherwise. 'K' means to read the elements in the order they occur |
| 921 | in memory, except for reversing the data when strides are negative. |
| 922 | By default, 'C' index order is used. |
| 923 | |
| 924 | Returns |
| 925 | ------- |
| 926 | ret : matrix |
| 927 | Return the matrix flattened to shape `(1, N)` where `N` |
| 928 | is the number of elements in the original matrix. |
| 929 | A copy is made only if necessary. |
| 930 | |
| 931 | See Also |
| 932 | -------- |
| 933 | matrix.flatten : returns a similar output matrix but always a copy |
| 934 | matrix.flat : a flat iterator on the array. |
| 935 | numpy.ravel : related function which returns an ndarray |
| 936 | |
| 937 | """ |
| 938 | return N.ndarray.ravel(self, order=order) |
| 939 | |
| 940 | @property |
| 941 | def T(self): |
no outgoing calls