Skip to content

Automatic flattening on outer array structures #14

@zxm403089989

Description

@zxm403089989

Similar as the example StackViews.jl example on repeated array. Suppose we have a 2-dimensional nested array A:

julia> using StackViews
julia> A = rand(100, 100);
julia> n = 100;
julia> StackView([A for _ in 1:n,_ in 1:n])
(100, 100, 10000)

We can see that StackView ignores the for loop structure, and flatten outer layer into a vector automatically. In principal, it should be an array with size (100,100,100,100). Is there anyway that we can persevere array size in StackView?

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