MCPcopy Create free account
hub / github.com/Kitware/VTK / GetSortingMap

Method GetSortingMap

Common/DataModel/vtkHyperTreeGridGeometricLocator.cxx:695–702  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

693
694//------------------------------------------------------------------------------
695std::vector<int> vtkHyperTreeGridGeometricLocator::GetSortingMap(
696 const std::vector<double>& other) const
697{
698 std::vector<int> map(other.size());
699 std::iota(map.begin(), map.end(), 0);
700 std::sort(map.begin(), map.end(), [&other](int i0, int i1) { return (other[i0] < other[i1]); });
701 return map;
702}
703VTK_ABI_NAMESPACE_END

Callers 1

IntersectWithLineMethod · 0.95

Calls 4

sortFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected