escript
Revision_
|
#include <vector>
#include <ripley/Ripley.h>
#include <escript/Data.h>
Go to the source code of this file.
Functions | |
void | factorise (std::vector< int > &factors, int product) |
void | doublyLink (std::vector< ripley::IndexVector > &va, std::vector< ripley::IndexVector > &vb, int a, int b) |
bool | isNotEmpty (std::string target, std::map< std::string, escript::Data > mapping) |
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().