Transcendental functions, such as exponentials and logarithms, appear in a broad array of computational domains: from simulations in curvilinear coordinates, to interpolation, to machine learning. Unfortunately they are typically expensive to compute accurately. In this note, we argue that in many cases, the properties of the function matters more than the exact functional form. We present new functions, which are not transcendental, that can be used as drop-in replacements for the exponential and logarithm in many settings for a significant performance boost. We show that for certain applications using these functions result in no drop in the accuracy at all, as they are perfectly accurate representations of themselves, if not the original transcendental functions.
翻译:从曲线坐标模拟到内插,到机器学习等一系列广泛的计算域中出现了指数和对数等跨度函数。 不幸的是,这些函数通常非常昂贵,无法准确计算。 在本说明中,我们争论说,在许多情况下,函数的属性比确切的功能形式更重要。我们提出了新的功能,这些功能不是超度的,可以用来作为许多环境中的指数和对数的投射替换,以产生显著的性能增强。我们表明,对于某些应用,使用这些功能不会导致准确性下降,因为它们是完全准确的自我表达,如果不是最初的超度功能的话。