accelerInt  v0.1
Macros | Functions
cf.c File Reference

File containing functions for best rational approximation to matrix exponential. More...

#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "solver_options.h"
#include "linear-algebra.h"
#include <complex.h>
#include <fftw3.h>
Include dependency graph for cf.c:

Go to the source code of this file.

Macros

#define M_PI   4 * atan(1)
 

Functions

void cf (int n, double *poles_r, double *poles_i, double *res_r, double *res_i)
 Function that calculates the poles and residuals of best rational (partial fraction) approximant to the matrix exponential. More...
 

Detailed Description

File containing functions for best rational approximation to matrix exponential.

Author
Kyle E. Niemeyer
Date
07/19/2012

Contains main and linear algebra functions for Carathéodory-Fejér method of Rational Approximants

Definition in file cf.c.

Macro Definition Documentation

◆ M_PI

#define M_PI   4 * atan(1)

Defined for pi

Definition at line 18 of file cf.c.

Function Documentation

◆ cf()

void cf ( int  n,
double *  poles_r,
double *  poles_i,
double *  res_r,
double *  res_i 
)

Function that calculates the poles and residuals of best rational (partial fraction) approximant to the matrix exponential.

Complex math Fast Fourier tranform functionsUses the Carathéodory-Fejér method; based on the MATLAB code in L.N. Trefethen, J.A.C. Weideman, T. Schmelzer, "Talbot quadratures and rational approximations," BIT Numer. Math. 46 (2006) 653–670.

Parameters
[in]nsize of approximation (n, n)
[out]poles_rarray with real parts of poles, size n
[out]poles_iarray with imaginary parts of poles, size n
[out]res_rarray with real parts of residuals, size n
[out]res_iarray with imaginary parts of residuals, size n

Definition at line 41 of file cf.c.