C++ Mathematical Expression Toolkit (ExprTk) release
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
exprtk::polynomial< T, N > Class Template Reference

#include <exprtk.hpp>

Inheritance diagram for exprtk::polynomial< T, N >:
[legend]
Collaboration diagram for exprtk::polynomial< T, N >:
[legend]

Classes

struct  poly_impl
 
struct  poly_impl< Type, 1 >
 
struct  poly_impl< Type, 10 >
 
struct  poly_impl< Type, 11 >
 
struct  poly_impl< Type, 12 >
 
struct  poly_impl< Type, 2 >
 
struct  poly_impl< Type, 3 >
 
struct  poly_impl< Type, 4 >
 
struct  poly_impl< Type, 5 >
 
struct  poly_impl< Type, 6 >
 
struct  poly_impl< Type, 7 >
 
struct  poly_impl< Type, 8 >
 
struct  poly_impl< Type, 9 >
 

Public Member Functions

 polynomial ()
 
virtual ~polynomial ()
 
virtual T operator() (const T &x, const T &c1, const T &c0)
 
virtual T operator() (const T &x, const T &c2, const T &c1, const T &c0)
 
virtual T operator() (const T &x, const T &c3, const T &c2, const T &c1, const T &c0)
 
virtual T operator() (const T &x, const T &c4, const T &c3, const T &c2, const T &c1, const T &c0)
 
virtual T operator() (const T &x, const T &c5, const T &c4, const T &c3, const T &c2, const T &c1, const T &c0)
 
virtual T operator() (const T &x, const T &c6, const T &c5, const T &c4, const T &c3, const T &c2, const T &c1, const T &c0)
 
virtual T operator() (const T &x, const T &c7, const T &c6, const T &c5, const T &c4, const T &c3, const T &c2, const T &c1, const T &c0)
 
virtual T operator() (const T &x, const T &c8, const T &c7, const T &c6, const T &c5, const T &c4, const T &c3, const T &c2, const T &c1, const T &c0)
 
virtual T operator() (const T &x, const T &c9, const T &c8, const T &c7, const T &c6, const T &c5, const T &c4, const T &c3, const T &c2, const T &c1, const T &c0)
 
virtual T operator() (const T &x, const T &c10, const T &c9, const T &c8, const T &c7, const T &c6, const T &c5, const T &c4, const T &c3, const T &c2, const T &c1, const T &c0)
 
virtual T operator() (const T &x, const T &c11, const T &c10, const T &c9, const T &c8, const T &c7, const T &c6, const T &c5, const T &c4, const T &c3, const T &c2, const T &c1, const T &c0)
 
virtual T operator() (const T &x, const T &c12, const T &c11, const T &c10, const T &c9, const T &c8, const T &c7, const T &c6, const T &c5, const T &c4, const T &c3, const T &c2, const T &c1, const T &c0)
 
virtual T operator() ()
 
virtual T operator() (const T &)
 
virtual T operator() (const T &, const T &)
 
- Public Member Functions inherited from exprtk::ifunction< T >
 ifunction (const std::size_t &pc)
 
virtual ~ifunction ()
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
- Public Member Functions inherited from exprtk::function_traits
 function_traits ()
 
bool & allow_zero_parameters ()
 
bool & has_side_effects ()
 
std::size_t & min_num_args ()
 
std::size_t & max_num_args ()
 

Additional Inherited Members

- Public Attributes inherited from exprtk::ifunction< T >
std::size_t param_count
 

Detailed Description

template<typename T, std::size_t N>
class exprtk::polynomial< T, N >

Definition at line 42672 of file exprtk.hpp.

Constructor & Destructor Documentation

◆ polynomial()

template<typename T , std::size_t N>
exprtk::polynomial< T, N >::polynomial ( )
inline

Definition at line 42822 of file exprtk.hpp.

42823 : ifunction<T>((N+2 <= 20) ? (N + 2) : std::numeric_limits<std::size_t>::max())
42824 {
42826 }
complex_t max(const complex_t v0, const complex_t v1)
void disable_has_side_effects(FunctionType &func)
Definition exprtk.hpp:19759

