英文:
std::complex<> in C++ math special functions: technical specification or proposal
问题
在C++17中,数学特殊函数(例如贝塞尔函数等)已添加到标准库,并且已经得到现代编译器的相对良好支持。
然而,这些函数是针对实值参数定义的,而计算物理中的一些应用程序则大量使用它们的复数等效函数。
我想知道
-
是否有关于增强
std::complex<>
与特殊函数的技术规范或提案(我未能找到相关信息) -
如果这样的提案处于活跃状态并有机会进入C++23
-
除了它们的[相对]狭窄用途之外,是否存在不包括
std::complex<>
的特殊数学函数的考虑
英文:
In C++17, mathematical special functions (such as Bessel functions, for example) were added to the standard and are already relatively well supported by modern compilers.
However, those functions are defined for real-valued arguments, while some applications in computational physics heavily use their complex equivalents.
I wonder if
- there is/were any technical specifications/proposals for enhancing
std::complex<>
with special functions (I was not able to find anything related) - if such a proposal is in the active state and has a chance for, I guess, C++23
- there are considerations against including special math functions for
std::complex<>
besides their [relatively] narrow use
答案1
得分: 4
我知道目前没有这样的提案正在审查中。
我期望这样的提案会通过SG6(数字研究小组)提出。
英文:
I know of no such proposal currently under review.
I would expect such a proposal to come through SG6 (the numerics study group).
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论