'Generate the declarations of any necessary temporary
variables.'

def _get_tmp_decs(self, all_tmpvars):

    tab = ('    ' * 4)
    tmpvars = list(all_tmpvars)
    tmpvars.sort()
    tmpdecs = []
    for tmpvar in tmpvars:
        line = 'cdef    npy_cdouble    {}'.format(tmpvar)
        tmpdecs.append((tab + line))
    return tmpdecs
