|
dune-functions 2.9.1
|
A scalar polynomial implementation. More...
#include <dune/functions/analyticfunctions/polynomial.hh>
Public Member Functions | |
| Polynomial ()=default | |
| Default constructor. | |
| Polynomial (const Polynomial &other)=default | |
| Copy constructor. | |
| Polynomial (Polynomial &&other)=default | |
| Move constructor. | |
| Polynomial & | operator= (const Polynomial &other)=default |
| Copy-assignment operator. | |
| Polynomial & | operator= (Polynomial &&other)=default |
| Move-assignment operator. | |
| Polynomial (std::initializer_list< K > coefficients) | |
| Create from list of coefficients. | |
| Polynomial (std::vector< K > &&coefficients) | |
| Create from list of coefficients. | |
| Polynomial (const std::vector< K > &coefficients) | |
| Create from list of coefficients. | |
| K | operator() (const K &x) const |
| Evaluate polynomial. | |
| const std::vector< K > & | coefficients () const |
| Obtain reference to coefficient vector. | |
Friends | |
| Polynomial | derivative (const Polynomial &p) |
| Obtain derivative of Polynomial function. | |
Detailed Description
class Dune::Functions::Polynomial< K >
A scalar polynomial implementation.
- Template Parameters
-
K Scalar type. The polynomial will map K to K
This class exists mainly to demonstrate how to implement the Concept::DifferentiableFunction<Range(Domain), DerivativeTraits> concept.
Constructor & Destructor Documentation
◆ Polynomial() [1/6]
|
default |
Default constructor.
◆ Polynomial() [2/6]
|
default |
Copy constructor.
◆ Polynomial() [3/6]
|
default |
Move constructor.
◆ Polynomial() [4/6]
|
inline |
Create from list of coefficients.
Coefficients are ordered in accordance with the corresponding monomial order
◆ Polynomial() [5/6]
|
inline |
Create from list of coefficients.
Coefficients are ordered in accordance with the corresponding monomial order. This will move the coefficients from the given vector.
◆ Polynomial() [6/6]
|
inline |
Create from list of coefficients.
Coefficients are ordered in accordance with the corresponding monomial order. This will copy coefficients from the given vector.
Member Function Documentation
◆ coefficients()
|
inline |
Obtain reference to coefficient vector.
◆ operator()()
|
inline |
Evaluate polynomial.
◆ operator=() [1/2]
|
default |
Copy-assignment operator.
◆ operator=() [2/2]
|
default |
Move-assignment operator.
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8