escript  Revision_
Functions
domainhelpers.cpp File Reference
#include <ripley/domainhelpers.h>
#include <ripley/RipleyException.h>
#include <cmath>

Functions

bool isNotEmpty (std::string target, std::map< std::string, escript::Data > mapping)
void factorise (std::vector< int > &factors, int product)
void doublyLink (std::vector< ripley::IndexVector > &va, std::vector< ripley::IndexVector > &vb, int a, int b)

Function Documentation

void doublyLink ( std::vector< ripley::IndexVector > &  va,
std::vector< ripley::IndexVector > &  vb,
int  a,
int  b 
)

sets va[a] = b and vb[b] = a, used in constructing CSC and CSR matrix formats simultaneously

Referenced by ripley::Brick::createPattern(), and ripley::Rectangle::createPattern().

void factorise ( std::vector< int > &  factors,
int  product 
)

factorises 'product' and inserts the factors into the vector 'factors' in order of smallest to largest

Referenced by ripley::Brick::Brick(), and ripley::Rectangle::Rectangle().

bool isNotEmpty ( std::string  target,
std::map< std::string, escript::Data mapping 
)