Skip to content

flip function assumes the input sequence is a Vector or List, it can be Matrix as well.  #1042

@sambitdash

Description

@sambitdash

The flip

flip(f, xs) = reverse(f.(reverse(xs)))

function assumes the input sequences are a list but mostly the data can be in matrix form. Multiplying with a cross-diagonal identity matrix can achieve this effectively. Moreover, Zygote does not support reverse of matrices.

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