MeshLib Documentation
Loading...
Searching...
No Matches
MR::Polynomial< T, degree > Struct Template Reference

#include <MRBestFitPolynomial.h>

Public Member Functions

template<typename NewT >
Polynomial< NewT, degree > cast () const
 
MRMESH_APIoperator() (T x) const
 
MRMESH_API std::vector< T > solve (T tol) const
 
MRMESH_API Polynomial< T, degree==0 ? 0 :degree - 1 > deriv () const
 
MRMESH_APIintervalMin (T a, T b) const
 

Public Attributes

MR_BIND_IGNORE Eigen::Vector< T, na
 

Static Public Attributes

static constexpr size_t n = degree + 1
 

Member Function Documentation

◆ cast()

template<typename T , size_t degree>
template<typename NewT >
Polynomial< NewT, degree > MR::Polynomial< T, degree >::cast ( ) const
inline

◆ deriv()

template<typename T , size_t degree>
MRMESH_API Polynomial< T, degree==0 ? 0 :degree - 1 > MR::Polynomial< T, degree >::deriv ( ) const

◆ intervalMin()

template<typename T , size_t degree>
MRMESH_API T MR::Polynomial< T, degree >::intervalMin ( T a,
T b ) const

◆ operator()()

template<typename T , size_t degree>
MRMESH_API T MR::Polynomial< T, degree >::operator() ( T x) const

◆ solve()

template<typename T , size_t degree>
MRMESH_API std::vector< T > MR::Polynomial< T, degree >::solve ( T tol) const

Member Data Documentation

◆ a

template<typename T , size_t degree>
MR_BIND_IGNORE Eigen::Vector<T, n> MR::Polynomial< T, degree >::a

◆ n

template<typename T , size_t degree>
size_t MR::Polynomial< T, degree >::n = degree + 1
staticconstexpr

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