Skip to content

array[::-1] size reported as 0 #77

@nbecker

Description

@nbecker

I have a function which accepts nd::Array<complex,1,0> const&. I get the size from
boost::size()

I just noticed that when I pass it a python array
x[::-1]

then boost::size(x) -> 0!

Is this expected? I find it hard to believe that I've been using ndarray for years and never saw this, since I have lots of code that works this way (accepts nd::Array<T,1,0> and uses boost::size)

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