Hey there,for the next step of implementing characteristic classes, I'd like to implement abstract vector bundles.1) Do you agree?
2) How would you proceed in doing so? It seems like it's not an easy task at all (at least if you wish having all functionalities).I mean, for characteristic classes, you only need abstract local frames. Maybe, I can start with that and leave other functionalities open for later? And if yes, how can you manage that?
sage: R.<x,y,z> = QQ[]
sage: Q = R.quotient([x^2*y-x,y^2-z,z^2-2*x*y-x-y-z])
sage: M = matrix([[Q(R.random_element()) for _ in range(3)] for _ in range(3)])
sage: M
[ -35/2*ybar*zbar + 1/2*zbar^2 - 1/2*xbar - 1/2*ybar + 1/2*zbar xbar*zbar + 3*zbar^2 - 1/3*ybar + 2/3*zbar -13*xbar^2 - 3*xbar*zbar - 1/2*ybar*zbar - 5*zbar^2 - 1/2*xbar]
[ 1/2*zbar^2 + 1/2*xbar - 3/2*ybar + 9/2*zbar 8*xbar*zbar + 2*zbar^2 - 1/38 2*xbar^2 - zbar^2 + ybar]
[ -1/6*ybar*zbar + 43/41*zbar^2 - xbar - ybar - zbar + 5/2 83/414*zbar^2 + 1/46*xbar + 1/46*ybar + 1/46*zbar -27/2*zbar^2 + 191/14*xbar + 13*ybar + 25/2*zbar]
sage: M.det()
8984729371/2006704*zbar^3 + 8060049989/2257542*xbar^2 + 14983126743/2006704*xbar*zbar - 78071057467/18060336*ybar*zbar + 2763514553/785232*zbar^2 + 648366185/125419*xbar - 23760880219/3010056*ybar - 573699071/73416*zbar
sage: type(M)
<type 'sage.matrix.matrix_generic_dense.Matrix_generic_dense'>---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-10-6078cc2f8a98> in <module>()
----> 1 det = matrix.determinant(); show(det)
/home/michi/GitProjects/sage/local/lib/python2.7/site-packages/sage/matrix/matrix2.pyx in sage.matrix.matrix2.Matrix.determinant (build/cythonized/sage/matrix/matrix2.c:15032)()
1675 if algorithm is None:
1676 try:
-> 1677 R_is_field_attempt = R.is_field()
1678 except NotImplementedError:
1679 R_is_field_attempt = False
/home/michi/GitProjects/sage/local/lib/python2.7/site-packages/sage/structure/category_object.pyx in sage.structure.category_object.CategoryObject.__getattr__ (build/cythonized/sage/structure/category_object.c:6865)()
832 AttributeError: 'PrimeNumbers_with_category' object has no attribute 'sadfasdf'
833 """
--> 834 return self.getattr_from_category(name)
835
836 cdef getattr_from_category(self, name):
/home/michi/GitProjects/sage/local/lib/python2.7/site-packages/sage/structure/category_object.pyx in sage.structure.category_object.CategoryObject.getattr_from_category (build/cythonized/sage/structure/category_object.c:7028)()
847 cls = self._category.parent_class
848
--> 849 attr = getattr_from_other_class(self, cls, name)
850 self.__cached_methods[name] = attr
851 return attr
/home/michi/GitProjects/sage/local/lib/python2.7/site-packages/sage/cpython/getattr.pyx in sage.cpython.getattr.getattr_from_other_class (build/cythonized/sage/cpython/getattr.c:2540)()
387 dummy_error_message.cls = type(self)
388 dummy_error_message.name = name
--> 389 raise AttributeError(dummy_error_message)
390 cdef PyObject* attr = instance_getattr(cls, name)
391 if attr is NULL:
AttributeError: 'MixedFormAlgebra_with_category' object has no attribute 'is_field'
However, the interesting part for me is the commutative subalgebra of even mixed forms which I could certainly implement. But I am not sure whether this will work due to the error message above...
Damn it, I feel so stupid! :D Thanks, this did the job. :)
--
You received this message because you are subscribed to a topic in the Google Groups "sage-devel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-devel/xhTN8O4qDdQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-devel+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/8ca550d5-5b8f-47c2-ab0e-a8104854afb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
How can I delete the actual branch on trac and create a new one?
And: How do I merge properly to the recent beta version?
I am sorry, it seems I'm too stupid for git trac.
--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/0557d425-84b1-409e-aef1-e2903d704458%40googlegroups.com.