28 const double d00=
M1(0, 0);
29 for (
int s=1;
s<=5;
s++) {
44 const double d00=
M1(0, 0);
45 for (
int s=1;
s<=5;
s++) {
46 sum1+=
M2(0, i, 0,
s)*
I4s(ep,
s);
59 const double d00=
M1(0, 0);
62 for (
int s=1;
s<=5;
s++) {
70 for (
int s=1;
s<=5;
s++) {
94 const double d00=
M1(0, 0);
96 assert(i==0 && j==0 && k!=0);
108 for (
int s=1;
s<=5;
s++) {
109 sum1+=0.5*
M2(0,
s, 0, k)*
I4Ds(ep,
s);
115 assert(i!=0 && j!=0 && k!=0);
120 for (
int s=1;
s<=5;
s++) {
125 for (
int s=1;
s<=5;
s++) {
130 sum1=(sum1+2.*sumX)/3.;
133 for (
int s=1;
s<=5;
s++) {
139 for (
int s=1;
s<=5;
s++) {
147 for (
int s=1;
s<=5;
s++) {
154 sum1=(sum1+sumX+sumY)/3.;
168 const double d00=
M1(0, 0);
173 for (
int s=1;
s<=5;
s++) {
174#ifndef USE_GOLEM_MODE
176 sum1+=
M1(
s, 0)*(
I4D2s(ep,
s)+(ep==0 ? (-1./6.+1./4.) : (ep==1? -1./6.: 0.)));
179 sum1+=
M1(
s, 0)*(
I4D2s(ep,
s)+(ep==0 ? -1./9. : 0.));
182 ivalue=0.25*sum1/d00;
185 assert(i==0 && j==0 && k!=0 && l!=0);
188 for (
int s=1;
s<=5;
s++) {
189#ifndef USE_GOLEM_MODE
191 sum1+=0.5*(
M2(0, k,
s, l)+
M2(0, l,
s, k))*(
I4D2s(ep,
s)+(ep==0 ? (-1./6.+1./4.) : (ep==1? -1./6.: 0.)));
194 sum1+=0.5*(
M2(0, k,
s, l)+
M2(0, l,
s, k))*(
I4D2s(ep,
s)+(ep==0 ? -1./9. : 0.));
196 sum1+=0.5*(
M2(0,
s, 0, l)*
I4D2si(ep,
s, k)+
M2(0,
s, 0, k)*
I4D2si(ep,
s, l));
199 ivalue=-0.25*sum1/d00;
203 assert(i!=0 && j!=0 && k!=0 && l!=0);
205 for (
int s=1;
s<=5;
s++) {
237 sum1234+=sum1+sum2+sum3+sum4;
239 ivalue=sum1234/(4*d00);
251 const double d00=
M1(0, 0);
257 for (
int s=1;
s<=5;
s++) {
261 ivalue=-sum1/(20.*d00);
264 assert(i==0 && j==0 && k!=0 && l!=0 && m!=0);
269 for (
int s=1;
s<=5;
s++) {
273 if (ep==0) sum1+=1./24.*(
M1(k, m)-
M2(0, k, l, m));
275 for (
int s=1;
s<=5;
s++) {
280 if (ep==0) sumX+=1./48.*(
M1(m, k)+
M1(l, k)-
M2(0, l, m, k));
281 sum1=(sum1+2.*sumX)/3.;
284 for (
int s=1;
s<=5;
s++) {
289 if (ep==0) sum1+=1./48.*(
M1(k, m)+
M1(l, m)-
M2(0, k, l, m)-
M2(0, l, k, m));
291 for (
int s=1;
s<=5;
s++) {
296 if (ep==0) sumX+=1./48.*(
M1(m, k)+
M1(l, k)-
M2(0, m, l, k)-
M2(0, l, m, k));
300 for (
int s=1;
s<=5;
s++) {
305 if (ep==0) sumY+=1./48.*(
M1(k, l)+
M1(m, l)-
M2(0, k, m, l)-
M2(0, m, k, l));
308 sum1=(sum1+sumX+sumY)/3.;
311 for (
int s=1;
s<=5;
s++) {
314 sum1=3.*sum1+2.*sumX;
315 ivalue=sum1/(10.*d00);
319 assert(i!=0 && j!=0 && k!=0 && l!=0 && m!=0);
321 for (
int s=1;
s<=5;
s++) {
368 sum12345+=sum1+sum2+sum3+sum4+sum5;
370 ivalue=-sum12345/(5*d00);
383#ifdef USE_GOLEM_MODE_6
385 #define ix(i) i<pm5->psix ? i : i-1
409 ncomplex ivalue=-pm5->I4Dsi(ep, ps,
ix(i+offs));
418 if (i>=ps || ps==5) i=i+1;
419 ivalue=-pm5->I4Dsi(ep, ps, i);
429ncomplex Minor4::A(
int ep,
int i,
int j)
431 ncomplex ivalue=pm5->I4D2sij(ep, ps,
ix(i+offs),
ix(j+offs));
437 ncomplex ivalue=-0.5*pm5->I4Ds(ep, ps);
448 ivalue=-0.5*pm5->I4Ds(ep, ps);
451 assert(i!=0 && j!=0);
452 if (i>=ps || ps==5) i=i+1;
453 if (j>=ps || ps==5) j=j+1;
455 ivalue=pm5->I4D2sij(ep, ps, i, j);
466ncomplex Minor4::A(
int ep,
int i,
int j,
int k)
468 ncomplex ivalue=-pm5->I4D3sijk(ep, ps,
ix(i+offs),
ix(j+offs),
ix(k+offs));
474 ncomplex ivalue=0.5*pm5->I4D2si(ep, ps,
ix(k+offs));
486 if (k>=ps || ps==5) k=k+1;
488 ivalue=0.5*pm5->I4D2si(ep, ps, k);
491 assert(i!=0 && j!=0 && k!=0);
492 if (i>=ps || ps==5) i=i+1;
493 if (j>=ps || ps==5) j=j+1;
494 if (k>=ps || ps==5) k=k+1;
495 ivalue=-pm5->I4D3sijk(ep, ps, i, j, k);
506ncomplex Minor4::A(
int ep,
int i,
int j,
int k,
int l)
508 ncomplex ivalue=pm5->I4D4sijkl(ep, ps,
ix(i+offs),
ix(j+offs),
ix(k+offs),
ix(l+offs));
512ncomplex Minor4::B(
int ep,
int k,
int l)
514 ncomplex ivalue=-0.5*pm5->I4D3sij(ep, ps,
ix(k+offs),
ix(l+offs));
520 ncomplex ivalue=0.25*pm5->I4D2s(ep, ps);
531 ivalue=0.25*pm5->I4D2s(ep, ps);
534 assert(i==0 && j==0 && k!=0 && l!=0);
535 if (k>=ps || ps==5) k=k+1;
536 if (l>=ps || ps==5) l=l+1;
538 ivalue=-0.5*pm5->I4D3sij(ep, ps, k, l);
542 assert(i!=0 && j!=0 && k!=0 && l!=0);
543 if (i>=ps || ps==5) i=i+1;
544 if (j>=ps || ps==5) j=j+1;
545 if (k>=ps || ps==5) k=k+1;
546 if (l>=ps || ps==5) l=l+1;
547 ivalue=pm5->I4D4sijkl(ep, ps, i, j, k, l);
567 ncomplex ivalue=pm5->I3st(ep, ps, pt);
580 ncomplex ivalue=-pm5->I3Dsti(ep, ps, pt,
ix(i+offs));
590 if (i>=pt || pt==5) {
594 ivalue=-pm5->I3Dsti(ep, ps, pt, i);
604ncomplex Minor3::A(
int ep,
int i,
int j)
606 ncomplex ivalue=pm5->I3D2stij(ep, ps, pt,
ix(i+offs),
ix(j+offs));
612 ncomplex ivalue=-0.5*pm5->I3Dst(ep, ps, pt);
623 ivalue=-0.5*pm5->I3Dst(ep, ps, pt);
626 assert(i!=0 && j!=0);
631 if (i>=pt || pt==5) {
636 if (j>=pt || pt==5) {
641 ivalue=pm5->I3D2stij(ep, ps, pt, i, j);
652ncomplex Minor3::A(
int ep,
int i,
int j,
int k)
654 ncomplex ivalue=-pm5->I3D3stijk(ep, ps, pt,
ix(i+offs),
ix(j+offs),
ix(k+offs));
660 ncomplex ivalue=0.5*pm5->I3D2sti(ep, ps, pt,
ix(k+offs));
671 assert(i==0 && j==0 && k!=0);
673 if (k>=pt || pt==5) {
678 ivalue=0.5*pm5->I3D2sti(ep, ps, pt, k);
681 assert(i!=0 && j!=0 && k!=0);
683 if (i>=pt || pt==5) {
688 if (j>=pt || pt==5) {
693 if (k>=pt || pt==5) {
697 ivalue=-pm5->I3D3stijk(ep, ps, pt, i, j, k);
717 ncomplex ivalue=pm5->I2stu(ep, ps, pt, pu);
729 ncomplex ivalue=-pm5->I2Dstui(ep, ps, pt, pu,
ix(i+offs));
744 if (i>=pu || pu==5) {
749 ivalue=-pm5->I2Dstui(ep, ps, pt, pu, i);
758ncomplex Minor2::A(
int ep,
int i,
int j)
760 ncomplex ivalue=pm5->I2D2stuij(ep, ps, pt, pu,
ix(i+offs),
ix(j+offs));
766 ncomplex ivalue=-0.5*pm5->I2Dstu(ep, ps, pt, pu);
777 ivalue=-0.5*pm5->I2Dstu(ep, ps, pt, pu);
780 assert(i!=0 && j!=0);
786 if (i>=pu || pu==5) {
791 ivalue=pm5->I2D2stuij(ep, ps, pt, pu, i, i);
std::complex< double > ncomplex
double M2(int i, int j, int l, int m) PURE
ncomplex I4D3sijk(int ep, int s, int i, int j, int k)
ncomplex I4D2si(int ep, int s, int i)
ncomplex I4D3sij(int ep, int s, int i, int j)
ncomplex I4D4sijk(int ep, int s, int i, int j, int k)
ncomplex I4s(int ep, int s)
double M1(int i, int l) PURE
ncomplex I4D3si(int ep, int s, int i)
ncomplex I4D2sij(int ep, int s, int i, int j)
ncomplex I4Ds(int ep, int s)
ncomplex I4D4sijkl(int ep, int s, int i, int j, int k, int l)
ncomplex I4Dsi(int ep, int s, int i)
ncomplex I4D2s(int ep, int s)