How We Might Remove the Remaining Shortcomings of Std::complex
How We Might Remove the Remaining Shortcomings of Std::complex
复制标题
我们如何消除 Std::complex 的剩余缺点
DOI:
--
复制
发表时间:
2004
期刊:
影响因子:
--
通讯作者:
William Kahan
中科院分区:
文献类型:
--
作者:
William Kahan
Recently there have been written two proposals that seek to enhance the use of std::complex<T> [GKA02] [Rei02]. The proposals have my full support, but a few other changes could be made for the sake of elegant code, efficiency and intuitive behavior. The changes rely mainly on the introduction of an imaginary class describing imaginary numbers like 5i. It is worth noticing that C99 has added support for complex numbers and described recommendations that seek to address these issues [C9903, 183ff]. One way to characterize this proposal is that it suggests partial support for Language Independent Arithmetic Part 3 (LIA-3) [ISO01].