Skip to content

lazyperm function for making permutations lazy #46

@AntonOresten

Description

@AntonOresten
function lazyperm(x::AbstractArray{<:Any,N}) where N
	return PermutedDimsArray(x, ntuple(identity, N))
end

With Rewrap.jl, reshapes should keep the PermutedDimsArray wrapper, and permutes should just change the permutation.

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