You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it would be advantageous to broadcast functions which return multiple values, without creating intermediate arrays of tuples. Eg
f(x) = x, x+1
x =reshape(1:6,2,3)
@syntax_to_be_determined a, b =f.(x) # creating new arrays
a2 =similar(a)
b2 =similar(b)
a2, b2 .=f.(x) # in-place syntax is free, currently gives MethodError for broadcast!
Sometimes it would be advantageous to broadcast functions which return multiple values, without creating intermediate arrays of tuples. Eg
so that
would hold.
(short discussion in Discourse)
The text was updated successfully, but these errors were encountered: