LA_library/sparsemat_traits.h

16 lines
455 B
C
Raw Normal View History

2004-03-17 04:07:21 +01:00
////////////////////////////////////////////////////////////////////////////
//traits classes
#ifndef _SPARSEMAT_TRAITS_INCL
#define _SPARSEMAT_TRAITS_INCL
template<> struct NRMat_traits<SparseMat<double> > {
typedef double elementtype;
typedef SparseMat<double> producttype;
static double norm (const SparseMat<double> &x) {return x.norm();}
static void axpy (SparseMat<double>&s, const SparseMat<double> &x, const double c) {s.axpy(c,x);}
};
#endif