Develop and Download Open Source Software

Browse Subversion Repository

Diff of /Conograph/trunk/src/utility_data_structure/NodeB.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 32 by rtomiyasu, Fri Feb 22 04:51:31 2013 UTC revision 33 by rtomiyasu, Wed Sep 7 04:38:51 2016 UTC
# Line 192  void NodeB::putBud(const Int4& K3, std:: Line 192  void NodeB::putBud(const Int4& K3, std::
192  }  }
193    
194    
195  void NodeB::putQuadraticForm(const VecDat3<Int4>& hkl_left,  //void NodeB::putQuadraticForm(const VecDat3<Int4>& hkl_left,
196                                                  const VecDat3<Int4>& hkl_right,  //                                              const VecDat3<Int4>& hkl_right,
197                                                  multimap<Int4, VecDat3<Int4> >& qindex_hkl) const  //                                              multimap<Int4, VecDat3<Int4> >& qindex_hkl) const
198  {  //{
199          if( !( this->IsBud() ) )  //      if( !( this->IsBud() ) )
200          {  //      {
201                  VecDat3<Int4> diff = hkl_left - hkl_right;  //              VecDat3<Int4> diff = hkl_left - hkl_right;
202                  if( this->Upper() >= 0)  //              if( this->Upper() >= 0)
203                  {  //              {
204                          qindex_hkl.insert( multimap<Int4, VecDat3<Int4> >::value_type( this->Upper(), diff ) );  //                      qindex_hkl.insert( multimap<Int4, VecDat3<Int4> >::value_type( this->Upper(), diff ) );
205                  }  //              }
206                  m_left_branch->putQuadraticForm(hkl_left*(-1), diff, qindex_hkl);  //              m_left_branch->putQuadraticForm(hkl_left*(-1), diff, qindex_hkl);
207                  if( m_left != m_right ) m_right_branch->putQuadraticForm(hkl_right, diff, qindex_hkl);  //              if( m_left != m_right ) m_right_branch->putQuadraticForm(hkl_right, diff, qindex_hkl);
208          }  //      }
209  }  //}
210    
211    
212  void NodeB::print(ostream& os,  const Int4& num,  void NodeB::print(ostream& os,  const Int4& num,

Legend:
Removed from v.32  
changed lines
  Added in v.33

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26