
21 Mar
2009
21 Mar
'09
2:36 a.m.
Giovanni Piero Deretta wrote:
On Fri, Mar 20, 2009 at 6:49 PM, Mathias Gaunard <mathias.gaunard@ens-lyon.org> wrote:
You write the algorithm generically, then you can have specific cases. You don't build genericity on top of specific cases.
Hum, there are many highly generic linear algebra c++ libraries that do exactly that calling BLAS and friends for specific cases.
uBLAS has its own generic implementation for everything it provides. It can only call BLAS in specific cases, as you say: it's only a specialization. You can specialize generic code, but you cannot build a generic implementation from a specialization.