27 typedef complex<double> 
Cd_t;
    28 typedef valarray<double> 
Vd_t;
    38   D4.
coef << 1.0, 0.0, 0.0, 0.0, 0.0;
    39   D3.coef << 1.0, 0.0, 0.0, 0.0;
    40   D2.coef << 1.0, 0.0, 0.0; 
    45   Lmat << D4 - (4.0 * D2) + (8.0 * D0);
    71   cout << 
"lbc: " << forc(-1.0) << endl;
    72   cout << 
"rbc: " << forc(1.0) << endl;
    76   outf.open(
"data/Ex_02.txt");
    77   Eigen::MatrixXd temp(
N + 1, 2);
    78   temp << 
yEigen, forc(0,0).evr();
 
BcMat will hold general Boundary conditions as LinopMats at evealuation points, as given by operator ...
 
ChebfunMat< std::complex< T > > linSolve(const LinopMat< std::complex< T > > &Lmat_, const BcMat< std::complex< T > > &bcmat_, const ChebfunMat< std::complex< T > > &forc_)
Linear equation solver. 
 
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > eval
 
Linop This class creates a Linear operator to solve TPBVPs. 
 
Eigen::Matrix< SIS_TYPE, Eigen::Dynamic, Eigen::Dynamic > yEigen
 
This class represents a block matrix operator. It is a matrix of operators. 
 
std::valarray< std::complex< SIS_TYPE > > yc(N+1)
 
Eigen::Matrix< T, Eigen::Dynamic, 1 > coef
Stores the coefficients in the differential equation. 
 
int N
Specifies number of Chebyshev polynomials, default N = 31. 
 
This class holds a matrix of Chebfuns. 
 
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > vals