109 void cfpcossini(
const int* deg,
const int* dim,
double* cf) {
122 cout <<
"cfpcossini: np+2 > n1 : np+2 = " << np+2 <<
" , n1 = " 129 int deg2[] = {np2, nt, nr} ;
130 int dim2[] = {np2+2, nt, nr} ;
132 double* cf2 =
new double[(np2+2)*nt*nr] ;
135 for (
int k=0; k<np; k++) {
136 for (
int ij = 0; ij <ntnr; ij++) {
137 cf2[k*ntnr + ij] = cf[k*ntnr + ij] ;
142 int npntnr = np * ntnr ;
143 for (
int k=0; k<np; k++) {
144 for (
int ij = 0; ij <ntnr; ij++) {
145 cf2[npntnr + k*ntnr + ij] = - cf[k*ntnr + ij] ;
150 cfpcossin(deg2, dim2, cf2) ;
155 for (
int ij = 0; ij <ntnr; ij++) {
156 cf[ij] = cf2[2*ntnr + ij] ;
160 for (
int ij = 0; ij <ntnr; ij++) {
165 for (
int ij = 0; ij <ntnr; ij++) {
166 cf[2*ntnr + ij] = cf2[3*ntnr + ij] ;
170 for (
int k=3; k<np; k+=2) {
171 int k2 = 2*(k-1) + 2 ;
173 for (
int ij = 0; ij <ntnr; ij++) {
174 cf[k*ntnr + ij] = cf2[k2*ntnr + ij] ;
179 for (
int ij = 0; ij <ntnr; ij++) {
180 cf[k1*ntnr + ij] = cf2[k2*ntnr + ij] ;
185 for (
int ij = 0; ij <ntnr; ij++) {
186 cf[(np+1)*ntnr + ij] = 0 ;