Skip to content

eachslice(ones(3),dims=2) #51692

@PaulSoderlind

Description

@PaulSoderlind

fails on Julia 1.09 and 1.10-beta3, but eachcol(ones(3)) produces a ColumnSlices. In fact, test.arrayops.jl has a test for the latter on line 2275. Also, selectdim(ones(3),2,1) and view(ones(3),:,1) work.

This difference (inconsistency?) is inconvenient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrays[a, r, r, a, y, s]designDesign of APIs or of the language itself

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions