|
escript
Revision_
|
#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) |
| 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 | ||
| ) |
returns true if the given string is in the mapping AND the resulting coefficient is not empty
Referenced by ripley::RipleyDomain::addToRHS(), ripley::RipleyDomain::addToSystem(), ripley::RipleyDomain::assemblePDE(), ripley::RipleyDomain::assemblePDEBoundary(), ripley::RipleyDomain::assemblePDEDirac(), ripley::WaveAssembler2D::collateFunctionSpaceTypes(), ripley::WaveAssembler3D::collateFunctionSpaceTypes(), ripley::LameAssembler2D::collateFunctionSpaceTypes(), ripley::LameAssembler3D::collateFunctionSpaceTypes(), ripley::DefaultAssembler2D::collateFunctionSpaceTypes(), and ripley::DefaultAssembler3D::collateFunctionSpaceTypes().
1.7.6.1