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
中科院分区:
--
文献类型:
--
作者:
William Kahan

文献摘要

被引文献

相似文献

最近写了两份提案,寻求加强STD::Complex&T>[GKA02][Rei02]的使用。我完全支持这些建议,但为了优雅的代码、效率和直观的行为,还可以进行一些其他更改。这些变化主要依赖于引入一个描述像5i这样的虚数的虚数类。值得注意的是,C99增加了对复数的支持,并描述了寻求解决这些问题的建议[C9903,183ff]。描述这一建议的一种方式是,它部分支持与语言无关的算术第3部分(LIA-3)[ISO01]。
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].