Skip to content

ENH: expose matmat, matvec, vecmat ufuncs #12348

Closed

Description

@mattip

@charris commented on PR #12219 wishing to expose the vector-matrix matrix-vector loops function from the matmul ufunc.

We would need two ufuncs with signature (1,n),(n,p?)->(1,p?) and (m?,n),(n,1)->(m?,1), and could reuse the @TYPE@_matmul loops

Activity

  1. changed the title [-]ENH: create vector-stacking version of matmul (rather than matrix-stacking)[/-] [+]ENH: expose matmat, matvec, vecmat ufuncs[/+] on Nov 8, 2018
  2. eric-wieser commented on Nov 9, 2018

    @eric-wieser
    Member

    I'm not sure I understand those signatures - why the frozen 1 dimension?

  3. mhvk commented on Jan 25, 2024

    @mhvk
    Contributor

    gh-25675 adds possible matvec and vecmat functions, though vecmat is not identical to what matmul does, since it conjugates complex vectors (which seems more logical, probably best to discuss in gh-25675 or on the relevant mailing list discussion: https://mail.python.org/archives/list/[email protected]/thread/LX36TEAENIDSSFAKS6YLXXLWVOBABSEC/

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions