src/Level2/RelaxBas.cc
/*    Function                            Result
      ========  ===============================================================
       SetIzs   Makes/Stores {Izi} For A Specified System. This MUST Be Done If
                A New System Is Specified. Note That, As These Will Be In The
                Product Basis They Are Diagonal Operators & Use Little Storage.
      SetCinfs  Generates the Izi Coefficients At Infinite Time. The Spin 
                System MUST Have Been Previously Specified And All The {Izi}
                Operators Generated.
      SetCsigs  Generates the Izi Coefficients For Input Sigma. The Spin 
                System MUST Have Been Previously Specified And All The {Izi}
                Operators Generated.
      TestLong  Determines If Longitudinal Relaxation Will Be Detected. The
                Spin System MUST Have Been Previously Specified And All The
                {Izi} Operators Generated.                                   */
Function                            Result

SetIzs   Makes/Stores {Izi} For A Specified System. This MUST Be Done If
A New System Is Specified. Note That, As These Will Be In The
Product Basis They Are Diagonal Operators & Use Little Storage.
SetCinfs  Generates the Izi Coefficients At Infinite Time. The Spin
System MUST Have Been Previously Specified And All The {Izi}
Operators Generated.
SetCsigs  Generates the Izi Coefficients For Input Sigma. The Spin
System MUST Have Been Previously Specified And All The {Izi}
Operators Generated.
TestLong  Determines If Longitudinal Relaxation Will Be Detected. The
Spin System MUST Have Been Previously Specified And All The
{Izi} Operators Generated.
Function Result SetIzs Makes / Stores { Izi } For A Specified System . This MUST Be Done If A New System Is Specified . Note That As These Will Be In The Product Basis They Are Diagonal Operators & Use Little Storage . SetCinfs Generates the Izi Coefficients At Infinite Time . The Spin System MUST Have Been Previously Specified And All The { Izi } Operators Generated . SetCsigs Generates the Izi Coefficients For Input Sigma . The Spin System MUST Have Been Previously Specified And All The { Izi } Operators Generated . TestLong Determines If Longitudinal Relaxation Will Be Detected . The Spin System MUST Have Been Previously Specified And All The { Izi } Operators Generated .
bool RBasic::SetIzs(const spin_sys& sys, bool warn)
  {
  int NS = sys.spins();				
  if(!CheckSpins(NS, warn))			
    { 						
    if(warn) { RBasErr(61,1); RBasErr(63,1); }	
    return false;				
    }
  Izis.clear();					
  for(int i=0; i<NS; i++)			
    Izis.push_back(Iz(sys,i));			
  return true;
  }
bool RBasic :: SetIzs ( const spin_sys & sys , bool warn ) { int NS = sys . spins ( ) ; if ( ! CheckSpins ( NS , warn ) ) { if ( warn ) { RBasErr ( 61 , 1 ) ; RBasErr ( 63 , 1 ) ; } return false ; } Izis . clear ( ) ; for ( int i = 0 ; i < NS ; i ++ ) Izis . push_back ( Iz ( sys , i ) ) ; return true ; }
Function                            Result
Function Result
// Number of system spins // Insure spin count matches //   If mismatch, issue warnings //   if desired then return //   failed // Remove any exitsting Izs // Loop over all spins // Store each Izi