@@ -215,7 +215,7 @@ def __copy__(self):
215
215
sage: P == Q
216
216
True
217
217
"""
218
- P = [copy (self [i ]) for i in range (self .codomain ().ambient_space ().num_components ())]
218
+ P = [copy (self [i ]) for i in range (self .codomain ().ambient_space ().n_components ())]
219
219
return (self .codomain ().point (P , False ))
220
220
221
221
def __iter__ (self ):
@@ -250,7 +250,7 @@ def __len__(self):
250
250
4
251
251
"""
252
252
image = self .codomain ().ambient_space ()
253
- return image .dimension () + image .num_components ()
253
+ return image .dimension () + image .n_components ()
254
254
255
255
def __hash__ (self ):
256
256
"""
@@ -308,7 +308,7 @@ def normalize_coordinates(self):
308
308
sage: P
309
309
(1 : 2 : 3 , 2 : 1 : 3)
310
310
"""
311
- for i in range (self .codomain ().ambient_space ().num_components ()):
311
+ for i in range (self .codomain ().ambient_space ().n_components ()):
312
312
self [i ].normalize_coordinates ()
313
313
314
314
def dehomogenize (self , L ):
@@ -352,7 +352,7 @@ def dehomogenize(self, L):
352
352
PP = self .codomain ()
353
353
A = PP .affine_patch (L )
354
354
pt = []
355
- for i in range (PP .ambient_space ().num_components ()):
355
+ for i in range (PP .ambient_space ().n_components ()):
356
356
pt .extend (self [i ].dehomogenize (L [i ]))
357
357
return A (pt )
358
358
@@ -377,9 +377,9 @@ def scale_by(self, t):
377
377
"""
378
378
if not isinstance (t , (tuple , list )):
379
379
raise TypeError ("%s must be a list or tuple" % t )
380
- if len (t ) != self .codomain ().ambient_space ().num_components ():
380
+ if len (t ) != self .codomain ().ambient_space ().n_components ():
381
381
raise TypeError ("%s must have same number of components as %r" % (t , self ))
382
- for i in range (self .codomain ().ambient_space ().num_components ()):
382
+ for i in range (self .codomain ().ambient_space ().n_components ()):
383
383
self [i ].scale_by (t [i ])
384
384
385
385
def change_ring (self , R , ** kwds ):
@@ -463,7 +463,7 @@ def global_height(self, prec=None):
463
463
if K not in NumberFields () and K != ZZ and not isinstance (K , (sage .rings .abc .Order , sage .rings .abc .AlgebraicField )):
464
464
raise TypeError ("must be over a number field or a number field order or QQbar" )
465
465
466
- n = self .codomain ().ambient_space ().num_components ()
466
+ n = self .codomain ().ambient_space ().n_components ()
467
467
return max (self [i ].global_height (prec = prec ) for i in range (n ))
468
468
469
469
def local_height (self , v , prec = None ):
@@ -501,7 +501,7 @@ def local_height(self, v, prec=None):
501
501
if K not in NumberFields ():
502
502
raise TypeError ("must be over a number field or a number field order" )
503
503
504
- n = self .codomain ().ambient_space ().num_components ()
504
+ n = self .codomain ().ambient_space ().n_components ()
505
505
return max (self [i ].local_height (v , prec = prec ) for i in range (n ))
506
506
507
507
0 commit comments