Skip to content

slices along fixed dimensions #31

@simonbyrne

Description

@simonbyrne

I often want to do something like:

julia> A = HybridArray{Tuple{2,4,StaticArrays.Dynamic()}}(fill(0.0, 2, 4, 3));

julia> v = view(A,:,StaticArrays.SUnitRange(2,3),:)
2×2×3 view(::HybridArray{Tuple{2,4,StaticArrays.Dynamic()},Float64,3,3,Array{Float64,3}}, :, [2, 3], :) with eltype Float64 with indices SOneTo(2)×SOneTo(2)×Base.OneTo(3):
[:, :, 1] =
 0.0  0.0
 0.0  0.0

[:, :, 2] =
 0.0  0.0
 0.0  0.0

[:, :, 3] =
 0.0  0.0
 0.0  0.0

Is it possible to make this return a SizedArray?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions