GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

New issue
Copy link
New issue
Copy link
Open
Open
Updating the docs to reflect the .ss namespace#490
Copy link

Description

@Transurgeon
Transurgeon
opened on Aug 11, 2023
Issue body actions

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.

Reacted by Isaac Virshup

Activity

  1. eriknw commented on Aug 11, 2023

    @eriknw
    eriknw
    on Aug 11, 2023
    Member
    More actions

    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

  2. eriknw commented on Aug 11, 2023

    @eriknw
    eriknw
    on Aug 11, 2023
    Member
    More actions

    I'll raise this issue in our next weekly meeting.

  3. Transurgeon commented on Aug 11, 2023

    @Transurgeon
    Transurgeon
    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.

    Reacted by Erik Welch
  4. eriknw commented on Aug 11, 2023

    @eriknw
    eriknw
    on Aug 11, 2023
    Member
    More actions

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.