Skip to content

sparse linear algebra: nonzero_positions is slow #4648

@boothby

Description

@boothby

Currently, generic sparse matrices inherit their nonzero_positions method from matrix0.py. This should be trivial to fix.

def nonzero_positions(self):
    return self._entries.keys()

Component: linear algebra

Keywords: sparse

Issue created by migration from https://trac.sagemath.org/ticket/4648

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions