Skip to content

sum over multiple dimensions gives "objects of type AFArray not callable" #278

@J1MC83N

Description

@J1MC83N

sum(::AFArray; dims::Tuple) is defined but gives:

julia> sum(ones(AFArray,2,5),dims=(1,2))
ERROR: MethodError: objects of type AFMatrix{Float64} are not callable
Use square brackets [] for indexing an Array.

I believe it is defaulting to sum(f, a; kw...) and treating the AFArray as a function

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