Skip to content

any equivalent to np.tensordot? #1517

Open

Description

@hugolgst

Activity

  1. nilgoyette commented on Jun 3, 2025

    @nilgoyette
    Collaborator

    I don't think we have that function. IIUC, this is not strictly related to ML so I think it would fit in ndarray.

  2. hugolgst commented on Jun 14, 2025

    @hugolgst
    Author
  3. jmg049 commented on Nov 8, 2025

    @jmg049
    Contributor

    I'm preparing a PR for this right now. I have the implementation ready and just need to focus on some tests, docs and where exactly to put the functionality.

    I think in my fork I have it under linalg and impl_linalg.rs

    Generally speaking I think there's probably a few more functions like tensordot and also the phase angle functionality I have in another PR.

    I think they're a low hanging fruit of sorts since we have solid reference implementations (Numpy, etc) and they are mostly self contained and do not interfere with broader functionality beyond making the codebase a bit bigger and running some more tests.

    But adding them provides some benefit to users who find themselves reaching for them.

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

    good first issueA good issue to start contributing to ndarray!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions