Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
Polynomial< T > Class Template Reference

#include <polynomial.h>

Collaboration diagram for Polynomial< T >:
Collaboration graph

Public Member Functions

 Polynomial (const std::vector< T > &vect)
 
operator() (const T &x)
 
Polynomial< T > operator+ (const Polynomial< T > &x) const
 
Polynomial< T > operator* (const Polynomial< T > &x) const
 
Polynomial< T > operator- (const Polynomial< T > &x) const
 
Polynomial< T > derive () const
 
horner (const T &x) const
 

Protected Member Functions

 Polynomial ()
 

Protected Attributes

std::vector< T > vect
 

Detailed Description

template<typename T>
class Polynomial< T >

Definition at line 8 of file polynomial.h.

Constructor & Destructor Documentation

template<typename T>
Polynomial< T >::Polynomial ( const std::vector< T > &  vect)
inlineexplicit

Definition at line 11 of file polynomial.h.

template<typename T>
Polynomial< T >::Polynomial ( )
inlineprotected

Definition at line 21 of file polynomial.h.

Member Function Documentation

template<typename T >
T Polynomial< T >::operator() ( const T &  x)

Definition at line 11 of file polynomial.cpp.

template<typename T >
Polynomial< T > Polynomial< T >::operator+ ( const Polynomial< T > &  x) const

Definition at line 23 of file polynomial.cpp.

References max(), and Polynomial< T >::vect.

Here is the call graph for this function:

template<typename T >
Polynomial< T > Polynomial< T >::operator* ( const Polynomial< T > &  x) const

Definition at line 33 of file polynomial.cpp.

References max(), and Polynomial< T >::vect.

Here is the call graph for this function:

template<typename T >
Polynomial< T > Polynomial< T >::operator- ( const Polynomial< T > &  x) const

Definition at line 43 of file polynomial.cpp.

References max(), and Polynomial< T >::vect.

Here is the call graph for this function:

template<typename T >
Polynomial< T > Polynomial< T >::derive ( ) const

Definition at line 53 of file polynomial.cpp.

References Polynomial< T >::vect.

template<typename T >
T Polynomial< T >::horner ( const T &  x) const

Definition at line 63 of file polynomial.cpp.

Member Data Documentation

template<typename T>
std::vector<T> Polynomial< T >::vect
protected

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