//=============================================================================
//! Component Class for Real Double-precision Sparse Matrix Classes */
class dcomponent
{
public:
long i; //!< i index of the component
long j; //!< j index of the component
double v; //!< value of the component
dcomponent(){;}
dcomponent(const long& _i, const long& _j, const double& _v) :i(_i), j(_j), v(_v){ ; }
//bool operator<(const dcomponent& x)const{ return i < x.i; }
};
//=============================================================================
/*! lessthan function for i of dcomponent */
inline bool ilt(const dcomponent& a, const dcomponent& b)
{
return a.i < b.i;
}
//=============================================================================
/*! lessthan function for j of dcomponent */
inline bool jlt(const dcomponent& a, const dcomponent& b)
{
return a.j < b.j;
}