Skip to content

Office Hours (2026-12-08) #181

Backlog
Backlog

Description

@github-actions

🌟 Join Us for Weekly Office Hours! 🌟

Have questions about stdlib? Need help fixing a bug, figuring out what to do next, or just looking for feedback? Join our weekly office hours to connect with project maintainers, stay updated on the latest project news, and chat with other community members. This is a great opportunity to ask questions, share ideas, and engage directly with the stdlib team.

Everyone is welcome—drop in and say hello!

Time

UTC Tue 08-Dec-2026 17:30 (05:30 PM):

Timezone Date/Time
US / Pacific Tue 08-Dec-2026 09:30 (09:30 AM)
US / Mountain Tue 08-Dec-2026 10:30 (10:30 AM)
US / Central Tue 08-Dec-2026 11:30 (11:30 AM)
US / Eastern Tue 08-Dec-2026 12:30 (12:30 PM)
EU / Western Tue 08-Dec-2026 17:30 (05:30 PM)
EU / Central Tue 08-Dec-2026 18:30 (06:30 PM)
EU / Eastern Tue 08-Dec-2026 19:30 (07:30 PM)
Moscow Tue 08-Dec-2026 20:30 (08:30 PM)
Chennai Tue 08-Dec-2026 23:00 (11:00 PM)
Hangzhou Wed 09-Dec-2026 01:30 (01:30 AM)
Tokyo Wed 09-Dec-2026 02:30 (02:30 AM)
Sydney Wed 09-Dec-2026 04:30 (04:30 AM)

or in your local time:

Links

Joining the meeting

Agenda

  • Have specific things to discuss? Please comment in the issue thread below to add specific items to the agenda.

Activity

  1. added
    Office Hours
    on Dec 2, 2026
  2. ujjwalv01 commented on Dec 3, 2026

    @ujjwalv01
    Member
    • About least squares

    As you suggested last week, I traced what the main libraries call for least squares:

    • NumPy: only dgelsd (SVD).
    • SciPy: gelsd by default, with gelsy and gelss as options.
    • PyTorch: gelsy by default on CPU.
    • Julia: its own pivoted QR, following the same steps as gelsy.

    dgels is the fastest, but it assumes A has full rank and silently gives a wrong answer if it does not, which is probably why NumPy and SciPy do not use it. dgelsy is almost as fast and handles any rank. dgelsd is 3 to 5 times slower but the most robust.

    In stdlib, dgelsy only needs QR routines, and its first blockers are the PRs I am already working on (dtrsm, dtrmm, dlarfg, dlarft, dlarfb). dgelsd also needs the bidiagonal SVD routines, and most of those are still open PRs.

    What we can do: start with dgelsy. After that, I have two suggestions:

    1. Add dgels next, as the faster option for full rank matrices. dgelsd would come once the SVD routines are merged.
    2. Work toward dgelsd next. Add the unblocked SVD routines nobody has started (dlasdt, dlasd5, dlaed6, dlasd4), then the dgelsd driver once the SVD PRs are merged, so stdlib has the same driver NumPy and SciPy use. dgels would come later.

    A top-level lstsq would come once the matrix dispatch work is ready. What are your thoughts on this?

    • About strided hypothesis tests

    I was also reading stdlib-js/google-summer-of-code#179. Only ztest and ztest2 have strided versions so far, and ttest is in progress.

    What is the current state of this idea, and what would the roadmap look like for tests like vartest and pcorrtest?

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

    Office Hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions