Am Montag, 16. Mai 2016 14:08:08 UTC+2 schrieb Christopher Fisher:
>
>
> It appears that a::Float64 is converting your array into separate 
> instances of Float64. Either of these should work:
>
> tupleFun(a::Array{Float64,2}) = (a+1, a-1)
> tupleFun(rand(3,3)) 
>
> tupleFun(a) = (a+1, a-1)
> tupleFun(rand(3,3)) 
>
Thanks, but it only works if the function on 'a' also works at an array. I 
need it for a function which only works on single elements.

 

Reply via email to