How do I slice an array by index in julia
wish helps you So say a=[[1 2];[3 4];[5 6]] and x is [1,2,1] how would I
extract the vector [1,4,5]; that is, the index-x element of each row. , You
can use broadcasting. Use Ref(a) to avoid broadcasting over a:
Date : October 05 2020, 07:00 PM , By : Kristine Miñoza Baya