|
IFEM
90A354
|
A vector-valued linear function. More...
#include <Functions.h>


Public Member Functions | |
| LinVecFunc (const char *file, int c=2) | |
| Constructor initializing piece-wise linear function values. More... | |
| bool | isZero () const override |
| Returns whether the function is identically zero or not. | |
| bool | isConstant () const override |
| Returns whether the function is constant or not. | |
Public Member Functions inherited from utl::Function< Arg, Result > | |
| virtual | ~Function () |
| Empty destructor. | |
| Result | operator() (const Arg &x) const |
| Operator returning the function value for the given argument. | |
Protected Member Functions | |
| Vec3 | evaluate (const Real &x) const override |
| Evaluates the function at x. | |
Protected Member Functions inherited from utl::Function< Arg, Result > | |
| Function () | |
| The constructor is protected to allow sub-class instances only. | |
| virtual Result | evaluate (const Arg &x) const =0 |
| Evaluates the function for the argument x. | |
Private Types | |
| using | Point = std::pair< Real, Vec3 > |
| Convenience type. | |
Private Attributes | |
| std::vector< Point > | fvals |
| Values for piece-wise linear function. | |
Additional Inherited Members | |
Public Types inherited from utl::Function< Arg, Result > | |
| typedef Arg | Input |
| Input type. | |
| typedef Result | Output |
| Output type. | |
A vector-valued linear function.
|
explicit |