I am alos not sure if data.flags.c_contiguous is the standard way of testing this.