|
Reference documentation for deal.II version 9.2.0
|
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\)
\(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\)
\(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\)
\(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Go to the documentation of this file.
31 #ifdef DEAL_II_WITH_MUPARSER
40 return static_cast<int>(val + ((val >= 0.0) ? 0.5 : -0.5));
44 mu_if(
double condition,
double thenvalue,
double elsevalue)
53 mu_or(
double left,
double right)
85 return 1.0 / std::tan(
value);
91 return 1.0 / std::sin(
value);
97 return 1.0 / std::cos(
value);
103 return std::log(
value);
109 return std::pow(a,
b);
123 static std::mutex rand_mutex;
124 std::lock_guard<std::mutex> lock(rand_mutex);
126 std::uniform_real_distribution<> uniform_distribution(0., 1.);
130 static std::map<double, std::mt19937> rng_map;
132 if (rng_map.find(seed) == rng_map.end())
133 rng_map[seed] = std::mt19937(
static_cast<unsigned int>(seed));
135 return uniform_distribution(rng_map[seed]);
142 static std::mutex rand_mutex;
143 std::lock_guard<std::mutex> lock(rand_mutex);
144 std::uniform_real_distribution<> uniform_distribution(0., 1.);
145 const unsigned int seed =
static_cast<unsigned long>(std::time(
nullptr));
146 static std::mt19937 rng(seed);
147 return uniform_distribution(rng);
double mu_pow(double a, double b)
Expression floor(const Expression &x)
double mu_rand_seed(double seed)
double mu_cot(double value)
Expression erfc(const Expression &x)
double mu_log(double value)
double mu_csc(double value)
double mu_erfc(double value)
double mu_and(double left, double right)
double mu_or(double left, double right)
double mu_floor(double value)
double mu_if(double condition, double thenvalue, double elsevalue)
#define DEAL_II_NAMESPACE_OPEN
SymmetricTensor< 2, dim, Number > b(const Tensor< 2, dim, Number > &F)
Expression ceil(const Expression &x)
double mu_ceil(double value)
double mu_int(double value)
double mu_sec(double value)
std::vector< std::string > function_names
#define DEAL_II_NAMESPACE_CLOSE