Package geometry :: Package manifolds :: Package todo :: Module stiefel
[hide private]
[frames] | no frames]

Source Code for Module geometry.manifolds.todo.stiefel

 1  from . import contract 
2 3 4 -def NonCompactStiefel(DifferentiableManifold):
5 ''' INCOMPLETE -- Matrices of fixed rank. ''' 6 7 @contract(n='N,N>0', p='P,P>0,P<=N') 8 def __init__(self, p, n): 9 ''' 10 Initializes the manifold structure. 11 12 :param n: dimension of space 13 :param p: rank of subspace 14 ''' 15 DifferentiableManifold.__init_(self) 16 self.n = n 17 self.p = p
18 19 def belongs(self, a): 20 assert False 21 22 def distance(self, a, b): 23 assert False 24 25 def logmap(self, a, b): 26 assert False 27 28 def expmap(self, a, vel): 29 assert False 30 31 def project_ts(self, base, vx): 32 assert False 33 34 def sample_uniform(self): 35 assert False 36 37 def normalize(self, x): 38 assert False 39