예제 #1
0
 def fun(x):
     w, v = np.linalg.eigh(x, 'U')
     return tuple((w, np.abs(v)))
예제 #2
0
 def fun(x):
     u, s, v = np.linalg.svd(x, full_matrices=False)
     return tuple((u, s, v))
     return grad(fun)(x)
예제 #3
0
 def fun(x):
     w, v = np.linalg.eigh(x)
     return tuple((w, v))
예제 #4
0
 def fun(x):
     u, s, v = np.linalg.svd(x, full_matrices=False)
     return tuple((u, s, v))
     return grad(fun)(x)
예제 #5
0
 def fun(x):
     w, v = np.linalg.eigh(x, 'U')
     return tuple((w, v))
예제 #6
0
 def fun(x):
     u, s, v = np.linalg.svd(x, full_matrices=False)
     return tuple((np.abs(u), s, np.abs(v)))
예제 #7
0
 def fun(x):
     w, v = np.linalg.eig(x)
     return tuple((np.abs(w), np.abs(v)))