| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
DOC: add missing details to linalg.lstsq docstring
|
| |
| |
| | |
[ci skip]
|
| |
| |
| |
| |
| |
| |
| | |
It turns out that lstsq also minimizes the 2-norm of x when a is
rank-deficient. I found that by searching the documentation for the
LAPACK library, which is the current implementation of lstsq (as of Dec
2020). Ref: https://www.netlib.org/lapack/lug/node27.html
|
|/
|
|
|
|
| |
* follow up to gh-18083 covering multi-line uses
of `re.compile(..` and some cases for `re.match(..`
with single (meta)character classes
|
| |
|
| |
|
| |
|
|
|
|
| |
Flagged by LGTM.
|
| |
|
|
|
|
|
| |
Specify that the sum of *squared* residuals are returned.
Use @ operator instead of * in code example.
|
|\
| |
| | |
ENH: Add placeholder stubs for all sub-modules
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
| |
We no longer need to use the compatibility function after dropping
support for Python 2.7. In some cases unicode was the correct string
type rather than the bytes of the compatibility version and bugs in the
array `__complex__` and array `__array_interface__` methods have been
fixed by changing that.
|
|
|
|
|
| |
* MAINT: Remove Duplicated Code
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
|
|
|
|
| |
Add linalg.multi_dot to the "See also" of numpy.dot,
change dot to numpy.dot for linking in the "See also" of multi_dot.
|
|
|
|
|
|
|
| |
Remove support for Apple Accelerate, since it is buggy. A build error should
occur on most or all setups if linked against Accelerate. Test or import failures
should occur on setups where Accelerate is picked up dynamically.
Co-authored-by: Warren Weckesser <warren.weckesser@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* ENH: update numpy.linalg.multi_dot to accept an `out` argument
* TST ensure value returned by numpy.linalg.multi_dot matches out
* DOC add note about initial call to numpy.linalg.multi_dot
* DOC add release note for #15715
Co-authored-by: Matti Picus <matti.picus@gmail.com>
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
Start the docstring with """Computes the vector x that approximatively
solves the equation :math:`a x = b`.""" instead of """Solves the
equation :math:`a x = b`""".
Co-Authored-By: Ross Barnowski <rossbar@berkeley.edu>
Closes gh-15874
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
|
|
|
|
| |
- Use '@' instead of 'dot'.
- Note that `scipy.linalg.schur` is better for
non-Hermitian normal matrices.
|
|\
| |
| | |
BUG: Fix for SVD not always sorted with hermitian=True
|
| | |
|
|/ |
|
|\
| |
| | |
MAINT: Cleanup references to python2
|
| | |
|
|\ \
| | |
| | | |
STY,MAINT: avoid 'multiple imports on one line'
|
| |/
| |
| |
| |
| |
| | |
* PEP 8: "Imports should usually be on separate lines"
* Where modified, sort imported modules alphabetically
* Clean-up unused imports from these expanded lines
|
|/
|
| |
More sys.version cleanup.
|
|
|
|
|
| |
This PR const qualifies the dimension and strides arguments of PyUFuncGenericFunction. Const qualified arguments make it simpler to reason about the behaviour of these ufuncs and prevents accidental mutation. As the const is now required this PR also const qualifies calls to PyUFuncGenericFunction inside the NumPy source code.
This closes #15252
|
| |
|
|\
| |
| | |
MAINT: linalg: use symbol suffix in fallback lapack_lite
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When building the fallback lapack_lite library for numpy.linalg,
add symbol suffix to the routines when using 64-bit integer indices.
Adjust the lapack_lite generator script to also output a header file
that renames the symbols. Moreover, also rename symbols from f2c.c, to
be sure (because they have short and generic names that may clash).
This avoids a name clash with BLAS/LAPACK names, which can cause
problems in corner cases on platforms where inadvertent symbol
overriding in dynamic libraries can occur.
|
|\ \
| | |
| | | |
BUG: Add some missing C error handling
|
| | | |
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | | |
MAINT: Remove unnecessary 'from __future__ import ...' statements
|
| |/
| |
| |
| |
| | |
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
|
|/
|
|
|
| |
Dropping the support for python 2, the difference in module setup do not have to be accounted
for anymore. This removes the macros and ifdef's related to module setup code and python 2
support.
|
|
|
|
|
| |
Make numpy.__config__.show() to print information about the fallback
lapack_lite library when it is used.
|
| |
|
|
|
|
|
| |
Build the lapack fallback library (used when no LAPACK installed) with
64-bit integer size when building on a 64-bit platform.
|
| |
|