1 from . import contract
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