summaryrefslogtreecommitdiff
path: root/numpy/linalg/linalg.py
Commit message (Collapse)AuthorAgeFilesLines
...
* DOC: change Numpy to NumPy in dosctrings and commentsPierre de Buyl2016-09-061-1/+1
| | | | The strings in error messages were left untouched
* ENH: Add stacklevel to all (or almost all) our function callsSebastian Berg2016-09-021-2/+2
|
* Fix versionadded tagsStefan van der Walt2016-07-151-1/+1
|
* DOC: Clarify the effect of rcond in numpy.linalg.lstsq.Stuart Archibald2016-06-151-2/+3
| | | | | | | The `rcond` `kwarg` to `numpy.linalg.lstsq` influences the rank determination computation by specifying the level at which singular values should be *treated* as zero, it does not cause the singular values to be "set" to zero.
* MAINT: linalg: fix comment, simplify mathCJ Carey2016-05-141-6/+6
| | | | | | | The comment was a simple copy-paste error. I find the math easier to look at in this form, with the common terms factored out.
* BUG: linalg.norm(): Don't convert object arrays to floatMatthias Geier2016-04-291-2/+2
| | | | This fixes #7575 (Regression in linalg.norm() using dtype=object).
* DOC: Update `norm` docstring to include examples that reflect that all ↵John Kirkham2016-01-221-8/+8
| | | | computations are done with floating point numbers.
* BUG: Make sure that the `ord=0` case returns a float.John Kirkham2016-01-221-1/+1
|
* BUG: In `norm`, always cast non-floating point arrays to 64-bit floats. ↵John Kirkham2016-01-221-0/+3
| | | | Otherwise, weird integer roundoff errors give faulty results in some cases.
* DOC: Use print only as function when print_function is imported from __future__gfyoung2015-12-191-1/+1
| | | | Closes gh-6863.
* MAINT: Remove useless semicolonRémy Léone2015-11-071-1/+1
|
* BUG,ENH: allow linalg.cond to work on a stack of matricesSebastian Berg2015-09-251-7/+7
| | | | | | | This was buggy, because the underlying functions supported it partially but cond was not aware of this. Closes gh-6351
* DOC: linalg.eig will return an array of a real type if thejason king2015-09-161-3/+4
| | | | | complex part equates to exactly 0. Updating doco to say this. Doco implied return type was always complex.
* DOC: Fix docstring warnings in documetation generation.Charles Harris2015-07-011-3/+15
| | | | | | | | | | | | Most of these fixes involve putting blank lines around .. versionadded:: x.x.x and .. deprecated:: x.x.x Some of the examples were also fixed.
* DOC: docstring typos _ssyevd -> _syevdalex2015-06-221-2/+2
|
* MAINT: eigenvalues returned by eigh are ascendingalex2015-06-221-1/+2
|
* Merge pull request #5990 from charris/1.10-deprecated-removalCharles Harris2015-06-211-0/+2
|\ | | | | 1.10 deprecated removal
| * MAINT: Mark deprecation warning with a date and Numpy version.Charles Harris2015-06-211-0/+2
| | | | | | | | | | | | This is to make it easier to find and remove deprecated features. It would be a good idea if all deprecations were made with similar comments.
* | Merge pull request #5988 from argriffing/eigvalsh-ordering-updateCharles Harris2015-06-191-1/+1
|\ \ | | | | | | MAINT: notice that eigvalsh returns a sorted array
| * | MAINT: notice that eigvalsh returns a sorted arrayalex2015-06-191-1/+1
| |/
* | DOC: update eigvalsh docstring examplealex2015-06-191-1/+1
|/
* DOC: Fix typo in documentationamir2015-06-121-4/+4
| | | | [ci skip]
* MAINT: conditional copy=False in some astype callsalex2015-05-221-4/+16
|
* MAINT: skip copy=False for det and logdetalex2015-05-221-3/+2
|
* MAINT: use copy=False in a few astype callsalex2015-05-221-18/+21
|
* BUG: Fix linalg matrix norms when given negative axes.RittaNarita2015-03-301-2/+6
|
* MAINT: use the fast elementwise 2-norm implementation more often in linalg.normalex2015-03-201-11/+15
|
* DOC: `linalg.eig()`: Add "See Also" ref to `eigh()`Stuart Berg2015-03-101-2/+5
| | | | [skip ci]
* DOC: Move versionadded 1.6.0 in slogdet to better place.Charles Harris2015-03-071-1/+1
| | | | | | | Put it up top, it matches better with the versionadded 1.8.0 for stacked matrices. [skip ci]
* DOC: Give version when various linalg functions accepted stacked arrays.Gert-Ludwig Ingold2015-03-071-0/+20
| | | | | | Version information added in the Notes section of the functions accepting stacked arrays and in the discussion of this feature in the linalg overview.
* DOC: Reconcile docstrings and function signatures where they disagreeRobert McGibbon2015-03-021-1/+1
| | | | | Fixed typos in docstrings were updated for functions where the parameter names in the docstring didn't match the function signature.
* Fix typo in slogdet doctdihp2015-01-121-1/+1
| | | | | fix typo in slogdet docstring "than" -> "then"
* DOC: 'sum of singular values' -> 'sum of the singular values'alex2015-01-021-1/+1
|
* MAINT: remove nuclear norm from the list of options for computing condition ↵alex2014-12-251-6/+4
| | | | number
* ENH: nuclear normalex2014-12-251-8/+15
|
* DOC: fix typos and clarify multi_dot docstring..Stefan Otte2014-12-011-11/+13
| | | | | | | - fix singular/plural issues - don't switch between "order" and "ordering"; use "order" - clarify the shapes of the arguments - don't "import numpy as np" in docstring
* ENH: add `multi_dot`: dot with multiple arguments.Stefan Otte2014-11-101-2/+185
| | | | | | | | | | | `np.linalg.multi_dot` computes the dot product of two or more arrays in a single function call, while automatically selecting the fastest evaluation order. The algorithm for selecting the fastest evaluation order uses dynamic programming and closely follows: Cormen, "Introduction to Algorithms", Chapter 15.2, p. 370-378
* MAINT: Give a more helpful error for bad axis specifications.Eric Moore2014-10-201-0/+4
| | | | | | | | | This specifically addresses passing things like axis=[0,1] which gave an error message that an int was required. The real error was that if the axis isn't None or a tuple, it was simply wraped in a tuple, so the ufunc that is eventually called ended up with a list. The error message is matches that in core/src/multiarray/conversion_utils.c::PyArray_ConvertMultiAxis.
* ENH: Add keepdims to linalg.normEric Moore2014-10-171-15/+30
|
* DOC: fix return shape of tensorinv docFrederic2014-07-171-1/+1
|
* DOC: Fixed documentation on lstsq function on when it return an empty ↵Cimarron Mittelsteadt2014-03-061-1/+1
| | | | residuals array
* Merge pull request #3895 from larsmans/norm-dotCharles Harris2014-01-091-1/+6
|\ | | | | ENH: use dot in linalg.norm
| * ENH: optimize complex vector normLars Buitinck2014-01-031-2/+6
| | | | | | | | Also used ravel(order='K') to prevent copies.
| * ENH: use dot (BLAS!) in linalg.normLars Buitinck2013-10-111-1/+2
| |
* | BUG: fix complex norm of higher orderJulian Taylor2014-01-021-1/+1
| | | | | | | | | | | | asfarray truncates the complex part, so it must be avoided for complex types. Closes gh-4156.
* | BUG: linalg: norm fails on longdouble, signed intLars Buitinck2013-12-261-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the following bug with longdouble: >>> x = np.arange(10, dtype=np.longdouble) >>> np.linalg.norm(x, ord=3) Traceback (most recent call last): File "<ipython-input-5-7ee53a8ac142>", line 1, in <module> np.linalg.norm(x, ord=3) File "/tmp/v/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 2090, in norm return add.reduce(absx**ord, axis=axis)**(1.0/ord) UnboundLocalError: local variable 'absx' referenced before assignment As well as the handling of minimal values for signed integers: >>> x = np.array([-2**31], dtype=np.int32) >>> np.linalg.norm(x, ord=3) /tmp/v/lib/python2.7/site-packages/numpy/linalg/linalg.py:2090: RuntimeWarning: invalid value encountered in double_scalars return add.reduce(absx**ord, axis=axis)**(1.0/ord) nan
* | MAINT: Refactor eigh and eigvalsh and associated tests.Charles Harris2013-10-261-6/+6
| | | | | | | | | | | | Do not convert the UPLO argument to a bytestring, it is not necessary. Distribute parts of the eigh tests into the appropriate TestEigvalsh or TestEigh test class.
* | BUG: reject invalid UPLO with ValueError in eigh/eigvalshJulian Taylor2013-10-251-2/+6
| | | | | | | | to prevent unintentional use of wrong function. Restores 1.7 behavior.
* | BUG: fix broken UPLO of eigh in python3Julian Taylor2013-10-251-3/+4
|/ | | | | | UPLO was cast to bytes and compared to a string which is always false in python3. closes gh-3977
* BUG: linalg: fix eigvalsh return type (always real-valued)Pauli Virtanen2013-10-071-1/+1
|