31 #ifndef __TASMANIAN_DREAM_ENUMERATES_HPP
32 #define __TASMANIAN_DREAM_ENUMERATES_HPP
150 return std::initializer_list<std::pair<std::string const, TypeDistribution>>{
170 }
catch(std::out_of_range &){
176 namespace DreamMaths{
Main header for the Sparse Grid module.
Wraps around a C-style of an array and mimics 2D data-structure.
Definition: tsgUtils.hpp:127
TypeSamplingForm intToForm(int form)
Converts an integer to TypeSamplingForm, synced with the Python interface.
Definition: tsgDreamEnumerates.hpp:140
std::map< std::string, TypeDistribution > getStringRuleMap()
Returns the map from a string to a distribution type.
Definition: tsgDreamEnumerates.hpp:149
TypeDistribution getDistributionString(std::string const &name)
Map the string distribution name to the enumerate, used by python.
Definition: tsgDreamEnumerates.hpp:167
constexpr double pi
Half-period of the std::sin() and std::cos() functions.
Definition: tsgMathUtils.hpp:117
size_t size_mult(IntA a, IntB b)
Converts two integer-like variables to size_t and returns the product..
Definition: tsgUtils.hpp:82
std::vector< typename std::remove_const< T >::type > copyArray(T *x, I size)
Copies an array into a vector, returns empty vector if the input is nullpntr.
Definition: tsgUtils.hpp:92
Encapsulates the Tasmanian DREAM module.
Definition: TasmanianDREAM.hpp:80