Ticket #1046: 1046-fixes.patch
| File 1046-fixes.patch, 1.9 kB (added by robertwb, 3 months ago) |
|---|
-
a/sage/categories/pushout.py
old new 325 325 rank = 10 # ranking of functor, not rank of module 326 326 327 327 def __init__(self, n, is_sparse=False, inner_product_matrix=None): 328 # if nrows == ncols: 329 # Functor.__init__(self, Rings(), RingModules()) # takes a basering 330 # else: 331 # Functor.__init__(self, Rings(), MatrixAlgebras()) # takes a basering 332 Functor.__init__(self, Rings(), Rings()) 328 # Functor.__init__(self, Rings(), FreeModules()) # takes a basering 329 Functor.__init__(self, Objects(), Objects()) 333 330 self.n = n 334 331 self.is_sparse = is_sparse 335 332 self.inner_product_matrix = inner_product_matrix … … 351 348 class SubspaceFunctor(ConstructionFunctor): 352 349 rank = 11 # ranking of functor, not rank of module 353 350 def __init__(self, basis): 351 # Functor.__init__(self, FreeModules(), FreeModules()) # takes a basering 352 Functor.__init__(self, Objects(), Objects()) 354 353 self.basis = basis 355 354 def __call__(self, ambient): 356 355 return ambient.span_of_basis(self.basis) -
a/sage/structure/parent.pyx
old new 1234 1234 (FractionField, Integer Ring) 1235 1235 sage: f, R = QQ['x'].construction() 1236 1236 sage: f 1237 Poly nomialFunctor1237 Poly[x] 1238 1238 sage: R 1239 1239 Rational Field 1240 1240 sage: f(R)