24 #ifndef COM_DAFER45_TBTK_PADE_APPROXIMATOR
25 #define COM_DAFER45_TBTK_PADE_APPROXIMATOR
27 #include "TBTK/Polynomial.h"
35 class PadeApproximator{
40 void setNumeratorDegree(
unsigned int numeratorDegree);
45 void setDenominatorDegree(
unsigned int denominatorDegree);
55 Polynomial<std::complex<double>, std::complex<double>,
int>
57 const std::vector<std::complex<double>> &values,
58 const std::vector<std::complex<double>> &arguments
62 unsigned int numeratorDegree;
65 unsigned int denominatorDegree;
68 void executeLeastSquare(
69 std::complex<double> *matrix,
70 std::complex<double> *vector,
72 unsigned int numColumns
76 inline void PadeApproximator::setNumeratorDegree(
unsigned int numeratorDegree){
77 this->numeratorDegree = numeratorDegree;
80 inline void PadeApproximator::setDenominatorDegree(
81 unsigned int denominatorDegree
83 this->denominatorDegree = denominatorDegree;