Skip to content

Clean up linalg-related modules #1848

@jessegrabowski

Description

@jessegrabowski

Description

We're doing a slow and partial reorganization of slinalg.py and nlinalg.py to more logical groupings (solve, decomposition, etc). But it's gotten to be a bit messy. We now have:

tensor/nlinalg.py
tensor/slinalg.py
tensor/linalg.py
tensor/_linalg/rewriting.py
tensor/_linalg/tridiagonal.py
tensor/rewriting/linalg.py
link/numba/dispatch/nlinalg.py
link/numba/dispatch/slinalg.py
link/numba/dispatch/decomposition/...
link/numba/dispatch/solve/...

In tests, there are also several:

tests/tensor/linalg/test_rewriting.py
tests/rewriting/test_linalg.py
tests/link/numba/linalg/solve/...
tests/link/numba/test_nlinalg.py
tests/link/numba/test_slinalg.py

The ones that amuse me the most are the linalg/test_rewriting.py and rewriting/test_linalg.py. I guess we're just missing test/linalg_rewriting.py.

What I'd like to see is every module (link, tensor, and rewriting) have the same directory structure (decomposition, solve, ?)

Related to #1213

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions