Boost logo

Ublas :

Subject: Re: [ublas] [bindings] BLAS high-level interface
From: Miguel Lopes Santos Ramos (miguel_at_[hidden])
Date: 2009-02-16 09:22:05


> From: Rutger ter Borg <rutger_at_[hidden]>
>
> All,
>
> with the BLAS bindings 95% complete, combined with the idea of a high-level
> binding for LAPACK, it becomes obvious that the bindings for BLAS could
> have a high-level interface as well. E.g., the numerous matrix-vector
> operations xxxMV are matrix-structure dependent and could be determined
> through the traits system.
>
> A part of uBLAS may serve as an example for such an interface; taken the
> other way around, uBLAS may be able to integrate a BLAS engine. Has there
> been efforts in this area?
>
> Thanks,
>
> Rutger

No efforts yet. I had, however, a previous small algebra template library and
did some integration with an external BLAS library using template specialization.
This idea still seems attractive to me, although my library was way simpler than
uBLAS.

The idea would be to have uBLAS code instantiated as usual, but when particular headers
were included, some functions would have a specialization that would call the
external BLAS library.
This approach would also allow for several different BLAS libraries, and easily
switching between them.

Miguel