summaryrefslogtreecommitdiff
path: root/numpy/matrixlib
Commit message (Collapse)AuthorAgeFilesLines
* 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
|\ \
| * \ Merge pull request #10975 from mhvk/linalg-matrix-tests-to-matrixlibCharles Harris2018-05-121-0/+95
| |\ \ | | |/ | |/| MAINT: move linalg tests using matrix to matrixlib
| | * MAINT: move linalg tests using matrix to matrixlibMarten van Kerkwijk2018-04-271-0/+95
| | | | | | | | | | | | | | | This is in preparation for deprecation and eventual removal of the matrix class.
* | | MAINT: Move matrix_power to linalgMarten van Kerkwijk2018-04-292-111/+6
|/ / | | | | | | | | The docstring already assumed it was in linalg, and this ensures linalg becomes completely independent of matrixlib.
* | MAINT: move all masked array matrix tests to matrixlib.Marten van Kerkwijk2018-04-271-0/+211
|/ | | | | | Further progress in isolating matrix in preparation of its deprecation. There is one place left with an explicit reference to matrix (in MaskedArray.count), which is to be solved later.
* MAINT: Remove all uses of run_module_suite.Charles Harris2018-04-064-24/+6
| | | | | That function is nose specific and has not worked since `__init__` files were added to the tests directories.
* TST: Update modules `test` to PytestTester.Charles Harris2018-04-041-2/+3
| | | | | | | | Numpy can now be tested using the standard `python -c"import numpy; numpy.test()"` construct.
* MAINT: Remove "bench" from testing modules `__init__`s.Charles Harris2018-03-311-1/+0
| | | | | The "bench" testing with the old bench files is no longer supported. These days we use `runtests.py` and `asv`.
* DOC: Fix minor typosluz.paz2018-03-301-1/+1
| | | Found via `codespell -q 3 -I ../numpy-whitelist.txt`
* TST: Import abstract classes from collections.abcFrederick Lefebvre2018-03-141-2/+7
| | | | | | | | Abstract collection classes accessed from the collections module have been deprecated since Python 3.3. They should be accessed through collections.abc. When run with Python 3.7, the deprecation warning cause multiple tests to fail.
* MAINT: Remove now-unnecessary implementation of matrix str/reprEric Wieser2017-12-061-13/+0
|
* ENH: don't show boolean dtype, as it is impliedEric Wieser2017-11-131-3/+3
|