14 virtual const std::string
getName() {
return "Model_HO"; }
44 for (
int i = 0; i <
size; ++i)
m[i] = 1,
w[i] = 1;
48 for (
int i = 0; i <
size; ++i) {
49 double Qi_div_beta = 0.5f *
w[i] / std::tanh(0.5f *
beta *
w[i]);
50 double xi_sigma = std::sqrt(Qi_div_beta / (
m[i] *
w[i] *
w[i]));
51 double pi_sigma = std::sqrt(Qi_div_beta *
m[i]);
60 for (
int i = 0; i <
size; ++i) {
68 for (
int i = 0; i <
size; ++i)
f[i] =
m[i] *
w[i] *
w[i] *
x[i];
75 virtual const std::string
getName() {
return "Model_HO"; }
95 for (
int i = 0; i <
size; ++i)
m[i] = 1,
w[i] = 1;
99 for (
int i = 0; i <
size; ++i)
f[i] =
m[i] *
w[i] *
w[i] *
x[i];
this file provide Kernel class
DataSet class is a tree-structured container for storage of Tensor and other DataSet.
kids_real * def_real(const std::string &key, Shape S=1, const std::string &info="")
Define a real variable with a specified key, shape, and info.
static int rand_gaussian(kids_real *res_arr, int N=1, kids_real sigma=1.0, kids_real mu=0.0)
this class provides the container and implementation of algorithms
virtual void setInputParam_impl(Param *PM)
virtual int getType() const
Get the type of the kernel.
virtual void setInputDataSet_impl(DataSet *DS)
virtual Status & executeKernel_impl(Status &stat)
Virtual function to execute the kernel implementation.
virtual const std::string getName()
Get the name of the kernel.
virtual int getType() const
Get the type of the kernel.
virtual void setInputParam_impl(Param *PM)
virtual void setInputDataSet_impl(DataSet *DS)
virtual Status & executeKernel_impl(Status &stat)
Virtual function to execute the kernel implementation.
virtual const std::string getName()
Get the name of the kernel.
virtual Status & initializeKernel_impl(Status &stat)
Virtual function to initialize the kernel implementation.
this class provides an interface wrapper for the parameter data.
double get_double(const std::string &key, const std::string &loc, const phys::dimension7 &qdim, const double &default_value=double())
int get_int(const std::string &key, const std::string &loc, const int &default_value)
#define LOC()
show the location information for debug
< http://warp.povusers.org/FunctionParser/fparser.html
constexpr uint32_t hash(const char *str)