summaryrefslogtreecommitdiff
path: root/numpy/linalg/linalg.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/linalg/linalg.py')
-rw-r--r--numpy/linalg/linalg.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/linalg/linalg.py b/numpy/linalg/linalg.py
index 1ee2b9bf8..c4575e377 100644
--- a/numpy/linalg/linalg.py
+++ b/numpy/linalg/linalg.py
@@ -9,7 +9,7 @@ dgeev, zgeev, dgesdd, zgesdd, dgelsd, zgelsd, dsyevd, zheevd, dgetrf,
zgetrf, dpotrf, zpotrf, dgeqrf, zgeqrf, zungqr, dorgqr.
"""
-__all__ = ['solve', 'tensorsolve', 'tensorinv',
+__all__ = ['matrix_power', 'solve', 'tensorsolve', 'tensorinv',
'inv', 'cholesky',
'eigvals',
'eigvalsh', 'pinv',
@@ -26,6 +26,7 @@ from numpy.core import array, asarray, zeros, empty, transpose, \
isfinite, size
from numpy.lib import triu
from numpy.linalg import lapack_lite
+from numpy.core.defmatrix import matrix_power
fortran_int = intc
@@ -134,6 +135,7 @@ def _assertNonEmpty(*arrays):
if size(a) == 0:
raise LinAlgError("Arrays cannot be empty")
+
# Linear equations
def tensorsolve(a, b, axes=None):
@@ -326,6 +328,7 @@ def inv(a):
a, wrap = _makearray(a)
return wrap(solve(a, identity(a.shape[0], dtype=a.dtype)))
+
# Cholesky decomposition
def cholesky(a):
@@ -1053,6 +1056,7 @@ def det(a):
sign = add.reduce(pivots != arange(1, n+1)) % 2
return (1.-2.*sign)*multiply.reduce(diagonal(a), axis=-1)
+
# Linear Least Squares
def lstsq(a, b, rcond=-1):