References exprtk::disable_has_side_effects().

Here is the call graph for this function:

◆ ~polynomial()

template<typename T , std::size_t N>
virtual exprtk::polynomial< T, N >::~polynomial ( )
inlinevirtual

Definition at line 42828 of file exprtk.hpp.

42829 {}

Member Function Documentation

◆ operator()() [1/15]

template<typename T , std::size_t N>
virtual T exprtk::polynomial< T, N >::operator() ( )
inlinevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 42909 of file exprtk.hpp.

42910 {
42911 return std::numeric_limits<T>::quiet_NaN();
42912 }

◆ operator()() [2/15]

template<typename T , std::size_t N>
virtual T exprtk::polynomial< T, N >::operator() ( const T &  )
inlinevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 42914 of file exprtk.hpp.

42915 {
42916 return std::numeric_limits<T>::quiet_NaN();
42917 }

◆ operator()() [3/15]

template<typename T , std::size_t N>
virtual T exprtk::polynomial< T, N >::operator() ( const T &  ,
const T &   
)
inlinevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 42919 of file exprtk.hpp.

42920 {
42921 return std::numeric_limits<T>::quiet_NaN();
42922 }

◆ operator()() [4/15]

template<typename T , std::size_t N>
virtual T exprtk::polynomial< T, N >::operator() ( const T &  x,
const T &  c1,
const T &  c0 
)
inlinevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 42834 of file exprtk.hpp.

42835 {
42836 poly_rtrn(1) (poly_impl<T,1>::evaluate(x, c1, c0));
42837 }
#define poly_rtrn(NN)
Definition exprtk.hpp:42831

References poly_rtrn.

◆ operator()() [5/15]

template<typename T , std::size_t N>
virtual T exprtk::polynomial< T, N >::operator() ( const T &  x,
const T &  c10,
const T &  c9,
const T &  c8,
const T &  c7,
const T &  c6,
const T &  c5,
const T &  c4,
const T &  c3,
const T &  c2,
const T &  c1,
const T &  c0 
)
inlinevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 42886 of file exprtk.hpp.

42889 {
42890 poly_rtrn(10) (poly_impl<T,10>::evaluate(x, c10, c9, c8, c7, c6, c5, c4, c3, c2, c1, c0));
42891 }

References poly_rtrn.

◆ operator()() [6/15]

template<typename T , std::size_t N>
virtual T exprtk::polynomial< T, N >::operator() ( const T &  x,
const T &  c11,
const T &  c10,
const T &  c9,
const T &  c8,
const T &  c7,
const T &  c6,
const T &  c5,
const T &  c4,
const T &  c3,
const T &  c2,
const T &  c1,
const T &  c0 
)
inlinevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 42893 of file exprtk.hpp.

42896 {
42897 poly_rtrn(11) (poly_impl<T,11>::evaluate(x, c11, c10, c9, c8, c7, c6, c5, c4, c3, c2, c1, c0));
42898 }

References poly_rtrn.

◆ operator()() [7/15]

template<typename T , std::size_t N>
virtual T exprtk::polynomial< T, N >::operator() ( const T &  x,
const T &  c12,
const T &  c11,
const T &  c10,
const T &  c9,
const T &  c8,
const T &  c7,
const T &  c6,
const T &  c5,
const T &  c4,
const T &  c3,
const T &  c2,
const T &  c1,
const T &  c0 
)
inlinevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 42900 of file exprtk.hpp.

42903 {
42904 poly_rtrn(12) (poly_impl<T,12>::evaluate(x, c12, c11, c10, c9, c8, c7, c6, c5, c4, c3, c2, c1, c0));
42905 }

References poly_rtrn.

◆ operator()() [8/15]

template<typename T , std::size_t N>
virtual T exprtk::polynomial< T, N >::operator() ( const T &  x,
const T &  c2,
const T &  c1,
const T &  c0 
)
inlinevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 42839 of file exprtk.hpp.

