#13244: make some simplicial complexes faster
--------------------------------------+-------------------------------------
Reporter: jhpalmieri | Owner: jhpalmieri
Type: enhancement | Status: needs_review
Priority: minor | Milestone: sage-5.4
Component: algebraic topology | Resolution:
Keywords: sd40 simplicial | Work issues:
Report Upstream: N/A | Reviewers:
Authors: John Palmieri | Merged in:
Dependencies: | Stopgaps:
--------------------------------------+-------------------------------------
Comment (by tscrim):
Replying to [comment:4 jhpalmieri]:
> > However I would argue that each of these should be implemented as
(immutable) singletons
>
> I'm not sure what you mean by this. Do you mean that any two instances
of `simplicial_complexes.K3Surface()` should be identical as far as Python
is concerned? We could try making `SimplicialComplex` inherit from
`UniqueRepresentation`, for example, or maybe we could do this for
`SimplicialComplexExamples`. But I think it could be put off to another
ticket.
I think so. I think sage's `@cached_method` would take care of this...or
perhaps something like
{{{
def an_example(self):
if not self.has_attr(_an_example_output):
self._an_example_output = SimplicialComplex(facets)
return self._an_example_output
}}}
But I'm happy moving this to a later ticket.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13244#comment:5>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.