__init__.py 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. """
  2. Core Linear Algebra Tools
  3. =========================
  4. =============== ==========================================================
  5. Linear algebra basics
  6. ==========================================================================
  7. norm Vector or matrix norm
  8. inv Inverse of a square matrix
  9. solve Solve a linear system of equations
  10. det Determinant of a square matrix
  11. slogdet Logarithm of the determinant of a square matrix
  12. lstsq Solve linear least-squares problem
  13. pinv Pseudo-inverse (Moore-Penrose) calculated using a singular
  14. value decomposition
  15. matrix_power Integer power of a square matrix
  16. matrix_rank Calculate matrix rank using an SVD-based method
  17. =============== ==========================================================
  18. =============== ==========================================================
  19. Eigenvalues and decompositions
  20. ==========================================================================
  21. eig Eigenvalues and vectors of a square matrix
  22. eigh Eigenvalues and eigenvectors of a Hermitian matrix
  23. eigvals Eigenvalues of a square matrix
  24. eigvalsh Eigenvalues of a Hermitian matrix
  25. qr QR decomposition of a matrix
  26. svd Singular value decomposition of a matrix
  27. cholesky Cholesky decomposition of a matrix
  28. =============== ==========================================================
  29. =============== ==========================================================
  30. Tensor operations
  31. ==========================================================================
  32. tensorsolve Solve a linear tensor equation
  33. tensorinv Calculate an inverse of a tensor
  34. =============== ==========================================================
  35. =============== ==========================================================
  36. Exceptions
  37. ==========================================================================
  38. LinAlgError Indicates a failed linear algebra operation
  39. =============== ==========================================================
  40. """
  41. from __future__ import division, absolute_import, print_function
  42. # To get sub-modules
  43. from .info import __doc__
  44. from .linalg import *
  45. from numpy._pytesttester import PytestTester
  46. test = PytestTester(__name__)
  47. del PytestTester