12 Eigen::MatrixXd out(
N+1,
N+1);
13 out = Eigen::MatrixXd::Zero(
N + 1,
N + 1);
14 cout << __LINE__ <<
" " << __FILE__ << endl << flush;
15 for (
int m = 0; m <
N+1; m++) {
16 for (
int n = 0; n <
N+1; n++){
19 z += -((1.0+
pow((-1),(m+n)))/(-1.0 + m + n));
22 z += (1.0 +
pow((-1),(m-n)))/(1.0 + m - n);
25 z += (1.0 +
pow((-1),(m-n)))/(1.0 - m + n);
28 z += (1.0 +
pow((-1),(m+n)))/(1.0 + m + n);
33 cout << __LINE__ <<
" " << __FILE__ << endl
35 out(0, 0) = out(0, 0) / 4.0;
36 out.block(1, 0,
N, 1) = out.block(1, 0,
N, 1)/2.0;
37 out.block(0, 1, 1,
N) = out.block(0, 1, 1,
N) / 2.0;
Eigen::MatrixXd intWts(int N)
valarray< complex< T > > pow(valarray< complex< T > > base, T power)
int N
Specifies number of Chebyshev polynomials, default N = 31.