def cart2frac_all(coordinates, lattice_array):
frac_coordinates = deepcopy(coordinates)<EOL>for coord in range(frac_coordinates.shape[<NUM_LIT:0>]):<EOL><INDENT>frac_coordinates[coord] = fractional_from_cartesian(<EOL>frac_coordinates[coord], lattice_array)<EOL><DEDENT>return frac_coordinates<EOL>
Convert all cartesian coordinates to fractional.