TTK
Loading...
Searching...
No Matches
MergeTreeAxesAlgorithmBase.cpp
Go to the documentation of this file.
2
4 unsigned int noNodes,
5 std::vector<ftm::idNode> &matchingVector,
6 std::vector<ftm::idNode> &invMatchingVector) {
7 invMatchingVector.clear();
8 invMatchingVector.resize(noNodes, std::numeric_limits<ftm::idNode>::max());
9 for(unsigned int i = 0; i < matchingVector.size(); ++i)
10 if(matchingVector[i] < noNodes)
11 invMatchingVector[matchingVector[i]] = i;
12}
void reverseMatchingVector(unsigned int noNodes, std::vector< ftm::idNode > &matchingVector, std::vector< ftm::idNode > &invMatchingVector)