Array creation on the fly.Matrix index operators taking arrays as input