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

broadcast over tuple #17547

Closed
Keno opened this issue Jul 22, 2016 · 1 comment
Closed

broadcast over tuple #17547

Keno opened this issue Jul 22, 2016 · 1 comment

Comments

@Keno
Copy link
Member

Keno commented Jul 22, 2016

Should this work:

julia> sin.((1,2))
ERROR: MethodError: no method matching getindex(::Tuple{Int64,Int64}, ::CartesianIndex{2})
 in collect(::Base.Generator{UnitRange{Int64},Base.Broadcast.##1#2{Tuple{Tuple{Int64,Int64}}}}) at ./array.jl:268
 in broadcast_t(::Function, ::Type{Any}, ::Tuple{Int64,Int64}, ::Vararg{Tuple{Int64,Int64},N}) at ./broadcast.jl:222
 in broadcast(::Function, ::Tuple{Int64,Int64}) at ./broadcast.jl:230
 in eval(::Module, ::Any) at ./boot.jl:234
 in macro expansion at ./REPL.jl:92 [inlined]
 in (::Base.REPL.##3#4{Base.REPL.REPLBackend})() at ./event.jl:46
@yuyichao
Copy link
Contributor

Dup of #17411

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

2 participants