Flattening an array means transforming a multidimensional array into a 1-D array, which can be accomplished using reshape(-1).