absolute newb here, with no formal coding education (science). Came here
from the Fortran and IDL territory.
I have two quick questions, and I apologize beforehand if these have been
discussed before:
(1) is there an equivalent of IDL function "where" in julia? a function
that returns indices of the array elements that satisfy the specified
condition(s), i.e. [1,2,3]=where(a < 5), with a=[4,4,4,5,5,5]
(2) can I declare a multidimentional array in a single line? in 1D I see
that I can do following:
array1D = [i^2 for i=1:10]
how would I do something like:
array2D = [i+j for i=1:10, for j=1:10]
thanks,
Tuguldur