|
HermesCommon
3.0
|
#include <hermes_function.h>
Inheritance diagram for Hermes::Hermes2DFunction< Scalar >:Public Member Functions | |
| Hermes2DFunction () | |
| Constructor. | |
| Hermes2DFunction (Scalar value) | |
| Constructor for the constant case. | |
| virtual Scalar | value (Scalar x, Scalar y) const |
| Two-dimensional function value. | |
| virtual Hermes::Ord | value (Hermes::Ord x, Hermes::Ord y) const |
| Two-dimensional function integration order. | |
| virtual Scalar | derivative_x (Scalar x, Scalar y) const |
| Two-dimensional function derivative value. | |
| virtual Scalar | derivative_y (Scalar x, Scalar y) const |
| virtual Hermes::Ord | derivative_x (Hermes::Ord x, Hermes::Ord y) const |
| Two-dimensional function derivative integration order. | |
| virtual Hermes::Ord | derivative_y (Hermes::Ord x, Hermes::Ord y) const |
| bool | is_constant () const |
| template<> | |
| double | value (double x, double y) const |
| template<> | |
| std::complex< double > | value (std::complex< double > x, std::complex< double > y) const |
| template<> | |
| double | derivative_x (double x, double y) const |
| template<> | |
| std::complex< double > | derivative_x (std::complex< double > x, std::complex< double > y) const |
| template<> | |
| double | derivative_y (double x, double y) const |
| template<> | |
| std::complex< double > | derivative_y (std::complex< double > x, std::complex< double > y) const |
Public Member Functions inherited from Hermes::Mixins::Loggable | |
| Loggable (bool verbose_output=false, callbackFn verbose_callback=NULL, bool add_newline=true) | |
| void | set_file_output_only (bool onOff) |
| void | set_timestamps (bool onOff) |
| Sets the addition of a time stamp on each line in the log file. By default it is on. | |
| void | set_erase_on_beginning (bool onOff) |
| Sets the logFile being always erased before logging. | |
| void | set_logFile_name (const char *filename) |
| void | set_logFile_name (std::string filename) |
| void | info (const char *msg,...) const |
| void | info_if (bool cond, const char *msg,...) const |
| void | warn (const char *msg,...) const |
| void | warn_if (bool cond, const char *msg,...) const |
| void | error (const char *msg,...) const |
| void | error_if (bool cond, const char *msg,...) const |
| virtual void | set_verbose_output (bool to_set) |
| bool | get_verbose_output () const |
| Returns the current value of verbose_output;. | |
| virtual void | set_verbose_callback (callbackFn callback) |
| callbackFn | get_verbose_callback () const |
| Returns the current value of verbose_callback;. | |
Protected Attributes | |
| bool | is_const |
| The function is constant. | |
| Scalar | const_value |
| If the function is constant, this is the value. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Hermes::Mixins::Loggable | |
| static void | set_static_logFile_name (const char *filename) |
| static void | set_static_logFile_name (std::string filename) |
Public Attributes inherited from Hermes::Mixins::Loggable | |
| char * | logFileName |
| Logfile name. | |
Static Public Attributes inherited from Hermes::Mixins::Loggable | |
| static char * | staticLogFileName = nullptr |
Protected Member Functions inherited from Hermes::Mixins::Loggable | |
| void | hermes_fwrite (const void *ptr, size_t size, size_t nitems, FILE *stream) const |
| void | hermes_fread (void *ptr, size_t size, size_t nitems, FILE *stream) const |
Generic class for functions of two variables. Typical usage: user creates a descendant: class MyComplexASquaredMinusBSquared : public Hermes2DFunction<std::complex<double> > { /// Constructor. MyComplexASquaredMinusBSquared() : Hermes2DFunction<std::complex<double> >() {} std::complex<double> value(std::complex<double> x, std::complex<double> y) const { return x.real * y.real() - x.imag() * y.imag(); } Hermes::Ord value(Hermes::Ord x, Hermes::Ord y) const { return Hermes::Ord(10); // Just say that this particular function is of polynomial order 10. } .... }
Definition at line 86 of file hermes_function.h.
| bool Hermes::Hermes2DFunction< Scalar >::is_constant | ( | ) | const |
The function is constant. Returns the value of is_const.
Definition at line 27 of file hermes_function.cpp.