//////////////////////////////////////////////////////////////////////////// //traits classes #ifndef _SPARSEMAT_TRAITS_INCL #define _SPARSEMAT_TRAITS_INCL template<> struct NRMat_traits > { typedef double elementtype; typedef SparseMat producttype; static double norm (const SparseMat &x) {return x.norm();} static void axpy (SparseMat&s, const SparseMat &x, const double c) {s.axpy(c,x);} }; #endif