| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
in documentation (#15740)
* Clarify `fro` and `nuc` usage in linalg.norm documentation
(see #15533).
* Add improved error handling when getting Frobenius norm from
a vector (see #15533).
* Fix comment in linalg norm test.
Closes gh-15533.
|
|\
| |
| | |
BUG: Fix for SVD not always sorted with hermitian=True
|
| | |
|
|/ |
|
|
|
|
|
|
|
| |
Inheriting from object was necessary for Python 2 compatibility to use
new-style classes. In Python 3, this is unnecessary as there are no
old-style classes.
Dropping the object is more idiomatic Python.
|
|
|
|
|
| |
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
|
|
|
|
|
| |
LAPACK lwork call does not require much memory, and can be used as a
smoketest to whether LAPACK really uses 64-bit integers.
|
|
|
|
| |
Fix wrong multiplier for /proc/meminfo, and do style cleanups.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
ENH: Add a hermitian argument to `pinv` and `svd`, matching `matrix_rank`
|
| |
| |
| |
| | |
Related to gh-9436
|
|\ \
| |/
|/| |
TST: coverage for _commonType()
|
| |
| |
| |
| |
| |
| |
| | |
* test uncovered path in
linalg.linalg._commonType() when an
unsupported inexact scalar array is
used
|
|/
|
|
|
|
|
|
|
|
|
|
| |
(#12448)
* Review F401,F841,F842 flake8 errors (unused variables, imports)
* Review comments
* More tests in test_installed_npymath_ini
* Review comments
|
|\
| |
| | |
TST: test dims match on lstsq()
|
| | |
|
|/
|
|
|
| |
* tensorinv() was previously completely
uncovered by unit tests
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* replace most usage of SkipTest() with
pytest.skip()
* where possible, we avoid use of the standard
library SkipTest because unittest skipping
is routed through the pytest nose compatibility
layer in that scenario, which can prevent an easy
trace back to the test line where the skip
occurred
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When code does:
```python
def test():
def check(dtype):
# code
for dtype in [types]:
check(dtype)
```
replace it with:
```python
@pytest.mark.parametrize('dtype', [types])
def test(dtype):
# code
```
|
| |
|
|\
| |
| | |
BUG: Make matrix_power again work for object arrays.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This fixes a regression introduced in #10985. Using matmul instead of
dot lost the object type while adding the ability to deal with matrix
stacks. This implements a partial fix by using dot for 2-D object
arrays, but object array stacks cannot be handled.
Closes #11635.
|
|/ |
|
|
|
| |
Ensure LWORK and LDA respect the requirements of the lapack methods (zgeqrf, dgeqrf, zungqr, dorgqr)
|
|
|
|
| |
part of #8654
|
|
|
|
|
| |
Add regression test that checks for certain bugs where results from sdot
change if certain libraries are imported first.
|
|\ |
|
| |
| |
| |
| |
| | |
This is in preparation for deprecation and eventual removal
of the matrix class.
|
|/
|
|
|
| |
Since linalg allows stacks of matrices generally, there is no
reason not to allow it for matrix_power.
|
|
|
|
|
| |
That function is nose specific and has not worked since `__init__` files
were added to the tests directories.
|
|
|
|
|
|
|
|
|
|
|
| |
Use standard pytest markers everywhere in the numpy tests. At this point
there should be no nose dependency. However, nose is required to test
the legacy decorators if so desired.
At this point, numpy test cannot be run in the way with runtests, rather
installed numpy can be tested with `pytest --pyargs numpy` as long as
that is not run from the repo. Run it from the tools directory or some
such.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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().
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
With a symmetric matrix, the more efficient `eigvalsh` method
can be used to find singular values.
|
|
|
|
| |
Fixes #8826
|
|
|
|
|
| |
The default parameter used by LAPACK (which was our default) is not
very good, so implement a FutureWarning to change to a better default.
|
|
|
|
|
|
|
|
| |
This allows pytest to run with duplicate test file names. Note that
`python <path-to-test-file>` no longer works with this change, nor will
a simple `pytest numpy`, because numpy is imported from the numpy
repository. However, `python runtests.py` and `>>> numpy.test()` are
still available.
|
|
|
|
|
|
| |
I don't know what that argument was used for, but it showis up in old
tests and is not explicitly used within the tests. I assume it was part
of an old testing framework and is now longer needed.
|
|
|
|
|
|
|
| |
This is the case for x in {int, bool, str, float, complex, object}.
Using the np.{x} version is deceptive as it suggests that there is a
difference. This change doesn't affect any external behaviour. The
`long` type is missing in python 3, so np.long is still useful
|
| |
|
|
|
|
| |
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
|