Go to the documentation of this file.
17 #ifndef _SPECKLEY_DOMAINHELPERS_H_
18 #define _SPECKLEY_DOMAINHELPERS_H_
20 #include <speckley/Speckley.h>
21 #include <escript/Data.h>
25 typedef std::map<std::string, escript::Data>
DataMap;
32 DataMap::const_iterator i = mapping.find(target);
42 DataMap::const_iterator i = mapping.find(target);
43 return i != mapping.end() && !i->second.isEmpty();
50 DataMap::const_iterator i = mapping.find(target);
51 return i->second.isComplex();
58 void factorise(std::vector<int>& factors,
int product);
60 #ifdef ESYS_HAVE_BOOST_IO
64 std::vector<char> unzip(
const std::vector<char>& compressed);
65 #endif // ESYS_HAVE_BOOST_IO
69 #endif // _SPECKLEY_DOMAINHELPERS_H_
Definition: AbstractAssembler.cpp:19
Data represents a collection of datapoints.
Definition: Data.h:64
bool isComplexCoef(const std::string target, const DataMap &mapping)
returns trure if the target data object is complex
Definition: speckley/src/domainhelpers.h:47
escript::Data unpackData(std::string target, std::map< std::string, escript::Data > mapping)
Definition: AbstractAssembler.cpp:21
void factorise(std::vector< int > &factors, int product)
Definition: speckley/src/domainhelpers.cpp:30
std::map< std::string, escript::Data > DataMap
Definition: speckley/src/domainhelpers.h:25
bool isNotEmpty(const std::string target, const DataMap &mapping)
Definition: speckley/src/domainhelpers.h:40