#include <function.h>
Public Member Functions | |
ConstantFunction (const Vector< VALUE > &value) | |
VALUE | value (const Point< DIM, VALUE > &p, const unsigned int component=0) const |
void | vector_value (const Point< DIM, VALUE > &p, Vector< VALUE > &values) const |
Protected Attributes | |
Vector< VALUE > | c |
the value |
constant function
VALUE MathTL::ConstantFunction< DIM, VALUE >::value | ( | const Point< DIM, VALUE > & | p, |
const unsigned int | component = 0 |
||
) | const [inline, virtual] |
evaluate (a component of) the function
Implements MathTL::Function< DIM, VALUE >.
void MathTL::ConstantFunction< DIM, VALUE >::vector_value | ( | const Point< DIM, VALUE > & | p, |
Vector< VALUE > & | values | ||
) | const [inline, virtual] |
evaluate the function (values should be of appropriate size)
Implements MathTL::Function< DIM, VALUE >.