Browse Subversion Repository
Diff of /Conograph/trunk/src/utility_data_structure/NodeB.cc
Parent Directory
| Revision Log
| Patch
| 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 |
|
|
| |