42 template <
class IU,
class NU>
52 template <
class IT,
class NT,
class DER >
59 void Create(
const vector<IT> & essentials)
61 static_cast<DER*
>(
this)->CreateImpl(essentials);
64 void Create(IT size, IT nRow, IT nCol, tuple<IT, IT, NT> * mytuples)
66 static_cast<DER*
>(
this)->CreateImpl(size, nRow, nCol, mytuples);
71 template <
typename SR>
82 return static_cast<const DER*
>(
this)->
GetArrays();
96 ofstream&
put(ofstream& outfile)
const;
97 ifstream&
get(ifstream& infile);
99 bool isZero()
const {
return static_cast<const DER*
>(
this)->
isZero(); }
106 template <
typename UIT,
typename UNT,
typename UDER >
107 friend ofstream& operator<< (ofstream& outfile, const SpMat< UIT,UNT,UDER > & s);
109 template <
typename UIT,
typename UNT,
typename UDER >
114 template<
class SR,
class NUO,
class IU,
class NU1,
class NU2,
class DER1,
class DER2 >