is there a way to get 'numpy.linalg.svd()' code

Viewed 58

Since numpy.linalg.svd() is a predefined function i didn't find the inner code of it.

from scipy import linalg

u, s, v = np.linalg.svd(b, full_matrices=True)
1 Answers
import inspect
from scipy import linalg
import numpy as np
print(inspect.getsource(np.linalg.svd))
Related