Is sparse BLAS not included in BLAS?

前端 未结 2 1527
我在风中等你
我在风中等你 2021-01-14 14:06

I have a working LAPACK implementation and that, as far as I read, contains BLAS.

I want to use SPARSE BLAS and as far as I understand this website, SPARSE BLAS is

相关标签:
2条回答
  • 2021-01-14 14:48

    It seems that g++ does not find the required header files. So you need to add

    -I path_to_header_files/ 
    

    to the command line arguments. I.e, the directory where you copied blas_sparse.h to your working directory.

    0 讨论(0)
  • 2021-01-14 14:52

    You quote the Blas Technical Standard, not the LAPACK reference. LAPACK does not contain routines for sparse matrices, other than handling some banded matrices. There are other implementations such as spblas and sparse which follow the techincal standard and implement sparse BLAS. Typically, sparse operations are not considered part of BLAS, but an extension.

    I would recommend using a higher level library, such as eigen because it will save you a significant amount of development time, with usually small performance costs. There is also ublas which is part of boost, so if you are using boost as part of your project, you could give it a try, though it's not really optimised for performance. You can find a comprehensive list here (again, note that LAPACK is not listed as having support for sparse operations).

    0 讨论(0)
提交回复
热议问题