MCPcopy Create free account
hub / github.com/PythonOT/POT / pinv

Method pinv

ot/backend.py:952–960  ·  view source on GitHub ↗

r""" Computes the pseudo inverse of a matrix. This function follows the api from :any:`numpy.linalg.pinv`. See: https://numpy.org/devdocs/reference/generated/numpy.linalg.pinv.html

(self, a, hermitian=False)

Source from the content-addressed store, hash-verified

950 raise NotImplementedError()
951
952 def pinv(self, a, hermitian=False):
953 r"""
954 Computes the pseudo inverse of a matrix.
955
956 This function follows the api from :any:`numpy.linalg.pinv`.
957
958 See: https://numpy.org/devdocs/reference/generated/numpy.linalg.pinv.html
959 """
960 raise NotImplementedError()
961
962 def sqrtm(self, a):
963 r"""

Callers 7

test_empty_backendFunction · 0.95
kernel_nystroemFunction · 0.45
pinvMethod · 0.45
pinvMethod · 0.45
pinvMethod · 0.45
pinvMethod · 0.45
pinvMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_empty_backendFunction · 0.76