| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| | |
This prevents an overly large output array being allocated.
It also means the the residuals can be handled as a separate out argument in future.
|
|\ \
| |/
|/| |
DOC: rework documents and silence warnings during sphinx build
|
| | |
|
|/
|
|
|
| |
This does not yet enable any broadcasting, but makes doing so in future far
easier.
|
|
|
| |
[ci skip]
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make np.linalg.cond(A, p) always use SVD for p=+-2 and not only p=None.
Ensure inf is returned instead of nan when the condition number diverges
for +/-2 norm.
Ignore errors when inverting matrices for p = +-1, 'fro', +-inf, so that
spurious LinAlgErrors are not raised. In those cases, report
non-invertible matrices as having cond=inf.
Add additional tests for cond().
|
|
|
|
|
| |
Fixes #5727
The axis argument was introduced in #3387
|
|\
| |
| | |
MAINT: Adjust type promotion in linalg.norm
|
| |
| |
| |
| | |
Fixes gh-10364, partly by adjusting the promise in the release notes
|
| | |
|
|/ |
|
| |
|
|
|
|
| |
This takes gh-5909 a little further.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This fixes a bug in the creation of workspace arrays for a call
to `lapack_lite.zgelsd`, which led to segmentation faults when
a RHS was passed in that had larger size than the size of the
matrix.
|
| |
|
|
|
|
| |
The np.generic.astype method now accepts these keyword arguments
|
| |
|
|
|
|
| |
[ci skip]
|
|
|
|
|
| |
With a symmetric matrix, the more efficient `eigvalsh` method
can be used to find singular values.
|
| |
|
|
|
|
| |
Fixes #8826
|
| |
|
|
|
|
|
| |
- Use of `global` variable may have unintented consequences, so it is better to refactor the code
so that we do not need to use `global`.
|
|
|
|
|
| |
The default parameter used by LAPACK (which was our default) is not
very good, so implement a FutureWarning to change to a better default.
|
|
|
|
|
| |
Also add a hint to the documentation advising the use of moveaxis over rollaxis.
Tests for rollaxis are left alone.
|
|
|
|
| |
As of gh-7088, x is always a float array anyway
|
| |
|
|
|
|
| |
Bare except is very rarely the right thing
|
|
|
|
|
|
|
|
|
| |
The necessary fixup on the C-side of linalg has been done already
(i.e. the gufuncs correctly work for these empty arrays).
This also enables cholesky decomposition and fixes a small bug in pinv
handling.
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
|\
| |
| | |
ENH: allow argument to matrix_rank to be stacked
|
| |
| |
| |
| | |
Fixes #5905
|
| |
| |
| |
| | |
[ci skip]
|
| |
| |
| |
| |
| |
| |
| |
| | |
Since we only need to support python 2, we can remove any case where we just
pass a single string literal and use the b prefix instead.
What we can't do is transform asbytes("tests %d" % num), because %-formatting
fails on bytes in python 3.x < 3.5.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fixes #8212
det: return ones of the right shape
slogdet: return sign=ones, log=zeros of the right shape
pinv, eigvals(h?), eig(h?): return empty array(s?) of the right shape
svd & qr: not implemented, due to complex return value rules
|
|/ |
|
|\
| |
| | |
MAINT: Use the same exception for all bad axis requests
|
| |
| |
| |
| |
| |
| |
| | |
As a result, some exceptions change from ValueError to IndexError
This also changes the exception types raised in places where
normalize_axis_index is not quite appropriate
|
| |
| |
| |
| | |
Throw LinAlgError instead with an appropriate message
|
| |
| |
| |
| |
| |
| |
| |
| | |
We could make the log conditional on its argument being non-zero, but that entire expression is wrong anyway.
We could omit that calculation entirely and have LAPACK calculate it for us, but the routine in LAPACK is wrong anyway
We could upgrade the version of lapack shipped in lapack_lite, but the tool to do that is wrong anyway.
Let's leave that can of worms for another time, and just improve the error message for now.
|
|/
|
|
| |
Throw LinAlgError instead with an appropriate message
|
|\
| |
| | |
DOC: Enhance description/usage for np.linalg.eig*h
|
| |
| |
| |
| |
| |
| |
| | |
The UPLO parameter of eigvalsh was marked as deprecated, apparently in anticipation
of convergence with the scipy version which uses a `lower` boolean parameter. There is
no deprecation in the code, nor a lower parameter, so remove the deprecation.
[ci skip]
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Proposed documentation enhancement to the `np.linalg.eig*h`
routines.
The current documentation does not reflect the nature of the
underlying LAPACK routines and the way in which they interpet
the input. This documentation and examples are with view of
adding clarity to what is actually performed.
|
|\ \
| | |
| | | |
Pypy fixes
|
| |/ |
|
|/ |
|
| |
|