I need a method to return the select elements in a 1D array where the the position of the elements are stored in another array as follow:
double[] A = new double[11]