~inkscape.dev/inkscape-devlibs64/trunk

« back to all changes in this revision

Viewing changes to python/Lib/site-packages/numpy/matrixlib/defmatrix.py

  • Committer: Eduard Braun
  • Date: 2016-10-22 16:51:19 UTC
  • Revision ID: eduard.braun2@gmx.de-20161022165119-9eosgy6lp8j1kzli
Update Python to version 2.7.12

Included modules:
  coverage 4.2
  lxml 3.6.4
  numpy 1.11.2
  scour 0.35
  six 1.10.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
233
233
    Examples
234
234
    --------
235
235
    >>> a = np.matrix('1 2; 3 4')
236
 
    >>> print a
 
236
    >>> print(a)
237
237
    [[1 2]
238
238
     [3 4]]
239
239
 
277
277
        elif ndim == 1:
278
278
            shape = (1, shape[0])
279
279
 
280
 
        order = False
 
280
        order = 'C'
281
281
        if (ndim == 2) and arr.flags.fortran:
282
 
            order = True
 
282
            order = 'F'
283
283
 
284
284
        if not (order or arr.flags.contiguous):
285
285
            arr = arr.copy()
519
519
 
520
520
        Parameters
521
521
        ----------
522
 
        order : {'C', 'F', 'A'}, optional
523
 
            Whether to flatten in C (row-major), Fortran (column-major) order,
524
 
            or preserve the C/Fortran ordering from `m`.
525
 
            The default is 'C'.
 
522
        order : {'C', 'F', 'A', 'K'}, optional
 
523
            'C' means to flatten in row-major (C-style) order. 'F' means to
 
524
            flatten in column-major (Fortran-style) order. 'A' means to
 
525
            flatten in column-major order if `m` is Fortran *contiguous* in
 
526
            memory, row-major order otherwise. 'K' means to flatten `m` in
 
527
            the order the elements occur in memory. The default is 'C'.
526
528
 
527
529
        Returns
528
530
        -------
781
783
 
782
784
    def argmax(self, axis=None, out=None):
783
785
        """
784
 
        Indices of the maximum values along an axis.
 
786
        Indexes of the maximum values along an axis.
 
787
 
 
788
        Return the indexes of the first occurrences of the maximum values
 
789
        along the specified axis.  If axis is None, the index is for the
 
790
        flattened matrix.
785
791
 
786
792
        Parameters
787
793
        ----------
851
857
 
852
858
    def argmin(self, axis=None, out=None):
853
859
        """
854
 
        Return the indices of the minimum values along an axis.
 
860
        Indexes of the minimum values along an axis.
 
861
 
 
862
        Return the indexes of the first occurrences of the minimum values
 
863
        along the specified axis.  If axis is None, the index is for the
 
864
        flattened matrix.
855
865
 
856
866
        Parameters
857
867
        ----------