8000 DEP: linalg: deprecate `kron` · Issue #20077 · scipy/scipy · GitHub
[go: up one dir, main page]

Skip to content
DEP: linalg: deprecate kron #20077
@ilayn

Description

@ilayn

linalg.kron is a basic, data-movement intensive array operation. There is hardly any computation done other than scalar times array and quite some shuffling needed for higher order nd arrays. It is similar to a very special case of np.einsum in higher dimensions. Hence it doesn't make too much sense for us to carry around a suboptimal version of it since Numpy already supports batch array input https://numpy.org/doc/stable/reference/generated/numpy.kron.html

For comparison we also have Khatri-Rao product which is a Kronecker-like product and it is specific enough for us to have it but kron is not in my opinion.

See #20072 and pymc-devs/pytensor#640 for more context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    deprecatedItems related to behavior that has been deprecatedscipy.linalg

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0