Skip to content

Dyadic mapslices #5140

@mschauer

Description

@mschauer

It would be a nice feature if mapslices could have a dyadic counterpart (like map has map(f, a, b)) which takes two matrices A and B and two slices and applies the two argument function f to pairs of slices of A and B.

Many operations can be expressed in that form, as a silly example left and right matrix multiplication by a diagonal matrix diagm(d) would correspond to mapslices(.*, A, 1, d, 1) respective mapslices(.*, A, 2, d, 1)

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