Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
J1MC83N opened this issue Jun 22, 2021 · 0 comments
Open

Comments

@J1MC83N
Copy link

J1MC83N commented Jun 22, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant