JUK1
interch.m File Reference

Go to the source code of this file.

Functions

end if abs (real(dotprod))>rstoerst rstoerst =abs(real(dotprod))
 
end end dot (ii)
 
 ind (ii)
 
 opptatt (ii)=0
 
end C Sorting inner products abs(realdel) in descending order hjelp (1)
 
 dot (j+1)
 
 ind (j+1)
 
 dot (j)
 
 ind (j)
 
 S (:, ii)
 
 S (:, istoerst)
 
 D (ii, ii)
 
 D (istoerst, istoerst)
 

Variables

 function [OUTS, OUToldS, OUTD] =interch(S,oldS,D,Ncond,fstep)
 
 rstoerst =0
 
for j
 
for k
 
 istoerst =j
 
 ihjelp =ind(j+1)
 
end end end C Doing the interchange in a prioritized sequence
 
 hjelp =S(:,ii)
 
end if sign(real(dotprod))< 0 S(end end end oldS =S
 
 OUTS =S
 
 OUToldS =S
 
 OUTD =D
 

Function Documentation

◆ abs()

end if abs ( real(dotprod)  ) =abs(real(dotprod))
Here is the caller graph for this function:

◆ D() [1/2]

D ( ii  ,
ii   
)

◆ D() [2/2]

D ( istoerst  ,
istoerst   
)

◆ dot() [1/3]

end end dot ( ii  )

◆ dot() [2/3]

dot ( j  )

◆ dot() [3/3]

dot ( j 1)

◆ hjelp()

end C Sorting inner products abs (realdel) in descending order hjelp ( )

◆ ind() [1/3]

ind ( ii  )

◆ ind() [2/3]

ind ( j  )

◆ ind() [3/3]

ind ( j 1)

◆ opptatt()

opptatt ( ii  )
pure virtual

◆ S() [1/2]

S ( ,
ii   
)

◆ S() [2/2]

S ( ,
istoerst   
)

Variable Documentation

◆ function

function[OUTS, OUToldS, OUTD] =interch(S,oldS,D,Ncond,fstep)

Definition at line 1 of file interch.m.

◆ hjelp

hjelp =S(:,ii)

Definition at line 63 of file interch.m.

◆ ihjelp

ihjelp =ind(j+1)

Definition at line 33 of file interch.m.

◆ istoerst

istoerst =j

Definition at line 20 of file interch.m.

◆ j

for j
Initial value:
=1:Ncond
dotprod=0

Definition at line 13 of file interch.m.

◆ k

for k
Initial value:
=1:Ncond
dotprod=dotprod+conj(oldS(k,ii))*S(k,j)
end if sign(real(dotprod))< 0 S(end end end oldS
Definition: interch.m:86
for k
Definition: interch.m:15
S(:, ii)
for j
Definition: interch.m:13

Definition at line 15 of file interch.m.

◆ oldS

end if sign (real(dotprod))<0 S( end end end oldS =S

Definition at line 86 of file interch.m.

◆ OUTD

OUTD =D

Definition at line 89 of file interch.m.

◆ OUToldS

OUToldS =S

Definition at line 89 of file interch.m.

◆ OUTS

OUTS =S

Definition at line 89 of file interch.m.

◆ rstoerst

rstoerst =0

Definition at line 12 of file interch.m.

◆ sequence

end end end C Doing the interchange in a prioritized sequence

Definition at line 42 of file interch.m.