#include <function.h>
Public Member Functions | |
ProductFunction (const Function< DIM, VALUE > *f1, const Function< DIM, VALUE > *f2) | |
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 | |
const Function< DIM, VALUE > * | f1_ |
const Function< DIM, VALUE > * | f2_ |
pointwise product of two (preferably scalar-valued) functions
VALUE MathTL::ProductFunction< 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::ProductFunction< 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 >.