在C++数学特殊函数中的`std::complex<>`:技术规范或提案

huangapple go评论82阅读模式
英文:

std::complex<> in C++ math special functions: technical specification or proposal

问题

在C++17中,数学特殊函数(例如贝塞尔函数等)已添加到标准库,并且已经得到现代编译器的相对良好支持。

然而,这些函数是针对实值参数定义的,而计算物理中的一些应用程序则大量使用它们的复数等效函数。

我想知道

  • 是否有关于增强std::complex&lt;&gt;与特殊函数的技术规范或提案(我未能找到相关信息)

  • 如果这样的提案处于活跃状态并有机会进入C++23

  • 除了它们的[相对]狭窄用途之外,是否存在不包括std::complex&lt;&gt;的特殊数学函数的考虑

英文:

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&lt;&gt; 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&lt;&gt; 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).

huangapple
  • 本文由 发表于 2020年1月4日 12:42:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/59587951.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定