递归函数模板作为C++中线性代数表达式的解决方案
Recursive function templates as a solution of linear algebra expressions in C++
摘要:
本文讨论了一种C++中的递归函数模板,通过相应的模板参数来实现递归,以获得更好的计算性能。这些模板函数的某些特殊化结束了递归,并且可以使用优化的硬件依赖或独立例程来实现。除了已知的表达式模板技术,该方法被应用于解决线性代数表达式的BLAS库的帮助下。整个实现产生了一个新的库,它保持了面向对象的好处,并在测试中表现出更高的计算速度。
英文摘要:
The article deals with a kind of recursive function templates in C++, where the recursion is realized corresponding template parameters to achieve better computational performance. Some specialization of these template functions ends the recursion and can be implemented using optimized hardware dependent or independent routines. The method is applied in addition to the known expression templates technique to solve linear algebra expressions with the help of the BLAS library. The whole implementation produces a new library, which keeps object-oriented benefits and has a higher computational speed represented in the tests.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。