This document describes an algorithm to scale a complex vector by the reciprocal of a complex value. The algorithm computes the reciprocal of the complex value and then scales the vector by the reciprocal. Some scaling may be necessary due to this 2-step strategy, and the proposed algorithm takes scaling into account. This algorithm is supposed to be faster than the naive approach of dividing each entry of the vector by the complex value, without losing much accuracy. It also serves as a single strategy for scaling vectors by the reciprocal of a complex value, which improves the software maintainability.
翻译:本文描述了一种通过复数倒数缩放复数向量的算法。该算法首先计算复数倒数,再通过该倒数缩放向量。由于采用这种两步策略,可能需要进行缩放调整,而所提出的算法已考虑了这一因素。该算法预计比逐元素将向量各分量除以复数倒数的朴素方法速度更快,且精度损失较小。此外,它作为通过复数倒数缩放向量的统一策略,有助于提升软件可维护性。