简体   繁体   English

C ++模板和OpenBLAS

[英]C++ templates and OpenBLAS

There exist C++ libraries such as Eigen or Boost::uBlas that implement matrix types and computations. 现有的C ++库(例如Eigen或Boost :: uBlas)实现矩阵类型和计算。

There also exist libraries such as LAPACK, Goto-BLAS, OpenBLAS and ATLAS that implement highly optimized dense matrix computations over floating-point types. 还存在诸如LAPACK,Goto-BLAS,OpenBLAS和ATLAS之类的库,它们可以对浮点类型实现高度优化的密集矩阵计算。

I was wondering whether some C++ libraries, perhaps through specialization, call OpenBLAS for the types supported by OpenBLAS. 我想知道某些C ++库(也许是通过专门化)是否为OpenBLAS支持的类型调用OpenBLAS。 It would seem the best of both worlds. 似乎两全其美。

I don't know about Boost::uBlas, but using the current version (3.3 or higher) of Eigen it is possible to link to "any F77 compatible BLAS or LAPACK libraries" so assuming OpenBLAS is F77 compatible, yes. 我不了解Boost :: uBlas,但是使用Eigen的当前版本(3.3或更高版本)可以链接到“任何F77兼容的BLAS或LAPACK库”,因此假设OpenBLAS是F77兼容的,是的。 See this for details. 请参阅了解详情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM