Julia uses a dot vector function for elementary manipulation ..
Running f.(x)means f(x[1]), f(x[2])... are executed sequentially
However, suppose I have a function that takes two arguments, for example g(x,y)
I wish g(x[1],y[1]), g(x[2],y[1]), g(x[3],y[1]), ..., g(x[1],y[2]), g(x[2],y[2]), g(x[3],y[2]), ...
Is there any way to evaluate all combinations of xand y?
sholi source
share