def flatten(array):
    """ Accept an array and return a flattened vector using Fortran convention.

        This func mimics MATLAB's behavior:
        array = array(:)

    """
    return array.flatten('F')
