Skip to content

Generalize AstSum0S and AstSum and also AstDot0S and AstDot1InS #114

@Mikolaj

Description

@Mikolaj

These would probably take a list of dimensions to sum and to leave alone, maybe in the form of a StaticShX value or similar. An alternative is to always sum first n dimensions (where n comes from SNat @n) and use transposition to recover the more general functionality.

A related task is to then vectorize the generalized two constructors. Once they can be vectorized, we can use them and keep them early, instead of, as we do now, expressing them in terms of simpler operations and recognizing them back again in the contraction phase.

Another related task is to similarly generalize the dual operations related to replication so that we can differentiate the new operations efficiently and readably.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions