src/Level2/RelaxBas.cc
/* The transverse relaxation matrix & superoperator depend upon both the spin
   relaxation rates (R2rates) and the spin system on which they are applied.
   Whenever any transverse rate changes, or if the spin system changes, these
   values must be recalculated. As such, the array R2mx MUST be zeroed if 
   such changes occur. The functions below will regenerate the values if the
   array is empty. If the array is not empty it has been previously made for
   the current R2rates and spin system. The matrix R2Mx will be HSxHS 
   whereas the R2 superoperator will be LSxLS.                               */
The transverse relaxation matrix & superoperator depend upon both the spin
relaxation rates (R2rates) and the spin system on which they are applied.
Whenever any transverse rate changes, or if the spin system changes, these
values must be recalculated. As such, the array R2mx MUST be zeroed if
such changes occur. The functions below will regenerate the values if the
array is empty. If the array is not empty it has been previously made for
the current R2rates and spin system.
The transverse relaxation matrix & superoperator depend upon both the spin relaxation rates ( R2rates ) and the spin system on which they are applied . Whenever any transverse rate changes or if the spin system changes these values must be recalculated . As such the array R2mx MUST be zeroed if such changes occur . The functions below will regenerate the values if the array is empty . If the array is not empty it has been previously made for the current R2rates and spin system .
matrix RBasic::R2Mx()
  {
  if(!R2mx.rows())				
    if(spins() && HS()) SetR2Mx(); 		
  return R2mx;					
  }
matrix RBasic :: R2Mx ( ) { if ( ! R2mx . rows ( ) ) if ( spins ( ) && HS ( ) ) SetR2Mx ( ) ; return R2mx ; }
The transverse relaxation matrix & superoperator depend upon both the spin
relaxation rates (R2rates) and the spin system on which they are applied.
The transverse relaxation matrix & superoperator depend upon both the spin relaxation rates ( R2rates ) and the spin system on which they are applied .
// Rebuild R2 matrix if needed //   Rebuild if Hilbert space //   and set # of spins