| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
The strings in error messages were left untouched
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This fixes #7575 (Regression in linalg.norm() using dtype=object).
|
|
|
|
| |
computations are done with floating point numbers.
|
| |
|
|
|
|
| |
Otherwise, weird integer roundoff errors give faulty results in some cases.
|
|
|
|
| |
Closes gh-6863.
|
| |
|
|
|
|
|
|
|
| |
This was buggy, because the underlying functions supported it
partially but cond was not aware of this.
Closes gh-6351
|
|
|
|
|
| |
complex part equates to exactly 0. Updating doco to say this.
Doco implied return type was always complex.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|\
| |
| | |
1.10 deprecated removal
|
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | | |
MAINT: notice that eigvalsh returns a sorted array
|
| |/ |
|
|/ |
|
|
|
|
| |
[ci skip]
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
[skip ci]
|
|
|
|
|
|
|
| |
Put it up top, it matches better with the versionadded 1.8.0 for
stacked matrices.
[skip ci]
|
|
|
|
|
|
| |
Version information added in the Notes section of the functions
accepting stacked arrays and in the discussion of this feature
in the linalg overview.
|
|
|
|
|
| |
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 docstring
"than" -> "then"
|
| |
|
|
|
|
| |
number
|
| |
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
|
|
| |
`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
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
residuals array
|
|\
| |
| | |
ENH: use dot in linalg.norm
|
| |
| |
| |
| | |
Also used ravel(order='K') to prevent copies.
|
| | |
|
| |
| |
| |
| |
| |
| | |
asfarray truncates the complex part, so it must be avoided for complex
types.
Closes gh-4156.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
to prevent unintentional use of wrong function. Restores 1.7 behavior.
|
|/
|
|
|
|
| |
UPLO was cast to bytes and compared to a string which is always false in
python3.
closes gh-3977
|
| |
|