42840 {
42841 poly_rtrn(2) (poly_impl<T,2>::evaluate(x, c2, c1, c0));
42842 }

References poly_rtrn.

◆ operator()() [9/15]

template<typename T , std::size_t N>
virtual T exprtk::polynomial< T, N >::operator() ( const T &  x,
const T &  c3,
const T &  c2,
const T &  c1,
const T &  c0 
)
inlinevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 42844 of file exprtk.hpp.

42845 {
42846 poly_rtrn(3) (poly_impl<T,3>::evaluate(x, c3, c2, c1, c0));
42847 }

References poly_rtrn.

◆ operator()() [10/15]

template<typename T , std::size_t N>
virtual T exprtk::polynomial< T, N >::operator() ( const T &  x,
const T &  c4,
const T &  c3,
const T &  c2,
const T &  c1,
const T &  c0 
)
inlinevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 42849 of file exprtk.hpp.

42851 {
42852 poly_rtrn(4) (poly_impl<T,4>::evaluate(x, c4, c3, c2, c1, c0));
42853 }

References poly_rtrn.

◆ operator()() [11/15]

template<typename T , std::size_t N>
virtual T exprtk::polynomial< T, N >::operator() ( const T &  x,
const T &  c5,
const T &  c4,
const T &  c3,
const T &  c2,
const T &  c1,
const T &  c0 
)
inlinevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 42855 of file exprtk.hpp.

42857 {
42858 poly_rtrn(5) (poly_impl<T,5>::evaluate(x, c5, c4, c3, c2, c1, c0));
42859 }

References poly_rtrn.

◆ operator()() [12/15]

template<typename T , std::size_t N>
virtual T exprtk::polynomial< T, N >::operator() ( const T &  x,
const T &  c6,
const T &  c5,
const T &  c4,
const T &  c3,
const T &  c2,
const T &  c1,
const T &  c0 
)
inlinevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 42861 of file exprtk.hpp.

42863 {
42864 poly_rtrn(6) (poly_impl<T,6>::evaluate(x, c6, c5, c4, c3, c2, c1, c0));
42865 }

References poly_rtrn.

◆ operator()() [13/15]

template<typename T , std::size_t N>
virtual T exprtk::polynomial< T, N >::operator() ( const T &  x,
const T &  c7,
const T &  c6,
const T &  c5,
const T &  c4,
const T &  c3,
const T &  c2,
const T &  c1,
const T &  c0 
)
inlinevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 42867 of file exprtk.hpp.

42869 {
42870 poly_rtrn(7) (poly_impl<T,7>::evaluate(x, c7, c6, c5, c4, c3, c2, c1, c0));
42871 }

References poly_rtrn.

◆ operator()() [14/15]

template<typename T , std::size_t N>
virtual T exprtk::polynomial< T, N >::operator() ( const T &  x,
const T &  c8,
const T &  c7,
const T &  c6,
const T &  c5,
const T &  c4,
const T &  c3,
const T &  c2,
const T &  c1,
const T &  c0 
)
inlinevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 42873 of file exprtk.hpp.

42875 {
42876 poly_rtrn(8) (poly_impl<T,8>::evaluate(x, c8, c7, c6, c5, c4, c3, c2, c1, c0));
42877 }

References poly_rtrn.

◆ operator()() [15/15]

template<typename T , std::size_t N>
virtual T exprtk::polynomial< T, N >::operator() ( const T &  x,
const T &  c9,
const T &  c8,
const T &  c7,
const T &  c6,
const T &  c5,
const T &  c4,
const T &  c3,
const T &  c2,
const T &  c1,
const T &  c0 
)
inlinevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 42879 of file exprtk.hpp.

42882 {
42883 poly_rtrn(9) (poly_impl<T,9>::evaluate(x, c9, c8, c7, c6, c5, c4, c3, c2, c1, c0));
42884 }

References poly_rtrn.


The documentation for this class was generated from the following file: