#16362: Orthogonal Polar Graph
-------------------------------------+-------------------------------------
Reporter: ncohen | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.3
Component: graph theory | Resolution:
Keywords: | Merged in:
Authors: Nathann Cohen | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
public/ticket/16362 | f45989e2e2e75488ac6a9bd68abd1c3503d4e8f8
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by ncohen):
Oh, and about the multiplication : I was no able to make it work, because
of error message I do not understand.
{{{
2247 def F(x):
-> 2248 return x*M*x
2249
2250 def FF(x,y):
/home/ncohen/.Sage/local/lib/python2.7/site-
packages/sage/structure/element.so in
sage.structure.element.Vector.__mul__ (sage/structure/element.c:19059)()
/home/ncohen/.Sage/local/lib/python2.7/site-
packages/sage/structure/coerce.so in
sage.structure.coerce.CoercionModel_cache_maps.bin_op
(sage/structure/coerce.c:8274)()
TypeError: 'sage.modules.vector_modn_dense.Vector_modn_dense' object
cannot be interpreted as an index
}}}
Or even
{{{
/home/ncohen/.Sage/local/lib/python2.7/site-
packages/sage/graphs/generators/families.pyc in F(x)
2246
2247 def F(x):
-> 2248 return x*M*x.column()
2249
2250 def FF(x,y):
/home/ncohen/.Sage/local/lib/python2.7/site-
packages/sage/schemes/generic/morphism.pyc in __mul__(self, right)
378 """
379 if not isinstance(right, SchemeMorphism):
--> 380 raise TypeError, "right (=%s) must be a SchemeMorphism
to multiply it by %s"%(right, self)
381 if right.codomain() != self.domain():
382 raise TypeError, "self (=%s) domain must equal right
(=%s) codomain"%(self, right)
TypeError: right (=[((0, 1), 1), ((2, 2), 1), ((4, 4), 1), ((5, 5), 1),
((3, 3), 1)]) must be a SchemeMorphism to multiply it by (0 : 0 : 0 : 0 :
0 : 1)
}}}
And I am tired to fight with the category bugs that have been left unfixed
for years.
If you can make it work I don't mind, otherwise I will chose a good
night's sleep over this debugging hell `:-P`
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/16362#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.