Liebe Gitlab-Nutzer, lieber Gitlab-Nutzer,
es ist nun möglich sich mittels des ZIH-Logins/LDAP an unserem Dienst anzumelden. Die Konten der externen Nutzer:innen sind über den Reiter "Standard" erreichbar.
Die Administratoren

Dear Gitlab user,
it is now possible to log in to our service using the ZIH login/LDAP. The accounts of external users can be accessed via the "Standard" tab.
The administrators

Commit 2d1a440f authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

random functor added

parent ab2c1462
......@@ -9,8 +9,29 @@
#include <boost/fusion/include/boost_array.hpp>
#include "MetaTools.h"
#include "Helpers.h"
namespace tools {
struct Random : AbstractFunction<double,WorldVector<double> >
Random(double mean_, double amplitude_) : mean(mean_), amplitude(amplitude_)
double operator()(const WorldVector<double> &x) const
return mean + amplitude * (std::rand() / static_cast<double>(RAND_MAX) - 0.5);
double mean;
double amplitude;
/// Quadrature Rules
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment