A vector-valued linear function.
More...
#include <Functions.h>
|
| | LinVecFunc (const char *file, int c=2) |
| | Constructor initializing piece-wise linear function values.
|
| |
| 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.
|
| |
|
virtual | ~Function () |
| | Empty destructor.
|
| |
|
Result | operator() (const Arg &x) const |
| | Operator returning the function value for the given argument.
|
| |
|
|
Vec3 | evaluate (const Real &x) const override |
| | Evaluates the function at x.
|
| |
|
| 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.
|
| |
|
|
using | Point = std::pair< Real, Vec3 > |
| | Convenience type.
|
| |
|
|
std::vector< Point > | fvals |
| | Values for piece-wise linear function.
|
| |
|
|
typedef Arg | Input |
| | Input type.
|
| |
|
typedef Result | Output |
| | Output type.
|
| |
A vector-valued linear function.
◆ LinVecFunc()
| LinVecFunc::LinVecFunc |
( |
const char * |
file, |
|
|
int |
c = 2 |
|
) |
| |
|
explicit |
Constructor initializing piece-wise linear function values.
- Parameters
-
| [in] | file | Name of file to read the function values from |
| [in] | c | The column of the file to start reading function values from |
References fvals, Real, and Vec3::x.
◆ isConstant()
| bool LinVecFunc::isConstant |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isZero()
| bool LinVecFunc::isZero |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files:
- /home/runner/work/IFEM-2/IFEM-2/src/Utility/Functions.h
- /home/runner/work/IFEM-2/IFEM-2/src/Utility/Functions.C