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 42179 of file exprtk.hpp.

Constructor & Destructor Documentation

◆ polynomial()

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

Definition at line 42329 of file exprtk.hpp.

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

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 42335 of file exprtk.hpp.

42336 {}

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 42416 of file exprtk.hpp.

42417 {
42418 return std::numeric_limits<T>::quiet_NaN();
42419 }

◆ 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 42421 of file exprtk.hpp.

42422 {
42423 return std::numeric_limits<T>::quiet_NaN();
42424 }

◆ 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 42426 of file exprtk.hpp.

42427 {
42428 return std::numeric_limits<T>::quiet_NaN();
42429 }

◆ 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 42341 of file exprtk.hpp.

42342 {
42343 poly_rtrn(1) (poly_impl<T,1>::evaluate(x, c1, c0));
42344 }
#define poly_rtrn(NN)
Definition exprtk.hpp:42338

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 42393 of file exprtk.hpp.

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

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 42400 of file exprtk.hpp.

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

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 42407 of file exprtk.hpp.

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

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 42346 of file exprtk.hpp.

42347 {
42348 poly_rtrn(2) (poly_impl<T,2>::evaluate(x, c2, c1, c0));
42349 }

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 42351 of file exprtk.hpp.

42352 {
42353 poly_rtrn(3) (poly_impl<T,3>::evaluate(x, c3, c2, c1, c0));
42354 }

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 42356 of file exprtk.hpp.

42358 {
42359 poly_rtrn(4) (poly_impl<T,4>::evaluate(x, c4, c3, c2, c1, c0));
42360 }

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 42362 of file exprtk.hpp.

42364 {
42365 poly_rtrn(5) (poly_impl<T,5>::evaluate(x, c5, c4, c3, c2, c1, c0));
42366 }

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 42368 of file exprtk.hpp.

42370 {
42371 poly_rtrn(6) (poly_impl<T,6>::evaluate(x, c6, c5, c4, c3, c2, c1, c0));
42372 }

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 42374 of file exprtk.hpp.

42376 {
42377 poly_rtrn(7) (poly_impl<T,7>::evaluate(x, c7, c6, c5, c4, c3, c2, c1, c0));
42378 }

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 42380 of file exprtk.hpp.

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

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 42386 of file exprtk.hpp.

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

References poly_rtrn.


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