#include <MatrixFuncs.h>
|
static unsigned int | CalculateIndex (unsigned int curRow, unsigned int curColumn) |
|
static boost::tuples::tuple< unsigned int, unsigned int > | Advance (const unsigned int totalRows, const unsigned int totalColumns, const unsigned int curRow, const unsigned int curColumn) |
|
Definition at line 197 of file MatrixFuncs.h.
boost::tuples::tuple< unsigned int, unsigned int > Nektar::SymmetricMatrixFuncs::Advance |
( |
const unsigned int |
totalRows, |
|
|
const unsigned int |
totalColumns, |
|
|
const unsigned int |
curRow, |
|
|
const unsigned int |
curColumn |
|
) |
| |
|
static |
Definition at line 296 of file MatrixFuncs.cpp.
References ASSERTL1.
Referenced by Nektar::NekMatrix< DataType, StandardMatrixTag >::Advance().
299 ASSERTL1(totalRows == totalColumns,
"Symmetric matrices must be square.");
300 ASSERTL1(curRow < totalRows,
"Attemping to iterate through an element on row " +
301 boost::lexical_cast<std::string>(curRow) +
" of a (" +
302 boost::lexical_cast<std::string>(totalRows) +
", " +
303 boost::lexical_cast<std::string>(totalColumns) +
" symmetric matrix.");
304 ASSERTL1(curColumn < totalColumns,
"Attemping to iterate through an element on row " +
305 boost::lexical_cast<std::string>(curColumn) +
" of a (" +
306 boost::lexical_cast<std::string>(totalRows) +
", " +
307 boost::lexical_cast<std::string>(totalColumns) +
" symmetric matrix.");
309 unsigned int nextRow = curRow;
310 unsigned int nextColumn = curColumn;
312 if( nextRow < totalRows )
317 if( nextRow >= totalRows )
323 if( nextColumn >= totalColumns )
325 nextRow = std::numeric_limits<unsigned int>::max();
326 nextColumn = std::numeric_limits<unsigned int>::max();
329 return boost::tuples::tuple<unsigned int, unsigned int>(nextRow, nextColumn);
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
unsigned int Nektar::SymmetricMatrixFuncs::CalculateIndex |
( |
unsigned int |
curRow, |
|
|
unsigned int |
curColumn |
|
) |
| |
|
static |