summaryrefslogtreecommitdiff
path: root/numpy/matrixlib
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Move set_module to numpy.core to use without C importSebastian Berg2022-11-241-1/+2
|
* TST,MAINT: Replace most `setup` with `setup_method` (also teardown)Sebastian Berg2022-10-271-1/+1
| | | | | | | | In some cases, the replacement is clearly not what is intended, in those (where setup was called explicitly), I mostly renamed `setup` to `_setup`. The `test_ccompile_opt` is a bit confusing, so left it right now (this will probably fail)
* ENH: allow importlib.LazyLoader to work with numpy and add test of this (#22045)Dan Schult2022-07-271-0/+1
|
* MAINT: Split `numpy.typing` into a public and private componentBas van Beek2022-03-181-1/+1
| | | | i.e. `numpy.typing` and `numpy._typing`
* STY: Use subscriptable `collections.abc` types over the generic aliases in …Bas van Beek2021-12-231-1/+2
|
* STY: Use subscriptable `builtins` types over the generic aliases in `typing`Bas van Beek2021-12-232-6/+4
|
* ENH: Add annotations for `np.matrix`Bas van Beek2021-10-122-5/+22
|
* ENH: Add `__path__` annotations to all sub-packagesBas van Beek2021-07-251-0/+1
|
* ENH: Add annotations for `<module>.test` objectsBas van Beek2021-07-251-0/+3
|
* ENH: Add improved placeholder annotations for `np.matrixlib`Bas van Beek2021-04-231-4/+7
|
* MAINT: Add missing `__all__` annotationsBas van Beek2021-02-011-1/+3
|
* BUG: Fixed an issue where `.pyi` weren't picked up by numpy sub-packagesBas van Beek2020-11-031-0/+1
|
* ENH: Replace module-level `__getattr__` with explicitly defined objectsBas van Beek2020-08-191-2/+4
|
* ENH: Add placeholder stubs for all sub-modulesBas van Beek2020-08-191-0/+4
|
* DEP: Deprecate ufunc.outer with matrix inputsSebastian Berg2020-07-161-1/+3
| | | | | | | | | | Previously we converted matrices to arrays for the user, since `np.outer` does not make sense for matrix. This deprecates that usage (which in almost all cases will result in an error). The main reason for this deprecation is to remove all direct references of matrix from the NumPy codebase, so that it is easier to move it out of NumPy eventually.
* DOC: Updated documentation for numpy.squeeze (#16627)Tapajyoti Bose2020-06-301-1/+1
| | | | | | DOC: Updated documentation for squeeze Improve clarity by replacing terms like "single-dimensional" and "singleton dimension" with "axes of length one"
* Merge pull request #16156 from WarrenWeckesser/deprecate-dualSebastian Berg2020-05-191-2/+2
|\ | | | | DEP: Deprecate `numpy.dual`.
| * DEP: Deprecate `numpy.dual`.Warren Weckesser2020-05-041-2/+2
| | | | | | | | | | | | Add a deprecation warning in the `numpy.dual` module, and remove the use of `numpy.dual` from the few places where it is used in the numpy code.
* | MAINT: Chain exceptions and use NameError in np.bmat (#16215)bartosz-grabowski2020-05-141-2/+2
| | | | | | | | | | | | | | This solution is related to the issue #15986. I also made a change to the newer string formatting. Uses NameError, which prints nicer, and is actually the more correct error type. Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* | Mark tests as a subpackage rather than data.Hameer Abbasi2020-05-061-1/+1
|/
* DOC: Add missing bracket (gh-16051)Chunlin2020-04-251-1/+1
| | | Add missing closing brackets, script to generate the list in the PR gh-16051.
* convert shebang from python to python3 (#15687)Changqing Li2020-03-041-1/+1
| | | | Signed-off-by: Changqing Li <changqing.li@windriver.com>
* Merge pull request #15379 from sethtroisi/misc_cleanups3Matti Picus2020-01-231-17/+10
|\ | | | | MAINT: Python2 Cleanups
| * MAINT: Python2 CleanupsSeth Troisi2020-01-211-17/+10
| |
* | MAINT: Revise imports from collections.abc moduleMike Taves2020-01-221-7/+2
|/
* MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-056-16/+16
| | | | | | | 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 ...' statementsJon Dufresne2020-01-0310-20/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* DOC: convert `None` to bare None or ``None``mattip2019-10-151-1/+1
|
* MAINT: Convert property to @propertyAlex Watt2019-02-242-13/+18
|
* MAINT: Move pickle import to numpy.compatCharles Harris2019-02-211-1/+1
| | | | | | | The pickle module was being imported from numpy.core.numeric. It was defined there in order to use pickle5 when available in Python3 and cpickle in Python2. The numpy.compat module seems a better place for that.
* TST, DOC: enable refguide_checkTyler Reddy2018-12-141-22/+23
| | | | | | | | * ported the refguide_check module from SciPy for usage in NumPy docstring execution/ verification; added the refguide_check run to Azure Mac OS CI * adjusted NumPy docstrings such that refguide_check passes
* MAINT: Review F401,F841,F842 flake8 errors (unused variables and imports) ↵Roman Yurchak2018-12-066-12/+0
| | | | | | | | | | | | (#12448) * Review F401,F841,F842 flake8 errors (unused variables, imports) * Review comments * More tests in test_installed_npymath_ini * Review comments
* ENH: set correct __module__ for objects in numpy's public APIStephan Hoyer2018-11-131-0/+6
| | | | | | | | | | | | | Fixes GH-12271 Tests verify that everything in ``dir(numpy)`` either has ``__module__`` set to ``'numpy'``, or appears in an explicit whitelist of undocumented functions and exported bulitins. These should eventually be documented or removed. I also identified a handful of functions for which I had accidentally not setup dispatch for with ``__array_function__`` before, because they were listed under "ndarray methods" in ``_add_newdocs.py``. I guess that should be a lesson in trusting code comments :).
* MAINT, TST import pickle from numpy.core.numericPierre Glaser2018-10-101-1/+1
| | | | | | | | All imports of pickle from numpy modules are now done this way: >>> from numpy.core.numeric import pickle Also, some loops on protocol numbers are added over pickle tests that were not caught from #12090
* reverted to previous array_dump and array_dumps versionPierre Glaser2018-10-051-1/+1
|
* removed usage of np.ndarray.dump[s]Pierre Glaser2018-10-051-1/+1
|
* loop over protocol for pickle testsPierre Glaser2018-10-051-4/+5
|
* MAINT: remove unused stdlib importsEmil Hessman2018-09-301-2/+0
|
* TST: Replace calls to unittest.TestCase.fail (#11933)Roman Yurchak2018-09-121-11/+3
| | | | | | | | After the pytest migration, test classes no longer inherit from unittest.TestCase and and the fail method does not exist anymore. In all these cases, we can use assert_raises and assert_raises_regex instead
* BUG: Fix matrix PendingDeprecationWarning suppression for pytest 3.8+.Charles Harris2018-09-067-50/+7
| | | | | | | | | | | | | | | Pytest < 3.8 ignored warnings issued during test collection, but that changed in pytest 3.8 and the method NumPy used to suppress the PendingDeprecationWarning for matrices no longer worked, or rather, was exposed as not working. The fix here is to suppress the warning in pytest.ini and pytesttester.py , which should work as long as the tests are the only places left where NumPy uses matrices. An alternate fix is to delay the construction of matrices in the tests until they are actually run, which has the virtue of test localization but is a bit more complicated. See https://github.com/pytest-dev/pytest/issues/3945 for discussion.
* TST: Add tests for expand_dimsEric Wieser2018-07-301-0/+8
|
* MAINT: Move pytesttester outside of np.testing, to avoid creating ↵Eric Wieser2018-07-021-1/+1
| | | | | | | | unnecessary import dependencies pytesttester is used by every single subpackage, so making it depend on np.testing just creates cyclic dependencies that can lead to circular imports Relates to #11457
* TST: Ignore PendingDeprecationWarning in matrixlib tests.Marten van Kerkwijk2018-05-297-0/+56
|
* DEP: give PendingDeprecationWarning for use of the matrix subclass.Marten van Kerkwijk2018-05-291-0/+11
|
* MAINT: move remaining MaskedArray matrix tests to matrixlib.Marten van Kerkwijk2018-05-221-1/+21
|
* Merge pull request #11010 from mhvk/poly-matrix-tests-to-matrixlibCharles Harris2018-05-151-0/+361
|\ | | | | Move remaining Matrix tests to matrixlib
| * MAINT: move matrix tests in testing to matrixlib.Marten van Kerkwijk2018-04-291-1/+41
| |
| * MAINT: move matrix tests in lib to matrixlib.Marten van Kerkwijk2018-04-291-3/+169
| |
| * MAINT: move matrix tests in core, polynomial to matrixlib.Marten van Kerkwijk2018-04-291-0/+155
| |
* | Merge branch 'master' into linalg-move-matrix-powerCharles Harris2018-05-141-0/+95
|\ \