Loading...
Searching...
No Matches
eta.h
Go to the documentation of this file.
struct eta {
Float operator() (const Float& z) const {
check_macro(z != 0 || p > 2, "eta: division by zero (HINT: check mesh)");
return pow(z, (p-2)/2);
}
Float derivative (const Float& z) const {
check_macro(z != 0 || p > 4, "eta': division by zero (HINT: check mesh)");
return 0.5*(p-2)*pow(z, (p-4)/2);
}
eta (const Float& q) : p(q) {}
Float p;
};
Float
see the Float page for the full documentation
check_macro
check_macro(expr1.have_homogeneous_space(Xh1), "dual(expr1,expr2); expr1 should have homogeneous space. HINT: use dual(interpolate(Xh, expr1),expr2)")
eta::derivative
Float derivative(const Float &z) const
Definition eta.h:30
eta::operator()
Float operator()(const Float &z) const
Definition eta.h:26
eta::p
Float p
Definition eta.h:35
eta::eta
eta(const Float &q)
Definition eta.h:34