All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MATRIX_COORD Struct Reference

#include <matrix.h>

Public Member Functions

 MATRIX_COORD ()
 
 MATRIX_COORD (int c, int r)
 
 ~MATRIX_COORD ()
 
bool Valid (const MATRIX &m) const
 
void MapForSplit (int ind)
 

Static Public Member Functions

static void Delete (void *arg)
 

Public Attributes

int col
 
int row
 

Detailed Description

Definition at line 317 of file matrix.h.

Constructor & Destructor Documentation

MATRIX_COORD::MATRIX_COORD ( )
inline

Definition at line 323 of file matrix.h.

323 : col(0), row(0) {}
MATRIX_COORD::MATRIX_COORD ( int  c,
int  r 
)
inline

Definition at line 324 of file matrix.h.

324 : col(c), row(r) {}
MATRIX_COORD::~MATRIX_COORD ( )
inline

Definition at line 325 of file matrix.h.

325 {}

Member Function Documentation

static void MATRIX_COORD::Delete ( void *  arg)
inlinestatic

Definition at line 318 of file matrix.h.

318  {
319  MATRIX_COORD *c = static_cast<MATRIX_COORD *>(arg);
320  delete c;
321  }
void MATRIX_COORD::MapForSplit ( int  ind)
inline

Definition at line 338 of file matrix.h.

338  {
339  ASSERT_HOST(row >= col);
340  if (col > ind) ++col;
341  if (row >= ind) ++row;
342  ASSERT_HOST(row >= col);
343  }
#define ASSERT_HOST(x)
Definition: errcode.h:84
bool MATRIX_COORD::Valid ( const MATRIX m) const
inline

Definition at line 327 of file matrix.h.

327  {
328  return 0 <= col && col < m.dimension() &&
329  col <= row && row < col + m.bandwidth() && row < m.dimension();
330  }
int dimension() const
Definition: matrix.h:247
int bandwidth() const
Definition: matrix.h:249

Member Data Documentation

int MATRIX_COORD::col

Definition at line 345 of file matrix.h.

int MATRIX_COORD::row

Definition at line 346 of file matrix.h.


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