CPPLapack
 All Classes Files Functions Variables Friends Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
dcomponent Class Reference

Component Class for Real Double-precision Sparse Matrix Classes. More...

#include <dcomponent.hpp>

Public Member Functions

 dcomponent ()
 
 dcomponent (const CPPL_INT &_i, const CPPL_INT &_j, const double &_v)
 

Static Public Member Functions

static bool ilt (const dcomponent &, const dcomponent &)
 
static bool jlt (const dcomponent &, const dcomponent &)
 

Public Attributes

CPPL_INT i
 i index of the component More...
 
CPPL_INT j
 j index of the component More...
 
double v
 value of the component More...
 

Friends

std::ostream & operator<< (std::ostream &, const dcomponent &)
 

Detailed Description

Component Class for Real Double-precision Sparse Matrix Classes.

Definition at line 3 of file dcomponent.hpp.

Constructor & Destructor Documentation

dcomponent::dcomponent ( )
inline

Definition at line 16 of file dcomponent.hpp.

16 { ; }
dcomponent::dcomponent ( const CPPL_INT &  _i,
const CPPL_INT &  _j,
const double &  _v 
)
inline

Definition at line 17 of file dcomponent.hpp.

17 :i(_i), j(_j), v(_v){ ; }
double v
value of the component
Definition: dcomponent.hpp:11
CPPL_INT i
i index of the component
Definition: dcomponent.hpp:9
CPPL_INT j
j index of the component
Definition: dcomponent.hpp:10

Member Function Documentation

bool dcomponent::ilt ( const dcomponent a,
const dcomponent b 
)
inlinestatic

lessthan function for i of dcomponent

Definition at line 40 of file dcomponent.hpp.

References i.

Referenced by dssmatrix::reorder().

41 {CPPL_VERBOSE_REPORT;
42  return a.i < b.i;
43 }
CPPL_INT i
i index of the component
Definition: dcomponent.hpp:9
bool dcomponent::jlt ( const dcomponent a,
const dcomponent b 
)
inlinestatic

lessthan function for j of dcomponent

Definition at line 47 of file dcomponent.hpp.

References j.

Referenced by dssmatrix::reorder().

48 {CPPL_VERBOSE_REPORT;
49  return a.j < b.j;
50 }
CPPL_INT j
j index of the component
Definition: dcomponent.hpp:10

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const dcomponent c 
)
friend

Definition at line 32 of file dcomponent.hpp.

33 {CPPL_VERBOSE_REPORT;
34  s << "(" << c.i << ", " << c.j << ", " << c.v << ")" << std::flush;
35  return s;
36 }
double v
value of the component
Definition: dcomponent.hpp:11
CPPL_INT i
i index of the component
Definition: dcomponent.hpp:9
CPPL_INT j
j index of the component
Definition: dcomponent.hpp:10

Member Data Documentation

CPPL_INT dcomponent::i

i index of the component

Definition at line 9 of file dcomponent.hpp.

Referenced by ilt(), and operator<<().

CPPL_INT dcomponent::j

j index of the component

Definition at line 10 of file dcomponent.hpp.

Referenced by jlt(), and operator<<().

double dcomponent::v

value of the component

Definition at line 11 of file dcomponent.hpp.

Referenced by operator<<().


The documentation for this class was generated from the following file: