Ticket #4631 (closed defect: worksforme)
possible memory leak in matrix code?
| Reported by: | craigcitro | Owned by: | mabshoff |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.3.1 |
| Component: | memleak | Keywords: | |
| Cc: | robertwb | Author(s): | |
| Report Upstream: | N/A | Reviewer(s): | |
| Merged in: | Work issues: |
Description
So I was looking at another ticket, and noticed the following memory usage of Hermite normal form:
sage: M = random_matrix(ZZ,50,50) sage: get_memory_usage() '1104M+' sage: for _ in range(100): foo = M.hermite_form() ....: sage: get_memory_usage() '1170M+'
It could be that the memory is getting "lost" in some other way, but it might be nice to see why it's happening. In fact, it's probably got nothing to do with HNF:
sage: get_memory_usage() '1170M+' sage: for _ in range(100): foo = M.echelon_form() ....: sage: get_memory_usage() '1237M+'
I'm happy to find out that there's a reasonable explanation for this.
Change History
Note: See
TracTickets for help on using
tickets.
