Skip to content

Error when summing view of StrideArray #63

@cafaxo

Description

@cafaxo

I am getting the following error when summing over a view:

julia> using StrideArrays

julia> zeros_sa(size...) = StrideArray(zeros(Float32, size...), static.(size));

julia> A = zeros_sa(10, 10);

julia> sum(A)
0.0f0

julia> sum(view(A, :, :))
0.0f0

julia> sum(view(A, static(1):static(2), :))
ERROR: MethodError: no method matching iterate(::Nothing)
[...]

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