Skip to content

Vector is to Array as XX is to SubArray #39059

@tlienart

Description

@tlienart

SubVector doesn't currently exist in Julia, would the following definition make sense?

const SubVector{T} = SubArray{T, 1}

similar to

const Vector{T} = Array{T,1}

This could maybe be added there:

happy to open a PR for this if people think this is useful? (there's this old issue: #3224 but I'm not sure it's relevant)

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrays[a, r, r, a, y, s]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions