Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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