Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pybksb.f
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file pybksb.f
1 
2 C*********************************************************************
3 
4 C...PYBKSB
5 C...Auxiliary to PYSIGH, for technicolor corrections to QCD 2 -> 2
6 C...processes.
7 
8  SUBROUTINE pybksb(A,N,NP,INDX,B)
9  IMPLICIT NONE
10  INTEGER n,np,indx(n)
11  COMPLEX*16 a(np,np),b(n)
12  INTEGER i,ii,j,ll
13  COMPLEX*16 sum
14 
15  ii=0
16  DO 110 i=1,n
17  ll=indx(i)
18  sum=b(ll)
19  b(ll)=b(i)
20  IF (ii.NE.0)THEN
21  DO 100 j=ii,i-1
22  sum=sum-a(i,j)*b(j)
23  100 CONTINUE
24  ELSE IF (abs(sum).NE.0d0) THEN
25  ii=i
26  ENDIF
27  b(i)=sum
28  110 CONTINUE
29  DO 130 i=n,1,-1
30  sum=b(i)
31  DO 120 j=i+1,n
32  sum=sum-a(i,j)*b(j)
33  120 CONTINUE
34  b(i)=sum/a(i,i)
35  130 CONTINUE
36  RETURN
37  END