GeezerVison is showing github.com — Updating the docs to reflect the ``.ss`` namespace · Issue #490 · python-graphblas/python-graphblas
Updating the docs to reflect the .ss namespace #490
Description
Hello @eriknw, thanks for your help with pointing me to the .ss namespace for methods such as flatten() and reshape().
I have since found some implementations examples in your unit-test located here: ./graphblas/tests/test_matrix.py:. It seems to cover exactly what we are looking for and appears to work the same as scipy.sparse. There is even support for Fortran order flattening :).
I was simply wondering if we could reflect some of these methods in the docs? And perhaps expand a bit more on the .ss namespace? The only place where I could find mentions of the namespace is here. And the API reference doesn't seem to cover the namespace either.
Activity
eriknw commented on Aug 11, 2023
You bet! Glad they work.
And I agree that it would be great if these were documented on the docs website. Any chance I could talk you into making a PR? ;) I'd be happy to answer questions and help out as I'm able.
Also related: #428
eriknw commented on Aug 11, 2023
I'll raise this issue in our next weekly meeting.
Transurgeon commented on Aug 11, 2023
ContributorAuthor
More actions
Yes, I'd be happy to make PR.
I was wondering also, how can we adjust the suite-sparse settings? For example, we are considering defaulting to using csc matrices instead of csr.
eriknw commented on Aug 11, 2023
Yes, I'd be happy to make PR.
Awesome ❤️ !
I was wondering also, how can we adjust the suite-sparse settings? For example, we are considering defaulting to using csc matrices instead of csr.
To change default orientation (which is rowwise), do:
gb.ss.config["format"] = "by_col"
To change the orientation of a single Matrix, do:
A.ss.config["format"] = "by_col"
To see details of the config options, I usually look in IPython via gb.ss.config? or A.ss.config? or e.g. help(gb.ss.config).
Metadata
Metadata
Development
No branches or pull requestsIssue actions