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

maximum of Any array #9276

Closed
bjarthur opened this issue Dec 8, 2014 · 2 comments
Closed

maximum of Any array #9276

bjarthur opened this issue Dec 8, 2014 · 2 comments
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@bjarthur
Copy link
Contributor

bjarthur commented Dec 8, 2014

if maximum(tmp) succeeds when tmp::Array{Any}, shouldn't maximum(tmp,1) succeed as well?

julia> tmp = convert(Array{Any},rand(3,4))
3x4 Array{Any,2}:
 0.781922  0.765787  0.714231   0.787834
 0.715081  0.118564  0.0907171  0.624957
 0.884211  0.285455  0.217336   0.777541

julia> maximum(tmp)
0.8842111707356262

julia> maximum(tmp,1)
ERROR: `zero` has no method matching zero(::Type{Any})
 in maximum at reducedim.jl:230

julia> maximum(convert(Array{Float64},tmp),1)
1x4 Array{Float64,2}:
 0.884211  0.765787  0.714231  0.787834

julia> VERSION
v"0.4.0-dev+1993"
@ivarne ivarne added the bug Indicates an unexpected problem or unintended behavior label Dec 9, 2014
@ihnorton
Copy link
Member

same fundamental question/decision as #8319?

@jakebolewski
Copy link
Member

closing as a dup of 8319.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

4 participants